def setupUi(self, messages): messages.setObjectName("messages") messages.resize(848, 636) self.verticalLayout_2 = QtGui.QVBoxLayout(messages) self.verticalLayout_2.setObjectName("verticalLayout_2") self.splitter = QtGui.QSplitter(messages) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.usersTreeWidget = QtGui.QTreeWidget(self.splitter) self.usersTreeWidget.setMaximumSize(QtCore.QSize(400, 16777215)) self.usersTreeWidget.setStyleSheet("QTreeView::item {padding: 2px;}") self.usersTreeWidget.setAlternatingRowColors(True) self.usersTreeWidget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.usersTreeWidget.setObjectName("usersTreeWidget") self.usersTreeWidget.headerItem().setText(0, "1") self.usersTreeWidget.header().setVisible(False) self.verticalLayoutWidget = QtGui.QWidget(self.splitter) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.tabsVerticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget) self.tabsVerticalLayout.setSpacing(0) self.tabsVerticalLayout.setContentsMargins(0, 0, 0, 0) self.tabsVerticalLayout.setObjectName("tabsVerticalLayout") self.verticalLayout_2.addWidget(self.splitter) self.retranslateUi(messages) QtCore.QMetaObject.connectSlotsByName(messages)
def setupUi(self, matchingTemplateConfig): matchingTemplateConfig.setObjectName("matchingTemplateConfig") matchingTemplateConfig.resize(800, 450) matchingTemplateConfig.setSizeGripEnabled(True) self.gridLayout_2 = QtGui.QGridLayout(matchingTemplateConfig) self.gridLayout_2.setObjectName("gridLayout_2") self.matchingTamplateLabel = QtGui.QLabel(matchingTemplateConfig) self.matchingTamplateLabel.setObjectName("matchingTamplateLabel") self.gridLayout_2.addWidget(self.matchingTamplateLabel, 0, 0, 1, 1) self.editSelectedItemButton = QtGui.QToolButton(matchingTemplateConfig) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.editSelectedItemButton.sizePolicy().hasHeightForWidth()) self.editSelectedItemButton.setSizePolicy(sizePolicy) self.editSelectedItemButton.setMinimumSize(QtCore.QSize(70, 0)) self.editSelectedItemButton.setObjectName("editSelectedItemButton") self.gridLayout_2.addWidget(self.editSelectedItemButton, 0, 2, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout_2.addItem(spacerItem, 0, 1, 1, 1) self.addNewItemButton = QtGui.QToolButton(matchingTemplateConfig) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.addNewItemButton.sizePolicy().hasHeightForWidth()) self.addNewItemButton.setSizePolicy(sizePolicy) self.addNewItemButton.setMinimumSize(QtCore.QSize(70, 0)) self.addNewItemButton.setObjectName("addNewItemButton") self.gridLayout_2.addWidget(self.addNewItemButton, 0, 3, 1, 1) self.templatesTreeWidget = QtGui.QTreeWidget(matchingTemplateConfig) self.templatesTreeWidget.setStyleSheet("QTreeView::item {\n" " padding: 2px;\n" "}\n" "\n" "QTreeView::item:selected:active{\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(82, 133, 166, 255), stop:1 rgba(82, 133, 166, 255));\n" " border: 1px solid transparent;\n" "}\n" "QTreeView::item:selected:!active {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(82, 133, 166, 255), stop:1 rgba(82, 133, 166, 255));\n" " border: 1px solid transparent;\n" "}\n" "") self.templatesTreeWidget.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers) self.templatesTreeWidget.setAlternatingRowColors(True) self.templatesTreeWidget.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) self.templatesTreeWidget.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel) self.templatesTreeWidget.setRootIsDecorated(False) self.templatesTreeWidget.setItemsExpandable(True) self.templatesTreeWidget.setObjectName("templatesTreeWidget") self.templatesTreeWidget.header().setVisible(True) self.gridLayout_2.addWidget(self.templatesTreeWidget, 1, 0, 1, 4) self.configGridLayout = QtGui.QGridLayout() self.configGridLayout.setObjectName("configGridLayout") self.gridLayout_2.addLayout(self.configGridLayout, 2, 0, 1, 4) self.gridLayout_2.setRowStretch(1, 1) self.retranslateUi(matchingTemplateConfig) QtCore.QMetaObject.connectSlotsByName(matchingTemplateConfig)
def create_tree_widget(self): self.files_queue_tree_widget = QtGui.QTreeWidget() self.files_queue_tree_widget.setMinimumSize(QtCore.QSize(300, 0)) self.files_queue_tree_widget.setRootIsDecorated(False) self.files_queue_tree_widget.setHeaderHidden(True) self.files_queue_tree_widget.setObjectName("files_queue_tree_widget") self.files_queue_tree_widget.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection) self.main_layout.addWidget(self.files_queue_tree_widget)
def setupUi(self, messages): messages.setObjectName("messages") messages.resize(671, 497) self.gridLayout_2 = QtGui.QGridLayout(messages) self.gridLayout_2.setObjectName("gridLayout_2") self.splitter_2 = QtGui.QSplitter(messages) self.splitter_2.setOrientation(QtCore.Qt.Horizontal) self.splitter_2.setObjectName("splitter_2") self.usersTreeWidget = QtGui.QTreeWidget(self.splitter_2) self.usersTreeWidget.setMaximumSize(QtCore.QSize(400, 16777215)) self.usersTreeWidget.setStyleSheet("QTreeView::item {padding: 2px;}") self.usersTreeWidget.setAlternatingRowColors(True) self.usersTreeWidget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.usersTreeWidget.setObjectName("usersTreeWidget") self.usersTreeWidget.headerItem().setText(0, "1") self.usersTreeWidget.header().setVisible(False) self.splitter = QtGui.QSplitter(self.splitter_2) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName("splitter") self.conversationScrollArea = QtGui.QScrollArea(self.splitter) self.conversationScrollArea.setWidgetResizable(True) self.conversationScrollArea.setObjectName("conversationScrollArea") self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 323, 69)) self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents") self.conversationScrollArea.setWidget(self.scrollAreaWidgetContents) self.gridLayoutWidget = QtGui.QWidget(self.splitter) self.gridLayoutWidget.setObjectName("gridLayoutWidget") self.gridLayout = QtGui.QGridLayout(self.gridLayoutWidget) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setObjectName("gridLayout") self.replyPushButton = QtGui.QPushButton(self.gridLayoutWidget) self.replyPushButton.setMinimumSize(QtCore.QSize(80, 0)) self.replyPushButton.setMaximumSize(QtCore.QSize(80, 16777215)) self.replyPushButton.setObjectName("replyPushButton") self.gridLayout.addWidget(self.replyPushButton, 3, 2, 1, 1) self.replyTextEdit = QtGui.QTextEdit(self.gridLayoutWidget) self.replyTextEdit.setMaximumSize(QtCore.QSize(16777215, 200)) self.replyTextEdit.setStyleSheet("") self.replyTextEdit.setObjectName("replyTextEdit") self.gridLayout.addWidget(self.replyTextEdit, 1, 0, 1, 3) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 3, 1, 1, 1) self.editorLayout = QtGui.QVBoxLayout() self.editorLayout.setSpacing(0) self.editorLayout.setContentsMargins(0, 0, 0, 0) self.editorLayout.setObjectName("editorLayout") self.gridLayout.addLayout(self.editorLayout, 0, 0, 1, 3) self.gridLayout_2.addWidget(self.splitter_2, 0, 0, 1, 1) self.retranslateUi(messages) QtCore.QMetaObject.connectSlotsByName(messages)
def create_presets_tree_widget(self): self.presets_tree_widget = QtGui.QTreeWidget() self.presets_tree_widget.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection) self.presets_tree_widget.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers) self.presets_tree_widget.setRootIsDecorated(False) self.presets_tree_widget.setHeaderHidden(True) self.presets_tree_widget.setObjectName('presets_tree_widget') self.main_layout.addWidget(self.presets_tree_widget, 1, 0, 2, 1)
def create_repos_tree_widget(self): self.repos_tree_widget = QtGui.QTreeWidget() self.repos_tree_widget.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection) self.repos_tree_widget.setEditTriggers(QtGui.QAbstractItemView.NoEditTriggers) self.repos_tree_widget.setRootIsDecorated(False) self.repos_tree_widget.setHeaderHidden(True) self.repos_tree_widget.setObjectName('repos_tree_widget') self.repos_tree_widget.setStyleSheet(gf.get_qtreeview_style()) self.main_layout.addWidget(self.repos_tree_widget, 2, 0, 2, 1)
def setupUi(self, resultsForm): resultsForm.setObjectName("resultsForm") resultsForm.resize(258, 386) self.resultsLayout = QtGui.QVBoxLayout(resultsForm) self.resultsLayout.setSpacing(0) self.resultsLayout.setContentsMargins(0, 0, 0, 0) self.resultsLayout.setObjectName("resultsLayout") self.resultsSplitter = QtGui.QSplitter(resultsForm) self.resultsSplitter.setOrientation(QtCore.Qt.Horizontal) self.resultsSplitter.setObjectName("resultsSplitter") self.resultsTreeWidget = QtGui.QTreeWidget(self.resultsSplitter) self.resultsTreeWidget.setTabKeyNavigation(True) self.resultsTreeWidget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.resultsTreeWidget.setAllColumnsShowFocus(True) self.resultsTreeWidget.setWordWrap(True) self.resultsTreeWidget.setHeaderHidden(True) self.resultsTreeWidget.setObjectName("resultsTreeWidget") self.resultsTreeWidget.headerItem().setText(0, "1") self.verticalLayoutWidget_3 = QtGui.QWidget(self.resultsSplitter) self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") self.versionsLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget_3) self.versionsLayout.setContentsMargins(0, 0, 0, 0) self.versionsLayout.setObjectName("versionsLayout") self.resultsVersionsTreeWidget = QtGui.QTreeWidget( self.verticalLayoutWidget_3) self.resultsVersionsTreeWidget.setTabKeyNavigation(True) self.resultsVersionsTreeWidget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.resultsVersionsTreeWidget.setRootIsDecorated(False) self.resultsVersionsTreeWidget.setAllColumnsShowFocus(True) self.resultsVersionsTreeWidget.setWordWrap(True) self.resultsVersionsTreeWidget.setHeaderHidden(True) self.resultsVersionsTreeWidget.setObjectName( "resultsVersionsTreeWidget") self.resultsVersionsTreeWidget.headerItem().setText(0, "1") self.versionsLayout.addWidget(self.resultsVersionsTreeWidget) self.resultsLayout.addWidget(self.resultsSplitter) self.retranslateUi(resultsForm) QtCore.QMetaObject.connectSlotsByName(resultsForm)
def create_tree_widget(self): self.tree_widget = QtGui.QTreeWidget() self.tree_widget.setAlternatingRowColors(True) self.tree_widget.setSelectionMode(QtGui.QAbstractItemView.NoSelection) self.tree_widget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.tree_widget.setRootIsDecorated(False) self.tree_widget.headerItem().setText(0, "Title") self.tree_widget.headerItem().setText(1, "Search Key") self.tree_widget.setStyleSheet(gf.get_qtreeview_style()) self.tree_widget.setTextElideMode(QtCore.Qt.ElideLeft) self.main_layout.addWidget(self.tree_widget)
def create_tasks_dependencies_widget(self): collapse_wdg_tasks = ui_misc_classes.Ui_collapsableWidget(state=True) layout_files = QtGui.QVBoxLayout() collapse_wdg_tasks.setLayout(layout_files) collapse_wdg_tasks.setText('Hide Tasks Dependencies') collapse_wdg_tasks.setCollapsedText('Show Tasks Dependencies') self.files_tree_widget = QtGui.QTreeWidget() layout_files.addWidget(self.files_tree_widget) self.main_layout.addWidget(collapse_wdg_tasks)
def setupUi(self, projectPageWidget): projectPageWidget.setObjectName("projectPageWidget") projectPageWidget.resize(546, 233) self.projectPageWidgetLayout = QtGui.QGridLayout(projectPageWidget) self.projectPageWidgetLayout.setContentsMargins(6, 6, 6, 6) self.projectPageWidgetLayout.setObjectName("projectPageWidgetLayout") self.projectsTreeWidget = QtGui.QTreeWidget(projectPageWidget) self.projectsTreeWidget.setStyleSheet("QTreeView::item {\n" " padding: 2px;\n" "}") self.projectsTreeWidget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.projectsTreeWidget.setObjectName("projectsTreeWidget") self.projectsTreeWidget.header().setDefaultSectionSize(87) self.projectPageWidgetLayout.addWidget(self.projectsTreeWidget, 0, 0, 1, 6) self.createProjectsLable = QtGui.QLabel(projectPageWidget) self.createProjectsLable.setObjectName("createProjectsLable") self.projectPageWidgetLayout.addWidget(self.createProjectsLable, 1, 0, 1, 1) self.createProjectPushButton = QtGui.QPushButton(projectPageWidget) self.createProjectPushButton.setEnabled(False) self.createProjectPushButton.setObjectName("createProjectPushButton") self.projectPageWidgetLayout.addWidget(self.createProjectPushButton, 1, 1, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.projectPageWidgetLayout.addItem(spacerItem, 1, 2, 1, 1) self.colorSchemeHintLabel = QtGui.QLabel(projectPageWidget) self.colorSchemeHintLabel.setObjectName("colorSchemeHintLabel") self.projectPageWidgetLayout.addWidget(self.colorSchemeHintLabel, 1, 3, 1, 1) self.currentProjectLabel = QtGui.QLabel(projectPageWidget) self.currentProjectLabel.setStyleSheet( "QLabel {background : rgb(165, 175, 25);}") self.currentProjectLabel.setTextFormat(QtCore.Qt.PlainText) self.currentProjectLabel.setObjectName("currentProjectLabel") self.projectPageWidgetLayout.addWidget(self.currentProjectLabel, 1, 4, 1, 1) self.templateProjectsLabel = QtGui.QLabel(projectPageWidget) self.templateProjectsLabel.setStyleSheet( "QLabel {background :rgb(50, 150, 175)}") self.templateProjectsLabel.setTextFormat(QtCore.Qt.PlainText) self.templateProjectsLabel.setObjectName("templateProjectsLabel") self.projectPageWidgetLayout.addWidget(self.templateProjectsLabel, 1, 5, 1, 1) self.retranslateUi(projectPageWidget) QtCore.QMetaObject.connectSlotsByName(projectPageWidget)
def create_widgets(self): self.main_layout = QtGui.QVBoxLayout() self.main_layout.setContentsMargins(0, 0, 0, 0) self.setLayout(self.main_layout) self.items_tree_widget = QtGui.QTreeWidget() self.items_tree_widget.setAlternatingRowColors(True) self.items_tree_widget.setHeaderHidden(True) # self.treeWidget_vls.setSelectionMode(QtGui.QAbstractItemView.NoSelection) self.items_tree_widget.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel) self.items_tree_widget.setRootIsDecorated(False) self.items_tree_widget.setStyleSheet('QTreeView::item {padding: 2px;}') self.main_layout.addWidget(self.items_tree_widget)
def setupUi(self, DebugLog): DebugLog.setObjectName("DebugLog") DebugLog.resize(1195, 933) self.gridLayout = QtGui.QGridLayout(DebugLog) self.gridLayout.setObjectName("gridLayout") self.splitter = QtGui.QSplitter(DebugLog) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.treeWidget = QtGui.QTreeWidget(self.splitter) self.treeWidget.setMaximumSize(QtCore.QSize(320, 16777215)) self.treeWidget.setStyleSheet("QTreeView::item {padding: 2px;}") self.treeWidget.setAlternatingRowColors(True) self.treeWidget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.treeWidget.setObjectName("treeWidget") self.treeWidget.headerItem().setText(0, "1") self.treeWidget.header().setVisible(False) self.debugLogTextEdit = QtGui.QTextEdit(self.splitter) self.debugLogTextEdit.setObjectName("debugLogTextEdit") self.gridLayout.addWidget(self.splitter, 0, 0, 1, 1) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.logCheckBox = QtGui.QCheckBox(DebugLog) self.logCheckBox.setObjectName("logCheckBox") self.horizontalLayout.addWidget(self.logCheckBox) self.infoCheckBox = QtGui.QCheckBox(DebugLog) self.infoCheckBox.setObjectName("infoCheckBox") self.horizontalLayout.addWidget(self.infoCheckBox) self.warningCheckBox = QtGui.QCheckBox(DebugLog) self.warningCheckBox.setObjectName("warningCheckBox") self.horizontalLayout.addWidget(self.warningCheckBox) self.exceptionCheckBox = QtGui.QCheckBox(DebugLog) self.exceptionCheckBox.setObjectName("exceptionCheckBox") self.horizontalLayout.addWidget(self.exceptionCheckBox) self.errorCheckBox = QtGui.QCheckBox(DebugLog) self.errorCheckBox.setObjectName("errorCheckBox") self.horizontalLayout.addWidget(self.errorCheckBox) self.criticalCheckBox = QtGui.QCheckBox(DebugLog) self.criticalCheckBox.setObjectName("criticalCheckBox") self.horizontalLayout.addWidget(self.criticalCheckBox) self.gridLayout.addLayout(self.horizontalLayout, 1, 0, 1, 1) self.gridLayout.setRowMinimumHeight(0, 1) self.retranslateUi(DebugLog) QtCore.QMetaObject.connectSlotsByName(DebugLog)
def setupUi(self, ProjectWatchFolder): ProjectWatchFolder.setObjectName("ProjectWatchFolder") ProjectWatchFolder.resize(716, 555) self.gridLayout = QtGui.QGridLayout(ProjectWatchFolder) self.gridLayout.setObjectName("gridLayout") self.watchEnabledCheckBox = QtGui.QCheckBox(ProjectWatchFolder) self.watchEnabledCheckBox.setChecked(True) self.watchEnabledCheckBox.setObjectName("watchEnabledCheckBox") self.gridLayout.addWidget(self.watchEnabledCheckBox, 1, 0, 1, 2) self.watchFoldersTreeWidget = QtGui.QTreeWidget(ProjectWatchFolder) self.watchFoldersTreeWidget.setAlternatingRowColors(True) self.watchFoldersTreeWidget.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel) self.watchFoldersTreeWidget.setRootIsDecorated(False) self.watchFoldersTreeWidget.setUniformRowHeights(False) self.watchFoldersTreeWidget.setObjectName("watchFoldersTreeWidget") self.gridLayout.addWidget(self.watchFoldersTreeWidget, 0, 0, 1, 2) self.retranslateUi(ProjectWatchFolder) QtCore.QMetaObject.connectSlotsByName(ProjectWatchFolder)
def create_parent_widget(self): self.parent_tree_widget = QtGui.QTreeWidget() self.parent_tree_widget.setTabKeyNavigation(True) self.parent_tree_widget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.parent_tree_widget.setRootIsDecorated(False) self.parent_tree_widget.setAllColumnsShowFocus(True) self.parent_tree_widget.setWordWrap(True) self.parent_tree_widget.setHeaderHidden(True) self.parent_tree_widget.setSelectionMode( QtGui.QAbstractItemView.ExtendedSelection) self.parent_tree_widget.setObjectName("parent_tree_widget") search_type = tc.server_start().build_search_type( self.stype.get_code(), self.stype.project.get_code()) sobjects, data = tc.get_sobjects_new(search_type=search_type, filters=[], order_bys=['name']) self.parent_tree_widget.clear() for sobject in sobjects.itervalues(): item_info = { 'relates_to': 'checkin_out', 'sep_versions': True, 'children_states': None, 'simple_view': True, } gf.add_sobject_item( self.parent_tree_widget, self, sobject, self.stype, item_info, ignore_dict=None, ) self.parent_vertical_layout.addWidget(self.parent_tree_widget)
def setupUi(self, updateDialog): updateDialog.setObjectName("updateDialog") updateDialog.resize(580, 400) updateDialog.setMinimumSize(QtCore.QSize(580, 400)) updateDialog.setSizeGripEnabled(True) updateDialog.setModal(True) self.gridLayout = QtGui.QGridLayout(updateDialog) self.gridLayout.setObjectName("gridLayout") self.versionLabel = QtGui.QLabel(updateDialog) self.versionLabel.setObjectName("versionLabel") self.gridLayout.addWidget(self.versionLabel, 0, 0, 1, 1) self.versionsTreeWidget = QtGui.QTreeWidget(updateDialog) self.versionsTreeWidget.setStyleSheet("QTreeView::item {\n" " padding: 2px;\n" "}") self.versionsTreeWidget.setAlternatingRowColors(True) self.versionsTreeWidget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.versionsTreeWidget.setWordWrap(True) self.versionsTreeWidget.setHeaderHidden(False) self.versionsTreeWidget.setObjectName("versionsTreeWidget") self.versionsTreeWidget.header().setDefaultSectionSize(130) self.versionsTreeWidget.header().setMinimumSectionSize(130) self.gridLayout.addWidget(self.versionsTreeWidget, 1, 0, 1, 5) self.updateToLastPushButton = QtGui.QPushButton(updateDialog) self.updateToLastPushButton.setObjectName("updateToLastPushButton") self.gridLayout.addWidget(self.updateToLastPushButton, 2, 0, 1, 4) self.updateToSelectedPushButton = QtGui.QPushButton(updateDialog) self.updateToSelectedPushButton.setObjectName( "updateToSelectedPushButton") self.gridLayout.addWidget(self.updateToSelectedPushButton, 2, 4, 1, 1) self.currentVersionlabel = QtGui.QLabel(updateDialog) self.currentVersionlabel.setObjectName("currentVersionlabel") self.gridLayout.addWidget(self.currentVersionlabel, 0, 1, 1, 3) self.commitPushButton = QtGui.QPushButton(updateDialog) self.commitPushButton.setObjectName("commitPushButton") self.gridLayout.addWidget(self.commitPushButton, 0, 4, 1, 1) self.gridLayout.setColumnStretch(1, 1) self.retranslateUi(updateDialog) QtCore.QMetaObject.connectSlotsByName(updateDialog)
def create_tree_widget(self): self.grid = QtGui.QGridLayout() self.grid.setContentsMargins(9, 9, 9, 9) self.grid.setSpacing(6) self.setLayout(self.grid) self.create_presets_combo_box() self.tree_widget = QtGui.QTreeWidget(self) self.tree_widget.setTabKeyNavigation(True) self.tree_widget.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel) self.tree_widget.setAllColumnsShowFocus(True) self.tree_widget.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection) self.tree_widget.setHeaderHidden(True) self.tree_widget.setObjectName('tree_widget') self.tree_widget.setStyleSheet('QTreeView::item {padding: 2px;}') self.tree_widget.setRootIsDecorated(True) self.grid.addWidget(self.tree_widget, 1, 0, 1, 2) self.grid.setRowStretch(1, 1)
def create_versions_widget(self): self.collapse_wdg_vers = ui_misc_classes.Ui_collapsableWidget(state=False) layout_files = QtGui.QVBoxLayout() self.collapse_wdg_vers.setLayout(layout_files) self.collapse_wdg_vers.setText('Hide Versions Files') self.collapse_wdg_vers.setCollapsedText('Show Versions Files') self.treeWidget_vers = QtGui.QTreeWidget() self.treeWidget_vers.setAlternatingRowColors(True) self.treeWidget_vers.setSelectionMode(QtGui.QAbstractItemView.NoSelection) self.treeWidget_vers.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel) self.treeWidget_vers.setRootIsDecorated(False) self.treeWidget_vers.headerItem().setText(0, "File") self.treeWidget_vers.headerItem().setText(1, "Path") self.treeWidget_vers.setStyleSheet('QTreeView::item {padding: 2px;}') self.treeWidget_vers.setTextElideMode(QtCore.Qt.ElideLeft) layout_files.addWidget(self.treeWidget_vers) self.main_layout.addWidget(self.collapse_wdg_vers, 7, 0, 1, 2)
def create_instances_widget(self): self.instances_tree_widget = QtGui.QTreeWidget() self.instances_tree_widget.setTabKeyNavigation(True) self.instances_tree_widget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.instances_tree_widget.setRootIsDecorated(False) self.instances_tree_widget.setAllColumnsShowFocus(True) self.instances_tree_widget.setWordWrap(True) self.instances_tree_widget.setHeaderHidden(True) self.instances_tree_widget.setSelectionMode( QtGui.QAbstractItemView.ExtendedSelection) self.instances_tree_widget.setObjectName("instances_tree_widget") parent_sobject = self.item.get_sobject() sobjects, info = parent_sobject.get_related_sobjects(self.stype) self.instances_tree_widget.clear() for i, sobject in enumerate(sobjects.itervalues()): item_info = { 'relates_to': 'checkin_out', 'sep_versions': True, 'children_states': None, 'simple_view': True, } gf.add_sobject_item( self.instances_tree_widget, self, sobject, self.stype, item_info, ignore_dict=None, ) self.current_set.add(sobject.get_search_key()) self.instances_vertical_layout.addWidget(self.instances_tree_widget)
def setupUi(self, sObjTabs): sObjTabs.setObjectName("sObjTabs") sObjTabs.resize(131, 192) self.horizontalLayout = QtGui.QHBoxLayout(sObjTabs) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setObjectName("horizontalLayout") self.sTypesTreeWidget = QtGui.QTreeWidget(sObjTabs) self.sTypesTreeWidget.setMaximumSize(QtCore.QSize(0, 16777215)) self.sTypesTreeWidget.setStyleSheet("QTreeView::item {\n" " padding: 2px;\n" "}") self.sTypesTreeWidget.setHorizontalScrollBarPolicy( QtCore.Qt.ScrollBarAlwaysOff) self.sTypesTreeWidget.setEditTriggers( QtGui.QAbstractItemView.NoEditTriggers) self.sTypesTreeWidget.setProperty("showDropIndicator", False) self.sTypesTreeWidget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.sTypesTreeWidget.setRootIsDecorated(False) self.sTypesTreeWidget.setAnimated(True) self.sTypesTreeWidget.setHeaderHidden(True) self.sTypesTreeWidget.setObjectName("sTypesTreeWidget") self.sTypesTreeWidget.headerItem().setText(0, "1") self.horizontalLayout.addWidget(self.sTypesTreeWidget) self.sObjTabWidget = QtGui.QTabWidget(sObjTabs) self.sObjTabWidget.setStyleSheet("QTabWidget::pane {\n" " border: 0px;\n" "}\n" "QTabWidget::tab-bar {\n" " alignment: left;\n" "}") self.sObjTabWidget.setMovable(True) self.sObjTabWidget.setObjectName("sObjTabWidget") self.horizontalLayout.addWidget(self.sObjTabWidget) self.horizontalLayout.setStretch(1, 1) self.retranslateUi(sObjTabs) QtCore.QMetaObject.connectSlotsByName(sObjTabs)
def setupUi(self, commitQueue): commitQueue.setObjectName("commitQueue") commitQueue.resize(800, 640) self.centralwidget = QtGui.QWidget(commitQueue) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setContentsMargins(9, 9, 9, 0) self.gridLayout.setObjectName("gridLayout") self.splitter = QtGui.QSplitter(self.centralwidget) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.verticalLayoutWidget_2 = QtGui.QWidget(self.splitter) self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget_2) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label = QtGui.QLabel(self.verticalLayoutWidget_2) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.filesCountLabel = QtGui.QLabel(self.verticalLayoutWidget_2) self.filesCountLabel.setObjectName("filesCountLabel") self.horizontalLayout_2.addWidget(self.filesCountLabel) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.clearQueuePushButton = QtGui.QPushButton( self.verticalLayoutWidget_2) self.clearQueuePushButton.setMinimumSize(QtCore.QSize(120, 0)) self.clearQueuePushButton.setObjectName("clearQueuePushButton") self.horizontalLayout_2.addWidget(self.clearQueuePushButton) self.verticalLayout.addLayout(self.horizontalLayout_2) self.filesQueueTreeWidget = QtGui.QTreeWidget( self.verticalLayoutWidget_2) self.filesQueueTreeWidget.setMinimumSize(QtCore.QSize(300, 0)) self.filesQueueTreeWidget.setRootIsDecorated(False) self.filesQueueTreeWidget.setHeaderHidden(True) self.filesQueueTreeWidget.setObjectName("filesQueueTreeWidget") self.verticalLayout.addWidget(self.filesQueueTreeWidget) self.verticalLayoutWidget_3 = QtGui.QWidget(self.splitter) self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.commitEditorLayout = QtGui.QVBoxLayout() self.commitEditorLayout.setObjectName("commitEditorLayout") self.verticalLayout_2.addLayout(self.commitEditorLayout) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.commitAllPushButton = QtGui.QPushButton( self.verticalLayoutWidget_3) self.commitAllPushButton.setMinimumSize(QtCore.QSize(120, 0)) self.commitAllPushButton.setObjectName("commitAllPushButton") self.horizontalLayout.addWidget(self.commitAllPushButton) self.closePushButton = QtGui.QPushButton(self.verticalLayoutWidget_3) self.closePushButton.setMinimumSize(QtCore.QSize(120, 0)) self.closePushButton.setObjectName("closePushButton") self.horizontalLayout.addWidget(self.closePushButton) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.verticalLayout_2.addLayout(self.horizontalLayout) self.verticalLayout_2.setStretch(0, 1) self.gridLayout.addWidget(self.splitter, 0, 0, 1, 1) commitQueue.setCentralWidget(self.centralwidget) self.statusbar = QtGui.QStatusBar(commitQueue) self.statusbar.setObjectName("statusbar") commitQueue.setStatusBar(self.statusbar) self.retranslateUi(commitQueue) QtCore.QMetaObject.connectSlotsByName(commitQueue)
def setupUi(self, checkinOptionsPageWidget): checkinOptionsPageWidget.setObjectName("checkinOptionsPageWidget") self.checkinPageWidgetLayout = QtGui.QVBoxLayout(checkinOptionsPageWidget) self.checkinPageWidgetLayout.setContentsMargins(0, 0, 0, 0) self.checkinPageWidgetLayout.setObjectName("checkinPageWidgetLayout") self.checkinMiscOptionsGroupBox = QtGui.QGroupBox(checkinOptionsPageWidget) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.checkinMiscOptionsGroupBox.setFont(font) self.checkinMiscOptionsGroupBox.setFlat(True) self.checkinMiscOptionsGroupBox.setObjectName("checkinMiscOptionsGroupBox") self.checkinMiscOptionsLayout = QtGui.QGridLayout(self.checkinMiscOptionsGroupBox) self.checkinMiscOptionsLayout.setContentsMargins(10, 24, -1, 0) self.checkinMiscOptionsLayout.setObjectName("checkinMiscOptionsLayout") self.versionsSeparateCheckinCheckBox = QtGui.QCheckBox(self.checkinMiscOptionsGroupBox) self.versionsSeparateCheckinCheckBox.setObjectName("versionsSeparateCheckinCheckBox") self.checkinMiscOptionsLayout.addWidget(self.versionsSeparateCheckinCheckBox, 4, 0, 1, 1) self.snapshotDescriptionLimitCheckBox = QtGui.QCheckBox(self.checkinMiscOptionsGroupBox) self.snapshotDescriptionLimitCheckBox.setChecked(True) self.snapshotDescriptionLimitCheckBox.setObjectName("snapshotDescriptionLimitCheckBox") self.checkinMiscOptionsLayout.addWidget(self.snapshotDescriptionLimitCheckBox, 6, 0, 1, 1) self.snapshotDescriptionLimitSpinBox = QtGui.QSpinBox(self.checkinMiscOptionsGroupBox) self.snapshotDescriptionLimitSpinBox.setMinimum(20) self.snapshotDescriptionLimitSpinBox.setMaximum(50000) self.snapshotDescriptionLimitSpinBox.setSingleStep(5) self.snapshotDescriptionLimitSpinBox.setProperty("value", 80) self.snapshotDescriptionLimitSpinBox.setObjectName("snapshotDescriptionLimitSpinBox") self.checkinMiscOptionsLayout.addWidget(self.snapshotDescriptionLimitSpinBox, 6, 2, 1, 1) self.bottomVersionsRadioButton = QtGui.QRadioButton(self.checkinMiscOptionsGroupBox) self.bottomVersionsRadioButton.setObjectName("bottomVersionsRadioButton") self.checkinMiscOptionsLayout.addWidget(self.bottomVersionsRadioButton, 4, 1, 1, 1) self.label_2 = QtGui.QLabel(self.checkinMiscOptionsGroupBox) self.label_2.setObjectName("label_2") self.checkinMiscOptionsLayout.addWidget(self.label_2, 7, 0, 1, 1) self.displayLimitSpinBox = QtGui.QSpinBox(self.checkinMiscOptionsGroupBox) self.displayLimitSpinBox.setMinimum(20) self.displayLimitSpinBox.setMaximum(500) self.displayLimitSpinBox.setSingleStep(5) self.displayLimitSpinBox.setObjectName("displayLimitSpinBox") self.checkinMiscOptionsLayout.addWidget(self.displayLimitSpinBox, 7, 2, 1, 1) self.rightVersionsRadioButton = QtGui.QRadioButton(self.checkinMiscOptionsGroupBox) self.rightVersionsRadioButton.setChecked(True) self.rightVersionsRadioButton.setObjectName("rightVersionsRadioButton") self.checkinMiscOptionsLayout.addWidget(self.rightVersionsRadioButton, 4, 2, 1, 1) self.doubleClickSaveCheckBox = QtGui.QCheckBox(self.checkinMiscOptionsGroupBox) self.doubleClickSaveCheckBox.setObjectName("doubleClickSaveCheckBox") self.checkinMiscOptionsLayout.addWidget(self.doubleClickSaveCheckBox, 1, 0, 1, 3) self.doubleClickOpenCheckBox = QtGui.QCheckBox(self.checkinMiscOptionsGroupBox) self.doubleClickOpenCheckBox.setObjectName("doubleClickOpenCheckBox") self.checkinMiscOptionsLayout.addWidget(self.doubleClickOpenCheckBox, 2, 0, 1, 3) self.showAllProcessCheckBox = QtGui.QCheckBox(self.checkinMiscOptionsGroupBox) self.showAllProcessCheckBox.setObjectName("showAllProcessCheckBox") self.checkinMiscOptionsLayout.addWidget(self.showAllProcessCheckBox, 3, 0, 1, 3) self.getPreviewsThroughHttpCheckbox = QtGui.QCheckBox(self.checkinMiscOptionsGroupBox) self.getPreviewsThroughHttpCheckbox.setObjectName("getPreviewsThroughHttpCheckbox") self.checkinMiscOptionsLayout.addWidget(self.getPreviewsThroughHttpCheckbox, 0, 0, 1, 3) self.checkinMiscOptionsLayout.setColumnStretch(0, 1) self.checkinPageWidgetLayout.addWidget(self.checkinMiscOptionsGroupBox) self.snapshotsSavingOptionsGroupBox = QtGui.QGroupBox(checkinOptionsPageWidget) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.snapshotsSavingOptionsGroupBox.setFont(font) self.snapshotsSavingOptionsGroupBox.setFlat(True) self.snapshotsSavingOptionsGroupBox.setObjectName("snapshotsSavingOptionsGroupBox") self.snapshotsSavingOptionsLayout = QtGui.QGridLayout(self.snapshotsSavingOptionsGroupBox) self.snapshotsSavingOptionsLayout.setContentsMargins(10, 24, -1, 0) self.snapshotsSavingOptionsLayout.setObjectName("snapshotsSavingOptionsLayout") self.repositoryComboBox = QtGui.QComboBox(self.snapshotsSavingOptionsGroupBox) self.repositoryComboBox.setObjectName("repositoryComboBox") self.snapshotsSavingOptionsLayout.addWidget(self.repositoryComboBox, 1, 1, 1, 3) self.updateVersionlessCheckBox = QtGui.QCheckBox(self.snapshotsSavingOptionsGroupBox) self.updateVersionlessCheckBox.setChecked(True) self.updateVersionlessCheckBox.setObjectName("updateVersionlessCheckBox") self.snapshotsSavingOptionsLayout.addWidget(self.updateVersionlessCheckBox, 4, 0, 1, 1) self.seuqenceNamingHorizontalLayout = QtGui.QHBoxLayout() self.seuqenceNamingHorizontalLayout.setSpacing(4) self.seuqenceNamingHorizontalLayout.setObjectName("seuqenceNamingHorizontalLayout") self.sequenceNamingTemplateLineEdit = QtGui.QLineEdit(self.snapshotsSavingOptionsGroupBox) self.sequenceNamingTemplateLineEdit.setReadOnly(True) self.sequenceNamingTemplateLineEdit.setObjectName("sequenceNamingTemplateLineEdit") self.seuqenceNamingHorizontalLayout.addWidget(self.sequenceNamingTemplateLineEdit) self.editSequenceNamingTemplateToolButton = QtGui.QToolButton(self.snapshotsSavingOptionsGroupBox) self.editSequenceNamingTemplateToolButton.setText("") self.editSequenceNamingTemplateToolButton.setAutoRaise(True) self.editSequenceNamingTemplateToolButton.setObjectName("editSequenceNamingTemplateToolButton") self.seuqenceNamingHorizontalLayout.addWidget(self.editSequenceNamingTemplateToolButton) self.seuqenceNamingHorizontalLayout.setStretch(0, 1) self.snapshotsSavingOptionsLayout.addLayout(self.seuqenceNamingHorizontalLayout, 11, 1, 1, 3) self.sequencePaddingHorizontalLayout = QtGui.QHBoxLayout() self.sequencePaddingHorizontalLayout.setSpacing(4) self.sequencePaddingHorizontalLayout.setObjectName("sequencePaddingHorizontalLayout") self.sequencePaddingHorizontalSlider = QtGui.QSlider(self.snapshotsSavingOptionsGroupBox) self.sequencePaddingHorizontalSlider.setMinimum(1) self.sequencePaddingHorizontalSlider.setMaximum(9) self.sequencePaddingHorizontalSlider.setProperty("value", 3) self.sequencePaddingHorizontalSlider.setOrientation(QtCore.Qt.Horizontal) self.sequencePaddingHorizontalSlider.setObjectName("sequencePaddingHorizontalSlider") self.sequencePaddingHorizontalLayout.addWidget(self.sequencePaddingHorizontalSlider) self.sequencePaddingSpinBox = QtGui.QSpinBox(self.snapshotsSavingOptionsGroupBox) self.sequencePaddingSpinBox.setMinimum(1) self.sequencePaddingSpinBox.setMaximum(9) self.sequencePaddingSpinBox.setProperty("value", 3) self.sequencePaddingSpinBox.setObjectName("sequencePaddingSpinBox") self.sequencePaddingHorizontalLayout.addWidget(self.sequencePaddingSpinBox) self.sequencePaddingHorizontalLayout.setStretch(0, 1) self.snapshotsSavingOptionsLayout.addLayout(self.sequencePaddingHorizontalLayout, 10, 1, 1, 3) self.createPlayblastCheckBox = QtGui.QCheckBox(self.snapshotsSavingOptionsGroupBox) self.createPlayblastCheckBox.setChecked(True) self.createPlayblastCheckBox.setObjectName("createPlayblastCheckBox") self.snapshotsSavingOptionsLayout.addWidget(self.createPlayblastCheckBox, 7, 0, 1, 1) self.confirmsHorizontalLayout = QtGui.QHBoxLayout() self.confirmsHorizontalLayout.setSpacing(0) self.confirmsHorizontalLayout.setObjectName("confirmsHorizontalLayout") self.askBeforeSaveCheckBox = QtGui.QCheckBox(self.snapshotsSavingOptionsGroupBox) self.askBeforeSaveCheckBox.setChecked(True) self.askBeforeSaveCheckBox.setObjectName("askBeforeSaveCheckBox") self.confirmsHorizontalLayout.addWidget(self.askBeforeSaveCheckBox) self.askReplaceRevisionCheckBox = QtGui.QCheckBox(self.snapshotsSavingOptionsGroupBox) self.askReplaceRevisionCheckBox.setChecked(True) self.askReplaceRevisionCheckBox.setObjectName("askReplaceRevisionCheckBox") self.confirmsHorizontalLayout.addWidget(self.askReplaceRevisionCheckBox) self.snapshotsSavingOptionsLayout.addLayout(self.confirmsHorizontalLayout, 8, 0, 1, 4) self.createMayaDirsCheckBox = QtGui.QCheckBox(self.snapshotsSavingOptionsGroupBox) self.createMayaDirsCheckBox.setObjectName("createMayaDirsCheckBox") self.snapshotsSavingOptionsLayout.addWidget(self.createMayaDirsCheckBox, 6, 0, 1, 1) self.generatePreviewsCheckBox = QtGui.QCheckBox(self.snapshotsSavingOptionsGroupBox) self.generatePreviewsCheckBox.setChecked(True) self.generatePreviewsCheckBox.setObjectName("generatePreviewsCheckBox") self.snapshotsSavingOptionsLayout.addWidget(self.generatePreviewsCheckBox, 5, 0, 1, 1) self.sequencePaddingCheckBox = QtGui.QCheckBox(self.snapshotsSavingOptionsGroupBox) self.sequencePaddingCheckBox.setObjectName("sequencePaddingCheckBox") self.snapshotsSavingOptionsLayout.addWidget(self.sequencePaddingCheckBox, 10, 0, 1, 1) self.checkinMethodLabel = QtGui.QLabel(self.snapshotsSavingOptionsGroupBox) self.checkinMethodLabel.setObjectName("checkinMethodLabel") self.snapshotsSavingOptionsLayout.addWidget(self.checkinMethodLabel, 2, 0, 1, 1) self.checkinMethodComboBox = QtGui.QComboBox(self.snapshotsSavingOptionsGroupBox) self.checkinMethodComboBox.setObjectName("checkinMethodComboBox") self.checkinMethodComboBox.addItem("") self.checkinMethodComboBox.addItem("") self.checkinMethodComboBox.addItem("") self.checkinMethodComboBox.addItem("") self.checkinMethodComboBox.addItem("") self.snapshotsSavingOptionsLayout.addWidget(self.checkinMethodComboBox, 2, 1, 1, 3) self.repositoryLabel = QtGui.QLabel(self.snapshotsSavingOptionsGroupBox) self.repositoryLabel.setObjectName("repositoryLabel") self.snapshotsSavingOptionsLayout.addWidget(self.repositoryLabel, 1, 0, 1, 1) self.sequqnceNamingTemplatelabel = QtGui.QLabel(self.snapshotsSavingOptionsGroupBox) self.sequqnceNamingTemplatelabel.setObjectName("sequqnceNamingTemplatelabel") self.snapshotsSavingOptionsLayout.addWidget(self.sequqnceNamingTemplatelabel, 11, 0, 1, 1) self.checkoutMethodLabel = QtGui.QLabel(self.snapshotsSavingOptionsGroupBox) self.checkoutMethodLabel.setObjectName("checkoutMethodLabel") self.snapshotsSavingOptionsLayout.addWidget(self.checkoutMethodLabel, 3, 0, 1, 1) self.checkoutMethodComboBox = QtGui.QComboBox(self.snapshotsSavingOptionsGroupBox) self.checkoutMethodComboBox.setObjectName("checkoutMethodComboBox") self.checkoutMethodComboBox.addItem("") self.checkoutMethodComboBox.addItem("") self.snapshotsSavingOptionsLayout.addWidget(self.checkoutMethodComboBox, 3, 1, 1, 3) self.checkinPageWidgetLayout.addWidget(self.snapshotsSavingOptionsGroupBox) self.dropPlateOptionsGroupBox = QtGui.QGroupBox(checkinOptionsPageWidget) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.dropPlateOptionsGroupBox.setFont(font) self.dropPlateOptionsGroupBox.setFlat(True) self.dropPlateOptionsGroupBox.setObjectName("dropPlateOptionsGroupBox") self.dropPlateOptionsLayout = QtGui.QGridLayout(self.dropPlateOptionsGroupBox) self.dropPlateOptionsLayout.setContentsMargins(10, 24, -1, 0) self.dropPlateOptionsLayout.setObjectName("dropPlateOptionsLayout") self.horizontalSlider = QtGui.QSlider(self.dropPlateOptionsGroupBox) self.horizontalSlider.setMinimum(1) self.horizontalSlider.setMaximum(9) self.horizontalSlider.setProperty("value", 3) self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider.setObjectName("horizontalSlider") self.dropPlateOptionsLayout.addWidget(self.horizontalSlider, 5, 1, 1, 1) self.minFramesPaddingSpinBox = QtGui.QSpinBox(self.dropPlateOptionsGroupBox) self.minFramesPaddingSpinBox.setMinimum(1) self.minFramesPaddingSpinBox.setMaximum(9) self.minFramesPaddingSpinBox.setProperty("value", 3) self.minFramesPaddingSpinBox.setObjectName("minFramesPaddingSpinBox") self.dropPlateOptionsLayout.addWidget(self.minFramesPaddingSpinBox, 5, 2, 1, 1) self.label = QtGui.QLabel(self.dropPlateOptionsGroupBox) self.label.setObjectName("label") self.dropPlateOptionsLayout.addWidget(self.label, 5, 0, 1, 1) self.uncheckFromDropPlateCheckBox = QtGui.QCheckBox(self.dropPlateOptionsGroupBox) self.uncheckFromDropPlateCheckBox.setChecked(True) self.uncheckFromDropPlateCheckBox.setObjectName("uncheckFromDropPlateCheckBox") self.dropPlateOptionsLayout.addWidget(self.uncheckFromDropPlateCheckBox, 1, 0, 1, 1) self.clearDropPlateAfterCheckincheckBox = QtGui.QCheckBox(self.dropPlateOptionsGroupBox) self.clearDropPlateAfterCheckincheckBox.setChecked(True) self.clearDropPlateAfterCheckincheckBox.setObjectName("clearDropPlateAfterCheckincheckBox") self.dropPlateOptionsLayout.addWidget(self.clearDropPlateAfterCheckincheckBox, 2, 0, 1, 1) self.oneFrameSequenceDetectionCheckBox = QtGui.QCheckBox(self.dropPlateOptionsGroupBox) self.oneFrameSequenceDetectionCheckBox.setChecked(True) self.oneFrameSequenceDetectionCheckBox.setObjectName("oneFrameSequenceDetectionCheckBox") self.dropPlateOptionsLayout.addWidget(self.oneFrameSequenceDetectionCheckBox, 4, 1, 1, 2) self.oneUdimDetectionCheckBox = QtGui.QCheckBox(self.dropPlateOptionsGroupBox) self.oneUdimDetectionCheckBox.setChecked(True) self.oneUdimDetectionCheckBox.setObjectName("oneUdimDetectionCheckBox") self.dropPlateOptionsLayout.addWidget(self.oneUdimDetectionCheckBox, 4, 0, 1, 1) self.syckDropPlateCheckBox = QtGui.QCheckBox(self.dropPlateOptionsGroupBox) self.syckDropPlateCheckBox.setChecked(True) self.syckDropPlateCheckBox.setObjectName("syckDropPlateCheckBox") self.dropPlateOptionsLayout.addWidget(self.syckDropPlateCheckBox, 0, 0, 1, 1) self.checkinPageWidgetLayout.addWidget(self.dropPlateOptionsGroupBox) self.defaultRepoPathsGroupBox = QtGui.QGroupBox(checkinOptionsPageWidget) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.defaultRepoPathsGroupBox.setFont(font) self.defaultRepoPathsGroupBox.setFlat(True) self.defaultRepoPathsGroupBox.setObjectName("defaultRepoPathsGroupBox") self.defaultRepoPathsLayout = QtGui.QGridLayout(self.defaultRepoPathsGroupBox) self.defaultRepoPathsLayout.setContentsMargins(10, 24, -1, 0) self.defaultRepoPathsLayout.setObjectName("defaultRepoPathsLayout") self.handoffCheckBox = QtGui.QCheckBox(self.defaultRepoPathsGroupBox) self.handoffCheckBox.setObjectName("handoffCheckBox") self.defaultRepoPathsLayout.addWidget(self.handoffCheckBox, 5, 0, 1, 1) self.clientRepoDirNameLineEdit = QtGui.QLineEdit(self.defaultRepoPathsGroupBox) self.clientRepoDirNameLineEdit.setObjectName("clientRepoDirNameLineEdit") self.defaultRepoPathsLayout.addWidget(self.clientRepoDirNameLineEdit, 4, 2, 1, 1) self.sandboxDirPathLineEdit = QtGui.QLineEdit(self.defaultRepoPathsGroupBox) self.sandboxDirPathLineEdit.setObjectName("sandboxDirPathLineEdit") self.defaultRepoPathsLayout.addWidget(self.sandboxDirPathLineEdit, 2, 3, 1, 1) self.sandboxDirNameLineEdit = QtGui.QLineEdit(self.defaultRepoPathsGroupBox) self.sandboxDirNameLineEdit.setObjectName("sandboxDirNameLineEdit") self.defaultRepoPathsLayout.addWidget(self.sandboxDirNameLineEdit, 2, 2, 1, 1) self.localRepoDirNameLineEdit = QtGui.QLineEdit(self.defaultRepoPathsGroupBox) self.localRepoDirNameLineEdit.setObjectName("localRepoDirNameLineEdit") self.defaultRepoPathsLayout.addWidget(self.localRepoDirNameLineEdit, 3, 2, 1, 1) self.clientRepoCheckBox = QtGui.QCheckBox(self.defaultRepoPathsGroupBox) self.clientRepoCheckBox.setObjectName("clientRepoCheckBox") self.defaultRepoPathsLayout.addWidget(self.clientRepoCheckBox, 4, 0, 1, 1) self.localRepoCheckBox = QtGui.QCheckBox(self.defaultRepoPathsGroupBox) self.localRepoCheckBox.setChecked(True) self.localRepoCheckBox.setObjectName("localRepoCheckBox") self.defaultRepoPathsLayout.addWidget(self.localRepoCheckBox, 3, 0, 1, 1) self.handoffDirPathLineEdit = QtGui.QLineEdit(self.defaultRepoPathsGroupBox) self.handoffDirPathLineEdit.setObjectName("handoffDirPathLineEdit") self.defaultRepoPathsLayout.addWidget(self.handoffDirPathLineEdit, 5, 2, 1, 2) self.assetBaseDirColorToolButton = QtGui.QToolButton(self.defaultRepoPathsGroupBox) self.assetBaseDirColorToolButton.setMaximumSize(QtCore.QSize(20, 20)) self.assetBaseDirColorToolButton.setStyleSheet("QToolButton {\n" " border: 1px solid rgb(128, 128, 128);\n" " border-radius: 4px;\n" " background-color: rgb(96, 96, 96);\n" "}\n" "QToolButton:pressed {\n" " background-color: rgb(64, 64, 64);\n" "}") self.assetBaseDirColorToolButton.setChecked(False) self.assetBaseDirColorToolButton.setObjectName("assetBaseDirColorToolButton") self.defaultRepoPathsLayout.addWidget(self.assetBaseDirColorToolButton, 1, 1, 1, 1) self.sandboxCheckBox = QtGui.QCheckBox(self.defaultRepoPathsGroupBox) self.sandboxCheckBox.setObjectName("sandboxCheckBox") self.defaultRepoPathsLayout.addWidget(self.sandboxCheckBox, 2, 0, 1, 1) self.localRepoDirPathLineEdit = QtGui.QLineEdit(self.defaultRepoPathsGroupBox) self.localRepoDirPathLineEdit.setObjectName("localRepoDirPathLineEdit") self.defaultRepoPathsLayout.addWidget(self.localRepoDirPathLineEdit, 3, 3, 1, 1) self.sandboxDirColorToolButton = QtGui.QToolButton(self.defaultRepoPathsGroupBox) self.sandboxDirColorToolButton.setMaximumSize(QtCore.QSize(20, 20)) self.sandboxDirColorToolButton.setStyleSheet("QToolButton {\n" " border: 1px solid rgb(128, 128, 128);\n" " border-radius: 4px;\n" " background-color: rgb(128, 64, 64);\n" "}\n" "QToolButton:pressed {\n" " background-color: rgb(108, 44, 44);\n" "}") self.sandboxDirColorToolButton.setChecked(False) self.sandboxDirColorToolButton.setObjectName("sandboxDirColorToolButton") self.defaultRepoPathsLayout.addWidget(self.sandboxDirColorToolButton, 2, 1, 1, 1) self.clientRepoDirPathLineEdit = QtGui.QLineEdit(self.defaultRepoPathsGroupBox) self.clientRepoDirPathLineEdit.setObjectName("clientRepoDirPathLineEdit") self.defaultRepoPathsLayout.addWidget(self.clientRepoDirPathLineEdit, 4, 3, 1, 1) self.clientRepoDirColorToolButton = QtGui.QToolButton(self.defaultRepoPathsGroupBox) self.clientRepoDirColorToolButton.setMaximumSize(QtCore.QSize(20, 20)) self.clientRepoDirColorToolButton.setStyleSheet("QToolButton {\n" " border: 1px solid rgb(128, 128, 128);\n" " border-radius: 4px;\n" " background-color: rgb(31, 143, 0);\n" "}\n" "QToolButton:pressed {\n" " background-color: rgb(11, 123, 0);\n" "}") self.clientRepoDirColorToolButton.setChecked(False) self.clientRepoDirColorToolButton.setObjectName("clientRepoDirColorToolButton") self.defaultRepoPathsLayout.addWidget(self.clientRepoDirColorToolButton, 4, 1, 1, 1) self.localRepoDirColorToolButton = QtGui.QToolButton(self.defaultRepoPathsGroupBox) self.localRepoDirColorToolButton.setMaximumSize(QtCore.QSize(20, 20)) self.localRepoDirColorToolButton.setStyleSheet("QToolButton {\n" " border: 1px solid rgb(128, 128, 128);\n" " border-radius: 4px;\n" " background-color: rgb(255, 140, 40);\n" "}\n" "QToolButton:pressed {\n" " background-color: rgb(235, 120, 20);\n" "}") self.localRepoDirColorToolButton.setChecked(False) self.localRepoDirColorToolButton.setObjectName("localRepoDirColorToolButton") self.defaultRepoPathsLayout.addWidget(self.localRepoDirColorToolButton, 3, 1, 1, 1) self.assetBaseDirCheckBox = QtGui.QCheckBox(self.defaultRepoPathsGroupBox) self.assetBaseDirCheckBox.setChecked(True) self.assetBaseDirCheckBox.setObjectName("assetBaseDirCheckBox") self.defaultRepoPathsLayout.addWidget(self.assetBaseDirCheckBox, 0, 0, 2, 1) self.assetBaseDirNameLineEdit = QtGui.QLineEdit(self.defaultRepoPathsGroupBox) self.assetBaseDirNameLineEdit.setObjectName("assetBaseDirNameLineEdit") self.defaultRepoPathsLayout.addWidget(self.assetBaseDirNameLineEdit, 0, 2, 2, 1) self.assetBaseDirPathLineEdit = QtGui.QLineEdit(self.defaultRepoPathsGroupBox) self.assetBaseDirPathLineEdit.setObjectName("assetBaseDirPathLineEdit") self.defaultRepoPathsLayout.addWidget(self.assetBaseDirPathLineEdit, 0, 3, 2, 1) self.defaultRepoPathsLayout.setColumnStretch(3, 1) self.checkinPageWidgetLayout.addWidget(self.defaultRepoPathsGroupBox) self.customRepoPathsGroupBox = QtGui.QGroupBox(checkinOptionsPageWidget) self.customRepoPathsGroupBox.setEnabled(True) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.customRepoPathsGroupBox.setFont(font) self.customRepoPathsGroupBox.setFlat(True) self.customRepoPathsGroupBox.setCheckable(True) self.customRepoPathsGroupBox.setChecked(False) self.customRepoPathsGroupBox.setObjectName("customRepoPathsGroupBox") self.customRepoPathsLayout = QtGui.QGridLayout(self.customRepoPathsGroupBox) self.customRepoPathsLayout.setContentsMargins(10, 24, -1, 0) self.customRepoPathsLayout.setObjectName("customRepoPathsLayout") self.label_7 = QtGui.QLabel(self.customRepoPathsGroupBox) self.label_7.setObjectName("label_7") self.customRepoPathsLayout.addWidget(self.label_7, 0, 0, 1, 1) self.customRepoDirColorToolButton = QtGui.QToolButton(self.customRepoPathsGroupBox) self.customRepoDirColorToolButton.setMaximumSize(QtCore.QSize(20, 20)) self.customRepoDirColorToolButton.setStyleSheet("QToolButton {\n" " border: 1px solid rgb(128, 128, 128);\n" " border-radius: 4px;\n" " background-color: rgb(64, 64, 64);\n" "}\n" "QToolButton:pressed {\n" " background-color: rgb(44, 44, 44);\n" "}") self.customRepoDirColorToolButton.setChecked(False) self.customRepoDirColorToolButton.setObjectName("customRepoDirColorToolButton") self.customRepoPathsLayout.addWidget(self.customRepoDirColorToolButton, 0, 1, 1, 1) self.customRepoDirNameLineEdit = QtGui.QLineEdit(self.customRepoPathsGroupBox) self.customRepoDirNameLineEdit.setObjectName("customRepoDirNameLineEdit") self.customRepoPathsLayout.addWidget(self.customRepoDirNameLineEdit, 0, 2, 1, 3) self.label_8 = QtGui.QLabel(self.customRepoPathsGroupBox) self.label_8.setObjectName("label_8") self.customRepoPathsLayout.addWidget(self.label_8, 1, 0, 1, 1) self.customRepoDirPathLineEdit = QtGui.QLineEdit(self.customRepoPathsGroupBox) self.customRepoDirPathLineEdit.setObjectName("customRepoDirPathLineEdit") self.customRepoPathsLayout.addWidget(self.customRepoDirPathLineEdit, 1, 1, 1, 4) self.customRepoComboBox = QtGui.QComboBox(self.customRepoPathsGroupBox) self.customRepoComboBox.setObjectName("customRepoComboBox") self.customRepoPathsLayout.addWidget(self.customRepoComboBox, 2, 0, 1, 1) self.addCustomRepoToListPushButton = QtGui.QPushButton(self.customRepoPathsGroupBox) self.addCustomRepoToListPushButton.setObjectName("addCustomRepoToListPushButton") self.customRepoPathsLayout.addWidget(self.addCustomRepoToListPushButton, 2, 1, 1, 2) self.editCustomRepoPushButton = QtGui.QPushButton(self.customRepoPathsGroupBox) self.editCustomRepoPushButton.setObjectName("editCustomRepoPushButton") self.customRepoPathsLayout.addWidget(self.editCustomRepoPushButton, 2, 3, 1, 1) self.deleteCustomRepoPushButton = QtGui.QPushButton(self.customRepoPathsGroupBox) self.deleteCustomRepoPushButton.setObjectName("deleteCustomRepoPushButton") self.customRepoPathsLayout.addWidget(self.deleteCustomRepoPushButton, 2, 4, 1, 1) self.customRepoTreeWidget = QtGui.QTreeWidget(self.customRepoPathsGroupBox) self.customRepoTreeWidget.setStyleSheet("QTreeView::item {\n" " padding: 2px;\n" "}") self.customRepoTreeWidget.setIndentation(0) self.customRepoTreeWidget.setRootIsDecorated(False) self.customRepoTreeWidget.setObjectName("customRepoTreeWidget") self.customRepoPathsLayout.addWidget(self.customRepoTreeWidget, 3, 0, 1, 5) self.checkinPageWidgetLayout.addWidget(self.customRepoPathsGroupBox) self.retranslateUi(checkinOptionsPageWidget) QtCore.QObject.connect(self.sequencePaddingHorizontalSlider, QtCore.SIGNAL("valueChanged(int)"), self.sequencePaddingSpinBox.setValue) QtCore.QObject.connect(self.sequencePaddingSpinBox, QtCore.SIGNAL("valueChanged(int)"), self.sequencePaddingHorizontalSlider.setValue) QtCore.QObject.connect(self.horizontalSlider, QtCore.SIGNAL("valueChanged(int)"), self.minFramesPaddingSpinBox.setValue) QtCore.QObject.connect(self.minFramesPaddingSpinBox, QtCore.SIGNAL("valueChanged(int)"), self.horizontalSlider.setValue) QtCore.QMetaObject.connectSlotsByName(checkinOptionsPageWidget)
def setupUi(self, snapshotBrowser): snapshotBrowser.setObjectName("snapshotBrowser") self.snapshotBrowserLayout = QtGui.QVBoxLayout(snapshotBrowser) self.snapshotBrowserLayout.setSpacing(0) self.snapshotBrowserLayout.setContentsMargins(0, 0, 0, 0) self.snapshotBrowserLayout.setObjectName("snapshotBrowserLayout") self.browserSplitter = QtGui.QSplitter(snapshotBrowser) self.browserSplitter.setOrientation(QtCore.Qt.Vertical) self.browserSplitter.setObjectName("browserSplitter") self.verticalLayoutWidget = QtGui.QWidget(self.browserSplitter) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.imageViewerLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget) self.imageViewerLayout.setSpacing(0) self.imageViewerLayout.setContentsMargins(0, 0, 0, 0) self.imageViewerLayout.setObjectName("imageViewerLayout") self.imagesSlider = QtGui.QSlider(self.verticalLayoutWidget) self.imagesSlider.setStyleSheet( "QSlider::groove:horizontal {\n" " border: 1px solid rgba(128, 128, 128, 40);\n" " height: 8px;\n" " background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(128, 128, 128, 75), stop:1 rgba(128, 128, 128, 40));\n" " margin: 2px 0;\n" "}\n" "\n" "QSlider::handle:horizontal {\n" " background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 rgba(128, 128, 128, 40), stop:1 rgba(128, 128, 128, 175));\n" " border: 1px solid rgba(128, 128, 128, 40);\n" " width: 18px;\n" " margin: -2px 0;\n" " border-radius: 3px;\n" "}") self.imagesSlider.setMaximum(1) self.imagesSlider.setPageStep(1) self.imagesSlider.setTracking(True) self.imagesSlider.setOrientation(QtCore.Qt.Horizontal) self.imagesSlider.setTickPosition(QtGui.QSlider.TicksAbove) self.imagesSlider.setObjectName("imagesSlider") self.imageViewerLayout.addWidget(self.imagesSlider) self.previewGraphicsView = QtGui.QGraphicsView( self.verticalLayoutWidget) self.previewGraphicsView.setFrameShape(QtGui.QFrame.NoFrame) self.previewGraphicsView.setVerticalScrollBarPolicy( QtCore.Qt.ScrollBarAlwaysOff) self.previewGraphicsView.setHorizontalScrollBarPolicy( QtCore.Qt.ScrollBarAlwaysOff) self.previewGraphicsView.setRenderHints( Qt4Gui.QPainter.Antialiasing | Qt4Gui.QPainter.HighQualityAntialiasing | Qt4Gui.QPainter.SmoothPixmapTransform | Qt4Gui.QPainter.TextAntialiasing) self.previewGraphicsView.setOptimizationFlags( QtGui.QGraphicsView.DontAdjustForAntialiasing | QtGui.QGraphicsView.DontSavePainterState) self.previewGraphicsView.setObjectName("previewGraphicsView") self.imageViewerLayout.addWidget(self.previewGraphicsView) self.imageViewerLayout.setStretch(1, 1) self.gridLayoutWidget = QtGui.QWidget(self.browserSplitter) self.gridLayoutWidget.setObjectName("gridLayoutWidget") self.filesBrowserLayout = QtGui.QGridLayout(self.gridLayoutWidget) self.filesBrowserLayout.setContentsMargins(0, 0, 0, 0) self.filesBrowserLayout.setObjectName("filesBrowserLayout") self.showAllCheckBox = QtGui.QCheckBox(self.gridLayoutWidget) self.showAllCheckBox.setObjectName("showAllCheckBox") self.filesBrowserLayout.addWidget(self.showAllCheckBox, 1, 0, 1, 1) self.showMoreInfoCheckBox = QtGui.QCheckBox(self.gridLayoutWidget) self.showMoreInfoCheckBox.setObjectName("showMoreInfoCheckBox") self.filesBrowserLayout.addWidget(self.showMoreInfoCheckBox, 1, 1, 1, 1) self.filesTreeWidget = QtGui.QTreeWidget(self.gridLayoutWidget) self.filesTreeWidget.setStyleSheet( "QTreeView::item {\n" " padding: 2px;\n" "}\n" "QTreeView::item:selected:active{\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(82, 133, 166, 255), stop:1 rgba(82, 133, 166, 255));\n" " border: 1px solid transparent;\n" "}\n" "QTreeView::item:selected:!active {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(82, 133, 166, 255), stop:1 rgba(82, 133, 166, 255));\n" " border: 1px solid transparent;\n" "}\n" "") self.filesTreeWidget.setAlternatingRowColors(True) self.filesTreeWidget.setHeaderHidden(True) self.filesTreeWidget.setObjectName("filesTreeWidget") self.filesTreeWidget.headerItem().setText(0, "Snapshot / Type / Name:") self.filesBrowserLayout.addWidget(self.filesTreeWidget, 0, 0, 1, 2) self.snapshotBrowserLayout.addWidget(self.browserSplitter) self.retranslateUi(snapshotBrowser) QtCore.QMetaObject.connectSlotsByName(snapshotBrowser)
def setupUi(self, dropPlate): dropPlate.setObjectName("dropPlate") self.gridLayout = QtGui.QGridLayout(dropPlate) self.gridLayout.setContentsMargins(4, 4, 4, 6) self.gridLayout.setHorizontalSpacing(4) self.gridLayout.setObjectName("gridLayout") self.dropTreeWidget = QtGui.QTreeWidget(dropPlate) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Ignored, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.dropTreeWidget.sizePolicy().hasHeightForWidth()) self.dropTreeWidget.setSizePolicy(sizePolicy) self.dropTreeWidget.setStyleSheet("QTreeView::item {\n" " padding: 2px;\n" "}\n" "\n" "QTreeView::item:selected:active{\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(82, 133, 166, 255), stop:1 rgba(82, 133, 166, 255));\n" " border: 1px solid transparent;\n" "}\n" "QTreeView::item:selected:!active {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(82, 133, 166, 255), stop:1 rgba(82, 133, 166, 255));\n" " border: 1px solid transparent;\n" "}\n" "") self.dropTreeWidget.setEditTriggers(QtGui.QAbstractItemView.AllEditTriggers) self.dropTreeWidget.setTabKeyNavigation(True) self.dropTreeWidget.setAlternatingRowColors(True) self.dropTreeWidget.setSelectionMode(QtGui.QAbstractItemView.ExtendedSelection) self.dropTreeWidget.setTextElideMode(QtCore.Qt.ElideMiddle) self.dropTreeWidget.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel) self.dropTreeWidget.setIndentation(20) self.dropTreeWidget.setRootIsDecorated(True) self.dropTreeWidget.setUniformRowHeights(True) self.dropTreeWidget.setItemsExpandable(True) self.dropTreeWidget.setAllColumnsShowFocus(True) self.dropTreeWidget.setWordWrap(True) self.dropTreeWidget.setHeaderHidden(False) self.dropTreeWidget.setObjectName("dropTreeWidget") self.dropTreeWidget.header().setCascadingSectionResizes(True) self.gridLayout.addWidget(self.dropTreeWidget, 0, 0, 1, 5) self.progressBarLayout = QtGui.QHBoxLayout() self.progressBarLayout.setSpacing(0) self.progressBarLayout.setObjectName("progressBarLayout") self.gridLayout.addLayout(self.progressBarLayout, 1, 0, 1, 5) self.filterLineEdit = QtGui.QLineEdit(dropPlate) self.filterLineEdit.setEnabled(False) self.filterLineEdit.setStyleSheet("QLineEdit {\n" " border: 0px;\n" " border-radius: 8px;\n" " show-decoration-selected: 1;\n" " padding: 0px 8px;\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 64), stop:1 rgba(255, 255, 255, 0));\n" " background-position: bottom left;\n" " background-image: url(\":/ui_check/gliph/search_16.png\");\n" " background-repeat: fixed;\n" " selection-background-color: darkgray;\n" " padding-left: 15px;\n" "}\n" "QLineEdit:hover{\n" " color: white;\n" " background-image: url(\":/ui_check/gliph/searchHover_16.png\");\n" "}") self.filterLineEdit.setObjectName("filterLineEdit") self.gridLayout.addWidget(self.filterLineEdit, 2, 0, 1, 1) self.expandingLayout = QtGui.QHBoxLayout() self.expandingLayout.setObjectName("expandingLayout") self.enableFilterCheckBox = QtGui.QCheckBox(dropPlate) self.enableFilterCheckBox.setChecked(False) self.enableFilterCheckBox.setObjectName("enableFilterCheckBox") self.expandingLayout.addWidget(self.enableFilterCheckBox) self.filterComboBox = QtGui.QComboBox(dropPlate) self.filterComboBox.setEnabled(False) self.filterComboBox.setObjectName("filterComboBox") self.filterComboBox.addItem("") self.filterComboBox.addItem("") self.expandingLayout.addWidget(self.filterComboBox) self.fromDropListCheckBox = QtGui.QCheckBox(dropPlate) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.fromDropListCheckBox.sizePolicy().hasHeightForWidth()) self.fromDropListCheckBox.setSizePolicy(sizePolicy) self.fromDropListCheckBox.setObjectName("fromDropListCheckBox") self.expandingLayout.addWidget(self.fromDropListCheckBox) self.groupCheckinCheckBox = QtGui.QCheckBox(dropPlate) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupCheckinCheckBox.sizePolicy().hasHeightForWidth()) self.groupCheckinCheckBox.setSizePolicy(sizePolicy) self.groupCheckinCheckBox.setObjectName("groupCheckinCheckBox") self.expandingLayout.addWidget(self.groupCheckinCheckBox) self.keepFileNameCheckBox = QtGui.QCheckBox(dropPlate) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.keepFileNameCheckBox.sizePolicy().hasHeightForWidth()) self.keepFileNameCheckBox.setSizePolicy(sizePolicy) self.keepFileNameCheckBox.setObjectName("keepFileNameCheckBox") self.expandingLayout.addWidget(self.keepFileNameCheckBox) self.includeSubfoldersCheckBox = QtGui.QCheckBox(dropPlate) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.includeSubfoldersCheckBox.sizePolicy().hasHeightForWidth()) self.includeSubfoldersCheckBox.setSizePolicy(sizePolicy) self.includeSubfoldersCheckBox.setObjectName("includeSubfoldersCheckBox") self.expandingLayout.addWidget(self.includeSubfoldersCheckBox) self.gridLayout.addLayout(self.expandingLayout, 2, 1, 1, 2) self.configPushButton = QtGui.QToolButton(dropPlate) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.configPushButton.sizePolicy().hasHeightForWidth()) self.configPushButton.setSizePolicy(sizePolicy) self.configPushButton.setMinimumSize(QtCore.QSize(24, 24)) self.configPushButton.setMaximumSize(QtCore.QSize(24, 24)) self.configPushButton.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly) self.configPushButton.setAutoRaise(True) self.configPushButton.setObjectName("configPushButton") self.gridLayout.addWidget(self.configPushButton, 2, 3, 1, 1) self.clearPushButton = QtGui.QToolButton(dropPlate) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.clearPushButton.sizePolicy().hasHeightForWidth()) self.clearPushButton.setSizePolicy(sizePolicy) self.clearPushButton.setMinimumSize(QtCore.QSize(24, 24)) self.clearPushButton.setMaximumSize(QtCore.QSize(24, 24)) self.clearPushButton.setToolButtonStyle(QtCore.Qt.ToolButtonIconOnly) self.clearPushButton.setAutoRaise(True) self.clearPushButton.setObjectName("clearPushButton") self.gridLayout.addWidget(self.clearPushButton, 2, 4, 1, 1) self.gridLayout.setRowStretch(0, 1) self.retranslateUi(dropPlate) QtCore.QObject.connect(self.enableFilterCheckBox, QtCore.SIGNAL("toggled(bool)"), self.filterComboBox.setEnabled) QtCore.QObject.connect(self.enableFilterCheckBox, QtCore.SIGNAL("toggled(bool)"), self.filterLineEdit.setEnabled) QtCore.QMetaObject.connectSlotsByName(dropPlate)
def setupUi(self, editDBTable): editDBTable.setObjectName("editDBTable") editDBTable.resize(800, 640) self.centralwidget = QtGui.QWidget(editDBTable) self.centralwidget.setObjectName("centralwidget") self.gridLayout = QtGui.QGridLayout(self.centralwidget) self.gridLayout.setContentsMargins(9, 9, 9, 0) self.gridLayout.setObjectName("gridLayout") self.splitter = QtGui.QSplitter(self.centralwidget) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.verticalLayoutWidget_2 = QtGui.QWidget(self.splitter) self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget_2) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.tablesTreeWidget = QtGui.QTreeWidget(self.verticalLayoutWidget_2) self.tablesTreeWidget.setMinimumSize(QtCore.QSize(150, 0)) self.tablesTreeWidget.setStyleSheet( "QTreeView::item {\n" " padding: 2px;\n" "}\n" "\n" "QTreeView::item:selected:active{\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(82, 133, 166, 255), stop:1 rgba(82, 133, 166, 255));\n" " border: 1px solid transparent;\n" "}\n" "QTreeView::item:selected:!active {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(82, 133, 166, 255), stop:1 rgba(82, 133, 166, 255));\n" " border: 1px solid transparent;\n" "}\n" "") self.tablesTreeWidget.setRootIsDecorated(True) self.tablesTreeWidget.setHeaderHidden(True) self.tablesTreeWidget.setObjectName("tablesTreeWidget") item_0 = QtGui.QTreeWidgetItem(self.tablesTreeWidget) item_1 = QtGui.QTreeWidgetItem(item_0) item_1 = QtGui.QTreeWidgetItem(item_0) item_2 = QtGui.QTreeWidgetItem(item_1) item_1 = QtGui.QTreeWidgetItem(item_0) item_2 = QtGui.QTreeWidgetItem(item_1) item_0 = QtGui.QTreeWidgetItem(self.tablesTreeWidget) item_1 = QtGui.QTreeWidgetItem(item_0) item_2 = QtGui.QTreeWidgetItem(item_1) item_2 = QtGui.QTreeWidgetItem(item_1) item_3 = QtGui.QTreeWidgetItem(item_2) item_2 = QtGui.QTreeWidgetItem(item_1) item_3 = QtGui.QTreeWidgetItem(item_2) item_1 = QtGui.QTreeWidgetItem(item_0) self.verticalLayout.addWidget(self.tablesTreeWidget) self.verticalLayoutWidget_3 = QtGui.QWidget(self.splitter) self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.tableEditorLayout = QtGui.QVBoxLayout() self.tableEditorLayout.setObjectName("tableEditorLayout") self.editTableWidget = QtGui.QTableWidget(self.verticalLayoutWidget_3) self.editTableWidget.setObjectName("editTableWidget") self.editTableWidget.setColumnCount(0) self.editTableWidget.setRowCount(0) self.tableEditorLayout.addWidget(self.editTableWidget) self.verticalLayout_2.addLayout(self.tableEditorLayout) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.savePushButton = QtGui.QPushButton(self.verticalLayoutWidget_3) self.savePushButton.setMinimumSize(QtCore.QSize(120, 0)) self.savePushButton.setObjectName("savePushButton") self.horizontalLayout.addWidget(self.savePushButton) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout_2.addLayout(self.horizontalLayout) self.verticalLayout_2.setStretch(0, 1) self.gridLayout.addWidget(self.splitter, 0, 0, 1, 1) editDBTable.setCentralWidget(self.centralwidget) self.statusbar = QtGui.QStatusBar(editDBTable) self.statusbar.setObjectName("statusbar") editDBTable.setStatusBar(self.statusbar) self.retranslateUi(editDBTable) QtCore.QMetaObject.connectSlotsByName(editDBTable)
def setupUi(self, tasks): tasks.setObjectName("tasks") tasks.resize(705, 420) self.verticalLayout = QtGui.QVBoxLayout(tasks) self.verticalLayout.setContentsMargins(-1, -1, -1, 0) self.verticalLayout.setObjectName("verticalLayout") self.splitter = QtGui.QSplitter(tasks) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.gridLayoutWidget = QtGui.QWidget(self.splitter) self.gridLayoutWidget.setObjectName("gridLayoutWidget") self.gridLayout_2 = QtGui.QGridLayout(self.gridLayoutWidget) self.gridLayout_2.setContentsMargins(0, 0, 0, 0) self.gridLayout_2.setObjectName("gridLayout_2") self.contextLabel = QtGui.QLabel(self.gridLayoutWidget) self.contextLabel.setMinimumSize(QtCore.QSize(50, 0)) self.contextLabel.setObjectName("contextLabel") self.gridLayout_2.addWidget(self.contextLabel, 2, 0, 1, 1) self.contextLineEdit = QtGui.QLineEdit(self.gridLayoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.contextLineEdit.sizePolicy().hasHeightForWidth()) self.contextLineEdit.setSizePolicy(sizePolicy) self.contextLineEdit.setObjectName("contextLineEdit") self.gridLayout_2.addWidget(self.contextLineEdit, 2, 1, 1, 1) self.processTreeWidget = QtGui.QTreeWidget(self.gridLayoutWidget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.processTreeWidget.sizePolicy().hasHeightForWidth()) self.processTreeWidget.setSizePolicy(sizePolicy) self.processTreeWidget.setMinimumSize(QtCore.QSize(350, 0)) self.processTreeWidget.setEditTriggers( QtGui.QAbstractItemView.AllEditTriggers) self.processTreeWidget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.processTreeWidget.setAllColumnsShowFocus(True) self.processTreeWidget.setColumnCount(1) self.processTreeWidget.setObjectName("processTreeWidget") self.processTreeWidget.headerItem().setText(0, "Process:") self.processTreeWidget.header().setVisible(False) self.gridLayout_2.addWidget(self.processTreeWidget, 1, 0, 1, 2) self.taskInfoGroupBox = QtGui.QGroupBox(self.splitter) self.taskInfoGroupBox.setBaseSize(QtCore.QSize(500, 0)) self.taskInfoGroupBox.setFlat(True) self.taskInfoGroupBox.setObjectName("taskInfoGroupBox") self.gridLayout = QtGui.QGridLayout(self.taskInfoGroupBox) self.gridLayout.setContentsMargins(4, 6, 4, 4) self.gridLayout.setObjectName("gridLayout") self.groupBox = QtGui.QGroupBox(self.taskInfoGroupBox) self.groupBox.setFlat(True) self.groupBox.setObjectName("groupBox") self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.editorLayout = QtGui.QHBoxLayout() self.editorLayout.setSpacing(0) self.editorLayout.setContentsMargins(-1, 0, -1, -1) self.editorLayout.setObjectName("editorLayout") self.verticalLayout_2.addLayout(self.editorLayout) self.descriptionTextEdit = QtGui.QTextEdit(self.groupBox) self.descriptionTextEdit.setObjectName("descriptionTextEdit") self.verticalLayout_2.addWidget(self.descriptionTextEdit) self.gridLayout.addWidget(self.groupBox, 9, 0, 1, 3) self.label_3 = QtGui.QLabel(self.taskInfoGroupBox) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.label = QtGui.QLabel(self.taskInfoGroupBox) self.label.setMaximumSize(QtCore.QSize(100, 16777215)) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.assignedToComboBox = QtGui.QComboBox(self.taskInfoGroupBox) self.assignedToComboBox.setEditable(True) self.assignedToComboBox.setInsertPolicy(QtGui.QComboBox.NoInsert) self.assignedToComboBox.setObjectName("assignedToComboBox") self.gridLayout.addWidget(self.assignedToComboBox, 0, 1, 1, 2) self.label_5 = QtGui.QLabel(self.taskInfoGroupBox) self.label_5.setObjectName("label_5") self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1) self.priorityComboBox = QtGui.QComboBox(self.taskInfoGroupBox) self.priorityComboBox.setEditable(True) self.priorityComboBox.setInsertPolicy(QtGui.QComboBox.NoInsert) self.priorityComboBox.setObjectName("priorityComboBox") self.gridLayout.addWidget(self.priorityComboBox, 2, 1, 1, 2) self.label_2 = QtGui.QLabel(self.taskInfoGroupBox) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.statusComboBox = QtGui.QComboBox(self.taskInfoGroupBox) self.statusComboBox.setEditable(True) self.statusComboBox.setInsertPolicy(QtGui.QComboBox.NoInsert) self.statusComboBox.setObjectName("statusComboBox") self.gridLayout.addWidget(self.statusComboBox, 3, 1, 1, 2) self.startedDateTimeEdit = QtGui.QDateTimeEdit(self.taskInfoGroupBox) self.startedDateTimeEdit.setCalendarPopup(True) self.startedDateTimeEdit.setObjectName("startedDateTimeEdit") self.gridLayout.addWidget(self.startedDateTimeEdit, 4, 1, 1, 2) self.superviserComboBox = QtGui.QComboBox(self.taskInfoGroupBox) self.superviserComboBox.setEditable(True) self.superviserComboBox.setInsertPolicy(QtGui.QComboBox.NoInsert) self.superviserComboBox.setObjectName("superviserComboBox") self.gridLayout.addWidget(self.superviserComboBox, 1, 1, 1, 2) self.endDateTimeEdit = QtGui.QDateTimeEdit(self.taskInfoGroupBox) self.endDateTimeEdit.setCalendarPopup(True) self.endDateTimeEdit.setObjectName("endDateTimeEdit") self.gridLayout.addWidget(self.endDateTimeEdit, 5, 1, 1, 2) self.label_6 = QtGui.QLabel(self.taskInfoGroupBox) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 5, 0, 1, 1) self.label_4 = QtGui.QLabel(self.taskInfoGroupBox) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1) self.saveChangesButton = QtGui.QPushButton(self.taskInfoGroupBox) self.saveChangesButton.setMaximumSize(QtCore.QSize(200, 16777215)) self.saveChangesButton.setObjectName("saveChangesButton") self.gridLayout.addWidget(self.saveChangesButton, 10, 2, 1, 1) self.label_7 = QtGui.QLabel(self.taskInfoGroupBox) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 6, 0, 1, 1) self.showNotesButton = QtGui.QToolButton(self.taskInfoGroupBox) self.showNotesButton.setToolButtonStyle( QtCore.Qt.ToolButtonTextBesideIcon) self.showNotesButton.setAutoRaise(True) self.showNotesButton.setArrowType(QtCore.Qt.RightArrow) self.showNotesButton.setObjectName("showNotesButton") self.gridLayout.addWidget(self.showNotesButton, 10, 0, 1, 1) self.subsParentStatusLabel = QtGui.QLabel(self.taskInfoGroupBox) self.subsParentStatusLabel.setObjectName("subsParentStatusLabel") self.gridLayout.addWidget(self.subsParentStatusLabel, 6, 1, 1, 1) self.subsParentPushButton = QtGui.QPushButton(self.taskInfoGroupBox) self.subsParentPushButton.setObjectName("subsParentPushButton") self.gridLayout.addWidget(self.subsParentPushButton, 6, 2, 1, 1) self.subsTaskPushButton = QtGui.QPushButton(self.taskInfoGroupBox) self.subsTaskPushButton.setObjectName("subsTaskPushButton") self.gridLayout.addWidget(self.subsTaskPushButton, 7, 2, 1, 1) self.subsTaskStatusLabel = QtGui.QLabel(self.taskInfoGroupBox) self.subsTaskStatusLabel.setObjectName("subsTaskStatusLabel") self.gridLayout.addWidget(self.subsTaskStatusLabel, 7, 1, 1, 1) self.subsUsersPushButton = QtGui.QPushButton(self.taskInfoGroupBox) self.subsUsersPushButton.setObjectName("subsUsersPushButton") self.gridLayout.addWidget(self.subsUsersPushButton, 8, 2, 1, 1) self.verticalLayout.addWidget(self.splitter) self.skeyLineEdit = QtGui.QLineEdit(tasks) self.skeyLineEdit.setObjectName("skeyLineEdit") self.verticalLayout.addWidget(self.skeyLineEdit) self.retranslateUi(tasks) QtCore.QMetaObject.connectSlotsByName(tasks) tasks.setTabOrder(self.assignedToComboBox, self.superviserComboBox) tasks.setTabOrder(self.superviserComboBox, self.priorityComboBox) tasks.setTabOrder(self.priorityComboBox, self.statusComboBox) tasks.setTabOrder(self.statusComboBox, self.startedDateTimeEdit) tasks.setTabOrder(self.startedDateTimeEdit, self.endDateTimeEdit) tasks.setTabOrder(self.endDateTimeEdit, self.descriptionTextEdit) tasks.setTabOrder(self.descriptionTextEdit, self.saveChangesButton) tasks.setTabOrder(self.saveChangesButton, self.subsParentPushButton) tasks.setTabOrder(self.subsParentPushButton, self.showNotesButton) tasks.setTabOrder(self.showNotesButton, self.skeyLineEdit)
def setupUi(self, checkinOutPageWidget): checkinOutPageWidget.setObjectName("checkinOutPageWidget") checkinOutPageWidget.resize(772, 540) self.checkinOutPageWidgetLayout = QtGui.QGridLayout(checkinOutPageWidget) self.checkinOutPageWidgetLayout.setContentsMargins(0, 0, 0, 9) self.checkinOutPageWidgetLayout.setVerticalSpacing(0) self.checkinOutPageWidgetLayout.setObjectName("checkinOutPageWidgetLayout") self.processTabsFilterGroupBox = QtGui.QGroupBox(checkinOutPageWidget) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.processTabsFilterGroupBox.setFont(font) self.processTabsFilterGroupBox.setFlat(True) self.processTabsFilterGroupBox.setCheckable(True) self.processTabsFilterGroupBox.setChecked(False) self.processTabsFilterGroupBox.setObjectName("processTabsFilterGroupBox") self.processTabsFilterLayout = QtGui.QVBoxLayout(self.processTabsFilterGroupBox) self.processTabsFilterLayout.setContentsMargins(10, 24, 9, 0) self.processTabsFilterLayout.setObjectName("processTabsFilterLayout") self.processTreeWidget = QtGui.QTreeWidget(self.processTabsFilterGroupBox) self.processTreeWidget.setStyleSheet("QTreeView::item {\n" " padding: 2px;\n" "}") self.processTreeWidget.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.processTreeWidget.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel) self.processTreeWidget.setObjectName("processTreeWidget") self.processTreeWidget.header().setDefaultSectionSize(240) self.processTreeWidget.header().setMinimumSectionSize(170) self.processTabsFilterLayout.addWidget(self.processTreeWidget) self.checkinOutPageWidgetLayout.addWidget(self.processTabsFilterGroupBox, 1, 1, 1, 1) self.controlsTabsFilterGroupBox = QtGui.QGroupBox(checkinOutPageWidget) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.controlsTabsFilterGroupBox.setFont(font) self.controlsTabsFilterGroupBox.setFlat(True) self.controlsTabsFilterGroupBox.setCheckable(True) self.controlsTabsFilterGroupBox.setChecked(False) self.controlsTabsFilterGroupBox.setObjectName("controlsTabsFilterGroupBox") self.controlsTabsFilterLayout = QtGui.QGridLayout(self.controlsTabsFilterGroupBox) self.controlsTabsFilterLayout.setContentsMargins(10, 24, 9, 0) self.controlsTabsFilterLayout.setObjectName("controlsTabsFilterLayout") self.controlsTabsTreeWidget = QtGui.QTreeWidget(self.controlsTabsFilterGroupBox) self.controlsTabsTreeWidget.setMaximumSize(QtCore.QSize(16777215, 160)) self.controlsTabsTreeWidget.setStyleSheet("QTreeView::item {\n" " padding: 2px;\n" "}") self.controlsTabsTreeWidget.setTabKeyNavigation(True) self.controlsTabsTreeWidget.setAlternatingRowColors(True) self.controlsTabsTreeWidget.setRootIsDecorated(False) self.controlsTabsTreeWidget.setUniformRowHeights(True) self.controlsTabsTreeWidget.setItemsExpandable(False) self.controlsTabsTreeWidget.setAnimated(True) self.controlsTabsTreeWidget.setExpandsOnDoubleClick(False) self.controlsTabsTreeWidget.setObjectName("controlsTabsTreeWidget") self.controlsTabsTreeWidget.header().setDefaultSectionSize(240) self.controlsTabsTreeWidget.header().setMinimumSectionSize(170) self.controlsTabsFilterLayout.addWidget(self.controlsTabsTreeWidget, 0, 0, 3, 4) self.controlsTabsMoveUpToolButton = QtGui.QToolButton(self.controlsTabsFilterGroupBox) self.controlsTabsMoveUpToolButton.setArrowType(QtCore.Qt.UpArrow) self.controlsTabsMoveUpToolButton.setObjectName("controlsTabsMoveUpToolButton") self.controlsTabsFilterLayout.addWidget(self.controlsTabsMoveUpToolButton, 0, 4, 1, 1) self.applyToAllProjectsRadioButton = QtGui.QRadioButton(self.controlsTabsFilterGroupBox) self.applyToAllProjectsRadioButton.setChecked(True) self.applyToAllProjectsRadioButton.setObjectName("applyToAllProjectsRadioButton") self.controlsTabsFilterLayout.addWidget(self.applyToAllProjectsRadioButton, 3, 0, 1, 1) self.controlsTabsMoveDownToolButton = QtGui.QToolButton(self.controlsTabsFilterGroupBox) self.controlsTabsMoveDownToolButton.setArrowType(QtCore.Qt.DownArrow) self.controlsTabsMoveDownToolButton.setObjectName("controlsTabsMoveDownToolButton") self.controlsTabsFilterLayout.addWidget(self.controlsTabsMoveDownToolButton, 1, 4, 1, 1) self.applyToAllProjectsPushButton = QtGui.QPushButton(self.controlsTabsFilterGroupBox) self.applyToAllProjectsPushButton.setEnabled(False) self.applyToAllProjectsPushButton.setObjectName("applyToAllProjectsPushButton") self.controlsTabsFilterLayout.addWidget(self.applyToAllProjectsPushButton, 3, 2, 1, 1) self.applyPerProjectsRadioButton = QtGui.QRadioButton(self.controlsTabsFilterGroupBox) self.applyPerProjectsRadioButton.setObjectName("applyPerProjectsRadioButton") self.controlsTabsFilterLayout.addWidget(self.applyPerProjectsRadioButton, 3, 1, 1, 1) self.checkinOutPageWidgetLayout.addWidget(self.controlsTabsFilterGroupBox, 0, 1, 1, 1) self.projectsDisplayTreeWidget = QtGui.QTreeWidget(checkinOutPageWidget) self.projectsDisplayTreeWidget.setMaximumSize(QtCore.QSize(300, 16777215)) self.projectsDisplayTreeWidget.setStyleSheet("QTreeView::item {\n" " padding: 2px;\n" "}") self.projectsDisplayTreeWidget.setVerticalScrollMode(QtGui.QAbstractItemView.ScrollPerPixel) self.projectsDisplayTreeWidget.setRootIsDecorated(False) self.projectsDisplayTreeWidget.setObjectName("projectsDisplayTreeWidget") self.projectsDisplayTreeWidget.header().setDefaultSectionSize(87) self.checkinOutPageWidgetLayout.addWidget(self.projectsDisplayTreeWidget, 0, 0, 3, 1) self.sObjectTabOptionsGroupBox = QtGui.QGroupBox(checkinOutPageWidget) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.sObjectTabOptionsGroupBox.setFont(font) self.sObjectTabOptionsGroupBox.setFlat(True) self.sObjectTabOptionsGroupBox.setObjectName("sObjectTabOptionsGroupBox") self.sObjectTabOptionsGridLayout = QtGui.QGridLayout(self.sObjectTabOptionsGroupBox) self.sObjectTabOptionsGridLayout.setContentsMargins(10, 24, -1, -1) self.sObjectTabOptionsGridLayout.setObjectName("sObjectTabOptionsGridLayout") self.lastViewOnAllTabscheckBox = QtGui.QCheckBox(self.sObjectTabOptionsGroupBox) self.lastViewOnAllTabscheckBox.setObjectName("lastViewOnAllTabscheckBox") self.sObjectTabOptionsGridLayout.addWidget(self.lastViewOnAllTabscheckBox, 0, 0, 1, 1) self.checkinOutPageWidgetLayout.addWidget(self.sObjectTabOptionsGroupBox, 3, 0, 1, 2) self.checkinOutPageWidgetLayout.setColumnStretch(0, 1) self.retranslateUi(checkinOutPageWidget) QtCore.QObject.connect(self.applyPerProjectsRadioButton, QtCore.SIGNAL("toggled(bool)"), self.applyToAllProjectsPushButton.setEnabled) QtCore.QMetaObject.connectSlotsByName(checkinOutPageWidget)
def setupUi(self, myNotifications): myNotifications.setObjectName("myNotifications") myNotifications.resize(561, 373) self.gridLayout = QtGui.QGridLayout(myNotifications) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.splitter = QtGui.QSplitter(myNotifications) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.verticalLayoutWidget = QtGui.QWidget(self.splitter) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout = QtGui.QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.treeWidget = QtGui.QTreeWidget(self.verticalLayoutWidget) self.treeWidget.setObjectName("treeWidget") item_0 = QtGui.QTreeWidgetItem(self.treeWidget) item_0 = QtGui.QTreeWidgetItem(self.treeWidget) item_1 = QtGui.QTreeWidgetItem(item_0) item_2 = QtGui.QTreeWidgetItem(item_1) item_1 = QtGui.QTreeWidgetItem(item_0) item_2 = QtGui.QTreeWidgetItem(item_1) item_2 = QtGui.QTreeWidgetItem(item_1) item_0 = QtGui.QTreeWidgetItem(self.treeWidget) self.verticalLayout.addWidget(self.treeWidget) self.comboBox = QtGui.QComboBox(self.verticalLayoutWidget) self.comboBox.setEditable(True) self.comboBox.setInsertPolicy(QtGui.QComboBox.NoInsert) self.comboBox.setObjectName("comboBox") self.comboBox.addItem("") self.comboBox.addItem("") self.verticalLayout.addWidget(self.comboBox) self.verticalLayoutWidget_2 = QtGui.QWidget(self.splitter) self.verticalLayoutWidget_2.setObjectName("verticalLayoutWidget_2") self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_2) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.tabWidget = QtGui.QTabWidget(self.verticalLayoutWidget_2) self.tabWidget.setTabPosition(QtGui.QTabWidget.West) self.tabWidget.setObjectName("tabWidget") self.tab = QtGui.QWidget() self.tab.setObjectName("tab") self.horizontalLayout_3 = QtGui.QHBoxLayout(self.tab) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.treeWidget_5 = QtGui.QTreeWidget(self.tab) self.treeWidget_5.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.treeWidget_5.setObjectName("treeWidget_5") item_0 = QtGui.QTreeWidgetItem(self.treeWidget_5) self.treeWidget_5.header().setDefaultSectionSize(80) self.horizontalLayout_3.addWidget(self.treeWidget_5) self.tabWidget.addTab(self.tab, "") self.tab_4 = QtGui.QWidget() self.tab_4.setObjectName("tab_4") self.horizontalLayout_4 = QtGui.QHBoxLayout(self.tab_4) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.treeWidget_6 = QtGui.QTreeWidget(self.tab_4) self.treeWidget_6.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.treeWidget_6.setObjectName("treeWidget_6") item_0 = QtGui.QTreeWidgetItem(self.treeWidget_6) self.treeWidget_6.header().setDefaultSectionSize(80) self.horizontalLayout_4.addWidget(self.treeWidget_6) self.tabWidget.addTab(self.tab_4, "") self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName("tab_2") self.horizontalLayout_2 = QtGui.QHBoxLayout(self.tab_2) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.treeWidget_4 = QtGui.QTreeWidget(self.tab_2) self.treeWidget_4.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.treeWidget_4.setObjectName("treeWidget_4") item_0 = QtGui.QTreeWidgetItem(self.treeWidget_4) self.treeWidget_4.header().setDefaultSectionSize(80) self.horizontalLayout_2.addWidget(self.treeWidget_4) self.tabWidget.addTab(self.tab_2, "") self.tab_3 = QtGui.QWidget() self.tab_3.setObjectName("tab_3") self.horizontalLayout = QtGui.QHBoxLayout(self.tab_3) self.horizontalLayout.setObjectName("horizontalLayout") self.treeWidget_3 = QtGui.QTreeWidget(self.tab_3) self.treeWidget_3.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.treeWidget_3.setObjectName("treeWidget_3") item_0 = QtGui.QTreeWidgetItem(self.treeWidget_3) self.treeWidget_3.header().setDefaultSectionSize(80) self.horizontalLayout.addWidget(self.treeWidget_3) self.tabWidget.addTab(self.tab_3, "") self.verticalLayout_2.addWidget(self.tabWidget) self.gridLayout.addWidget(self.splitter, 0, 0, 1, 1) self.retranslateUi(myNotifications) self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(myNotifications)
def create_ui_raw(self): self.verticalLayout = QtGui.QVBoxLayout(self) self.verticalLayout.setSpacing(0) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.splitter = QtGui.QSplitter(self) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.assetsTreeWidget = QtGui.QTreeWidget(self.splitter) self.assetsTreeWidget.setMinimumSize(QtCore.QSize(120, 0)) self.assetsTreeWidget.setMaximumSize(QtCore.QSize(200, 16777215)) self.assetsTreeWidget.setBaseSize(QtCore.QSize(60, 0)) self.assetsTreeWidget.setObjectName("assetsTreeWidget") self.assetsTreeWidget.header().setVisible(False) self.verticalLayoutWidget_3 = QtGui.QWidget(self.splitter) self.verticalLayoutWidget_3.setObjectName("verticalLayoutWidget_3") self.verticalLayout_2 = QtGui.QVBoxLayout(self.verticalLayoutWidget_3) self.verticalLayout_2.setSpacing(0) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.searchLineEdit = QtGui.QLineEdit(self.verticalLayoutWidget_3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.searchLineEdit.sizePolicy().hasHeightForWidth()) self.searchLineEdit.setSizePolicy(sizePolicy) self.searchLineEdit.setMaximumSize(QtCore.QSize(16777215, 20)) font = Qt4Gui.QFont() font.setPointSize(9) self.searchLineEdit.setFont(font) self.searchLineEdit.setStyleSheet( "QLineEdit {\n" " color: rgb(192, 192, 192);\n" " border: 2px solid darkgray;\n" " border-radius: 10px;\n" " show-decoration-selected: 1;\n" " padding: 0px 8px;\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(128, 128, 128, 255), stop:1 rgba(64, 64,64, 255));\n" " background-position: bottom left;\n" " background-image: url(\":/ui_check/gliph/search_16.png\");\n" " background-repeat: fixed;\n" " selection-background-color: darkgray;\n" " padding-left: 15px;\n" "}\n" "QLineEdit:hover{\n" " color: white;\n" " background-image: url(\":/ui_check/gliph/searchHover_16.png\");\n" "}") self.searchLineEdit.setFrame(False) self.searchLineEdit.setObjectName("searchLineEdit") self.verticalLayout_2.addWidget(self.searchLineEdit) self.searchOptionsLayout = QtGui.QVBoxLayout() self.searchOptionsLayout.setSpacing(0) self.searchOptionsLayout.setObjectName("searchOptionsLayout") self.verticalLayout_2.addLayout(self.searchOptionsLayout) self.sobjectScrollLayout = QtGui.QVBoxLayout() self.sobjectScrollLayout.setSpacing(0) self.sobjectScrollLayout.setObjectName("sobjectScrollLayout") self.verticalLayout_2.addLayout(self.sobjectScrollLayout) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setSpacing(6) self.horizontalLayout.setObjectName("horizontalLayout") self.countLabel = QtGui.QLabel(self.verticalLayoutWidget_3) self.countLabel.setObjectName("countLabel") self.horizontalLayout.addWidget(self.countLabel) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.label_2 = QtGui.QLabel(self.verticalLayoutWidget_3) self.label_2.setObjectName("label_2") self.horizontalLayout.addWidget(self.label_2) self.limitSpinBox = QtGui.QSpinBox(self.verticalLayoutWidget_3) self.limitSpinBox.setMinimum(5) self.limitSpinBox.setMaximum(500) self.limitSpinBox.setSingleStep(5) self.limitSpinBox.setProperty("value", 20) self.limitSpinBox.setObjectName("limitSpinBox") self.horizontalLayout.addWidget(self.limitSpinBox) self.label = QtGui.QLabel(self.verticalLayoutWidget_3) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.zoomSpinBox = QtGui.QSpinBox(self.verticalLayoutWidget_3) self.zoomSpinBox.setMinimum(25) self.zoomSpinBox.setMaximum(400) self.zoomSpinBox.setSingleStep(25) self.zoomSpinBox.setProperty("value", 100) self.zoomSpinBox.setObjectName("zoomSpinBox") self.horizontalLayout.addWidget(self.zoomSpinBox) self.verticalLayout_2.addLayout(self.horizontalLayout) self.verticalLayout_2.setStretch(2, 1) self.verticalLayout.addWidget(self.splitter) self.assetsTreeWidget.headerItem().setText(0, u"all") self.countLabel.setText(u"(10/150)") self.label_2.setText(u"Load Limit:") self.label.setText(u"Zoom:") self.zoomSpinBox.setSuffix(u"%")
def create_ui(self): self.setWindowTitle('Script editor') self.setObjectName("scriptEditForm") self.resize(720, 550) self.setSizeGripEnabled(True) self.setWindowFlags(QtCore.Qt.Window) font = Qt4Gui.QFont() font.setPointSize(10) font.setFamily('Courier') self.main_grid_layout = QtGui.QGridLayout(self) self.setLayout(self.main_grid_layout) self.main_grid_layout.setObjectName("main_grid_layout") self.main_splitter = QtGui.QSplitter(self) self.main_splitter.setOrientation(QtCore.Qt.Horizontal) self.main_splitter.setObjectName("main_splitter") self.verticalLayoutWidget = QtGui.QWidget(self.main_splitter) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.script_editor_vertical_layout = QtGui.QVBoxLayout( self.verticalLayoutWidget) self.script_editor_vertical_layout.setContentsMargins(0, 0, 0, 0) self.script_editor_vertical_layout.setObjectName( "script_editor_vertical_layout") self.script_path_horizontal_layout = QtGui.QHBoxLayout() self.script_path_horizontal_layout.setObjectName( "script_path_horizontal_layout") self.path_label = QtGui.QLabel(self.verticalLayoutWidget) self.path_label.setObjectName("path_label") self.path_label.setText('Script path: ') self.first_path_part_line_edit = QtGui.QLineEdit( self.verticalLayoutWidget) self.first_path_part_line_edit.setObjectName( "first_path_part_line_edit") self.slash_label = QtGui.QLabel(self.verticalLayoutWidget) self.slash_label.setObjectName("slash_label") self.slash_label.setText(' / ') self.second_path_part_line_edit = QtGui.QLineEdit( self.verticalLayoutWidget) self.second_path_part_line_edit.setObjectName( "second_path_part_line_edit") self.script_language_combo_box = QtGui.QComboBox( self.verticalLayoutWidget) for script in self.sripts_languages: self.script_language_combo_box.addItem(script[0]) self.create_left_collapsable_toolbar() self.create_right_collapsable_toolbar() self.script_path_horizontal_layout.addWidget( self.left_collapsable_toolbar) self.script_path_horizontal_layout.setStretch(0, 0) self.script_path_horizontal_layout.addWidget(self.path_label) self.script_path_horizontal_layout.setStretch(1, 0) self.script_path_horizontal_layout.addWidget( self.first_path_part_line_edit) self.script_path_horizontal_layout.setStretch(2, 1) self.script_path_horizontal_layout.addWidget(self.slash_label) self.script_path_horizontal_layout.setStretch(3, 0) self.script_path_horizontal_layout.addWidget( self.second_path_part_line_edit) self.script_path_horizontal_layout.setStretch(4, 1) self.script_path_horizontal_layout.addWidget( self.script_language_combo_box) self.script_path_horizontal_layout.setStretch(5, 0) self.script_path_horizontal_layout.addWidget( self.right_collapsable_toolbar) self.script_path_horizontal_layout.setStretch(6, 0) self.script_editor_vertical_layout.addLayout( self.script_path_horizontal_layout) self.splitter = QtGui.QSplitter(self.verticalLayoutWidget) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName("splitter") self.output = output_window.OutputWindow(self) self.output.setFont(font) self.splitter.addWidget(self.output) self.console = editor_window.EditorWindow(self) self.console.setFont(font) self.splitter.addWidget(self.console) self.script_editor_vertical_layout.addWidget(self.splitter) self.down_buttons_horizontal_layout = QtGui.QHBoxLayout() self.down_buttons_horizontal_layout.setObjectName( "down_buttons_horizontal_layout") self.run_script_button = QtGui.QPushButton(self.verticalLayoutWidget) self.run_script_button.setObjectName("run_script_button") self.run_script_button.setText('Run Script') self.run_script_button.setFlat(True) self.run_script_button.setIcon(gf.get_icon('play', icons_set='mdi')) self.execute_label = QtGui.QLabel(self.verticalLayoutWidget) self.execute_label.setObjectName("execute_label") self.execute_label.setText('Execute: ') self.run_type_combo_box = QtGui.QComboBox(self.verticalLayoutWidget) self.run_type_combo_box.setObjectName("run_type_combo_box") self.run_type_combo_box.addItem('Locally') self.run_type_combo_box.addItem('Server-Side') spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.down_buttons_horizontal_layout.addWidget(self.run_script_button) self.down_buttons_horizontal_layout.addItem(spacerItem) self.down_buttons_horizontal_layout.addWidget(self.execute_label) self.down_buttons_horizontal_layout.addWidget(self.run_type_combo_box) self.script_editor_vertical_layout.addLayout( self.down_buttons_horizontal_layout) self.scripts_tree_widget = QtGui.QTreeWidget(self.main_splitter) self.scripts_tree_widget.setAlternatingRowColors(True) self.scripts_tree_widget.setAllColumnsShowFocus(True) self.scripts_tree_widget.setVerticalScrollMode( QtGui.QAbstractItemView.ScrollPerPixel) self.scripts_tree_widget.setStyleSheet(gf.get_qtreeview_style()) self.scripts_tree_widget.setSelectionMode( QtGui.QAbstractItemView.SingleSelection) self.scripts_tree_widget.setEditTriggers( QtGui.QAbstractItemView.NoEditTriggers) self.scripts_tree_widget.setRootIsDecorated(True) self.scripts_tree_widget.setHeaderHidden(True) self.scripts_tree_widget.setObjectName('scripts_tree_widget') self.scripts_tree_widget.setColumnCount(2) self.main_grid_layout.addWidget(self.main_splitter) self.stream = stream.Stream.get_stream() if self.stream is None: self.stream = stream.Stream() self.console_obj = console.Console() if env_inst.get_current_project(): self.fill_sctipts_tree_widget() self.create_scripts_tree_context_menu()
def create_trees(self): self.from_tree = QtGui.QTreeWidget(self.LeftSplitter) self.from_tree.setHeaderHidden(True) self.to_tree = QtGui.QTreeWidget(self.rightSplitter) self.to_tree.setHeaderHidden(True)