def create_control_buttons(self): self.addNewButton = QtGui.QPushButton('Create') self.addNewButton.setMaximumWidth(80) self.saveButton = QtGui.QPushButton('Save') self.saveButton.setMaximumWidth(80) self.cancelButton = QtGui.QPushButton('Cancel') self.cancelButton.setMaximumWidth(80) self.buildDirectoryButton = QtGui.QPushButton( 'Build Full Directory Structure') self.buildDirectoryButton.setIcon(gf.get_icon('database')) self.build_directory_checkbox = QtGui.QCheckBox( 'Build Full Directory Structure') self.build_directory_checkbox.setChecked(False) self.build_directory_checkbox.setIcon(gf.get_icon('database')) self.repositoryComboBox = QtGui.QComboBox() base_dirs = env_tactic.get_all_base_dirs() # Default repo states from lib.configuration import cfg_controls current_repo = gf.get_value_from_config(cfg_controls.get_checkin(), 'repositoryComboBox') for key, val in base_dirs: if val['value'][4]: self.repositoryComboBox.addItem(val['value'][1]) self.repositoryComboBox.setItemData( self.repositoryComboBox.count() - 1, val) if current_repo: self.repositoryComboBox.setCurrentIndex(current_repo) if self.tactic_widget.view == 'insert': self.main_layout.addWidget(self.build_directory_checkbox, 1, 0, 1, 1) self.main_layout.addWidget(self.repositoryComboBox, 1, 1, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.main_layout.addItem(spacerItem, 1, 2, 1, 1) self.main_layout.addWidget(self.addNewButton, 1, 3, 1, 1) self.main_layout.addWidget(self.cancelButton, 1, 4, 1, 1) self.main_layout.setColumnStretch(1, 0) else: self.main_layout.addWidget(self.buildDirectoryButton, 1, 0, 1, 1) self.main_layout.addWidget(self.repositoryComboBox, 1, 1, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.main_layout.addItem(spacerItem, 1, 2, 1, 1) self.main_layout.addWidget(self.saveButton, 1, 3, 1, 1) self.main_layout.addWidget(self.cancelButton, 1, 4, 1, 1) self.main_layout.setColumnStretch(1, 0) if self.item: if self.item.type != 'sobject': self.buildDirectoryButton.setHidden(True) self.repositoryComboBox.setHidden(True)
def create_on_scene_layout(self): self.previewGraphicsView_layout = QtGui.QGridLayout(self.previewGraphicsView) self.previewGraphicsView_layout.setContentsMargins(0, 0, 0, 0) self.previewGraphicsView_layout.setSpacing(0) self.back_button = QtGui.QPushButton('') self.back_button_opacity_effect = QtGui.QGraphicsOpacityEffect() self.back_button_opacity_effect.setOpacity(0) self.back_button.setGraphicsEffect(self.back_button_opacity_effect) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) self.back_button.setSizePolicy(sizePolicy) self.back_button.setIcon(gf.get_icon('chevron-left')) self.back_button.setStyleSheet('QPushButton {background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 64), stop:1 rgba(0, 0, 0, 0)); border-style: none; border-width: 0px;}') self.back_button_hover_animation = QtCore.QPropertyAnimation(self.back_button_opacity_effect, "opacity", self) self.back_button_hover_animation.setDuration(200) self.back_button_hover_animation.setEasingCurve(QtCore.QEasingCurve.InSine) self.back_button_hover_animation.setStartValue(0) self.back_button_hover_animation.setEndValue(1) self.back_button_leave_animation = QtCore.QPropertyAnimation(self.back_button_opacity_effect, "opacity", self) self.back_button_leave_animation.setDuration(200) self.back_button_leave_animation.setEasingCurve(QtCore.QEasingCurve.OutSine) self.back_button_leave_animation.setEndValue(0) # forward button self.forward_button = QtGui.QPushButton('') self.forward_button_opacity_effect = QtGui.QGraphicsOpacityEffect(self) self.forward_button_opacity_effect.setOpacity(0) self.forward_button.setGraphicsEffect(self.forward_button_opacity_effect) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) self.forward_button.setSizePolicy(sizePolicy) self.forward_button.setIcon(gf.get_icon('chevron-right')) self.forward_button.setStyleSheet('QPushButton {background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(0, 0, 0, 0), stop:1 rgba(0, 0, 0, 64)); border-style: none; border-width: 0px;}') self.forward_button_hover_animation = QtCore.QPropertyAnimation(self.forward_button_opacity_effect, "opacity", self) self.forward_button_hover_animation.setDuration(200) self.forward_button_hover_animation.setEasingCurve(QtCore.QEasingCurve.InSine) self.forward_button_hover_animation.setStartValue(0) self.forward_button_hover_animation.setEndValue(1) self.forward_button_leave_animation = QtCore.QPropertyAnimation(self.forward_button_opacity_effect, "opacity", self) self.forward_button_leave_animation.setDuration(200) self.forward_button_leave_animation.setEasingCurve(QtCore.QEasingCurve.OutSine) self.forward_button_leave_animation.setEndValue(0) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.previewGraphicsView_layout.addWidget(self.forward_button, 0, 2, 1, 1) self.previewGraphicsView_layout.addWidget(self.back_button, 0, 0, 1, 1) self.previewGraphicsView_layout.addItem(spacerItem, 0, 1, 1, 1) self.previewGraphicsView_layout.setColumnStretch(0, 1) self.previewGraphicsView_layout.setColumnStretch(1, 1) self.previewGraphicsView_layout.setColumnStretch(2, 1)
def setupUi(self, notes): notes.setObjectName("notes") notes.resize(311, 238) self.gridLayout_2 = QtGui.QGridLayout(notes) self.gridLayout_2.setContentsMargins(9, 9, 9, 9) self.gridLayout_2.setObjectName("gridLayout_2") self.splitter = QtGui.QSplitter(notes) 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, 291, 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, 3, 1, 1) self.replyTextEdit = QtGui.QTextEdit(self.gridLayoutWidget) self.replyTextEdit.setStyleSheet("") self.replyTextEdit.setObjectName("replyTextEdit") self.gridLayout.addWidget(self.replyTextEdit, 1, 0, 1, 4) self.useFilterCheckBox = QtGui.QCheckBox(self.gridLayoutWidget) self.useFilterCheckBox.setObjectName("useFilterCheckBox") self.gridLayout.addWidget(self.useFilterCheckBox, 3, 0, 1, 1) self.filterUsersPushButton = QtGui.QPushButton(self.gridLayoutWidget) self.filterUsersPushButton.setMinimumSize(QtCore.QSize(80, 0)) self.filterUsersPushButton.setObjectName("filterUsersPushButton") self.gridLayout.addWidget(self.filterUsersPushButton, 3, 1, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 3, 2, 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, 4) self.gridLayout_2.addWidget(self.splitter, 2, 0, 1, 3) self.retranslateUi(notes) QtCore.QMetaObject.connectSlotsByName(notes)
def setupUi(self, globalPageWidget): globalPageWidget.setObjectName("globalPageWidget") self.verticalLayout = QtGui.QVBoxLayout(globalPageWidget) self.verticalLayout.setObjectName("verticalLayout") self.cacheProcessTabsCheckBox = QtGui.QCheckBox(globalPageWidget) self.cacheProcessTabsCheckBox.setObjectName("cacheProcessTabsCheckBox") self.verticalLayout.addWidget(self.cacheProcessTabsCheckBox) self.flushTabsCachePushButton = QtGui.QPushButton(globalPageWidget) self.flushTabsCachePushButton.setObjectName("flushTabsCachePushButton") self.verticalLayout.addWidget(self.flushTabsCachePushButton) self.configPathGroupBox = QtGui.QGroupBox(globalPageWidget) self.configPathGroupBox.setFlat(True) self.configPathGroupBox.setObjectName("configPathGroupBox") self.horizontalLayout = QtGui.QHBoxLayout(self.configPathGroupBox) self.horizontalLayout.setContentsMargins(0, -1, 0, -1) self.horizontalLayout.setObjectName("horizontalLayout") self.configPathLineEdit = QtGui.QLineEdit(self.configPathGroupBox) self.configPathLineEdit.setObjectName("configPathLineEdit") self.horizontalLayout.addWidget(self.configPathLineEdit) self.changeConfigPathToolButton = QtGui.QToolButton( self.configPathGroupBox) self.changeConfigPathToolButton.setObjectName( "changeConfigPathToolButton") self.horizontalLayout.addWidget(self.changeConfigPathToolButton) self.verticalLayout.addWidget(self.configPathGroupBox) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.retranslateUi(globalPageWidget) QtCore.QMetaObject.connectSlotsByName(globalPageWidget)
def setupUi(self, checkinOutOptions): checkinOutOptions.setObjectName("checkinOutOptions") self.gridLayout = QtGui.QGridLayout(checkinOutOptions) self.gridLayout.setObjectName("gridLayout") self.settingsPerTabCheckBox = QtGui.QCheckBox(checkinOutOptions) self.settingsPerTabCheckBox.setObjectName("settingsPerTabCheckBox") self.gridLayout.addWidget(self.settingsPerTabCheckBox, 1, 0, 1, 1) self.settingsVerticalLayout = QtGui.QVBoxLayout() self.settingsVerticalLayout.setSpacing(0) self.settingsVerticalLayout.setObjectName("settingsVerticalLayout") self.gridLayout.addLayout(self.settingsVerticalLayout, 0, 0, 1, 4) self.applyToAllPushButton = QtGui.QPushButton(checkinOutOptions) self.applyToAllPushButton.setEnabled(False) self.applyToAllPushButton.setMinimumSize(QtCore.QSize(120, 0)) self.applyToAllPushButton.setObjectName("applyToAllPushButton") self.gridLayout.addWidget(self.applyToAllPushButton, 1, 1, 1, 1) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 1, 3, 1, 1) self.gridLayout.setRowStretch(0, 1) self.retranslateUi(checkinOutOptions) QtCore.QObject.connect(self.settingsPerTabCheckBox, QtCore.SIGNAL("toggled(bool)"), self.applyToAllPushButton.setEnabled) QtCore.QMetaObject.connectSlotsByName(checkinOutOptions)
def setupUi(self, referenceOptions): referenceOptions.setObjectName("referenceOptions") referenceOptions.setWindowModality(QtCore.Qt.ApplicationModal) referenceOptions.resize(400, 100) referenceOptions.setMinimumSize(QtCore.QSize(400, 0)) referenceOptions.setMaximumSize(QtCore.QSize(16777215, 100)) self.gridLayout = QtGui.QGridLayout(referenceOptions) self.gridLayout.setObjectName("gridLayout") spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 1, 0, 1, 1) self.optionsReferencePushButton = QtGui.QPushButton(referenceOptions) self.optionsReferencePushButton.setObjectName( "optionsReferencePushButton") self.gridLayout.addWidget(self.optionsReferencePushButton, 1, 1, 1, 1) self.referencePushButton = QtGui.QPushButton(referenceOptions) self.referencePushButton.setObjectName("referencePushButton") self.gridLayout.addWidget(self.referencePushButton, 1, 2, 1, 1) self.groupBox = QtGui.QGroupBox(referenceOptions) self.groupBox.setFlat(True) self.groupBox.setObjectName("groupBox") self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox) self.horizontalLayout.setObjectName("horizontalLayout") self.horizontalSlider = QtGui.QSlider(self.groupBox) self.horizontalSlider.setMinimum(1) self.horizontalSlider.setMaximum(100) self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal) self.horizontalSlider.setObjectName("horizontalSlider") self.horizontalLayout.addWidget(self.horizontalSlider) self.spinBox = QtGui.QSpinBox(self.groupBox) self.spinBox.setAccelerated(True) self.spinBox.setMinimum(1) self.spinBox.setMaximum(100) self.spinBox.setObjectName("spinBox") self.horizontalLayout.addWidget(self.spinBox) self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 3) self.retranslateUi(referenceOptions) QtCore.QObject.connect(self.horizontalSlider, QtCore.SIGNAL("valueChanged(int)"), self.spinBox.setValue) QtCore.QObject.connect(self.spinBox, QtCore.SIGNAL("valueChanged(int)"), self.horizontalSlider.setValue) QtCore.QMetaObject.connectSlotsByName(referenceOptions)
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 setupUi(self, createUpdateDialog): createUpdateDialog.setObjectName("createUpdateDialog") createUpdateDialog.resize(473, 396) createUpdateDialog.setSizeGripEnabled(True) createUpdateDialog.setModal(True) self.formLayout = QtGui.QFormLayout(createUpdateDialog) self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow) self.formLayout.setObjectName("formLayout") self.versionLabel = QtGui.QLabel(createUpdateDialog) self.versionLabel.setObjectName("versionLabel") self.formLayout.setWidget(0, QtGui.QFormLayout.LabelRole, self.versionLabel) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.majorSpinBox = QtGui.QSpinBox(createUpdateDialog) self.majorSpinBox.setObjectName("majorSpinBox") self.horizontalLayout.addWidget(self.majorSpinBox) self.minorSpinBox = QtGui.QSpinBox(createUpdateDialog) self.minorSpinBox.setObjectName("minorSpinBox") self.horizontalLayout.addWidget(self.minorSpinBox) self.buildSpinBox = QtGui.QSpinBox(createUpdateDialog) self.buildSpinBox.setObjectName("buildSpinBox") self.horizontalLayout.addWidget(self.buildSpinBox) self.revisionSpinBox = QtGui.QSpinBox(createUpdateDialog) self.revisionSpinBox.setObjectName("revisionSpinBox") self.horizontalLayout.addWidget(self.revisionSpinBox) self.formLayout.setLayout(0, QtGui.QFormLayout.FieldRole, self.horizontalLayout) self.dateLabel = QtGui.QLabel(createUpdateDialog) self.dateLabel.setObjectName("dateLabel") self.formLayout.setWidget(1, QtGui.QFormLayout.LabelRole, self.dateLabel) self.changesLabel = QtGui.QLabel(createUpdateDialog) self.changesLabel.setObjectName("changesLabel") self.formLayout.setWidget(2, QtGui.QFormLayout.LabelRole, self.changesLabel) self.changesPlainTextEdit = QtGui.QPlainTextEdit(createUpdateDialog) self.changesPlainTextEdit.setObjectName("changesPlainTextEdit") self.formLayout.setWidget(2, QtGui.QFormLayout.FieldRole, self.changesPlainTextEdit) self.miscLabel = QtGui.QLabel(createUpdateDialog) self.miscLabel.setObjectName("miscLabel") self.formLayout.setWidget(3, QtGui.QFormLayout.LabelRole, self.miscLabel) self.miscPlainTextEdit = QtGui.QPlainTextEdit(createUpdateDialog) self.miscPlainTextEdit.setObjectName("miscPlainTextEdit") self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.miscPlainTextEdit) self.createUpdatePushButton = QtGui.QPushButton(createUpdateDialog) self.createUpdatePushButton.setObjectName("createUpdatePushButton") self.formLayout.setWidget(4, QtGui.QFormLayout.SpanningRole, self.createUpdatePushButton) self.dateEdit = QtGui.QDateEdit(createUpdateDialog) self.dateEdit.setCalendarPopup(True) self.dateEdit.setObjectName("dateEdit") self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.dateEdit) self.retranslateUi(createUpdateDialog) QtCore.QMetaObject.connectSlotsByName(createUpdateDialog)
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 setupUi(self, openOptions): openOptions.setObjectName("openOptions") openOptions.setWindowModality(QtCore.Qt.ApplicationModal) openOptions.resize(400, 100) openOptions.setMinimumSize(QtCore.QSize(400, 0)) openOptions.setMaximumSize(QtCore.QSize(16777215, 200)) self.gridLayout = QtGui.QGridLayout(openOptions) self.gridLayout.setObjectName("gridLayout") spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 1, 0, 1, 1) self.optionsOpenPushButton = QtGui.QPushButton(openOptions) self.optionsOpenPushButton.setObjectName("optionsOpenPushButton") self.gridLayout.addWidget(self.optionsOpenPushButton, 1, 1, 1, 1) self.openPushButton = QtGui.QPushButton(openOptions) self.openPushButton.setObjectName("openPushButton") self.gridLayout.addWidget(self.openPushButton, 1, 2, 1, 1) self.groupBox = QtGui.QGroupBox(openOptions) self.groupBox.setFlat(True) self.groupBox.setObjectName("groupBox") self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox) self.horizontalLayout.setObjectName("horizontalLayout") self.setWorkdirCheckBox = QtGui.QCheckBox(self.groupBox) self.setWorkdirCheckBox.setChecked(True) self.setWorkdirCheckBox.setObjectName("setWorkdirCheckBox") self.horizontalLayout.addWidget(self.setWorkdirCheckBox) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.savePushButton = QtGui.QPushButton(self.groupBox) self.savePushButton.setObjectName("savePushButton") self.horizontalLayout.addWidget(self.savePushButton) self.gridLayout.addWidget(self.groupBox, 0, 0, 1, 3) self.retranslateUi(openOptions) QtCore.QMetaObject.connectSlotsByName(openOptions)
def setupUi(self, scriptEditForm): scriptEditForm.setObjectName("scriptEditForm") scriptEditForm.resize(707, 541) self.verticalLayout = QtGui.QVBoxLayout(scriptEditForm) self.verticalLayout.setObjectName("verticalLayout") self.splitter = QtGui.QSplitter(scriptEditForm) self.splitter.setOrientation(QtCore.Qt.Vertical) self.splitter.setObjectName("splitter") self.stackTraceTextEdit = QtGui.QTextEdit(self.splitter) self.stackTraceTextEdit.setObjectName("stackTraceTextEdit") self.scriptTextEdit = QtGui.QTextEdit(self.splitter) self.scriptTextEdit.setAcceptRichText(False) self.scriptTextEdit.setObjectName("scriptTextEdit") self.verticalLayout.addWidget(self.splitter) self.runScriptPushButton = QtGui.QPushButton(scriptEditForm) self.runScriptPushButton.setObjectName("runScriptPushButton") self.verticalLayout.addWidget(self.runScriptPushButton) self.retranslateUi(scriptEditForm) QtCore.QMetaObject.connectSlotsByName(scriptEditForm)
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 create_browse_button(self): self.browse_button = QtGui.QPushButton('Browse')
def setupUi(self, serverPageWidget): serverPageWidget.setObjectName("serverPageWidget") self.serverPageWidgetLayout = QtGui.QVBoxLayout(serverPageWidget) self.serverPageWidgetLayout.setSpacing(6) self.serverPageWidgetLayout.setContentsMargins(0, 0, 0, 0) self.serverPageWidgetLayout.setObjectName("serverPageWidgetLayout") self.authorizingGroupBox = QtGui.QGroupBox(serverPageWidget) self.authorizingGroupBox.setFlat(True) self.authorizingGroupBox.setObjectName("authorizingGroupBox") self.authorizationLayout = QtGui.QGridLayout(self.authorizingGroupBox) self.authorizationLayout.setContentsMargins(-1, -1, 0, -1) self.authorizationLayout.setObjectName("authorizationLayout") self.userNameLineEdit = QtGui.QLineEdit(self.authorizingGroupBox) self.userNameLineEdit.setMinimumSize(QtCore.QSize(80, 0)) self.userNameLineEdit.setObjectName("userNameLineEdit") self.authorizationLayout.addWidget(self.userNameLineEdit, 0, 1, 1, 1) self.userNameLable = QtGui.QLabel(self.authorizingGroupBox) self.userNameLable.setMinimumSize(QtCore.QSize(120, 0)) self.userNameLable.setObjectName("userNameLable") self.authorizationLayout.addWidget(self.userNameLable, 0, 0, 1, 1) self.loginStatusLable = QtGui.QLabel(self.authorizingGroupBox) self.loginStatusLable.setMinimumSize(QtCore.QSize(90, 0)) self.loginStatusLable.setObjectName("loginStatusLable") self.authorizationLayout.addWidget(self.loginStatusLable, 0, 2, 1, 1) self.connectToServerButton = QtGui.QPushButton( self.authorizingGroupBox) self.connectToServerButton.setMinimumSize(QtCore.QSize(120, 0)) self.connectToServerButton.setObjectName("connectToServerButton") self.authorizationLayout.addWidget(self.connectToServerButton, 1, 3, 1, 1) self.tacticStatusLable = QtGui.QLabel(self.authorizingGroupBox) self.tacticStatusLable.setMinimumSize(QtCore.QSize(90, 0)) self.tacticStatusLable.setObjectName("tacticStatusLable") self.authorizationLayout.addWidget(self.tacticStatusLable, 1, 2, 1, 1) self.tacticServerLable = QtGui.QLabel(self.authorizingGroupBox) self.tacticServerLable.setObjectName("tacticServerLable") self.authorizationLayout.addWidget(self.tacticServerLable, 1, 0, 1, 1) self.generateTicketButton = QtGui.QPushButton(self.authorizingGroupBox) self.generateTicketButton.setObjectName("generateTicketButton") self.authorizationLayout.addWidget(self.generateTicketButton, 0, 3, 1, 1) self.tacticServerLineEdit = QtGui.QLineEdit(self.authorizingGroupBox) self.tacticServerLineEdit.setMinimumSize(QtCore.QSize(80, 0)) self.tacticServerLineEdit.setObjectName("tacticServerLineEdit") self.authorizationLayout.addWidget(self.tacticServerLineEdit, 1, 1, 1, 1) self.savedServerPresetLabel = QtGui.QLabel(self.authorizingGroupBox) self.savedServerPresetLabel.setObjectName("savedServerPresetLabel") self.authorizationLayout.addWidget(self.savedServerPresetLabel, 3, 0, 1, 1) self.editServerPresetsPushButton = QtGui.QPushButton( self.authorizingGroupBox) self.editServerPresetsPushButton.setObjectName( "editServerPresetsPushButton") self.authorizationLayout.addWidget(self.editServerPresetsPushButton, 3, 3, 1, 1) self.serverPresetsComboBox = QtGui.QComboBox(self.authorizingGroupBox) self.serverPresetsComboBox.setObjectName("serverPresetsComboBox") self.authorizationLayout.addWidget(self.serverPresetsComboBox, 3, 1, 1, 2) self.portalSiteLabel = QtGui.QLabel(self.authorizingGroupBox) self.portalSiteLabel.setObjectName("portalSiteLabel") self.authorizationLayout.addWidget(self.portalSiteLabel, 2, 0, 1, 1) self.siteLineEdit = QtGui.QLineEdit(self.authorizingGroupBox) self.siteLineEdit.setEnabled(False) self.siteLineEdit.setObjectName("siteLineEdit") self.authorizationLayout.addWidget(self.siteLineEdit, 2, 1, 1, 1) self.usePortalSiteCheckBox = QtGui.QCheckBox(self.authorizingGroupBox) self.usePortalSiteCheckBox.setObjectName("usePortalSiteCheckBox") self.authorizationLayout.addWidget(self.usePortalSiteCheckBox, 2, 3, 1, 1) self.serverPageWidgetLayout.addWidget(self.authorizingGroupBox) self.proxyGroupBox = QtGui.QGroupBox(serverPageWidget) self.proxyGroupBox.setFlat(True) self.proxyGroupBox.setCheckable(True) self.proxyGroupBox.setChecked(False) self.proxyGroupBox.setObjectName("proxyGroupBox") self.proxyGridLayout = QtGui.QGridLayout(self.proxyGroupBox) self.proxyGridLayout.setContentsMargins(-1, -1, 0, -1) self.proxyGridLayout.setObjectName("proxyGridLayout") self.proxyUserNameLabel = QtGui.QLabel(self.proxyGroupBox) self.proxyUserNameLabel.setMinimumSize(QtCore.QSize(120, 0)) self.proxyUserNameLabel.setObjectName("proxyUserNameLabel") self.proxyGridLayout.addWidget(self.proxyUserNameLabel, 0, 0, 1, 1) self.proxyPasswordLabel = QtGui.QLabel(self.proxyGroupBox) self.proxyPasswordLabel.setObjectName("proxyPasswordLabel") self.proxyGridLayout.addWidget(self.proxyPasswordLabel, 1, 0, 1, 1) self.proxyServerLabel = QtGui.QLabel(self.proxyGroupBox) self.proxyServerLabel.setObjectName("proxyServerLabel") self.proxyGridLayout.addWidget(self.proxyServerLabel, 2, 0, 1, 1) self.proxyLoginLineEdit = QtGui.QLineEdit(self.proxyGroupBox) self.proxyLoginLineEdit.setObjectName("proxyLoginLineEdit") self.proxyGridLayout.addWidget(self.proxyLoginLineEdit, 0, 1, 1, 1) self.proxyPasswordLineEdit = QtGui.QLineEdit(self.proxyGroupBox) self.proxyPasswordLineEdit.setEchoMode(QtGui.QLineEdit.Password) self.proxyPasswordLineEdit.setObjectName("proxyPasswordLineEdit") self.proxyGridLayout.addWidget(self.proxyPasswordLineEdit, 1, 1, 1, 1) self.proxyServerLineEdit = QtGui.QLineEdit(self.proxyGroupBox) self.proxyServerLineEdit.setObjectName("proxyServerLineEdit") self.proxyGridLayout.addWidget(self.proxyServerLineEdit, 2, 1, 1, 1) self.serverPageWidgetLayout.addWidget(self.proxyGroupBox) self.environmentsGroupBox = QtGui.QGroupBox(serverPageWidget) self.environmentsGroupBox.setFlat(True) self.environmentsGroupBox.setObjectName("environmentsGroupBox") self.environmentLayout = QtGui.QGridLayout(self.environmentsGroupBox) self.environmentLayout.setContentsMargins(-1, -1, 0, -1) self.environmentLayout.setObjectName("environmentLayout") self.tacticEnvLable = QtGui.QLabel(self.environmentsGroupBox) self.tacticEnvLable.setMinimumSize(QtCore.QSize(120, 0)) self.tacticEnvLable.setObjectName("tacticEnvLable") self.environmentLayout.addWidget(self.tacticEnvLable, 0, 0, 1, 1) self.tacticEnvLineEdit = QtGui.QLineEdit(self.environmentsGroupBox) self.tacticEnvLineEdit.setObjectName("tacticEnvLineEdit") self.environmentLayout.addWidget(self.tacticEnvLineEdit, 0, 1, 1, 1) self.tacticInstallDirLable = QtGui.QLabel(self.environmentsGroupBox) self.tacticInstallDirLable.setObjectName("tacticInstallDirLable") self.environmentLayout.addWidget(self.tacticInstallDirLable, 1, 0, 1, 1) self.tacticInstallDirLineEdit = QtGui.QLineEdit( self.environmentsGroupBox) self.tacticInstallDirLineEdit.setObjectName("tacticInstallDirLineEdit") self.environmentLayout.addWidget(self.tacticInstallDirLineEdit, 1, 1, 1, 1) self.addTacticEnv = QtGui.QPushButton(self.environmentsGroupBox) self.addTacticEnv.setObjectName("addTacticEnv") self.environmentLayout.addWidget(self.addTacticEnv, 2, 0, 1, 2) self.serverPageWidgetLayout.addWidget(self.environmentsGroupBox) spacerItem = QtGui.QSpacerItem(20, 58, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.serverPageWidgetLayout.addItem(spacerItem) self.retranslateUi(serverPageWidget) QtCore.QObject.connect(self.usePortalSiteCheckBox, QtCore.SIGNAL("toggled(bool)"), self.siteLineEdit.setEnabled) QtCore.QMetaObject.connectSlotsByName(serverPageWidget)
def setupUi(self, checkinOutPageWidget): checkinOutPageWidget.setObjectName("checkinOutPageWidget") 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) 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(9, -1, 0, 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) 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(9, -1, 0, -1) 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.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, checkinPageWidget): checkinPageWidget.setObjectName("checkinPageWidget") self.checkinPageWidgetLayout = QtGui.QVBoxLayout(checkinPageWidget) self.checkinPageWidgetLayout.setContentsMargins(0, 0, 0, 0) self.checkinPageWidgetLayout.setObjectName("checkinPageWidgetLayout") self.checkinMiscOptionsGroupBox = QtGui.QGroupBox(checkinPageWidget) self.checkinMiscOptionsGroupBox.setFlat(True) self.checkinMiscOptionsGroupBox.setObjectName( "checkinMiscOptionsGroupBox") self.checkinMiscOptionsLayout = QtGui.QGridLayout( self.checkinMiscOptionsGroupBox) self.checkinMiscOptionsLayout.setContentsMargins(9, -1, 0, 0) self.checkinMiscOptionsLayout.setObjectName("checkinMiscOptionsLayout") self.versionsSeparateCheckinCheckBox = QtGui.QCheckBox( self.checkinMiscOptionsGroupBox) self.versionsSeparateCheckinCheckBox.setObjectName( "versionsSeparateCheckinCheckBox") self.checkinMiscOptionsLayout.addWidget( self.versionsSeparateCheckinCheckBox, 2, 0, 1, 1) self.snapshotDescriptionLimitCheckBox = QtGui.QCheckBox( self.checkinMiscOptionsGroupBox) self.snapshotDescriptionLimitCheckBox.setChecked(True) self.snapshotDescriptionLimitCheckBox.setObjectName( "snapshotDescriptionLimitCheckBox") self.checkinMiscOptionsLayout.addWidget( self.snapshotDescriptionLimitCheckBox, 4, 0, 1, 1) self.doubleClickSaveCheckBox = QtGui.QCheckBox( self.checkinMiscOptionsGroupBox) self.doubleClickSaveCheckBox.setObjectName("doubleClickSaveCheckBox") self.checkinMiscOptionsLayout.addWidget(self.doubleClickSaveCheckBox, 0, 0, 1, 1) self.doubleClickOpenCheckBox = QtGui.QCheckBox( self.checkinMiscOptionsGroupBox) self.doubleClickOpenCheckBox.setObjectName("doubleClickOpenCheckBox") self.checkinMiscOptionsLayout.addWidget(self.doubleClickOpenCheckBox, 1, 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, 4, 2, 1, 1) self.bottomVersionsRadioButton = QtGui.QRadioButton( self.checkinMiscOptionsGroupBox) self.bottomVersionsRadioButton.setObjectName( "bottomVersionsRadioButton") self.checkinMiscOptionsLayout.addWidget(self.bottomVersionsRadioButton, 2, 1, 1, 1) self.rightVersionsRadioButton = QtGui.QRadioButton( self.checkinMiscOptionsGroupBox) self.rightVersionsRadioButton.setChecked(True) self.rightVersionsRadioButton.setObjectName("rightVersionsRadioButton") self.checkinMiscOptionsLayout.addWidget(self.rightVersionsRadioButton, 2, 2, 1, 1) self.checkinMiscOptionsLayout.setColumnStretch(0, 1) self.checkinPageWidgetLayout.addWidget(self.checkinMiscOptionsGroupBox) self.snapshotsSavingOptionsGroupBox = QtGui.QGroupBox( checkinPageWidget) self.snapshotsSavingOptionsGroupBox.setFlat(True) self.snapshotsSavingOptionsGroupBox.setObjectName( "snapshotsSavingOptionsGroupBox") self.snapshotsSavingOptionsLayout = QtGui.QGridLayout( self.snapshotsSavingOptionsGroupBox) self.snapshotsSavingOptionsLayout.setContentsMargins(9, -1, 0, 0) self.snapshotsSavingOptionsLayout.setObjectName( "snapshotsSavingOptionsLayout") self.checkinMethodLabel = QtGui.QLabel( self.snapshotsSavingOptionsGroupBox) self.checkinMethodLabel.setObjectName("checkinMethodLabel") self.snapshotsSavingOptionsLayout.addWidget(self.checkinMethodLabel, 2, 0, 1, 1) self.updateVersionlessCheckBox = QtGui.QCheckBox( self.snapshotsSavingOptionsGroupBox) self.updateVersionlessCheckBox.setChecked(True) self.updateVersionlessCheckBox.setObjectName( "updateVersionlessCheckBox") self.snapshotsSavingOptionsLayout.addWidget( self.updateVersionlessCheckBox, 3, 0, 1, 1) self.createMayaDirsCheckBox = QtGui.QCheckBox( self.snapshotsSavingOptionsGroupBox) self.createMayaDirsCheckBox.setObjectName("createMayaDirsCheckBox") self.snapshotsSavingOptionsLayout.addWidget( self.createMayaDirsCheckBox, 5, 0, 1, 1) self.generatePreviewsCheckBox = QtGui.QCheckBox( self.snapshotsSavingOptionsGroupBox) self.generatePreviewsCheckBox.setChecked(True) self.generatePreviewsCheckBox.setObjectName("generatePreviewsCheckBox") self.snapshotsSavingOptionsLayout.addWidget( self.generatePreviewsCheckBox, 4, 0, 1, 1) self.repositoryLabel = QtGui.QLabel( self.snapshotsSavingOptionsGroupBox) self.repositoryLabel.setObjectName("repositoryLabel") self.snapshotsSavingOptionsLayout.addWidget(self.repositoryLabel, 1, 0, 1, 1) self.sequencePaddingCheckBox = QtGui.QCheckBox( self.snapshotsSavingOptionsGroupBox) self.sequencePaddingCheckBox.setObjectName("sequencePaddingCheckBox") self.snapshotsSavingOptionsLayout.addWidget( self.sequencePaddingCheckBox, 9, 0, 1, 1) self.sequqnceNamingTemplatelabel = QtGui.QLabel( self.snapshotsSavingOptionsGroupBox) self.sequqnceNamingTemplatelabel.setObjectName( "sequqnceNamingTemplatelabel") self.snapshotsSavingOptionsLayout.addWidget( self.sequqnceNamingTemplatelabel, 10, 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, 10, 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, 9, 1, 1, 3) 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.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, 7, 0, 1, 4) self.repositoryComboBox = QtGui.QComboBox( self.snapshotsSavingOptionsGroupBox) self.repositoryComboBox.setObjectName("repositoryComboBox") self.snapshotsSavingOptionsLayout.addWidget(self.repositoryComboBox, 1, 1, 1, 3) self.createPlayblastCheckBox = QtGui.QCheckBox( self.snapshotsSavingOptionsGroupBox) self.createPlayblastCheckBox.setChecked(True) self.createPlayblastCheckBox.setObjectName("createPlayblastCheckBox") self.snapshotsSavingOptionsLayout.addWidget( self.createPlayblastCheckBox, 6, 0, 1, 1) self.checkinPageWidgetLayout.addWidget( self.snapshotsSavingOptionsGroupBox) self.dropPlateOptionsGroupBox = QtGui.QGroupBox(checkinPageWidget) self.dropPlateOptionsGroupBox.setFlat(True) self.dropPlateOptionsGroupBox.setObjectName("dropPlateOptionsGroupBox") self.dropPlateOptionsLayout = QtGui.QGridLayout( self.dropPlateOptionsGroupBox) self.dropPlateOptionsLayout.setContentsMargins(-1, -1, 0, 0) self.dropPlateOptionsLayout.setObjectName("dropPlateOptionsLayout") self.clearDropPlateAfterCheckincheckBox = QtGui.QCheckBox( self.dropPlateOptionsGroupBox) self.clearDropPlateAfterCheckincheckBox.setObjectName( "clearDropPlateAfterCheckincheckBox") self.dropPlateOptionsLayout.addWidget( self.clearDropPlateAfterCheckincheckBox, 1, 0, 1, 1) self.uncheckFromDropPlateCheckBox = QtGui.QCheckBox( self.dropPlateOptionsGroupBox) self.uncheckFromDropPlateCheckBox.setObjectName( "uncheckFromDropPlateCheckBox") self.dropPlateOptionsLayout.addWidget( self.uncheckFromDropPlateCheckBox, 0, 0, 1, 1) self.checkinPageWidgetLayout.addWidget(self.dropPlateOptionsGroupBox) self.defaultRepoPathsGroupBox = QtGui.QGroupBox(checkinPageWidget) self.defaultRepoPathsGroupBox.setFlat(True) self.defaultRepoPathsGroupBox.setObjectName("defaultRepoPathsGroupBox") self.defaultRepoPathsLayout = QtGui.QGridLayout( self.defaultRepoPathsGroupBox) self.defaultRepoPathsLayout.setContentsMargins(9, 9, 0, 0) self.defaultRepoPathsLayout.setObjectName("defaultRepoPathsLayout") self.assetBaseDirPathLineEdit = QtGui.QLineEdit( self.defaultRepoPathsGroupBox) self.assetBaseDirPathLineEdit.setObjectName("assetBaseDirPathLineEdit") self.defaultRepoPathsLayout.addWidget(self.assetBaseDirPathLineEdit, 0, 3, 1, 1) self.handoffDirPathLineEdit = QtGui.QLineEdit( self.defaultRepoPathsGroupBox) self.handoffDirPathLineEdit.setObjectName("handoffDirPathLineEdit") self.defaultRepoPathsLayout.addWidget(self.handoffDirPathLineEdit, 4, 2, 1, 2) self.sandboxDirPathLineEdit = QtGui.QLineEdit( self.defaultRepoPathsGroupBox) self.sandboxDirPathLineEdit.setObjectName("sandboxDirPathLineEdit") self.defaultRepoPathsLayout.addWidget(self.sandboxDirPathLineEdit, 1, 3, 1, 1) self.localRepoDirPathLineEdit = QtGui.QLineEdit( self.defaultRepoPathsGroupBox) self.localRepoDirPathLineEdit.setObjectName("localRepoDirPathLineEdit") self.defaultRepoPathsLayout.addWidget(self.localRepoDirPathLineEdit, 2, 3, 1, 1) self.clientRepoDirPathLineEdit = QtGui.QLineEdit( self.defaultRepoPathsGroupBox) self.clientRepoDirPathLineEdit.setObjectName( "clientRepoDirPathLineEdit") self.defaultRepoPathsLayout.addWidget(self.clientRepoDirPathLineEdit, 3, 3, 1, 1) self.assetBaseDirCheckBox = QtGui.QCheckBox( self.defaultRepoPathsGroupBox) self.assetBaseDirCheckBox.setChecked(True) self.assetBaseDirCheckBox.setObjectName("assetBaseDirCheckBox") self.defaultRepoPathsLayout.addWidget(self.assetBaseDirCheckBox, 0, 0, 1, 1) self.sandboxCheckBox = QtGui.QCheckBox(self.defaultRepoPathsGroupBox) self.sandboxCheckBox.setObjectName("sandboxCheckBox") self.defaultRepoPathsLayout.addWidget(self.sandboxCheckBox, 1, 0, 1, 1) self.localRepoCheckBox = QtGui.QCheckBox(self.defaultRepoPathsGroupBox) self.localRepoCheckBox.setChecked(True) self.localRepoCheckBox.setObjectName("localRepoCheckBox") self.defaultRepoPathsLayout.addWidget(self.localRepoCheckBox, 2, 0, 1, 1) self.clientRepoCheckBox = QtGui.QCheckBox( self.defaultRepoPathsGroupBox) self.clientRepoCheckBox.setObjectName("clientRepoCheckBox") self.defaultRepoPathsLayout.addWidget(self.clientRepoCheckBox, 3, 0, 1, 1) self.handoffCheckBox = QtGui.QCheckBox(self.defaultRepoPathsGroupBox) self.handoffCheckBox.setObjectName("handoffCheckBox") self.defaultRepoPathsLayout.addWidget(self.handoffCheckBox, 4, 0, 1, 1) self.assetBaseDirNameLineEdit = QtGui.QLineEdit( self.defaultRepoPathsGroupBox) self.assetBaseDirNameLineEdit.setObjectName("assetBaseDirNameLineEdit") self.defaultRepoPathsLayout.addWidget(self.assetBaseDirNameLineEdit, 0, 2, 1, 1) self.sandboxDirNameLineEdit = QtGui.QLineEdit( self.defaultRepoPathsGroupBox) self.sandboxDirNameLineEdit.setObjectName("sandboxDirNameLineEdit") self.defaultRepoPathsLayout.addWidget(self.sandboxDirNameLineEdit, 1, 2, 1, 1) self.localRepoDirNameLineEdit = QtGui.QLineEdit( self.defaultRepoPathsGroupBox) self.localRepoDirNameLineEdit.setObjectName("localRepoDirNameLineEdit") self.defaultRepoPathsLayout.addWidget(self.localRepoDirNameLineEdit, 2, 2, 1, 1) self.clientRepoDirNameLineEdit = QtGui.QLineEdit( self.defaultRepoPathsGroupBox) self.clientRepoDirNameLineEdit.setObjectName( "clientRepoDirNameLineEdit") self.defaultRepoPathsLayout.addWidget(self.clientRepoDirNameLineEdit, 3, 2, 1, 1) 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, 0, 1, 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, 1, 1, 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, 3, 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, 2, 1, 1, 1) self.defaultRepoPathsLayout.setColumnStretch(3, 1) self.checkinPageWidgetLayout.addWidget(self.defaultRepoPathsGroupBox) self.customRepoPathsGroupBox = QtGui.QGroupBox(checkinPageWidget) self.customRepoPathsGroupBox.setEnabled(True) 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(9, -1, 0, -1) 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(checkinPageWidget) 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.QMetaObject.connectSlotsByName(checkinPageWidget)
def setupUi(self, searchOptionsGroupBox): searchOptionsGroupBox.setObjectName("searchOptionsGroupBox") searchOptionsGroupBox.setMaximumSize(QtCore.QSize(16777215, 167)) searchOptionsGroupBox.setFlat(True) self.verticalLayout = QtGui.QVBoxLayout(searchOptionsGroupBox) self.verticalLayout.setContentsMargins(4, 2, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.searchByGroupBox = QtGui.QGroupBox(searchOptionsGroupBox) self.searchByGroupBox.setFlat(True) self.searchByGroupBox.setObjectName("searchByGroupBox") self.horizontalLayout_2 = QtGui.QHBoxLayout(self.searchByGroupBox) self.horizontalLayout_2.setSpacing(6) self.horizontalLayout_2.setContentsMargins(-1, 0, 0, 0) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.searchNameRadioButton = QtGui.QRadioButton(self.searchByGroupBox) self.searchNameRadioButton.setChecked(True) self.searchNameRadioButton.setObjectName("searchNameRadioButton") self.horizontalLayout_2.addWidget(self.searchNameRadioButton) self.searchCodeRadioButton = QtGui.QRadioButton(self.searchByGroupBox) self.searchCodeRadioButton.setObjectName("searchCodeRadioButton") self.horizontalLayout_2.addWidget(self.searchCodeRadioButton) self.searchDescriptionRadioButton = QtGui.QRadioButton(self.searchByGroupBox) self.searchDescriptionRadioButton.setObjectName("searchDescriptionRadioButton") self.horizontalLayout_2.addWidget(self.searchDescriptionRadioButton) self.searchKeywordsRadioButton = QtGui.QRadioButton(self.searchByGroupBox) self.searchKeywordsRadioButton.setObjectName("searchKeywordsRadioButton") self.horizontalLayout_2.addWidget(self.searchKeywordsRadioButton) self.searchParentCodeRadioButton = QtGui.QRadioButton(self.searchByGroupBox) self.searchParentCodeRadioButton.setChecked(False) self.searchParentCodeRadioButton.setObjectName("searchParentCodeRadioButton") self.horizontalLayout_2.addWidget(self.searchParentCodeRadioButton) self.parentsComboBox = QtGui.QComboBox(self.searchByGroupBox) self.parentsComboBox.setEnabled(False) self.parentsComboBox.setInsertPolicy(QtGui.QComboBox.NoInsert) self.parentsComboBox.setObjectName("parentsComboBox") self.parentsComboBox.addItem("") self.horizontalLayout_2.addWidget(self.parentsComboBox) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.verticalLayout.addWidget(self.searchByGroupBox) self.sortByGroupBox = QtGui.QGroupBox(searchOptionsGroupBox) self.sortByGroupBox.setFlat(True) self.sortByGroupBox.setObjectName("sortByGroupBox") self.horizontalLayout = QtGui.QHBoxLayout(self.sortByGroupBox) self.horizontalLayout.setSpacing(6) self.horizontalLayout.setContentsMargins(-1, 0, 0, 0) self.horizontalLayout.setObjectName("horizontalLayout") self.sortNameRadioButton = QtGui.QRadioButton(self.sortByGroupBox) self.sortNameRadioButton.setObjectName("sortNameRadioButton") self.horizontalLayout.addWidget(self.sortNameRadioButton) self.sortCodeRadioButton = QtGui.QRadioButton(self.sortByGroupBox) self.sortCodeRadioButton.setObjectName("sortCodeRadioButton") self.horizontalLayout.addWidget(self.sortCodeRadioButton) self.sortTimestampRadioButton = QtGui.QRadioButton(self.sortByGroupBox) self.sortTimestampRadioButton.setChecked(True) self.sortTimestampRadioButton.setObjectName("sortTimestampRadioButton") self.horizontalLayout.addWidget(self.sortTimestampRadioButton) self.sortNothingRadioButton = QtGui.QRadioButton(self.sortByGroupBox) self.sortNothingRadioButton.setObjectName("sortNothingRadioButton") self.horizontalLayout.addWidget(self.sortNothingRadioButton) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout.addWidget(self.sortByGroupBox) self.miscGroupBox = QtGui.QGroupBox(searchOptionsGroupBox) self.miscGroupBox.setFlat(True) self.miscGroupBox.setObjectName("miscGroupBox") self.horizontalLayout_3 = QtGui.QHBoxLayout(self.miscGroupBox) self.horizontalLayout_3.setSpacing(6) self.horizontalLayout_3.setContentsMargins(-1, 0, 0, 0) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.saveAsDefaultsPushButton = QtGui.QPushButton(self.miscGroupBox) self.saveAsDefaultsPushButton.setObjectName("saveAsDefaultsPushButton") self.horizontalLayout_3.addWidget(self.saveAsDefaultsPushButton) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem2) self.label = QtGui.QLabel(self.miscGroupBox) self.label.setObjectName("label") self.horizontalLayout_3.addWidget(self.label) self.displayLimitSpinBox = QtGui.QSpinBox(self.miscGroupBox) self.displayLimitSpinBox.setMinimum(5) self.displayLimitSpinBox.setMaximum(200) self.displayLimitSpinBox.setSingleStep(5) self.displayLimitSpinBox.setObjectName("displayLimitSpinBox") self.horizontalLayout_3.addWidget(self.displayLimitSpinBox) self.showAllProcessCheckBox = QtGui.QCheckBox(self.miscGroupBox) self.showAllProcessCheckBox.setChecked(True) self.showAllProcessCheckBox.setObjectName("showAllProcessCheckBox") self.horizontalLayout_3.addWidget(self.showAllProcessCheckBox) self.verticalLayout.addWidget(self.miscGroupBox) self.retranslateUi(searchOptionsGroupBox) QtCore.QObject.connect(self.searchParentCodeRadioButton, QtCore.SIGNAL("toggled(bool)"), self.parentsComboBox.setEnabled) QtCore.QMetaObject.connectSlotsByName(searchOptionsGroupBox) searchOptionsGroupBox.setTabOrder(self.searchNameRadioButton, self.searchCodeRadioButton) searchOptionsGroupBox.setTabOrder(self.searchCodeRadioButton, self.searchDescriptionRadioButton) searchOptionsGroupBox.setTabOrder(self.searchDescriptionRadioButton, self.searchKeywordsRadioButton) searchOptionsGroupBox.setTabOrder(self.searchKeywordsRadioButton, self.sortNameRadioButton) searchOptionsGroupBox.setTabOrder(self.sortNameRadioButton, self.sortCodeRadioButton) searchOptionsGroupBox.setTabOrder(self.sortCodeRadioButton, self.sortTimestampRadioButton) searchOptionsGroupBox.setTabOrder(self.sortTimestampRadioButton, self.sortNothingRadioButton) searchOptionsGroupBox.setTabOrder(self.sortNothingRadioButton, self.showAllProcessCheckBox) searchOptionsGroupBox.setTabOrder(self.showAllProcessCheckBox, self.displayLimitSpinBox) searchOptionsGroupBox.setTabOrder(self.displayLimitSpinBox, self.saveAsDefaultsPushButton)