def setupUi(self, previewItem): previewItem.setObjectName("previewItem") previewItem.resize(382, 64) self.gridLayout = QtGui.QGridLayout(previewItem) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.previewLabel = QtGui.QLabel(previewItem) self.previewLabel.setMinimumSize(QtCore.QSize(64, 64)) self.previewLabel.setMaximumSize(QtCore.QSize(64, 64)) self.previewLabel.setStyleSheet( "QLabel {\n" " background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgba(175, 175, 175, 16), stop: 1 rgba(0, 0, 0, 0));\n" " border: 0px;\n" " border-radius: 4px;\n" " padding: 0px 0px;\n" "}") self.previewLabel.setTextFormat(QtCore.Qt.RichText) self.previewLabel.setAlignment(QtCore.Qt.AlignCenter) self.previewLabel.setObjectName("previewLabel") self.gridLayout.addWidget(self.previewLabel, 0, 0, 1, 1) self.fileNameLabel = QtGui.QLabel(previewItem) self.fileNameLabel.setMinimumSize(QtCore.QSize(0, 20)) self.fileNameLabel.setMaximumSize(QtCore.QSize(16777215, 24)) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.fileNameLabel.setFont(font) self.fileNameLabel.setStyleSheet( "QLabel {\n" " background-color: transparent;\n" " border-bottom: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(128, 128, 128, 64), stop:1 rgba(128, 128,128, 0));\n" "}") self.fileNameLabel.setTextFormat(QtCore.Qt.PlainText) self.fileNameLabel.setObjectName("fileNameLabel") self.gridLayout.addWidget(self.fileNameLabel, 0, 1, 1, 1) self.retranslateUi(previewItem) QtCore.QMetaObject.connectSlotsByName(previewItem)
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, 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, incom): incom.setObjectName("incom") incom.resize(154, 156) self.horizontalLayout = QtGui.QHBoxLayout(incom) self.horizontalLayout.setSpacing(0) self.horizontalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout.setObjectName("horizontalLayout") self.groupBox = QtGui.QGroupBox(incom) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Maximum) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setStyleSheet( "QGroupBox {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 0), stop:1 rgba(104, 104, 190, 40));\n" " border: 2px solid gray;\n" " border-radius: 2px;\n" "}") self.groupBox.setObjectName("groupBox") self.gridLayout_3 = QtGui.QGridLayout(self.groupBox) self.gridLayout_3.setContentsMargins(0, 0, 0, 0) self.gridLayout_3.setSpacing(0) self.gridLayout_3.setObjectName("gridLayout_3") self.dateLabel = QtGui.QLabel(self.groupBox) self.dateLabel.setMinimumSize(QtCore.QSize(0, 18)) font = Qt4Gui.QFont() font.setPointSize(10) self.dateLabel.setFont(font) self.dateLabel.setToolTip("") self.dateLabel.setStyleSheet( "QLabel {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 0), stop:1 rgba(128, 128, 150, 175));\n" " border-bottom: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 0), stop:1 rgba(128, 128, 128, 175));\n" " padding: 0px;\n" "}") self.dateLabel.setTextFormat(QtCore.Qt.PlainText) self.dateLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.dateLabel.setMargin(2) self.dateLabel.setObjectName("dateLabel") self.gridLayout_3.addWidget(self.dateLabel, 0, 1, 1, 1) self.authorFullLabel = QtGui.QLabel(self.groupBox) self.authorFullLabel.setMinimumSize(QtCore.QSize(0, 50)) font = Qt4Gui.QFont() font.setPointSize(9) self.authorFullLabel.setFont(font) self.authorFullLabel.setAccessibleDescription("") self.authorFullLabel.setStyleSheet("QLabel {\n" " padding: 4px;\n" "}") self.authorFullLabel.setTextFormat(QtCore.Qt.PlainText) self.authorFullLabel.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft) self.authorFullLabel.setObjectName("authorFullLabel") self.gridLayout_3.addWidget(self.authorFullLabel, 2, 0, 1, 1) self.commentLabel = QtGui.QLabel(self.groupBox) self.commentLabel.setText("") self.commentLabel.setTextFormat(QtCore.Qt.RichText) self.commentLabel.setScaledContents(True) self.commentLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.commentLabel.setWordWrap(True) self.commentLabel.setOpenExternalLinks(True) self.commentLabel.setTextInteractionFlags( QtCore.Qt.LinksAccessibleByMouse | QtCore.Qt.TextSelectableByKeyboard | QtCore.Qt.TextSelectableByMouse) self.commentLabel.setObjectName("commentLabel") self.gridLayout_3.addWidget(self.commentLabel, 1, 1, 2, 1) self.authorPicLabel = QtGui.QLabel(self.groupBox) self.authorPicLabel.setMinimumSize(QtCore.QSize(120, 80)) self.authorPicLabel.setMaximumSize(QtCore.QSize(120, 120)) self.authorPicLabel.setTextFormat(QtCore.Qt.RichText) self.authorPicLabel.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) self.authorPicLabel.setMargin(2) self.authorPicLabel.setObjectName("authorPicLabel") self.gridLayout_3.addWidget(self.authorPicLabel, 1, 0, 1, 1) self.authorLabel = QtGui.QLabel(self.groupBox) self.authorLabel.setMinimumSize(QtCore.QSize(0, 18)) font = Qt4Gui.QFont() font.setPointSize(10) font.setWeight(75) font.setItalic(False) font.setBold(True) self.authorLabel.setFont(font) self.authorLabel.setStyleSheet( "QLabel {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(128, 128, 150, 175), stop:1 rgba(64, 64,64, 0));\n" " border-bottom: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(64, 64, 64, 175), stop:1 rgba(255, 255,255, 0));\n" " padding: 0px;\n" "}") self.authorLabel.setTextFormat(QtCore.Qt.PlainText) self.authorLabel.setObjectName("authorLabel") self.gridLayout_3.addWidget(self.authorLabel, 0, 0, 1, 1) self.gridLayout_3.setColumnStretch(1, 1) self.gridLayout_3.setRowStretch(2, 1) self.horizontalLayout.addWidget(self.groupBox) spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.retranslateUi(incom) QtCore.QMetaObject.connectSlotsByName(incom)
def setupUi(self, item): item.setObjectName("item") self.gridLayout = QtGui.QGridLayout(item) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.itemColorLine = QtGui.QFrame(item) self.itemColorLine.setMaximumSize(QtCore.QSize(4, 16777215)) self.itemColorLine.setStyleSheet( "QFrame { border: 0px; background-color: black;}") self.itemColorLine.setFrameShadow(QtGui.QFrame.Plain) self.itemColorLine.setLineWidth(4) self.itemColorLine.setFrameShape(QtGui.QFrame.VLine) self.itemColorLine.setFrameShadow(QtGui.QFrame.Sunken) self.itemColorLine.setObjectName("itemColorLine") self.gridLayout.addWidget(self.itemColorLine, 0, 0, 3, 1) self.previewVerticalLayout = QtGui.QVBoxLayout() self.previewVerticalLayout.setSpacing(0) self.previewVerticalLayout.setContentsMargins(4, 4, 4, 4) self.previewVerticalLayout.setObjectName("previewVerticalLayout") self.previewLabel = QtGui.QLabel(item) self.previewLabel.setMinimumSize(QtCore.QSize(64, 64)) self.previewLabel.setMaximumSize(QtCore.QSize(64, 64)) self.previewLabel.setStyleSheet( "QLabel {\n" " background: rgba(175, 175, 175, 16);\n" " border: 0px;\n" " border-radius: 3px;\n" " padding: 0px 0px;\n" "}") self.previewLabel.setTextFormat(QtCore.Qt.RichText) self.previewLabel.setAlignment(QtCore.Qt.AlignCenter) self.previewLabel.setObjectName("previewLabel") self.previewVerticalLayout.addWidget(self.previewLabel) spacerItem = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Ignored) self.previewVerticalLayout.addItem(spacerItem) self.previewVerticalLayout.setStretch(1, 1) self.gridLayout.addLayout(self.previewVerticalLayout, 0, 1, 3, 1) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setSpacing(0) self.horizontalLayout_2.setContentsMargins(-1, -1, -1, 3) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.fileNameLabel = QtGui.QLabel(item) self.fileNameLabel.setMinimumSize(QtCore.QSize(0, 20)) self.fileNameLabel.setMaximumSize(QtCore.QSize(16777215, 24)) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.fileNameLabel.setFont(font) self.fileNameLabel.setStyleSheet("QLabel {\n" " background-color: transparent;\n" "}") self.fileNameLabel.setTextFormat(QtCore.Qt.PlainText) self.fileNameLabel.setObjectName("fileNameLabel") self.horizontalLayout_2.addWidget(self.fileNameLabel) self.syncWithRepoToolButton = QtGui.QToolButton(item) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.syncWithRepoToolButton.sizePolicy().hasHeightForWidth()) self.syncWithRepoToolButton.setSizePolicy(sizePolicy) self.syncWithRepoToolButton.setAutoRaise(True) self.syncWithRepoToolButton.setObjectName("syncWithRepoToolButton") self.horizontalLayout_2.addWidget(self.syncWithRepoToolButton) self.watchFolderToolButton = QtGui.QToolButton(item) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.watchFolderToolButton.sizePolicy().hasHeightForWidth()) self.watchFolderToolButton.setSizePolicy(sizePolicy) self.watchFolderToolButton.setText("") self.watchFolderToolButton.setCheckable(True) self.watchFolderToolButton.setAutoRaise(True) self.watchFolderToolButton.setObjectName("watchFolderToolButton") self.horizontalLayout_2.addWidget(self.watchFolderToolButton) self.horizontalLayout_2.setStretch(0, 1) self.gridLayout.addLayout(self.horizontalLayout_2, 0, 2, 1, 2) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.tasksToolButton = QtGui.QToolButton(item) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.tasksToolButton.sizePolicy().hasHeightForWidth()) self.tasksToolButton.setSizePolicy(sizePolicy) self.tasksToolButton.setToolButtonStyle( QtCore.Qt.ToolButtonTextBesideIcon) self.tasksToolButton.setAutoRaise(True) self.tasksToolButton.setObjectName("tasksToolButton") self.horizontalLayout.addWidget(self.tasksToolButton) self.notesToolButton = QtGui.QToolButton(item) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.notesToolButton.sizePolicy().hasHeightForWidth()) self.notesToolButton.setSizePolicy(sizePolicy) self.notesToolButton.setText("") self.notesToolButton.setToolButtonStyle( QtCore.Qt.ToolButtonTextBesideIcon) self.notesToolButton.setAutoRaise(True) self.notesToolButton.setObjectName("notesToolButton") self.horizontalLayout.addWidget(self.notesToolButton) self.relationsToolButton = QtGui.QToolButton(item) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.relationsToolButton.sizePolicy().hasHeightForWidth()) self.relationsToolButton.setSizePolicy(sizePolicy) self.relationsToolButton.setPopupMode( QtGui.QToolButton.MenuButtonPopup) self.relationsToolButton.setToolButtonStyle( QtCore.Qt.ToolButtonTextBesideIcon) self.relationsToolButton.setAutoRaise(True) self.relationsToolButton.setArrowType(QtCore.Qt.NoArrow) self.relationsToolButton.setObjectName("relationsToolButton") self.horizontalLayout.addWidget(self.relationsToolButton) self.gridLayout.addLayout(self.horizontalLayout, 1, 3, 2, 1) self.descriptionLerticalLayout = QtGui.QVBoxLayout() self.descriptionLerticalLayout.setSpacing(0) self.descriptionLerticalLayout.setObjectName( "descriptionLerticalLayout") self.commentLabel = QtGui.QLabel(item) self.commentLabel.setMinimumSize(QtCore.QSize(0, 25)) self.commentLabel.setTextFormat(QtCore.Qt.PlainText) self.commentLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.commentLabel.setWordWrap(True) self.commentLabel.setMargin(2) self.commentLabel.setObjectName("commentLabel") self.descriptionLerticalLayout.addWidget(self.commentLabel) self.gridLayout.addLayout(self.descriptionLerticalLayout, 2, 2, 1, 1) self.infoHorizontalLayout = QtGui.QHBoxLayout() self.infoHorizontalLayout.setSpacing(0) self.infoHorizontalLayout.setObjectName("infoHorizontalLayout") self.gridLayout.addLayout(self.infoHorizontalLayout, 1, 2, 1, 1) self.gridLayout.setColumnStretch(2, 1) self.gridLayout.setRowStretch(2, 1) self.retranslateUi(item) QtCore.QMetaObject.connectSlotsByName(item)
def setupUi(self, commitItem): commitItem.setObjectName("commitItem") commitItem.resize(84, 72) self.gridLayout = QtGui.QGridLayout(commitItem) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.previewVerticalLayout = QtGui.QVBoxLayout() self.previewVerticalLayout.setSpacing(0) self.previewVerticalLayout.setContentsMargins(4, 4, 4, 4) self.previewVerticalLayout.setObjectName("previewVerticalLayout") self.previewLabel = QtGui.QLabel(commitItem) self.previewLabel.setMinimumSize(QtCore.QSize(64, 64)) self.previewLabel.setMaximumSize(QtCore.QSize(64, 64)) self.previewLabel.setStyleSheet( "QLabel {\n" " background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgba(175, 175, 175, 16), stop: 1 rgba(0, 0, 0, 0));\n" " border: 0px;\n" " border-radius: 4px;\n" " padding: 0px 0px;\n" "}") self.previewLabel.setTextFormat(QtCore.Qt.RichText) self.previewLabel.setAlignment(QtCore.Qt.AlignCenter) self.previewLabel.setObjectName("previewLabel") self.previewVerticalLayout.addWidget(self.previewLabel) spacerItem = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Ignored) self.previewVerticalLayout.addItem(spacerItem) self.previewVerticalLayout.setStretch(1, 1) self.gridLayout.addLayout(self.previewVerticalLayout, 0, 0, 3, 1) self.nameVerticalLayout = QtGui.QVBoxLayout() self.nameVerticalLayout.setSpacing(0) self.nameVerticalLayout.setContentsMargins(-1, -1, -1, 3) self.nameVerticalLayout.setObjectName("nameVerticalLayout") self.fileNameLabel = QtGui.QLabel(commitItem) self.fileNameLabel.setMinimumSize(QtCore.QSize(0, 20)) self.fileNameLabel.setMaximumSize(QtCore.QSize(16777215, 24)) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.fileNameLabel.setFont(font) self.fileNameLabel.setStyleSheet( "QLabel {\n" " background-color: transparent;\n" " border-bottom: 2px solid qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(128, 128, 128, 64), stop:1 rgba(128, 128,128, 0));\n" "}") self.fileNameLabel.setTextFormat(QtCore.Qt.PlainText) self.fileNameLabel.setObjectName("fileNameLabel") self.nameVerticalLayout.addWidget(self.fileNameLabel) self.gridLayout.addLayout(self.nameVerticalLayout, 0, 1, 1, 2) self.descriptionLerticalLayout = QtGui.QVBoxLayout() self.descriptionLerticalLayout.setSpacing(0) self.descriptionLerticalLayout.setObjectName( "descriptionLerticalLayout") self.commentLabel = QtGui.QLabel(commitItem) self.commentLabel.setMinimumSize(QtCore.QSize(0, 25)) self.commentLabel.setTextFormat(QtCore.Qt.PlainText) self.commentLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.commentLabel.setWordWrap(True) self.commentLabel.setMargin(2) self.commentLabel.setObjectName("commentLabel") self.descriptionLerticalLayout.addWidget(self.commentLabel) self.gridLayout.addLayout(self.descriptionLerticalLayout, 2, 1, 1, 2) self.infoHorizontalLayout = QtGui.QHBoxLayout() self.infoHorizontalLayout.setSpacing(0) self.infoHorizontalLayout.setObjectName("infoHorizontalLayout") self.gridLayout.addLayout(self.infoHorizontalLayout, 1, 1, 1, 2) self.gridLayout.setColumnStretch(1, 1) self.gridLayout.setColumnStretch(2, 1) self.retranslateUi(commitItem) QtCore.QMetaObject.connectSlotsByName(commitItem)
def setupUi(self, snapshotItem): snapshotItem.setObjectName("snapshotItem") self.gridLayout = QtGui.QGridLayout(snapshotItem) self.gridLayout.setContentsMargins(0, 0, 0, 0) self.gridLayout.setSpacing(0) self.gridLayout.setObjectName("gridLayout") self.previewVerticalLayout = QtGui.QVBoxLayout() self.previewVerticalLayout.setSpacing(0) self.previewVerticalLayout.setContentsMargins(4, 4, 4, 4) self.previewVerticalLayout.setObjectName("previewVerticalLayout") self.previewLabel = QtGui.QLabel(snapshotItem) self.previewLabel.setMinimumSize(QtCore.QSize(64, 64)) self.previewLabel.setMaximumSize(QtCore.QSize(64, 64)) self.previewLabel.setStyleSheet( "QLabel {\n" " background: rgba(175, 175, 175, 16);\n" " border: 0px;\n" " border-radius: 3px;\n" " padding: 0px 0px;\n" "}") self.previewLabel.setTextFormat(QtCore.Qt.RichText) self.previewLabel.setAlignment(QtCore.Qt.AlignCenter) self.previewLabel.setObjectName("previewLabel") self.previewVerticalLayout.addWidget(self.previewLabel) spacerItem = QtGui.QSpacerItem(0, 0, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Ignored) self.previewVerticalLayout.addItem(spacerItem) self.previewVerticalLayout.setStretch(1, 1) self.gridLayout.addLayout(self.previewVerticalLayout, 0, 1, 3, 1) self.nameVerticalLayout = QtGui.QHBoxLayout() self.nameVerticalLayout.setSpacing(0) self.nameVerticalLayout.setContentsMargins(-1, -1, -1, 3) self.nameVerticalLayout.setObjectName("nameVerticalLayout") self.fileNameLabel = QtGui.QLabel(snapshotItem) self.fileNameLabel.setMinimumSize(QtCore.QSize(0, 20)) self.fileNameLabel.setMaximumSize(QtCore.QSize(16777215, 20)) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.fileNameLabel.setFont(font) self.fileNameLabel.setStyleSheet("QLabel {\n" " background-color: transparent;\n" "}") self.fileNameLabel.setTextFormat(QtCore.Qt.PlainText) self.fileNameLabel.setWordWrap(True) self.fileNameLabel.setObjectName("fileNameLabel") self.nameVerticalLayout.addWidget(self.fileNameLabel) self.sizeLabel = QtGui.QLabel(snapshotItem) self.sizeLabel.setMinimumSize(QtCore.QSize(0, 20)) self.sizeLabel.setMaximumSize(QtCore.QSize(16777215, 20)) self.sizeLabel.setToolTip("") self.sizeLabel.setStyleSheet( "QLabel {\n" " background: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(255, 255, 255, 0), stop:1 rgba(64, 64, 64, 175));\n" "}") self.sizeLabel.setTextFormat(QtCore.Qt.PlainText) self.sizeLabel.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.sizeLabel.setMargin(2) self.sizeLabel.setObjectName("sizeLabel") self.nameVerticalLayout.addWidget(self.sizeLabel) self.nameVerticalLayout.setStretch(0, 1) self.gridLayout.addLayout(self.nameVerticalLayout, 0, 2, 1, 2) self.infoHorizontalLayout = QtGui.QHBoxLayout() self.infoHorizontalLayout.setSpacing(0) self.infoHorizontalLayout.setObjectName("infoHorizontalLayout") self.gridLayout.addLayout(self.infoHorizontalLayout, 1, 2, 1, 1) self.descriptionLorizontalLayout = QtGui.QHBoxLayout() self.descriptionLorizontalLayout.setSpacing(0) self.descriptionLorizontalLayout.setObjectName( "descriptionLorizontalLayout") self.authorLabel = QtGui.QLabel(snapshotItem) self.authorLabel.setMinimumSize(QtCore.QSize(0, 25)) font = Qt4Gui.QFont() font.setItalic(True) self.authorLabel.setFont(font) self.authorLabel.setStyleSheet("color:grey;") self.authorLabel.setTextFormat(QtCore.Qt.PlainText) self.authorLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.authorLabel.setMargin(2) self.authorLabel.setObjectName("authorLabel") self.descriptionLorizontalLayout.addWidget(self.authorLabel) self.commentLabel = QtGui.QLabel(snapshotItem) self.commentLabel.setMinimumSize(QtCore.QSize(0, 25)) self.commentLabel.setTextFormat(QtCore.Qt.PlainText) self.commentLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.commentLabel.setWordWrap(True) self.commentLabel.setMargin(2) self.commentLabel.setObjectName("commentLabel") self.descriptionLorizontalLayout.addWidget(self.commentLabel) self.descriptionLorizontalLayout.setStretch(1, 1) self.gridLayout.addLayout(self.descriptionLorizontalLayout, 2, 2, 1, 2) self.itemColorLine = QtGui.QFrame(snapshotItem) self.itemColorLine.setMaximumSize(QtCore.QSize(4, 16777215)) self.itemColorLine.setStyleSheet( "QFrame { border: 0px; background-color: green;}\n" "") self.itemColorLine.setFrameShadow(QtGui.QFrame.Plain) self.itemColorLine.setLineWidth(4) self.itemColorLine.setFrameShape(QtGui.QFrame.VLine) self.itemColorLine.setFrameShadow(QtGui.QFrame.Sunken) self.itemColorLine.setObjectName("itemColorLine") self.gridLayout.addWidget(self.itemColorLine, 0, 0, 3, 1) self.gridLayout.setColumnStretch(2, 1) self.gridLayout.setRowStretch(2, 1) self.retranslateUi(snapshotItem) QtCore.QMetaObject.connectSlotsByName(snapshotItem)
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 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) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.authorizingGroupBox.setFont(font) self.authorizingGroupBox.setFlat(True) self.authorizingGroupBox.setObjectName("authorizingGroupBox") self.authorizationLayout = QtGui.QGridLayout(self.authorizingGroupBox) self.authorizationLayout.setContentsMargins(10, 24, 9, 0) self.authorizationLayout.setObjectName("authorizationLayout") self.userNameLable = QtGui.QLabel(self.authorizingGroupBox) self.userNameLable.setMinimumSize(QtCore.QSize(120, 0)) self.userNameLable.setObjectName("userNameLable") self.authorizationLayout.addWidget(self.userNameLable, 2, 0, 1, 1) self.tacticServerLable = QtGui.QLabel(self.authorizingGroupBox) self.tacticServerLable.setObjectName("tacticServerLable") self.authorizationLayout.addWidget(self.tacticServerLable, 3, 0, 1, 1) self.usePortalSiteCheckBox = QtGui.QCheckBox(self.authorizingGroupBox) self.usePortalSiteCheckBox.setObjectName("usePortalSiteCheckBox") self.authorizationLayout.addWidget(self.usePortalSiteCheckBox, 4, 0, 1, 1) self.savedServerPresetLabel = QtGui.QLabel(self.authorizingGroupBox) self.savedServerPresetLabel.setObjectName("savedServerPresetLabel") self.authorizationLayout.addWidget(self.savedServerPresetLabel, 1, 0, 1, 1) self.userNameLineEdit = QtGui.QLineEdit(self.authorizingGroupBox) self.userNameLineEdit.setMinimumSize(QtCore.QSize(80, 0)) self.userNameLineEdit.setObjectName("userNameLineEdit") self.authorizationLayout.addWidget(self.userNameLineEdit, 2, 1, 1, 2) self.tacticServerLineEdit = QtGui.QLineEdit(self.authorizingGroupBox) self.tacticServerLineEdit.setMinimumSize(QtCore.QSize(80, 0)) self.tacticServerLineEdit.setObjectName("tacticServerLineEdit") self.authorizationLayout.addWidget(self.tacticServerLineEdit, 3, 1, 1, 2) self.serverPresetsComboBox = QtGui.QComboBox(self.authorizingGroupBox) self.serverPresetsComboBox.setObjectName("serverPresetsComboBox") self.authorizationLayout.addWidget(self.serverPresetsComboBox, 1, 1, 1, 2) self.editServerPresetsPushButton = QtGui.QPushButton( self.authorizingGroupBox) self.editServerPresetsPushButton.setObjectName( "editServerPresetsPushButton") self.authorizationLayout.addWidget(self.editServerPresetsPushButton, 1, 3, 1, 1) self.generateTicketButton = QtGui.QPushButton(self.authorizingGroupBox) self.generateTicketButton.setObjectName("generateTicketButton") self.authorizationLayout.addWidget(self.generateTicketButton, 2, 3, 1, 1) self.siteLineEdit = QtGui.QLineEdit(self.authorizingGroupBox) self.siteLineEdit.setEnabled(False) self.siteLineEdit.setObjectName("siteLineEdit") self.authorizationLayout.addWidget(self.siteLineEdit, 4, 1, 1, 3) self.connectToServerButton = QtGui.QPushButton( self.authorizingGroupBox) self.connectToServerButton.setMinimumSize(QtCore.QSize(120, 0)) self.connectToServerButton.setObjectName("connectToServerButton") self.authorizationLayout.addWidget(self.connectToServerButton, 3, 3, 1, 1) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.tacticStatusLable = QtGui.QLabel(self.authorizingGroupBox) self.tacticStatusLable.setMinimumSize(QtCore.QSize(90, 0)) self.tacticStatusLable.setObjectName("tacticStatusLable") self.horizontalLayout_2.addWidget(self.tacticStatusLable) self.loginStatusLable = QtGui.QLabel(self.authorizingGroupBox) self.loginStatusLable.setMinimumSize(QtCore.QSize(90, 0)) self.loginStatusLable.setObjectName("loginStatusLable") self.horizontalLayout_2.addWidget(self.loginStatusLable) self.authorizationLayout.addLayout(self.horizontalLayout_2, 0, 0, 1, 4) self.authorizationLayout.setColumnStretch(1, 1) self.serverPageWidgetLayout.addWidget(self.authorizingGroupBox) self.proxyGroupBox = QtGui.QGroupBox(serverPageWidget) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.proxyGroupBox.setFont(font) 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(10, 24, 9, 0) 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.setEnabled(False) font = Qt4Gui.QFont() font.setWeight(75) font.setBold(True) self.environmentsGroupBox.setFont(font) self.environmentsGroupBox.setFlat(True) self.environmentsGroupBox.setObjectName("environmentsGroupBox") self.environmentLayout = QtGui.QGridLayout(self.environmentsGroupBox) self.environmentLayout.setContentsMargins(10, 24, 9, 0) 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 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()