def create_window(controller, parent=None): window = ConverterWindow(parent) window.setWindowTitle('Hierarchy Converter') statusbar = window.statusBar() container = QtGui.QWidget(window) label = QtGui.QLabel('Prefix:', container) textbox = QtGui.QLineEdit(container) button = QtGui.QPushButton('Convert', container) def onclick(): window.convertClicked.emit(textbox.text()) button.clicked.connect(onclick) def update_statusbar(newsel): if not newsel: txt = 'Nothing selected.' elif len(newsel) == 1: txt = '%s selected.' % newsel[0] else: txt = '%s objects selected.' % len(newsel) statusbar.showMessage(txt) controller.selectionChanged.connect(update_statusbar) layout = QtGui.QHBoxLayout(container) container.setLayout(layout) layout.addWidget(label) layout.addWidget(textbox) layout.addWidget(button) window.setCentralWidget(container) return window
def get_disas_bg_color(): """ Get the background color of the disas text area via pixel... YOLO PS: please expose the get_graph_color(...) palette accessor, Ilfak ;_; """ # find a form (eg, IDA view) to steal a pixel from for i in xrange(5): form = idaapi.find_tform("IDA View-%c" % chr(ord('A') + i)) if form: break else: raise RuntimeError("Failed to find donor IDA View") # lookup the Qt Widget for the given form and take 2px tall image if using_pyqt5(): widget = idaapi.PluginForm.FormToPyQtWidget(form) pixmap = widget.grab(QtCore.QRect(0, 0, widget.width(), 2)) else: widget = idaapi.PluginForm.FormToPySideWidget(form) pixmap = QtGui.QPixmap.grabWidget( widget, QtCore.QRect(0, 0, widget.width(), 2)) # extract a pixel from the top center like a pleb (hopefully a background pixel :|) img = QtGui.QImage(pixmap.toImage()) color = QtGui.QColor(img.pixel(img.width() / 2, 1)) # return the color of the pixel we extracted return color
def setItemListWidget(self, iconPath, iconName, wgName, adPath=''): icon = QtGui.QIcon() pixmap = QtGui.QPixmap(iconPath) icon.addPixmap(pixmap, QtGui.QIcon.Normal, QtGui.QIcon.Off) items = QtGui.QListWidgetItem(wgName) items.setIcon(icon) items.setText(iconName) if adPath and not os.path.exists(adPath): items.setBackground(QtGui.QColor(255, 0, 0))
def create_window(): window = QtGui.QMainWindow() #(1) container = QtGui.QWidget(window) textbox = QtGui.QLineEdit(container) layout = QtGui.QHBoxLayout(container) #(2) container.setLayout(layout) layout.addWidget(textbox) #(3) window.setCentralWidget(container) #(4) return window
def fillInTableIcon(self, row, column, text, iconPath, widget, color = [1, 1, 1]) : icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(iconPath), QtGui.QIcon.Normal, QtGui.QIcon.Off) item = QtGui.QTableWidgetItem() item.setText(str(text)) item.setIcon(icon) item.setBackgroundColor(QtGui.QColor(color[0], color[1], color[2])) cmd = 'self.ui.%s.setItem(row, column, item)' % widget eval(cmd)
def addListWidgetItem(self, listWidget, text, iconPath, color) : icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(iconPath),QtGui.QIcon.Normal,QtGui.QIcon.Off) cmd = 'QtGui.QListWidgetItem(self.ui.%s)' % listWidget item = eval(cmd) item.setIcon(icon) item.setText(text) item.setBackground(QtGui.QColor(color[0], color[1], color[2])) size = 90 cmd2 = 'self.ui.%s.setIconSize(QtCore.QSize(%s, %s))' % (listWidget, size, size) eval(cmd2)
def setLabel(self, img) : iconPath = self.xIcon if img : iconPath = self.okIcon self.ui.status_label.setPixmap(QtGui.QPixmap(iconPath).scaled(16, 16, QtCore.Qt.KeepAspectRatio))
def version3(): """Adds window title and multiple widgets.""" def create_window(): window = QtGui.QMainWindow() window.setWindowTitle('Hierarchy Converter') container = QtGui.QWidget(window) label = QtGui.QLabel('Prefix:', container) textbox = QtGui.QLineEdit(container) button = QtGui.QPushButton('Convert', container) layout = QtGui.QHBoxLayout(container) container.setLayout(layout) # Add them to the layout, first widget added is left-most layout.addWidget(label) layout.addWidget(textbox) layout.addWidget(button) window.setCentralWidget(container) return window if __name__ == '__main__': app = QtGui.QApplication([]) win = create_window() win.show() app.exec_()
def initUi(self): self.canSetFocusOnInput = True self.setFocusPolicy(QtCore.Qt.NoFocus) self.returnPressed.connect(self.clearFocus) self.setCursor(QtCore.Qt.SplitHCursor) self.setMouseTracking(0) self.setText("1.0") self.setValidator(QtGui.QDoubleValidator())
def addEntityListWidget(self, listWidget, text1, text2, bgColor, iconPath) : myCustomWidget = customWidget.customQWidgetItem() myCustomWidget.setText1(text1) myCustomWidget.setText2(text2) myCustomWidget.setTextColor1([200, 200, 200]) myCustomWidget.setTextColor2([120, 120, 120]) item = eval('QtGui.QListWidgetItem(self.ui.%s)' % listWidget) item.setSizeHint(myCustomWidget.sizeHint()) item.setBackground(QtGui.QColor(bgColor[0], bgColor[1], bgColor[2])) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(iconPath),QtGui.QIcon.Normal,QtGui.QIcon.Off) item.setIcon(icon) eval('self.ui.%s.addItem(item)' % listWidget) eval('self.ui.%s.setItemWidget(item, myCustomWidget)' % listWidget)
def version1(): """Very basic first version.""" def create_window(): win = QtGui.QMainWindow() return win if __name__ == '__main__': app = QtGui.QApplication([]) win = create_window() win.show() app.exec_()
def get_disas_bg_color(): """ Get the background color of an IDA disassembly view. ----------------------------------------------------------------------- The necessity of this function is pretty silly. I would like lighthouse to be color-aware of the user's IDA theme such that it selects reasonable colors that maintain readability. Since there is no supported way to probe the palette & colors in use by IDA, we must get creative. This function attempts to locate an IDA disassembly view, and take a screenshot of said widget. It will then attempt to extract the color of a single background pixel (hopefully). PS: please expose the get_graph_color(...) palette accessor, Ilfak ;_; """ # find a form (eg, IDA view) to steal a pixel from for i in xrange(5): form = idaapi.find_tform("IDA View-%c" % chr(ord('A') + i)) if form: break else: raise RuntimeError("Failed to find donor IDA View") # locate the Qt Widget for an IDA View form and take 2px tall screenshot if using_pyqt5(): widget = idaapi.PluginForm.FormToPyQtWidget(form) pixmap = widget.grab(QtCore.QRect(0, 0, widget.width(), 2)) else: widget = idaapi.PluginForm.FormToPySideWidget(form) region = QtCore.QRect(0, 0, widget.width(), 2) pixmap = QtGui.QPixmap.grabWidget(widget, region) # extract 1 pixel like a pleb (hopefully a background pixel :|) img = QtGui.QImage(pixmap.toImage()) color = QtGui.QColor(img.pixel(img.width() / 2, 1)) # return the color of the pixel we extracted return color
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(400, 300) self.verticalLayout = QtGui.QVBoxLayout(Dialog) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label = QtGui.QLabel(Dialog) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName(_fromUtf8("label")) self.verticalLayout.addWidget(self.label) self.label_2 = QtGui.QLabel(Dialog) self.label_2.setObjectName(_fromUtf8("label_2")) self.verticalLayout.addWidget(self.label_2) self.localUser_lineEdit = QtGui.QLineEdit(Dialog) self.localUser_lineEdit.setObjectName(_fromUtf8("localUser_lineEdit")) self.verticalLayout.addWidget(self.localUser_lineEdit) self.user_listWidget = QtGui.QListWidget(Dialog) self.user_listWidget.setObjectName(_fromUtf8("user_listWidget")) self.verticalLayout.addWidget(self.user_listWidget) self.setUser_pushButton = QtGui.QPushButton(Dialog) self.setUser_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.setUser_pushButton.setObjectName(_fromUtf8("setUser_pushButton")) self.verticalLayout.addWidget(self.setUser_pushButton) self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog)
def showMenu(self,pos): # mode work = self.ui.work_radioButton.isChecked() publish = self.ui.publish_radioButton.isChecked() sourceFile = self.ui.source_radioButton.isChecked() selItem = str(self.ui.work_listWidget.currentItem().text()) if not '==' in selItem : if publish : if self.ui.work_listWidget.currentItem() : menu=QtGui.QMenu(self) # menu.addAction('Rename') # menu.addAction('Delete') subMenu = QtGui.QMenu('Open', self) subMenu.addAction('Open') subMenu.addAction('Open as work file') subMenu2 = QtGui.QMenu('Import', self) subMenu2.addAction('Import') subMenu2.addAction('Import to new file') subMenu3 = QtGui.QMenu('Reference', self) subMenu3.addAction('Reference') subMenu3.addAction('Reference to new file') # items = self.getPlayblastFile() # for each in items : # subMenu3.addAction(each) menu.addMenu(subMenu) menu.addMenu(subMenu2) menu.addMenu(subMenu3) menu.popup(self.ui.work_listWidget.mapToGlobal(pos)) result = menu.exec_(self.ui.work_listWidget.mapToGlobal(pos)) if result : self.menuCommand(result.text(), result.parentWidget().title())
def create_window(): window = ConverterWindow() window.setWindowTitle('Hierarchy Converter') container = QtGui.QWidget(window) label = QtGui.QLabel('Prefix:', container) textbox = QtGui.QLineEdit(container) button = QtGui.QPushButton('Convert', container) def onclick(): #(2) window.convertClicked.emit(textbox.text()) button.clicked.connect(onclick) #(3) layout = QtGui.QHBoxLayout(container) container.setLayout(layout) layout.addWidget(label) layout.addWidget(textbox) layout.addWidget(button) window.setCentralWidget(container) return window
def showMenu2(self, pos) : path = str(self.ui.path_lineEdit.text()) if path : if not os.path.exists(path) : menu = QtGui.QMenu(self) menu.addAction('Create work dir') menu.popup(self.ui.status_label.mapToGlobal(pos)) result = menu.exec_(self.ui.status_label.mapToGlobal(pos)) if result.text() == 'Create work dir' : os.makedirs(path) self.setLabel(True)
def compute_color_on_gradiant(percent, color1, color2): """ Compute the color specified by a percent between two colors. """ # dump the rgb values from QColor objects r1, g1, b1, _ = color1.getRgb() r2, g2, b2, _ = color2.getRgb() # compute the new color across the gradiant of color1 -> color 2 r = r1 + percent * (r2 - r1) g = g1 + percent * (g2 - g1) b = b1 + percent * (b2 - b1) # return the new color return QtGui.QColor(r,g,b)
def _pytest(): import random controller = HierarchyConverterController() def nextsel(): return random.choice([[], ['single'], ['single', 'double']]) def onconvert(prefix): print 'Convert clicked! Prefix:', prefix controller.selectionChanged.emit(nextsel()) app = QtGui.QApplication([]) win = create_window(controller) win.convertClicked.connect(onconvert) win.show() app.exec_()
def addEntityListWidget2(self, listWidget, text1, text2, text3, bgColor, iconPath, size) : myCustomWidget = customWidget.customQWidgetItem2() myCustomWidget.setText1(text1) myCustomWidget.setText2(text2) myCustomWidget.setText3(text3) myCustomWidget.setTextColor1([200, 200, 200]) myCustomWidget.setTextColor2([120, 120, 120]) myCustomWidget.setTextColor3([120, 120, 120]) myCustomWidget.setIcon(iconPath, size) item = eval('QtGui.QListWidgetItem(self.ui.%s)' % listWidget) item.setSizeHint(myCustomWidget.sizeHint()) item.setBackground(QtGui.QColor(bgColor[0], bgColor[1], bgColor[2])) eval('self.ui.%s.addItem(item)' % listWidget) eval('self.ui.%s.setItemWidget(item, myCustomWidget)' % listWidget)
def version2(): """Shows creating textbox, layout, and central widget.""" def create_window(): window = QtGui.QMainWindow() #(1) container = QtGui.QWidget(window) textbox = QtGui.QLineEdit(container) layout = QtGui.QHBoxLayout(container) #(2) container.setLayout(layout) layout.addWidget(textbox) #(3) window.setCentralWidget(container) #(4) return window if __name__ == '__main__': app = QtGui.QApplication([]) win = create_window() win.show() app.exec_()
def version4(): """Adds convertClicked signal and support.""" class ConverterWindow(QtGui.QMainWindow): #(1) convertClicked = Signal(str) def create_window(): window = ConverterWindow() window.setWindowTitle('Hierarchy Converter') container = QtGui.QWidget(window) label = QtGui.QLabel('Prefix:', container) textbox = QtGui.QLineEdit(container) button = QtGui.QPushButton('Convert', container) def onclick(): #(2) window.convertClicked.emit(textbox.text()) button.clicked.connect(onclick) #(3) layout = QtGui.QHBoxLayout(container) container.setLayout(layout) layout.addWidget(label) layout.addWidget(textbox) layout.addWidget(button) window.setCentralWidget(container) return window if __name__ == '__main__': def onconvert(prefix): #(4) print 'Convert clicked! Prefix:', prefix app = QtGui.QApplication([]) win = create_window() win.convertClicked.connect(onconvert) #(5) win.show() app.exec_()
def create_window(): window = QtGui.QMainWindow() window.setWindowTitle('Hierarchy Converter') container = QtGui.QWidget(window) label = QtGui.QLabel('Prefix:', container) textbox = QtGui.QLineEdit(container) button = QtGui.QPushButton('Convert', container) layout = QtGui.QHBoxLayout(container) container.setLayout(layout) # Add them to the layout, first widget added is left-most layout.addWidget(label) layout.addWidget(textbox) layout.addWidget(button) window.setCentralWidget(container) return window
def setupUi(self, AlembicImportWin): AlembicImportWin.setObjectName(_fromUtf8("AlembicImportWin")) AlembicImportWin.resize(571, 846) self.centralwidget = QtGui.QWidget(AlembicImportWin) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.verticalLayout_6 = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) self.frame = QtGui.QFrame(self.centralwidget) self.frame.setFrameShape(QtGui.QFrame.Box) self.frame.setFrameShadow(QtGui.QFrame.Sunken) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout_4 = QtGui.QVBoxLayout(self.frame) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_5 = QtGui.QLabel(self.frame) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_5.setFont(font) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 2, 0, 1, 1) self.project_comboBox = QtGui.QComboBox(self.frame) self.project_comboBox.setObjectName(_fromUtf8("project_comboBox")) self.gridLayout.addWidget(self.project_comboBox, 0, 1, 1, 1) self.sequence_comboBox = QtGui.QComboBox(self.frame) self.sequence_comboBox.setObjectName(_fromUtf8("sequence_comboBox")) self.gridLayout.addWidget(self.sequence_comboBox, 2, 1, 1, 1) self.label = QtGui.QLabel(self.frame) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_7 = QtGui.QLabel(self.frame) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_7.setFont(font) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 4, 0, 1, 1) self.shot_comboBox = QtGui.QComboBox(self.frame) self.shot_comboBox.setObjectName(_fromUtf8("shot_comboBox")) self.gridLayout.addWidget(self.shot_comboBox, 4, 1, 1, 1) self.label_4 = QtGui.QLabel(self.frame) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_4.setFont(font) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1) self.episode_comboBox = QtGui.QComboBox(self.frame) self.episode_comboBox.setObjectName(_fromUtf8("episode_comboBox")) self.gridLayout.addWidget(self.episode_comboBox, 1, 1, 1, 1) self.gridLayout.setColumnStretch(0, 1) self.gridLayout.setColumnStretch(1, 2) self.horizontalLayout_2.addLayout(self.gridLayout) self.logo2_label = QtGui.QLabel(self.frame) self.logo2_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.logo2_label.setObjectName(_fromUtf8("logo2_label")) self.horizontalLayout_2.addWidget(self.logo2_label) self.logo_label = QtGui.QLabel(self.frame) self.logo_label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.logo_label.setObjectName(_fromUtf8("logo_label")) self.horizontalLayout_2.addWidget(self.logo_label) self.horizontalLayout_2.setStretch(0, 2) self.horizontalLayout_2.setStretch(1, 1) self.horizontalLayout_2.setStretch(2, 1) self.verticalLayout_4.addLayout(self.horizontalLayout_2) self.verticalLayout_6.addWidget(self.frame) self.frame_2 = QtGui.QFrame(self.centralwidget) self.frame_2.setFrameShape(QtGui.QFrame.Box) self.frame_2.setFrameShadow(QtGui.QFrame.Sunken) self.frame_2.setObjectName(_fromUtf8("frame_2")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.frame_2) self.verticalLayout_3.setSpacing(2) self.verticalLayout_3.setContentsMargins(9, 2, 9, 2) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.label_10 = QtGui.QLabel(self.frame_2) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_10.setFont(font) self.label_10.setObjectName(_fromUtf8("label_10")) self.verticalLayout_3.addWidget(self.label_10) self.asset_tableWidget = QtGui.QTableWidget(self.frame_2) self.asset_tableWidget.setMinimumSize(QtCore.QSize(0, 200)) self.asset_tableWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.asset_tableWidget.setObjectName(_fromUtf8("asset_tableWidget")) self.asset_tableWidget.setColumnCount(10) self.asset_tableWidget.setRowCount(0) item = QtGui.QTableWidgetItem() self.asset_tableWidget.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.asset_tableWidget.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.asset_tableWidget.setHorizontalHeaderItem(2, item) item = QtGui.QTableWidgetItem() self.asset_tableWidget.setHorizontalHeaderItem(3, item) item = QtGui.QTableWidgetItem() self.asset_tableWidget.setHorizontalHeaderItem(4, item) item = QtGui.QTableWidgetItem() self.asset_tableWidget.setHorizontalHeaderItem(5, item) item = QtGui.QTableWidgetItem() self.asset_tableWidget.setHorizontalHeaderItem(6, item) item = QtGui.QTableWidgetItem() self.asset_tableWidget.setHorizontalHeaderItem(7, item) item = QtGui.QTableWidgetItem() self.asset_tableWidget.setHorizontalHeaderItem(8, item) item = QtGui.QTableWidgetItem() self.asset_tableWidget.setHorizontalHeaderItem(9, item) self.asset_tableWidget.horizontalHeader().setVisible(True) self.asset_tableWidget.horizontalHeader().setCascadingSectionResizes(False) self.asset_tableWidget.horizontalHeader().setDefaultSectionSize(106) self.asset_tableWidget.horizontalHeader().setHighlightSections(True) self.asset_tableWidget.verticalHeader().setVisible(True) self.verticalLayout_3.addWidget(self.asset_tableWidget) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.all_checkBox = QtGui.QCheckBox(self.frame_2) self.all_checkBox.setChecked(True) self.all_checkBox.setObjectName(_fromUtf8("all_checkBox")) self.horizontalLayout_5.addWidget(self.all_checkBox) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.label_12 = QtGui.QLabel(self.frame_2) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.label_12.setFont(font) self.label_12.setObjectName(_fromUtf8("label_12")) self.horizontalLayout_7.addWidget(self.label_12) self.assetVersion_comboBox = QtGui.QComboBox(self.frame_2) self.assetVersion_comboBox.setObjectName(_fromUtf8("assetVersion_comboBox")) self.horizontalLayout_7.addWidget(self.assetVersion_comboBox) self.horizontalLayout_7.setStretch(0, 1) self.horizontalLayout_7.setStretch(1, 2) self.horizontalLayout_5.addLayout(self.horizontalLayout_7) self.refresh_pushButton = QtGui.QPushButton(self.frame_2) self.refresh_pushButton.setObjectName(_fromUtf8("refresh_pushButton")) self.horizontalLayout_5.addWidget(self.refresh_pushButton) self.horizontalLayout_5.setStretch(0, 1) self.horizontalLayout_5.setStretch(2, 6) self.horizontalLayout_5.setStretch(3, 3) self.verticalLayout_3.addLayout(self.horizontalLayout_5) self.verticalLayout_3.setStretch(0, 1) self.verticalLayout_3.setStretch(1, 6) self.verticalLayout_3.setStretch(2, 1) self.verticalLayout_6.addWidget(self.frame_2) self.frame_3 = QtGui.QFrame(self.centralwidget) self.frame_3.setFrameShape(QtGui.QFrame.Box) self.frame_3.setFrameShadow(QtGui.QFrame.Sunken) self.frame_3.setObjectName(_fromUtf8("frame_3")) self.horizontalLayout_6 = QtGui.QHBoxLayout(self.frame_3) self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.removeAsset_pushButton = QtGui.QPushButton(self.frame_3) self.removeAsset_pushButton.setMinimumSize(QtCore.QSize(0, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(156, 70, 71)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(156, 70, 71)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(156, 70, 71)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) self.removeAsset_pushButton.setPalette(palette) self.removeAsset_pushButton.setObjectName(_fromUtf8("removeAsset_pushButton")) self.gridLayout_2.addWidget(self.removeAsset_pushButton, 3, 0, 1, 1) self.label_6 = QtGui.QLabel(self.frame_3) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_6.setFont(font) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_2.addWidget(self.label_6, 0, 0, 1, 1) self.rebuildAbcAsset_pushButton = QtGui.QPushButton(self.frame_3) self.rebuildAbcAsset_pushButton.setMinimumSize(QtCore.QSize(0, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) self.rebuildAbcAsset_pushButton.setPalette(palette) self.rebuildAbcAsset_pushButton.setObjectName(_fromUtf8("rebuildAbcAsset_pushButton")) self.gridLayout_2.addWidget(self.rebuildAbcAsset_pushButton, 2, 0, 1, 1) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem1, 4, 0, 1, 1) self.horizontalLayout_6.addLayout(self.gridLayout_2) self.line_3 = QtGui.QFrame(self.frame_3) self.line_3.setFrameShape(QtGui.QFrame.VLine) self.line_3.setFrameShadow(QtGui.QFrame.Sunken) self.line_3.setObjectName(_fromUtf8("line_3")) self.horizontalLayout_6.addWidget(self.line_3) self.gridLayout_6 = QtGui.QGridLayout() self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) self.label_13 = QtGui.QLabel(self.frame_3) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_13.setFont(font) self.label_13.setObjectName(_fromUtf8("label_13")) self.gridLayout_6.addWidget(self.label_13, 0, 0, 1, 1) self.connectShade_pushButton = QtGui.QPushButton(self.frame_3) self.connectShade_pushButton.setMinimumSize(QtCore.QSize(0, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) self.connectShade_pushButton.setPalette(palette) self.connectShade_pushButton.setObjectName(_fromUtf8("connectShade_pushButton")) self.gridLayout_6.addWidget(self.connectShade_pushButton, 3, 0, 1, 1) self.removeCache_pushButton = QtGui.QPushButton(self.frame_3) self.removeCache_pushButton.setMinimumSize(QtCore.QSize(0, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(156, 70, 71)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(156, 70, 71)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(156, 70, 71)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) self.removeCache_pushButton.setPalette(palette) self.removeCache_pushButton.setObjectName(_fromUtf8("removeCache_pushButton")) self.gridLayout_6.addWidget(self.removeCache_pushButton, 4, 0, 1, 1) self.importCache_pushButton = QtGui.QPushButton(self.frame_3) self.importCache_pushButton.setMinimumSize(QtCore.QSize(0, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) self.importCache_pushButton.setPalette(palette) self.importCache_pushButton.setObjectName(_fromUtf8("importCache_pushButton")) self.gridLayout_6.addWidget(self.importCache_pushButton, 2, 0, 1, 1) self.rebuildAsset_pushButton = QtGui.QPushButton(self.frame_3) self.rebuildAsset_pushButton.setMinimumSize(QtCore.QSize(0, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) self.rebuildAsset_pushButton.setPalette(palette) self.rebuildAsset_pushButton.setObjectName(_fromUtf8("rebuildAsset_pushButton")) self.gridLayout_6.addWidget(self.rebuildAsset_pushButton, 1, 0, 1, 1) self.gridLayout_6.setRowStretch(0, 1) self.horizontalLayout_6.addLayout(self.gridLayout_6) self.horizontalLayout_6.setStretch(0, 1) self.horizontalLayout_6.setStretch(1, 1) self.horizontalLayout_6.setStretch(2, 1) self.verticalLayout_6.addWidget(self.frame_3) self.horizontalLayout_8 = QtGui.QHBoxLayout() self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) self.frame_4 = QtGui.QFrame(self.centralwidget) self.frame_4.setMaximumSize(QtCore.QSize(16777215, 240)) self.frame_4.setFrameShape(QtGui.QFrame.Box) self.frame_4.setFrameShadow(QtGui.QFrame.Sunken) self.frame_4.setObjectName(_fromUtf8("frame_4")) self.verticalLayout = QtGui.QVBoxLayout(self.frame_4) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label_9 = QtGui.QLabel(self.frame_4) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_9.setFont(font) self.label_9.setObjectName(_fromUtf8("label_9")) self.verticalLayout.addWidget(self.label_9) self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.nonCache_tableWidget = QtGui.QTableWidget(self.frame_4) self.nonCache_tableWidget.setMinimumSize(QtCore.QSize(0, 100)) self.nonCache_tableWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.nonCache_tableWidget.setObjectName(_fromUtf8("nonCache_tableWidget")) self.nonCache_tableWidget.setColumnCount(2) self.nonCache_tableWidget.setRowCount(0) item = QtGui.QTableWidgetItem() self.nonCache_tableWidget.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.nonCache_tableWidget.setHorizontalHeaderItem(1, item) self.nonCache_tableWidget.horizontalHeader().setVisible(True) self.nonCache_tableWidget.horizontalHeader().setCascadingSectionResizes(False) self.nonCache_tableWidget.horizontalHeader().setDefaultSectionSize(106) self.nonCache_tableWidget.horizontalHeader().setHighlightSections(True) self.nonCache_tableWidget.verticalHeader().setVisible(True) self.verticalLayout_2.addWidget(self.nonCache_tableWidget) self.refresh2_pushButton = QtGui.QPushButton(self.frame_4) self.refresh2_pushButton.setObjectName(_fromUtf8("refresh2_pushButton")) self.verticalLayout_2.addWidget(self.refresh2_pushButton) self.gridLayout_3 = QtGui.QGridLayout() self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.all2_checkBox = QtGui.QCheckBox(self.frame_4) self.all2_checkBox.setChecked(True) self.all2_checkBox.setObjectName(_fromUtf8("all2_checkBox")) self.gridLayout_3.addWidget(self.all2_checkBox, 0, 0, 1, 1) self.importNonCache_pushButton = QtGui.QPushButton(self.frame_4) self.importNonCache_pushButton.setMinimumSize(QtCore.QSize(0, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) self.importNonCache_pushButton.setPalette(palette) self.importNonCache_pushButton.setObjectName(_fromUtf8("importNonCache_pushButton")) self.gridLayout_3.addWidget(self.importNonCache_pushButton, 1, 0, 1, 1) self.removeNonCache_pushButton = QtGui.QPushButton(self.frame_4) self.removeNonCache_pushButton.setMinimumSize(QtCore.QSize(0, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(156, 70, 71)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(156, 70, 71)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(156, 70, 71)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) self.removeNonCache_pushButton.setPalette(palette) self.removeNonCache_pushButton.setObjectName(_fromUtf8("removeNonCache_pushButton")) self.gridLayout_3.addWidget(self.removeNonCache_pushButton, 1, 1, 1, 1) self.importCamera_pushButton = QtGui.QPushButton(self.frame_4) self.importCamera_pushButton.setMinimumSize(QtCore.QSize(0, 30)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) brush = QtGui.QBrush(QtGui.QColor(40, 60, 100)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) self.importCamera_pushButton.setPalette(palette) self.importCamera_pushButton.setObjectName(_fromUtf8("importCamera_pushButton")) self.gridLayout_3.addWidget(self.importCamera_pushButton, 1, 2, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout_3) self.verticalLayout.addLayout(self.verticalLayout_2) self.horizontalLayout_8.addWidget(self.frame_4) self.frame_5 = QtGui.QFrame(self.centralwidget) self.frame_5.setMaximumSize(QtCore.QSize(16777215, 240)) self.frame_5.setFrameShape(QtGui.QFrame.Box) self.frame_5.setFrameShadow(QtGui.QFrame.Sunken) self.frame_5.setObjectName(_fromUtf8("frame_5")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.frame_5) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.label_11 = QtGui.QLabel(self.frame_5) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_11.setFont(font) self.label_11.setObjectName(_fromUtf8("label_11")) self.verticalLayout_5.addWidget(self.label_11) self.status_listWidget = QtGui.QListWidget(self.frame_5) self.status_listWidget.setObjectName(_fromUtf8("status_listWidget")) self.verticalLayout_5.addWidget(self.status_listWidget) self.horizontalLayout_8.addWidget(self.frame_5) self.horizontalLayout_8.setStretch(1, 1) self.verticalLayout_6.addLayout(self.horizontalLayout_8) self.verticalLayout_6.setStretch(1, 2) AlembicImportWin.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(AlembicImportWin) self.menubar.setGeometry(QtCore.QRect(0, 0, 571, 21)) self.menubar.setObjectName(_fromUtf8("menubar")) AlembicImportWin.setMenuBar(self.menubar) self.statusbar = QtGui.QStatusBar(AlembicImportWin) self.statusbar.setObjectName(_fromUtf8("statusbar")) AlembicImportWin.setStatusBar(self.statusbar) self.retranslateUi(AlembicImportWin) QtCore.QMetaObject.connectSlotsByName(AlembicImportWin)
def MonospaceFont(): font = QtGui.QFont("Monospace") font.setStyleHint(QtGui.QFont.TypeWriter) return font
def setupUi(self, FacialRigWindow): FacialRigWindow.setObjectName(_fromUtf8("FacialRigWindow")) FacialRigWindow.resize(476, 554) self.centralwidget = QtGui.QWidget(FacialRigWindow) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_4 = QtGui.QLabel(self.centralwidget) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1) self.project_comboBox = QtGui.QComboBox(self.centralwidget) self.project_comboBox.setObjectName(_fromUtf8("project_comboBox")) self.gridLayout.addWidget(self.project_comboBox, 0, 1, 1, 1) self.type_comboBox = QtGui.QComboBox(self.centralwidget) self.type_comboBox.setObjectName(_fromUtf8("type_comboBox")) self.gridLayout.addWidget(self.type_comboBox, 1, 1, 1, 1) self.label_5 = QtGui.QLabel(self.centralwidget) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 1, 0, 1, 1) self.label_6 = QtGui.QLabel(self.centralwidget) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 2, 0, 1, 1) self.subType_comboBox = QtGui.QComboBox(self.centralwidget) self.subType_comboBox.setObjectName(_fromUtf8("subType_comboBox")) self.gridLayout.addWidget(self.subType_comboBox, 2, 1, 1, 1) self.label_7 = QtGui.QLabel(self.centralwidget) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 3, 0, 1, 1) self.asset_comboBox = QtGui.QComboBox(self.centralwidget) self.asset_comboBox.setObjectName(_fromUtf8("asset_comboBox")) self.gridLayout.addWidget(self.asset_comboBox, 3, 1, 1, 1) self.gridLayout.setColumnStretch(0, 1) self.gridLayout.setColumnStretch(1, 2) self.horizontalLayout_3.addLayout(self.gridLayout) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem) self.verticalLayout.addLayout(self.horizontalLayout_3) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label_2 = QtGui.QLabel(self.centralwidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout.addWidget(self.label_2) self.path_lineEdit = QtGui.QLineEdit(self.centralwidget) self.path_lineEdit.setText(_fromUtf8("")) self.path_lineEdit.setObjectName(_fromUtf8("path_lineEdit")) self.horizontalLayout.addWidget(self.path_lineEdit) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_8 = QtGui.QLabel(self.centralwidget) self.label_8.setObjectName(_fromUtf8("label_8")) self.horizontalLayout_4.addWidget(self.label_8) self.base_comboBox = QtGui.QComboBox(self.centralwidget) self.base_comboBox.setObjectName(_fromUtf8("base_comboBox")) self.horizontalLayout_4.addWidget(self.base_comboBox) self.import_pushButton = QtGui.QPushButton(self.centralwidget) self.import_pushButton.setObjectName(_fromUtf8("import_pushButton")) self.horizontalLayout_4.addWidget(self.import_pushButton) self.horizontalLayout_4.setStretch(0, 2) self.horizontalLayout_4.setStretch(1, 4) self.horizontalLayout_4.setStretch(2, 2) self.verticalLayout.addLayout(self.horizontalLayout_4) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.work_listWidget = QtGui.QListWidget(self.centralwidget) self.work_listWidget.setObjectName(_fromUtf8("work_listWidget")) self.horizontalLayout_2.addWidget(self.work_listWidget) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.rig_pushButton = QtGui.QPushButton(self.centralwidget) self.rig_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.rig_pushButton.setObjectName(_fromUtf8("rig_pushButton")) self.gridLayout_2.addWidget(self.rig_pushButton, 9, 0, 1, 1) self.clearAnim_pushButton = QtGui.QPushButton(self.centralwidget) self.clearAnim_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.clearAnim_pushButton.setObjectName( _fromUtf8("clearAnim_pushButton")) self.gridLayout_2.addWidget(self.clearAnim_pushButton, 11, 0, 1, 1) self.render_pushButton = QtGui.QPushButton(self.centralwidget) self.render_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.render_pushButton.setObjectName(_fromUtf8("render_pushButton")) self.gridLayout_2.addWidget(self.render_pushButton, 7, 0, 1, 1) self.open_pushButton = QtGui.QPushButton(self.centralwidget) self.open_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.open_pushButton.setObjectName(_fromUtf8("open_pushButton")) self.gridLayout_2.addWidget(self.open_pushButton, 4, 0, 1, 1) self.horizontalLayout_8 = QtGui.QHBoxLayout() self.horizontalLayout_8.setSpacing(0) self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) self.label_13 = QtGui.QLabel(self.centralwidget) self.label_13.setObjectName(_fromUtf8("label_13")) self.horizontalLayout_8.addWidget(self.label_13) self.renderRes_comboBox = QtGui.QComboBox(self.centralwidget) self.renderRes_comboBox.setObjectName(_fromUtf8("renderRes_comboBox")) self.horizontalLayout_8.addWidget(self.renderRes_comboBox) self.gridLayout_2.addLayout(self.horizontalLayout_8, 5, 0, 1, 1) self.clearRender_pushButton = QtGui.QPushButton(self.centralwidget) self.clearRender_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.clearRender_pushButton.setObjectName( _fromUtf8("clearRender_pushButton")) self.gridLayout_2.addWidget(self.clearRender_pushButton, 10, 0, 1, 1) self.anim_pushButton = QtGui.QPushButton(self.centralwidget) self.anim_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.anim_pushButton.setObjectName(_fromUtf8("anim_pushButton")) self.gridLayout_2.addWidget(self.anim_pushButton, 8, 0, 1, 1) self.save_pushButton = QtGui.QPushButton(self.centralwidget) self.save_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.save_pushButton.setObjectName(_fromUtf8("save_pushButton")) self.gridLayout_2.addWidget(self.save_pushButton, 3, 0, 1, 1) self.clearAll_pushButton = QtGui.QPushButton(self.centralwidget) self.clearAll_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.clearAll_pushButton.setObjectName( _fromUtf8("clearAll_pushButton")) self.gridLayout_2.addWidget(self.clearAll_pushButton, 12, 0, 1, 1) self.horizontalLayout_9 = QtGui.QHBoxLayout() self.horizontalLayout_9.setSpacing(0) self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) self.label_14 = QtGui.QLabel(self.centralwidget) self.label_14.setObjectName(_fromUtf8("label_14")) self.horizontalLayout_9.addWidget(self.label_14) self.animRes_comboBox = QtGui.QComboBox(self.centralwidget) self.animRes_comboBox.setObjectName(_fromUtf8("animRes_comboBox")) self.horizontalLayout_9.addWidget(self.animRes_comboBox) self.gridLayout_2.addLayout(self.horizontalLayout_9, 6, 0, 1, 1) self.copyTexture_pushButton = QtGui.QPushButton(self.centralwidget) self.copyTexture_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.copyTexture_pushButton.setObjectName( _fromUtf8("copyTexture_pushButton")) self.gridLayout_2.addWidget(self.copyTexture_pushButton, 2, 0, 1, 1) self.horizontalLayout_2.addLayout(self.gridLayout_2) self.verticalLayout.addLayout(self.horizontalLayout_2) self.verticalLayout_2.addLayout(self.verticalLayout) FacialRigWindow.setCentralWidget(self.centralwidget) self.retranslateUi(FacialRigWindow) QtCore.QMetaObject.connectSlotsByName(FacialRigWindow)
def setupUi(self, assemblyBuilderUI): assemblyBuilderUI.setObjectName(_fromUtf8("assemblyBuilderUI")) assemblyBuilderUI.resize(775, 578) self.centralwidget = QtGui.QWidget(assemblyBuilderUI) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.horizontalLayout_11 = QtGui.QHBoxLayout(self.centralwidget) self.horizontalLayout_11.setObjectName( _fromUtf8("horizontalLayout_11")) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label = QtGui.QLabel(self.centralwidget) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout.addWidget(self.label) self.projectComboBox = QtGui.QComboBox(self.centralwidget) self.projectComboBox.setObjectName(_fromUtf8("projectComboBox")) self.horizontalLayout.addWidget(self.projectComboBox) self.label_2 = QtGui.QLabel(self.centralwidget) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout.addWidget(self.label_2) self.typeComboBox = QtGui.QComboBox(self.centralwidget) self.typeComboBox.setObjectName(_fromUtf8("typeComboBox")) self.typeComboBox.addItem(_fromUtf8("")) self.typeComboBox.addItem(_fromUtf8("")) self.typeComboBox.addItem(_fromUtf8("")) self.typeComboBox.addItem(_fromUtf8("")) self.horizontalLayout.addWidget(self.typeComboBox) self.label_3 = QtGui.QLabel(self.centralwidget) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout.addWidget(self.label_3) self.subtypeComboBox = QtGui.QComboBox(self.centralwidget) self.subtypeComboBox.setObjectName(_fromUtf8("subtypeComboBox")) self.horizontalLayout.addWidget(self.subtypeComboBox) self.horizontalLayout.setStretch(0, 1) self.horizontalLayout.setStretch(1, 4) self.horizontalLayout.setStretch(2, 1) self.horizontalLayout.setStretch(3, 1) self.horizontalLayout.setStretch(4, 1) self.horizontalLayout.setStretch(5, 4) self.verticalLayout_2.addLayout(self.horizontalLayout) self.line_2 = QtGui.QFrame(self.centralwidget) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.verticalLayout_2.addWidget(self.line_2) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_5 = QtGui.QLabel(self.centralwidget) self.label_5.setObjectName(_fromUtf8("label_5")) self.horizontalLayout_4.addWidget(self.label_5) self.searchLineEdit = QtGui.QLineEdit(self.centralwidget) self.searchLineEdit.setObjectName(_fromUtf8("searchLineEdit")) self.horizontalLayout_4.addWidget(self.searchLineEdit) self.label_4 = QtGui.QLabel(self.centralwidget) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_4.addWidget(self.label_4) self.viewComboBox = QtGui.QComboBox(self.centralwidget) self.viewComboBox.setObjectName(_fromUtf8("viewComboBox")) self.viewComboBox.addItem(_fromUtf8("")) self.viewComboBox.addItem(_fromUtf8("")) self.horizontalLayout_4.addWidget(self.viewComboBox) self.verticalLayout_2.addLayout(self.horizontalLayout_4) self.assetListWidget = QtGui.QListWidget(self.centralwidget) self.assetListWidget.setLayoutDirection(QtCore.Qt.LeftToRight) self.assetListWidget.setProperty("showDropIndicator", False) self.assetListWidget.setDragEnabled(False) self.assetListWidget.setSelectionMode( QtGui.QAbstractItemView.SingleSelection) self.assetListWidget.setIconSize(QtCore.QSize(80, 80)) self.assetListWidget.setViewMode(QtGui.QListView.IconMode) self.assetListWidget.setObjectName(_fromUtf8("assetListWidget")) self.verticalLayout_2.addWidget(self.assetListWidget) self.line_6 = QtGui.QFrame(self.centralwidget) self.line_6.setFrameShape(QtGui.QFrame.HLine) self.line_6.setFrameShadow(QtGui.QFrame.Sunken) self.line_6.setObjectName(_fromUtf8("line_6")) self.verticalLayout_2.addWidget(self.line_6) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.tipPlainTextEdit = QtGui.QPlainTextEdit(self.centralwidget) self.tipPlainTextEdit.setEnabled(True) self.tipPlainTextEdit.setReadOnly(True) self.tipPlainTextEdit.setObjectName(_fromUtf8("tipPlainTextEdit")) self.horizontalLayout_5.addWidget(self.tipPlainTextEdit) self.line_5 = QtGui.QFrame(self.centralwidget) self.line_5.setFrameShape(QtGui.QFrame.VLine) self.line_5.setFrameShadow(QtGui.QFrame.Sunken) self.line_5.setObjectName(_fromUtf8("line_5")) self.horizontalLayout_5.addWidget(self.line_5) self.verticalLayout = QtGui.QVBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_6 = QtGui.QLabel(self.centralwidget) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName(_fromUtf8("label_6")) self.horizontalLayout_2.addWidget(self.label_6) self.numCreateLineEdit = QtGui.QLineEdit(self.centralwidget) self.numCreateLineEdit.setObjectName(_fromUtf8("numCreateLineEdit")) self.horizontalLayout_2.addWidget(self.numCreateLineEdit) self.verticalLayout.addLayout(self.horizontalLayout_2) self.seperateCheckBox = QtGui.QCheckBox(self.centralwidget) self.seperateCheckBox.setLayoutDirection(QtCore.Qt.LeftToRight) self.seperateCheckBox.setChecked(True) self.seperateCheckBox.setObjectName(_fromUtf8("seperateCheckBox")) self.verticalLayout.addWidget(self.seperateCheckBox) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.label_7 = QtGui.QLabel(self.centralwidget) self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_7.setObjectName(_fromUtf8("label_7")) self.horizontalLayout_6.addWidget(self.label_7) self.txLineEdit = QtGui.QLineEdit(self.centralwidget) self.txLineEdit.setObjectName(_fromUtf8("txLineEdit")) self.horizontalLayout_6.addWidget(self.txLineEdit) self.label_8 = QtGui.QLabel(self.centralwidget) self.label_8.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_8.setObjectName(_fromUtf8("label_8")) self.horizontalLayout_6.addWidget(self.label_8) self.tzLineEdit = QtGui.QLineEdit(self.centralwidget) self.tzLineEdit.setObjectName(_fromUtf8("tzLineEdit")) self.horizontalLayout_6.addWidget(self.tzLineEdit) self.verticalLayout.addLayout(self.horizontalLayout_6) self.horizontalLayout_5.addLayout(self.verticalLayout) self.addPushButton = QtGui.QPushButton(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.addPushButton.sizePolicy().hasHeightForWidth()) self.addPushButton.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(11) self.addPushButton.setFont(font) self.addPushButton.setObjectName(_fromUtf8("addPushButton")) self.horizontalLayout_5.addWidget(self.addPushButton) self.horizontalLayout_5.setStretch(0, 3) self.horizontalLayout_5.setStretch(2, 2) self.horizontalLayout_5.setStretch(3, 1) self.verticalLayout_2.addLayout(self.horizontalLayout_5) self.verticalLayout_2.setStretch(3, 13) self.verticalLayout_2.setStretch(5, 2) self.horizontalLayout_3.addLayout(self.verticalLayout_2) self.line = QtGui.QFrame(self.centralwidget) self.line.setFrameShape(QtGui.QFrame.VLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.horizontalLayout_3.addWidget(self.line) self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.horizontalLayout_9 = QtGui.QHBoxLayout() self.horizontalLayout_9.setObjectName(_fromUtf8("horizontalLayout_9")) self.horizontalLayout_10 = QtGui.QHBoxLayout() self.horizontalLayout_10.setObjectName( _fromUtf8("horizontalLayout_10")) self.label_9 = QtGui.QLabel(self.centralwidget) self.label_9.setObjectName(_fromUtf8("label_9")) self.horizontalLayout_10.addWidget(self.label_9) self.countLineEdit = QtGui.QLineEdit(self.centralwidget) self.countLineEdit.setObjectName(_fromUtf8("countLineEdit")) self.horizontalLayout_10.addWidget(self.countLineEdit) self.horizontalLayout_9.addLayout(self.horizontalLayout_10) self.refreshPushButton = QtGui.QPushButton(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.refreshPushButton.sizePolicy().hasHeightForWidth()) self.refreshPushButton.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(9) self.refreshPushButton.setFont(font) self.refreshPushButton.setObjectName(_fromUtf8("refreshPushButton")) self.horizontalLayout_9.addWidget(self.refreshPushButton) self.horizontalLayout_9.setStretch(0, 2) self.horizontalLayout_9.setStretch(1, 1) self.verticalLayout_3.addLayout(self.horizontalLayout_9) self.arListWidget = QtGui.QListWidget(self.centralwidget) self.arListWidget.setIconSize(QtCore.QSize(40, 40)) self.arListWidget.setObjectName(_fromUtf8("arListWidget")) self.verticalLayout_3.addWidget(self.arListWidget) self.line_4 = QtGui.QFrame(self.centralwidget) self.line_4.setFrameShape(QtGui.QFrame.HLine) self.line_4.setFrameShadow(QtGui.QFrame.Sunken) self.line_4.setObjectName(_fromUtf8("line_4")) self.verticalLayout_3.addWidget(self.line_4) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.horizontalLayout_8 = QtGui.QHBoxLayout() self.horizontalLayout_8.setObjectName(_fromUtf8("horizontalLayout_8")) self.nameRadioButton = QtGui.QRadioButton(self.centralwidget) self.nameRadioButton.setObjectName(_fromUtf8("nameRadioButton")) self.horizontalLayout_8.addWidget(self.nameRadioButton) self.nameLineEdit = QtGui.QLineEdit(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.nameLineEdit.sizePolicy().hasHeightForWidth()) self.nameLineEdit.setSizePolicy(sizePolicy) self.nameLineEdit.setObjectName(_fromUtf8("nameLineEdit")) self.horizontalLayout_8.addWidget(self.nameLineEdit) self.verticalLayout_4.addLayout(self.horizontalLayout_8) self.verticalLayout_5 = QtGui.QVBoxLayout() self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.selectRadioButton = QtGui.QRadioButton(self.centralwidget) self.selectRadioButton.setLayoutDirection(QtCore.Qt.LeftToRight) self.selectRadioButton.setChecked(True) self.selectRadioButton.setObjectName(_fromUtf8("selectRadioButton")) self.verticalLayout_5.addWidget(self.selectRadioButton) self.verticalLayout_4.addLayout(self.verticalLayout_5) self.horizontalLayout_7.addLayout(self.verticalLayout_4) self.replacePushButton = QtGui.QPushButton(self.centralwidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.replacePushButton.sizePolicy().hasHeightForWidth()) self.replacePushButton.setSizePolicy(sizePolicy) font = QtGui.QFont() font.setPointSize(11) self.replacePushButton.setFont(font) self.replacePushButton.setObjectName(_fromUtf8("replacePushButton")) self.horizontalLayout_7.addWidget(self.replacePushButton) self.horizontalLayout_7.setStretch(0, 2) self.horizontalLayout_7.setStretch(1, 1) self.verticalLayout_3.addLayout(self.horizontalLayout_7) self.verticalLayout_3.setStretch(1, 6) self.verticalLayout_3.setStretch(3, 1) self.horizontalLayout_3.addLayout(self.verticalLayout_3) self.horizontalLayout_3.setStretch(0, 2) self.horizontalLayout_3.setStretch(2, 1) self.horizontalLayout_11.addLayout(self.horizontalLayout_3) assemblyBuilderUI.setCentralWidget(self.centralwidget) self.retranslateUi(assemblyBuilderUI) QtCore.QMetaObject.connectSlotsByName(assemblyBuilderUI)
def setupUi(self, taskManager): taskManager.setObjectName(_fromUtf8("taskManager")) taskManager.resize(1029, 636) self.centralwidget = QtGui.QWidget(taskManager) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.verticalLayout_9 = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout_9.setObjectName(_fromUtf8("verticalLayout_9")) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.frame = QtGui.QFrame(self.centralwidget) self.frame.setFrameShape(QtGui.QFrame.Box) self.frame.setFrameShadow(QtGui.QFrame.Sunken) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.frame) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.gridLayout_2 = QtGui.QGridLayout() self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label = QtGui.QLabel(self.frame) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_2.addWidget(self.label, 2, 0, 1, 1) self.label_2 = QtGui.QLabel(self.frame) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1) self.user_comboBox = QtGui.QComboBox(self.frame) self.user_comboBox.setObjectName(_fromUtf8("user_comboBox")) self.gridLayout_2.addWidget(self.user_comboBox, 1, 1, 1, 1) self.project_comboBox = QtGui.QComboBox(self.frame) self.project_comboBox.setObjectName(_fromUtf8("project_comboBox")) self.gridLayout_2.addWidget(self.project_comboBox, 2, 1, 1, 1) self.step_comboBox = QtGui.QComboBox(self.frame) self.step_comboBox.setObjectName(_fromUtf8("step_comboBox")) self.gridLayout_2.addWidget(self.step_comboBox, 2, 7, 1, 1) self.episode_comboBox = QtGui.QComboBox(self.frame) self.episode_comboBox.setEnabled(True) self.episode_comboBox.setObjectName(_fromUtf8("episode_comboBox")) self.gridLayout_2.addWidget(self.episode_comboBox, 2, 3, 1, 1) self.entity_comboBox = QtGui.QComboBox(self.frame) self.entity_comboBox.setObjectName(_fromUtf8("entity_comboBox")) self.gridLayout_2.addWidget(self.entity_comboBox, 2, 5, 1, 1) self.label_10 = QtGui.QLabel(self.frame) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout_2.addWidget(self.label_10, 2, 6, 1, 1) self.label_6 = QtGui.QLabel(self.frame) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_2.addWidget(self.label_6, 2, 4, 1, 1) self.label_4 = QtGui.QLabel(self.frame) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout_2.addWidget(self.label_4, 2, 2, 1, 1) self.gridLayout_2.setColumnStretch(0, 1) self.gridLayout_2.setColumnStretch(1, 2) self.gridLayout_2.setColumnStretch(2, 1) self.gridLayout_2.setColumnStretch(3, 2) self.gridLayout_2.setColumnStretch(4, 1) self.gridLayout_2.setColumnStretch(5, 2) self.gridLayout_2.setColumnStretch(6, 1) self.gridLayout_2.setColumnStretch(7, 2) self.verticalLayout_2.addLayout(self.gridLayout_2) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_3 = QtGui.QLabel(self.frame) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_2.addWidget(self.label_3) self.path_lineEdit = QtGui.QLineEdit(self.frame) self.path_lineEdit.setText(_fromUtf8("")) self.path_lineEdit.setObjectName(_fromUtf8("path_lineEdit")) self.horizontalLayout_2.addWidget(self.path_lineEdit) self.status_label = QtGui.QLabel(self.frame) self.status_label.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.status_label.setObjectName(_fromUtf8("status_label")) self.horizontalLayout_2.addWidget(self.status_label) self.refresh_pushButton = QtGui.QPushButton(self.frame) self.refresh_pushButton.setObjectName(_fromUtf8("refresh_pushButton")) self.horizontalLayout_2.addWidget(self.refresh_pushButton) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.horizontalLayout_7.addWidget(self.frame) self.logo2_label = QtGui.QLabel(self.centralwidget) self.logo2_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.logo2_label.setObjectName(_fromUtf8("logo2_label")) self.horizontalLayout_7.addWidget(self.logo2_label) self.logo_label = QtGui.QLabel(self.centralwidget) self.logo_label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.logo_label.setObjectName(_fromUtf8("logo_label")) self.horizontalLayout_7.addWidget(self.logo_label) self.horizontalLayout_7.setStretch(0, 18) self.horizontalLayout_7.setStretch(1, 3) self.horizontalLayout_7.setStretch(2, 3) self.verticalLayout_9.addLayout(self.horizontalLayout_7) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.frame_4 = QtGui.QFrame(self.centralwidget) self.frame_4.setFrameShape(QtGui.QFrame.Box) self.frame_4.setFrameShadow(QtGui.QFrame.Sunken) self.frame_4.setObjectName(_fromUtf8("frame_4")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.frame_4) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.verticalLayout_8 = QtGui.QVBoxLayout() self.verticalLayout_8.setObjectName(_fromUtf8("verticalLayout_8")) self.label_9 = QtGui.QLabel(self.frame_4) self.label_9.setObjectName(_fromUtf8("label_9")) self.verticalLayout_8.addWidget(self.label_9) self.status_listWidget = QtGui.QListWidget(self.frame_4) self.status_listWidget.setObjectName(_fromUtf8("status_listWidget")) self.verticalLayout_8.addWidget(self.status_listWidget) self.verticalLayout_5.addLayout(self.verticalLayout_8) self.verticalLayout_6 = QtGui.QVBoxLayout() self.verticalLayout_6.setObjectName(_fromUtf8("verticalLayout_6")) self.label_7 = QtGui.QLabel(self.frame_4) self.label_7.setObjectName(_fromUtf8("label_7")) self.verticalLayout_6.addWidget(self.label_7) self.task_listWidget = QtGui.QListWidget(self.frame_4) self.task_listWidget.setObjectName(_fromUtf8("task_listWidget")) self.verticalLayout_6.addWidget(self.task_listWidget) self.verticalLayout_5.addLayout(self.verticalLayout_6) self.verticalLayout_5.setStretch(0, 4) self.verticalLayout_5.setStretch(1, 2) self.horizontalLayout.addWidget(self.frame_4) self.frame_6 = QtGui.QFrame(self.centralwidget) self.frame_6.setFrameShape(QtGui.QFrame.Box) self.frame_6.setFrameShadow(QtGui.QFrame.Sunken) self.frame_6.setObjectName(_fromUtf8("frame_6")) self.verticalLayout_10 = QtGui.QVBoxLayout(self.frame_6) self.verticalLayout_10.setObjectName(_fromUtf8("verticalLayout_10")) self.info_label = QtGui.QLabel(self.frame_6) self.info_label.setObjectName(_fromUtf8("info_label")) self.verticalLayout_10.addWidget(self.info_label) self.line = QtGui.QFrame(self.frame_6) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.verticalLayout_10.addWidget(self.line) self.verticalLayout_11 = QtGui.QVBoxLayout() self.verticalLayout_11.setObjectName(_fromUtf8("verticalLayout_11")) self.entity_label = QtGui.QLabel(self.frame_6) self.entity_label.setObjectName(_fromUtf8("entity_label")) self.verticalLayout_11.addWidget(self.entity_label) self.entities_listWidget = QtGui.QListWidget(self.frame_6) self.entities_listWidget.setObjectName( _fromUtf8("entities_listWidget")) self.verticalLayout_11.addWidget(self.entities_listWidget) self.note_checkBox = QtGui.QCheckBox(self.frame_6) self.note_checkBox.setChecked(True) self.note_checkBox.setObjectName(_fromUtf8("note_checkBox")) self.verticalLayout_11.addWidget(self.note_checkBox) self.line_2 = QtGui.QFrame(self.frame_6) self.line_2.setFrameShape(QtGui.QFrame.HLine) self.line_2.setFrameShadow(QtGui.QFrame.Sunken) self.line_2.setObjectName(_fromUtf8("line_2")) self.verticalLayout_11.addWidget(self.line_2) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.search_lineEdit = QtGui.QLineEdit(self.frame_6) self.search_lineEdit.setObjectName(_fromUtf8("search_lineEdit")) self.horizontalLayout_5.addWidget(self.search_lineEdit) self.search_pushButton = QtGui.QPushButton(self.frame_6) self.search_pushButton.setObjectName(_fromUtf8("search_pushButton")) self.horizontalLayout_5.addWidget(self.search_pushButton) self.verticalLayout_11.addLayout(self.horizontalLayout_5) self.verticalLayout_10.addLayout(self.verticalLayout_11) self.horizontalLayout.addWidget(self.frame_6) self.horizontalLayout.setStretch(0, 3) self.horizontalLayout.setStretch(1, 4) self.verticalLayout_4.addLayout(self.horizontalLayout) self.horizontalLayout_6.addLayout(self.verticalLayout_4) self.frame_5 = QtGui.QFrame(self.centralwidget) self.frame_5.setFrameShape(QtGui.QFrame.Box) self.frame_5.setFrameShadow(QtGui.QFrame.Sunken) self.frame_5.setObjectName(_fromUtf8("frame_5")) self.verticalLayout_7 = QtGui.QVBoxLayout(self.frame_5) self.verticalLayout_7.setObjectName(_fromUtf8("verticalLayout_7")) self.frame_2 = QtGui.QFrame(self.frame_5) self.frame_2.setFrameShape(QtGui.QFrame.Box) self.frame_2.setFrameShadow(QtGui.QFrame.Sunken) self.frame_2.setObjectName(_fromUtf8("frame_2")) self.horizontalLayout_3 = QtGui.QHBoxLayout(self.frame_2) self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.work_radioButton = QtGui.QRadioButton(self.frame_2) self.work_radioButton.setChecked(True) self.work_radioButton.setObjectName(_fromUtf8("work_radioButton")) self.horizontalLayout_3.addWidget(self.work_radioButton) self.publish_radioButton = QtGui.QRadioButton(self.frame_2) self.publish_radioButton.setObjectName( _fromUtf8("publish_radioButton")) self.horizontalLayout_3.addWidget(self.publish_radioButton) self.source_radioButton = QtGui.QRadioButton(self.frame_2) self.source_radioButton.setObjectName(_fromUtf8("source_radioButton")) self.horizontalLayout_3.addWidget(self.source_radioButton) self.verticalLayout_7.addWidget(self.frame_2) self.work_listWidget = QtGui.QListWidget(self.frame_5) self.work_listWidget.setContextMenuPolicy(QtCore.Qt.CustomContextMenu) self.work_listWidget.setObjectName(_fromUtf8("work_listWidget")) self.verticalLayout_7.addWidget(self.work_listWidget) self.ip_checkBox = QtGui.QCheckBox(self.frame_5) self.ip_checkBox.setChecked(True) self.ip_checkBox.setObjectName(_fromUtf8("ip_checkBox")) self.verticalLayout_7.addWidget(self.ip_checkBox) self.new_pushButton = QtGui.QPushButton(self.frame_5) self.new_pushButton.setObjectName(_fromUtf8("new_pushButton")) self.verticalLayout_7.addWidget(self.new_pushButton) self.open_pushButton = QtGui.QPushButton(self.frame_5) self.open_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.open_pushButton.setObjectName(_fromUtf8("open_pushButton")) self.verticalLayout_7.addWidget(self.open_pushButton) self.horizontalLayout_6.addWidget(self.frame_5) self.frame_8 = QtGui.QFrame(self.centralwidget) self.frame_8.setFrameShape(QtGui.QFrame.Box) self.frame_8.setFrameShadow(QtGui.QFrame.Sunken) self.frame_8.setObjectName(_fromUtf8("frame_8")) self.verticalLayout_13 = QtGui.QVBoxLayout(self.frame_8) self.verticalLayout_13.setObjectName(_fromUtf8("verticalLayout_13")) self.label_12 = QtGui.QLabel(self.frame_8) self.label_12.setObjectName(_fromUtf8("label_12")) self.verticalLayout_13.addWidget(self.label_12) self.comment_plainTextEdit = QtGui.QPlainTextEdit(self.frame_8) self.comment_plainTextEdit.setObjectName( _fromUtf8("comment_plainTextEdit")) self.verticalLayout_13.addWidget(self.comment_plainTextEdit) self.showAll_checkBox = QtGui.QCheckBox(self.frame_8) self.showAll_checkBox.setChecked(True) self.showAll_checkBox.setObjectName(_fromUtf8("showAll_checkBox")) self.verticalLayout_13.addWidget(self.showAll_checkBox) self.label_13 = QtGui.QLabel(self.frame_8) self.label_13.setObjectName(_fromUtf8("label_13")) self.verticalLayout_13.addWidget(self.label_13) self.sourceFiles_listWidget = QtGui.QListWidget(self.frame_8) self.sourceFiles_listWidget.setObjectName( _fromUtf8("sourceFiles_listWidget")) self.verticalLayout_13.addWidget(self.sourceFiles_listWidget) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.openAs_radioButton = QtGui.QRadioButton(self.frame_8) self.openAs_radioButton.setObjectName(_fromUtf8("openAs_radioButton")) self.horizontalLayout_4.addWidget(self.openAs_radioButton) self.import_radioButton = QtGui.QRadioButton(self.frame_8) self.import_radioButton.setObjectName(_fromUtf8("import_radioButton")) self.horizontalLayout_4.addWidget(self.import_radioButton) self.reference_radioButton = QtGui.QRadioButton(self.frame_8) self.reference_radioButton.setObjectName( _fromUtf8("reference_radioButton")) self.horizontalLayout_4.addWidget(self.reference_radioButton) self.verticalLayout_13.addLayout(self.horizontalLayout_4) self.open_pushButton_2 = QtGui.QPushButton(self.frame_8) self.open_pushButton_2.setMinimumSize(QtCore.QSize(0, 30)) self.open_pushButton_2.setObjectName(_fromUtf8("open_pushButton_2")) self.verticalLayout_13.addWidget(self.open_pushButton_2) self.horizontalLayout_6.addWidget(self.frame_8) self.horizontalLayout_6.setStretch(0, 11) self.horizontalLayout_6.setStretch(1, 7) self.horizontalLayout_6.setStretch(2, 6) self.verticalLayout_9.addLayout(self.horizontalLayout_6) taskManager.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(taskManager) self.menubar.setGeometry(QtCore.QRect(0, 0, 1029, 21)) self.menubar.setObjectName(_fromUtf8("menubar")) taskManager.setMenuBar(self.menubar) self.retranslateUi(taskManager) QtCore.QMetaObject.connectSlotsByName(taskManager)
def setupUi(self, matteTools): matteTools.setObjectName(_fromUtf8("matteTools")) matteTools.resize(456, 600) self.centralwidget = QtGui.QWidget(matteTools) self.centralwidget.setObjectName(_fromUtf8("centralwidget")) self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.frame = QtGui.QFrame(self.centralwidget) self.frame.setFrameShape(QtGui.QFrame.Box) self.frame.setFrameShadow(QtGui.QFrame.Sunken) self.frame.setObjectName(_fromUtf8("frame")) self.horizontalLayout_4 = QtGui.QHBoxLayout(self.frame) self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.gridLayout_4 = QtGui.QGridLayout() self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) self.label_6 = QtGui.QLabel(self.frame) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_6.setFont(font) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout_4.addWidget(self.label_6, 3, 0, 1, 1) self.autoName_checkBox = QtGui.QCheckBox(self.frame) self.autoName_checkBox.setChecked(True) self.autoName_checkBox.setObjectName(_fromUtf8("autoName_checkBox")) self.gridLayout_4.addWidget(self.autoName_checkBox, 1, 2, 1, 1) self.label_2 = QtGui.QLabel(self.frame) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout_4.addWidget(self.label_2, 1, 0, 1, 1) self.override_checkBox = QtGui.QCheckBox(self.frame) self.override_checkBox.setChecked(False) self.override_checkBox.setObjectName(_fromUtf8("override_checkBox")) self.gridLayout_4.addWidget(self.override_checkBox, 2, 2, 1, 1) self.path_lineEdit = QtGui.QLineEdit(self.frame) self.path_lineEdit.setEnabled(False) self.path_lineEdit.setObjectName(_fromUtf8("path_lineEdit")) self.gridLayout_4.addWidget(self.path_lineEdit, 2, 1, 1, 1) self.showAll_checkBox = QtGui.QCheckBox(self.frame) self.showAll_checkBox.setChecked(True) self.showAll_checkBox.setObjectName(_fromUtf8("showAll_checkBox")) self.gridLayout_4.addWidget(self.showAll_checkBox, 3, 2, 1, 1) self.label = QtGui.QLabel(self.frame) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label.setFont(font) self.label.setObjectName(_fromUtf8("label")) self.gridLayout_4.addWidget(self.label, 2, 0, 1, 1) self.name_lineEdit = QtGui.QLineEdit(self.frame) self.name_lineEdit.setText(_fromUtf8("")) self.name_lineEdit.setObjectName(_fromUtf8("name_lineEdit")) self.gridLayout_4.addWidget(self.name_lineEdit, 1, 1, 1, 1) self.dbFile_lineEdit = QtGui.QLineEdit(self.frame) self.dbFile_lineEdit.setObjectName(_fromUtf8("dbFile_lineEdit")) self.gridLayout_4.addWidget(self.dbFile_lineEdit, 3, 1, 1, 1) self.label_3 = QtGui.QLabel(self.frame) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_3.setFont(font) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout_4.addWidget(self.label_3, 0, 0, 1, 1) self.project_comboBox = QtGui.QComboBox(self.frame) self.project_comboBox.setObjectName(_fromUtf8("project_comboBox")) self.gridLayout_4.addWidget(self.project_comboBox, 0, 1, 1, 1) self.verticalLayout_4.addLayout(self.gridLayout_4) self.id_tableWidget = QtGui.QTableWidget(self.frame) self.id_tableWidget.setMinimumSize(QtCore.QSize(220, 0)) self.id_tableWidget.setObjectName(_fromUtf8("id_tableWidget")) self.id_tableWidget.setColumnCount(4) self.id_tableWidget.setRowCount(0) item = QtGui.QTableWidgetItem() self.id_tableWidget.setHorizontalHeaderItem(0, item) item = QtGui.QTableWidgetItem() self.id_tableWidget.setHorizontalHeaderItem(1, item) item = QtGui.QTableWidgetItem() self.id_tableWidget.setHorizontalHeaderItem(2, item) item = QtGui.QTableWidgetItem() self.id_tableWidget.setHorizontalHeaderItem(3, item) self.verticalLayout_4.addWidget(self.id_tableWidget) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.assignObjectID_pushButton = QtGui.QPushButton(self.frame) self.assignObjectID_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.assignObjectID_pushButton.setObjectName(_fromUtf8("assignObjectID_pushButton")) self.horizontalLayout_3.addWidget(self.assignObjectID_pushButton) self.clearObjectID_pushButton = QtGui.QPushButton(self.frame) self.clearObjectID_pushButton.setMinimumSize(QtCore.QSize(0, 30)) self.clearObjectID_pushButton.setObjectName(_fromUtf8("clearObjectID_pushButton")) self.horizontalLayout_3.addWidget(self.clearObjectID_pushButton) self.horizontalLayout_3.setStretch(0, 3) self.horizontalLayout_3.setStretch(1, 1) self.verticalLayout_4.addLayout(self.horizontalLayout_3) self.horizontalLayout_4.addLayout(self.verticalLayout_4) self.horizontalLayout_4.setStretch(0, 3) self.verticalLayout.addWidget(self.frame) matteTools.setCentralWidget(self.centralwidget) self.menubar = QtGui.QMenuBar(matteTools) self.menubar.setGeometry(QtCore.QRect(0, 0, 456, 21)) self.menubar.setObjectName(_fromUtf8("menubar")) matteTools.setMenuBar(self.menubar) self.retranslateUi(matteTools) QtCore.QObject.connect(self.override_checkBox, QtCore.SIGNAL(_fromUtf8("toggled(bool)")), self.path_lineEdit.setEnabled) QtCore.QMetaObject.connectSlotsByName(matteTools)
def addComboBoxItem(self, i, text, iconPath) : self.ui.status_comboBox.addItem(text) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(iconPath), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.ui.status_comboBox.setItemIcon(i, icon)
def setLogo(self) : self.ui.logo_label.setPixmap(QtGui.QPixmap(self.logo).scaled(200, 60, QtCore.Qt.KeepAspectRatio)) self.ui.logo2_label.setPixmap(QtGui.QPixmap(self.logo2).scaled(200, 60, QtCore.Qt.KeepAspectRatio))