def setupUi(self, AboutScreen): AboutScreen.setObjectName("AboutScreen") AboutScreen.resize(325, 385) AboutScreen.setMinimumSize(QtCore.QSize(320, 327)) self.verticalLayout = QtGui.QVBoxLayout(AboutScreen) self.verticalLayout.setSpacing(15) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.icon = QtGui.QLabel(AboutScreen) self.icon.setMinimumSize(QtCore.QSize(100, 100)) self.icon.setMaximumSize(QtCore.QSize(100, 100)) self.icon.setText("") self.icon.setPixmap(QtGui.QPixmap(":/tk-desktop/shotgun_logo.png")) self.icon.setScaledContents(True) self.icon.setObjectName("icon") self.horizontalLayout.addWidget(self.icon) self.verticalLayout.addLayout(self.horizontalLayout) self.header = QtGui.QLabel(AboutScreen) self.header.setStyleSheet("font-size: 16px;") self.header.setAlignment(QtCore.Qt.AlignCenter) self.header.setWordWrap(True) self.header.setObjectName("header") self.verticalLayout.addWidget(self.header) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.body = QtGui.QLabel(AboutScreen) self.body.setAlignment(QtCore.Qt.AlignCenter) self.body.setWordWrap(True) self.body.setObjectName("body") self.verticalLayout.addWidget(self.body) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem1) self.copyright = QtGui.QLabel(AboutScreen) self.copyright.setStyleSheet("font-size: 10px;") self.copyright.setAlignment(QtCore.Qt.AlignCenter) self.copyright.setWordWrap(True) self.copyright.setObjectName("copyright") self.verticalLayout.addWidget(self.copyright) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem2) self.buttonBox = QtGui.QDialogButtonBox(AboutScreen) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok) self.buttonBox.setCenterButtons(False) self.buttonBox.setObjectName("buttonBox") self.horizontalLayout_2.addWidget(self.buttonBox) self.licensesButton = QtGui.QPushButton(AboutScreen) self.licensesButton.setObjectName("licensesButton") self.horizontalLayout_2.addWidget(self.licensesButton) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem3) self.verticalLayout.addLayout(self.horizontalLayout_2) self.retranslateUi(AboutScreen) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), AboutScreen.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), AboutScreen.reject) QtCore.QMetaObject.connectSlotsByName(AboutScreen)
def setupUi(self, CreateStorageDialog): CreateStorageDialog.setObjectName("CreateStorageDialog") CreateStorageDialog.resize(285, 94) CreateStorageDialog.setAutoFillBackground(True) self.verticalLayout_2 = QtGui.QVBoxLayout(CreateStorageDialog) self.verticalLayout_2.setSpacing(4) self.verticalLayout_2.setContentsMargins(12, 12, 12, 12) self.verticalLayout_2.setObjectName("verticalLayout_2") self.main_widget = QtGui.QWidget(CreateStorageDialog) self.main_widget.setObjectName("main_widget") self.verticalLayout = QtGui.QVBoxLayout(self.main_widget) self.verticalLayout.setSpacing(0) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.storage_name_layout = QtGui.QHBoxLayout() self.storage_name_layout.setSpacing(4) self.storage_name_layout.setObjectName("storage_name_layout") spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.storage_name_layout.addItem(spacerItem) self.storage_name_lbl = QtGui.QLabel(self.main_widget) self.storage_name_lbl.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.storage_name_lbl.setObjectName("storage_name_lbl") self.storage_name_layout.addWidget(self.storage_name_lbl) self.storage_name = QtGui.QLineEdit(self.main_widget) self.storage_name.setObjectName("storage_name") self.storage_name_layout.addWidget(self.storage_name) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.storage_name_layout.addItem(spacerItem1) self.storage_name_layout.setStretch(0, 5) self.storage_name_layout.setStretch(2, 15) self.verticalLayout.addLayout(self.storage_name_layout) self.info = QtGui.QLabel(self.main_widget) font = QtGui.QFont() font.setPointSize(10) self.info.setFont(font) self.info.setText("") self.info.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.info.setWordWrap(True) self.info.setObjectName("info") self.verticalLayout.addWidget(self.info) self.verticalLayout.setStretch(0, 1) self.verticalLayout.setStretch(1, 10) self.verticalLayout_2.addWidget(self.main_widget) self.button_box = QtGui.QDialogButtonBox(CreateStorageDialog) self.button_box.setLayoutDirection(QtCore.Qt.LeftToRight) self.button_box.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.button_box.setObjectName("button_box") self.verticalLayout_2.addWidget(self.button_box) self.retranslateUi(CreateStorageDialog) QtCore.QObject.connect(self.button_box, QtCore.SIGNAL("accepted()"), CreateStorageDialog.accept) QtCore.QObject.connect(self.button_box, QtCore.SIGNAL("rejected()"), CreateStorageDialog.reject) QtCore.QMetaObject.connectSlotsByName(CreateStorageDialog) CreateStorageDialog.setTabOrder(self.storage_name, self.button_box)
def setupUi(self, ErrorDialog): ErrorDialog.setObjectName("ErrorDialog") ErrorDialog.resize(572, 443) ErrorDialog.setModal(True) self.verticalLayout = QtGui.QVBoxLayout(ErrorDialog) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setSpacing(20) self.horizontalLayout.setObjectName("horizontalLayout") self.icon = QtGui.QLabel(ErrorDialog) self.icon.setObjectName("icon") self.horizontalLayout.addWidget(self.icon) self.title = QtGui.QLabel(ErrorDialog) self.title.setStyleSheet("font-size: 20px;") self.title.setWordWrap(True) self.title.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse | QtCore.Qt.TextSelectableByMouse) self.title.setObjectName("title") self.horizontalLayout.addWidget(self.title) self.horizontalLayout.setStretch(1, 1) self.verticalLayout.addLayout(self.horizontalLayout) self.message = QtGui.QTextEdit(ErrorDialog) self.message.setUndoRedoEnabled(False) self.message.setLineWrapMode(QtGui.QTextEdit.NoWrap) self.message.setReadOnly(True) self.message.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByMouse | QtCore.Qt.TextSelectableByMouse) self.message.setObjectName("message") self.verticalLayout.addWidget(self.message) self.buttonBox = QtGui.QDialogButtonBox(ErrorDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) self.buttonBox.setObjectName("buttonBox") self.verticalLayout.addWidget(self.buttonBox) self.retranslateUi(ErrorDialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), ErrorDialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), ErrorDialog.reject) QtCore.QMetaObject.connectSlotsByName(ErrorDialog)
def setupUi(self, Licenses): Licenses.setObjectName("Licenses") Licenses.resize(500, 400) Licenses.setMinimumSize(QtCore.QSize(500, 400)) self.verticalLayout_2 = QtGui.QVBoxLayout(Licenses) self.verticalLayout_2.setObjectName("verticalLayout_2") self.licenseText = QtGui.QTextBrowser(Licenses) self.licenseText.setOpenExternalLinks(True) self.licenseText.setObjectName("licenseText") self.verticalLayout_2.addWidget(self.licenseText) self.buttonBox = QtGui.QDialogButtonBox(Licenses) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Ok) self.buttonBox.setCenterButtons(True) self.buttonBox.setObjectName("buttonBox") self.verticalLayout_2.addWidget(self.buttonBox) self.retranslateUi(Licenses) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), Licenses.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Licenses.reject) QtCore.QMetaObject.connectSlotsByName(Licenses)
def setupUi(self, NewProjectForm): NewProjectForm.setObjectName("NewProjectForm") NewProjectForm.resize(604, 473) self.verticalLayout = QtGui.QVBoxLayout(NewProjectForm) self.verticalLayout.setSpacing(4) self.verticalLayout.setContentsMargins(12, 12, 12, 4) self.verticalLayout.setObjectName("verticalLayout") self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setSpacing(4) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.verticalLayout.addLayout(self.verticalLayout_2) self.context_widget = context_selector.ContextWidget(NewProjectForm) self.context_widget.setObjectName("context_widget") self.verticalLayout_2.addWidget(self.context_widget) self.context_warning_label = QtGui.QLabel(NewProjectForm) self.context_warning_label.setText("") self.context_warning_label.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.context_warning_label.setMargin(1) self.context_warning_label.setIndent(-1) self.context_warning_label.setObjectName("context_warning_label") self.verticalLayout_2.addWidget(self.context_warning_label) self.verticalLayout_3 = QtGui.QVBoxLayout() self.verticalLayout_3.setSpacing(12) self.verticalLayout_3.setContentsMargins(0, 0, 0, 0) self.verticalLayout_3.setObjectName("verticalLayout_3") self.project_groupbox = QtGui.QGroupBox(NewProjectForm) self.project_groupbox.setObjectName("project_groupbox") self.project_groupbox.setLayout(self.verticalLayout_3) self.verticalLayout.addWidget(self.project_groupbox) self.verticalLayout_4 = QtGui.QVBoxLayout() self.verticalLayout_4.setSpacing(4) self.verticalLayout_4.setObjectName("verticalLayout_4") self.info_label = QtGui.QLabel(NewProjectForm) self.info_label.setMinimumSize(QtCore.QSize(0, 0)) self.info_label.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.info_label.setWordWrap(False) self.info_label.setObjectName("info_label") self.verticalLayout_4.addWidget(self.info_label) self.name_line = QtGui.QFrame(NewProjectForm) self.name_line.setFrameShadow(QtGui.QFrame.Plain) self.name_line.setFrameShape(QtGui.QFrame.HLine) self.name_line.setFrameShadow(QtGui.QFrame.Sunken) self.name_line.setObjectName("name_line") self.verticalLayout_4.addWidget(self.name_line) self.verticalLayout_3.addLayout(self.verticalLayout_4) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setSpacing(-1) self.gridLayout.setObjectName("gridLayout") self.label_2 = QtGui.QLabel(NewProjectForm) self.label_2.setMargin(1) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) self.name_edit = QtGui.QLineEdit(NewProjectForm) self.name_edit.setObjectName("name_edit") self.gridLayout.addWidget(self.name_edit, 0, 1, 1, 1) self.name_preview_label = QtGui.QLabel(NewProjectForm) self.name_preview_label.setText("") self.name_preview_label.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.name_preview_label.setMargin(1) self.name_preview_label.setIndent(-1) self.name_preview_label.setObjectName("name_preview_label") self.gridLayout.addWidget(self.name_preview_label, 1, 1, 1, 1) self.label_4 = QtGui.QLabel(NewProjectForm) self.label_4.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.label_4.setMargin(1) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 1, 0, 1, 1) self.verticalLayout_3.addLayout(self.gridLayout) spacerItem = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) self.verticalLayout_3.addItem(spacerItem) self.verticalLayout_6 = QtGui.QVBoxLayout() self.verticalLayout_6.setSpacing(4) self.verticalLayout_6.setObjectName("verticalLayout_6") self.label = QtGui.QLabel(NewProjectForm) self.label.setObjectName("label") self.verticalLayout_6.addWidget(self.label) self.publishes_line = QtGui.QFrame(NewProjectForm) self.publishes_line.setFrameShadow(QtGui.QFrame.Plain) self.publishes_line.setFrameShape(QtGui.QFrame.HLine) self.publishes_line.setFrameShadow(QtGui.QFrame.Sunken) self.publishes_line.setObjectName("publishes_line") self.verticalLayout_6.addWidget(self.publishes_line) self.verticalLayout_3.addLayout(self.verticalLayout_6) self.verticalLayout_5 = QtGui.QVBoxLayout() self.verticalLayout_5.setSpacing(4) self.verticalLayout_5.setObjectName("verticalLayout_5") self.publish_list = PublishListView(NewProjectForm) self.publish_list.setStyleSheet("#publish_list {\n" "background-color: rgb(255, 128, 0);\n" "}") self.publish_list.setObjectName("publish_list") self.verticalLayout_5.addWidget(self.publish_list) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem1 = QtGui.QSpacerItem(0, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.add_publish_btn = QtGui.QPushButton(NewProjectForm) self.add_publish_btn.setMinimumSize(QtCore.QSize(32, 0)) self.add_publish_btn.setObjectName("add_publish_btn") self.horizontalLayout.addWidget(self.add_publish_btn) self.horizontalLayout.setStretch(0, 1) self.verticalLayout_5.addLayout(self.horizontalLayout) self.verticalLayout_5.setStretch(0, 1) self.verticalLayout_3.addLayout(self.verticalLayout_5) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setContentsMargins(12, 8, 12, 12) self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem2 = QtGui.QSpacerItem(0, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem2) self.cancel_btn = QtGui.QPushButton(NewProjectForm) self.cancel_btn.setMinimumSize(QtCore.QSize(90, 0)) self.cancel_btn.setObjectName("cancel_btn") self.horizontalLayout_3.addWidget(self.cancel_btn) self.create_btn = QtGui.QPushButton(NewProjectForm) self.create_btn.setMinimumSize(QtCore.QSize(90, 0)) self.create_btn.setDefault(True) self.create_btn.setObjectName("create_btn") self.horizontalLayout_3.addWidget(self.create_btn) self.verticalLayout.addLayout(self.horizontalLayout_3) self.verticalLayout.setStretch(1, 1) self.retranslateUi(NewProjectForm) QtCore.QObject.connect(self.cancel_btn, QtCore.SIGNAL("clicked()"), NewProjectForm.close) QtCore.QMetaObject.connectSlotsByName(NewProjectForm)
def setupUi(self, NewTaskForm): NewTaskForm.setObjectName("NewTaskForm") NewTaskForm.resize(380, 270) NewTaskForm.setMinimumSize(QtCore.QSize(380, 270)) self.verticalLayout = QtGui.QVBoxLayout(NewTaskForm) self.verticalLayout.setSpacing(4) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setSpacing(20) self.verticalLayout_2.setContentsMargins(12, 12, 12, 4) self.verticalLayout_2.setObjectName("verticalLayout_2") self.label_3 = QtGui.QLabel(NewTaskForm) self.label_3.setWordWrap(True) self.label_3.setObjectName("label_3") self.verticalLayout_2.addWidget(self.label_3) self.gridLayout = QtGui.QGridLayout() self.gridLayout.setHorizontalSpacing(20) self.gridLayout.setVerticalSpacing(6) self.gridLayout.setObjectName("gridLayout") self.assigned_to = QtGui.QLabel(NewTaskForm) self.assigned_to.setObjectName("assigned_to") self.gridLayout.addWidget(self.assigned_to, 7, 2, 1, 1) self.label_6 = QtGui.QLabel(NewTaskForm) font = QtGui.QFont() font.setWeight(75) font.setBold(True) self.label_6.setFont(font) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 7, 0, 1, 1) self.label_4 = QtGui.QLabel(NewTaskForm) font = QtGui.QFont() font.setWeight(75) font.setBold(True) self.label_4.setFont(font) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 8, 0, 1, 1) self.pipeline_step = QtGui.QComboBox(NewTaskForm) self.pipeline_step.setObjectName("pipeline_step") self.gridLayout.addWidget(self.pipeline_step, 1, 2, 1, 1) spacerItem = QtGui.QSpacerItem(10, 10, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) self.gridLayout.addItem(spacerItem, 6, 0, 1, 1) self.entity = QtGui.QLabel(NewTaskForm) self.entity.setObjectName("entity") self.gridLayout.addWidget(self.entity, 8, 2, 1, 1) self.label = QtGui.QLabel(NewTaskForm) font = QtGui.QFont() font.setWeight(75) font.setBold(True) self.label.setFont(font) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 1, 0, 1, 1) self.label_2 = QtGui.QLabel(NewTaskForm) font = QtGui.QFont() font.setWeight(75) font.setBold(True) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) self.task_name = QtGui.QLineEdit(NewTaskForm) self.task_name.setObjectName("task_name") self.gridLayout.addWidget(self.task_name, 0, 2, 1, 1) self.gridLayout.setColumnStretch(2, 1) self.verticalLayout_2.addLayout(self.gridLayout) self.warning = QtGui.QLabel(NewTaskForm) self.warning.setText("") self.warning.setWordWrap(True) self.warning.setObjectName("warning") self.verticalLayout_2.addWidget(self.warning) self.verticalLayout.addLayout(self.verticalLayout_2) spacerItem1 = QtGui.QSpacerItem(20, 11, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem1) self.break_line = QtGui.QFrame(NewTaskForm) self.break_line.setFrameShape(QtGui.QFrame.HLine) self.break_line.setFrameShadow(QtGui.QFrame.Sunken) self.break_line.setObjectName("break_line") self.verticalLayout.addWidget(self.break_line) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint) self.horizontalLayout.setContentsMargins(12, 8, 12, 12) self.horizontalLayout.setObjectName("horizontalLayout") spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.cancel_btn = QtGui.QPushButton(NewTaskForm) self.cancel_btn.setObjectName("cancel_btn") self.horizontalLayout.addWidget(self.cancel_btn) self.create_btn = QtGui.QPushButton(NewTaskForm) self.create_btn.setDefault(True) self.create_btn.setObjectName("create_btn") self.horizontalLayout.addWidget(self.create_btn) self.verticalLayout.addLayout(self.horizontalLayout) self.verticalLayout.setStretch(2, 1) self.retranslateUi(NewTaskForm) QtCore.QObject.connect(self.cancel_btn, QtCore.SIGNAL("clicked()"), NewTaskForm.close) QtCore.QMetaObject.connectSlotsByName(NewTaskForm) NewTaskForm.setTabOrder(self.task_name, self.pipeline_step) NewTaskForm.setTabOrder(self.pipeline_step, self.create_btn) NewTaskForm.setTabOrder(self.create_btn, self.cancel_btn)