|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 |
|
3 | | -# Form implementation generated from reading ui file 'dialog.ui' |
4 | | -# |
5 | | -# by: pyside-uic 0.2.15 running on PySide 1.2.2 |
6 | | -# |
7 | | -# WARNING! All changes made in this file will be lost! |
| 3 | +################################################################################ |
| 4 | +## Form generated from reading UI file 'dialog.ui' |
| 5 | +## |
| 6 | +## Created by: Qt User Interface Compiler version 5.15.2 |
| 7 | +## |
| 8 | +## WARNING! All changes made in this file will be lost when recompiling UI file! |
| 9 | +################################################################################ |
8 | 10 |
|
9 | | -from tank.platform.qt import QtCore, QtGui |
| 11 | +from tank.platform.qt import QtCore |
| 12 | +for name, cls in QtCore.__dict__.items(): |
| 13 | + if isinstance(cls, type): globals()[name] = cls |
| 14 | + |
| 15 | +from tank.platform.qt import QtGui |
| 16 | +for name, cls in QtGui.__dict__.items(): |
| 17 | + if isinstance(cls, type): globals()[name] = cls |
| 18 | + |
| 19 | + |
| 20 | +from . import resources_rc |
10 | 21 |
|
11 | 22 | class Ui_Dialog(object): |
12 | 23 | def setupUi(self, Dialog): |
13 | | - Dialog.setObjectName("Dialog") |
| 24 | + if not Dialog.objectName(): |
| 25 | + Dialog.setObjectName(u"Dialog") |
14 | 26 | Dialog.resize(513, 301) |
15 | | - self.verticalLayout = QtGui.QVBoxLayout(Dialog) |
16 | | - self.verticalLayout.setObjectName("verticalLayout") |
17 | | - self.stackedWidget = QtGui.QStackedWidget(Dialog) |
18 | | - self.stackedWidget.setObjectName("stackedWidget") |
19 | | - self.page_input = QtGui.QWidget() |
20 | | - self.page_input.setObjectName("page_input") |
21 | | - self.gridLayout = QtGui.QGridLayout(self.page_input) |
22 | | - self.gridLayout.setObjectName("gridLayout") |
23 | | - self.copy_config = QtGui.QCheckBox(self.page_input) |
| 27 | + self.verticalLayout = QVBoxLayout(Dialog) |
| 28 | + self.verticalLayout.setObjectName(u"verticalLayout") |
| 29 | + self.stackedWidget = QStackedWidget(Dialog) |
| 30 | + self.stackedWidget.setObjectName(u"stackedWidget") |
| 31 | + self.page_input = QWidget() |
| 32 | + self.page_input.setObjectName(u"page_input") |
| 33 | + self.gridLayout = QGridLayout(self.page_input) |
| 34 | + self.gridLayout.setObjectName(u"gridLayout") |
| 35 | + self.copy_config = QCheckBox(self.page_input) |
| 36 | + self.copy_config.setObjectName(u"copy_config") |
24 | 37 | self.copy_config.setChecked(True) |
25 | | - self.copy_config.setObjectName("copy_config") |
| 38 | + |
26 | 39 | self.gridLayout.addWidget(self.copy_config, 4, 1, 1, 1) |
27 | | - spacerItem = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) |
28 | | - self.gridLayout.addItem(spacerItem, 1, 0, 1, 2) |
29 | | - self.label_3 = QtGui.QLabel(self.page_input) |
30 | | - self.label_3.setObjectName("label_3") |
| 40 | + |
| 41 | + self.verticalSpacer_6 = QSpacerItem(20, 10, QSizePolicy.Minimum, QSizePolicy.Fixed) |
| 42 | + |
| 43 | + self.gridLayout.addItem(self.verticalSpacer_6, 1, 0, 1, 2) |
| 44 | + |
| 45 | + self.label_3 = QLabel(self.page_input) |
| 46 | + self.label_3.setObjectName(u"label_3") |
| 47 | + |
31 | 48 | self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) |
32 | | - self.path = QtGui.QLineEdit(self.page_input) |
33 | | - self.path.setToolTip("") |
34 | | - self.path.setObjectName("path") |
| 49 | + |
| 50 | + self.path = QLineEdit(self.page_input) |
| 51 | + self.path.setObjectName(u"path") |
| 52 | + |
35 | 53 | self.gridLayout.addWidget(self.path, 3, 1, 1, 1) |
36 | | - self.label_5 = QtGui.QLabel(self.page_input) |
| 54 | + |
| 55 | + self.label_5 = QLabel(self.page_input) |
| 56 | + self.label_5.setObjectName(u"label_5") |
37 | 57 | self.label_5.setWordWrap(True) |
38 | | - self.label_5.setObjectName("label_5") |
| 58 | + |
39 | 59 | self.gridLayout.addWidget(self.label_5, 0, 0, 1, 2) |
40 | | - self.browse = QtGui.QToolButton(self.page_input) |
41 | | - self.browse.setObjectName("browse") |
| 60 | + |
| 61 | + self.browse = QToolButton(self.page_input) |
| 62 | + self.browse.setObjectName(u"browse") |
| 63 | + |
42 | 64 | self.gridLayout.addWidget(self.browse, 3, 2, 1, 1) |
43 | | - self.label_4 = QtGui.QLabel(self.page_input) |
44 | | - self.label_4.setObjectName("label_4") |
| 65 | + |
| 66 | + self.label_4 = QLabel(self.page_input) |
| 67 | + self.label_4.setObjectName(u"label_4") |
| 68 | + |
45 | 69 | self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1) |
46 | | - spacerItem1 = QtGui.QSpacerItem(17, 37, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
47 | | - self.gridLayout.addItem(spacerItem1, 5, 0, 1, 2) |
48 | | - self.config_name = QtGui.QLineEdit(self.page_input) |
49 | | - self.config_name.setObjectName("config_name") |
| 70 | + |
| 71 | + self.verticalSpacer = QSpacerItem(17, 37, QSizePolicy.Minimum, QSizePolicy.Expanding) |
| 72 | + |
| 73 | + self.gridLayout.addItem(self.verticalSpacer, 5, 0, 1, 2) |
| 74 | + |
| 75 | + self.config_name = QLineEdit(self.page_input) |
| 76 | + self.config_name.setObjectName(u"config_name") |
| 77 | + |
50 | 78 | self.gridLayout.addWidget(self.config_name, 2, 1, 1, 1) |
| 79 | + |
51 | 80 | self.stackedWidget.addWidget(self.page_input) |
52 | | - self.page_success = QtGui.QWidget() |
53 | | - self.page_success.setObjectName("page_success") |
54 | | - self.gridLayout_2 = QtGui.QGridLayout(self.page_success) |
55 | | - self.gridLayout_2.setObjectName("gridLayout_2") |
56 | | - spacerItem2 = QtGui.QSpacerItem(20, 31, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
57 | | - self.gridLayout_2.addItem(spacerItem2, 0, 1, 1, 1) |
58 | | - spacerItem3 = QtGui.QSpacerItem(90, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
59 | | - self.gridLayout_2.addItem(spacerItem3, 1, 0, 1, 1) |
60 | | - self.horizontalLayout_2 = QtGui.QHBoxLayout() |
61 | | - self.horizontalLayout_2.setObjectName("horizontalLayout_2") |
62 | | - self.label = QtGui.QLabel(self.page_success) |
63 | | - self.label.setMinimumSize(QtCore.QSize(64, 64)) |
64 | | - self.label.setMaximumSize(QtCore.QSize(64, 64)) |
65 | | - self.label.setText("") |
66 | | - self.label.setPixmap(QtGui.QPixmap(":/tk_multi_devutils_create_sb/complete.png")) |
| 81 | + self.page_success = QWidget() |
| 82 | + self.page_success.setObjectName(u"page_success") |
| 83 | + self.gridLayout_2 = QGridLayout(self.page_success) |
| 84 | + self.gridLayout_2.setObjectName(u"gridLayout_2") |
| 85 | + self.verticalSpacer_2 = QSpacerItem(20, 31, QSizePolicy.Minimum, QSizePolicy.Expanding) |
| 86 | + |
| 87 | + self.gridLayout_2.addItem(self.verticalSpacer_2, 0, 1, 1, 1) |
| 88 | + |
| 89 | + self.horizontalSpacer_3 = QSpacerItem(90, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) |
| 90 | + |
| 91 | + self.gridLayout_2.addItem(self.horizontalSpacer_3, 1, 0, 1, 1) |
| 92 | + |
| 93 | + self.horizontalLayout_2 = QHBoxLayout() |
| 94 | + self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") |
| 95 | + self.label = QLabel(self.page_success) |
| 96 | + self.label.setObjectName(u"label") |
| 97 | + self.label.setMinimumSize(QSize(64, 64)) |
| 98 | + self.label.setMaximumSize(QSize(64, 64)) |
| 99 | + self.label.setPixmap(QPixmap(u":/tk_multi_devutils_create_sb/complete.png")) |
67 | 100 | self.label.setScaledContents(True) |
68 | | - self.label.setObjectName("label") |
| 101 | + |
69 | 102 | self.horizontalLayout_2.addWidget(self.label) |
70 | | - self.label_7 = QtGui.QLabel(self.page_success) |
| 103 | + |
| 104 | + self.label_7 = QLabel(self.page_success) |
| 105 | + self.label_7.setObjectName(u"label_7") |
71 | 106 | self.label_7.setWordWrap(True) |
72 | | - self.label_7.setObjectName("label_7") |
| 107 | + |
73 | 108 | self.horizontalLayout_2.addWidget(self.label_7) |
| 109 | + |
74 | 110 | self.gridLayout_2.addLayout(self.horizontalLayout_2, 1, 1, 1, 1) |
75 | | - spacerItem4 = QtGui.QSpacerItem(90, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
76 | | - self.gridLayout_2.addItem(spacerItem4, 1, 2, 1, 1) |
77 | | - spacerItem5 = QtGui.QSpacerItem(20, 31, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
78 | | - self.gridLayout_2.addItem(spacerItem5, 2, 1, 1, 1) |
| 111 | + |
| 112 | + self.horizontalSpacer_2 = QSpacerItem(90, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) |
| 113 | + |
| 114 | + self.gridLayout_2.addItem(self.horizontalSpacer_2, 1, 2, 1, 1) |
| 115 | + |
| 116 | + self.verticalSpacer_3 = QSpacerItem(20, 31, QSizePolicy.Minimum, QSizePolicy.Expanding) |
| 117 | + |
| 118 | + self.gridLayout_2.addItem(self.verticalSpacer_3, 2, 1, 1, 1) |
| 119 | + |
79 | 120 | self.stackedWidget.addWidget(self.page_success) |
| 121 | + |
80 | 122 | self.verticalLayout.addWidget(self.stackedWidget) |
81 | | - self.horizontalLayout = QtGui.QHBoxLayout() |
82 | | - self.horizontalLayout.setObjectName("horizontalLayout") |
83 | | - spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
84 | | - self.horizontalLayout.addItem(spacerItem6) |
85 | | - self.action_button = QtGui.QPushButton(Dialog) |
86 | | - self.action_button.setObjectName("action_button") |
| 123 | + |
| 124 | + self.horizontalLayout = QHBoxLayout() |
| 125 | + self.horizontalLayout.setObjectName(u"horizontalLayout") |
| 126 | + self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) |
| 127 | + |
| 128 | + self.horizontalLayout.addItem(self.horizontalSpacer) |
| 129 | + |
| 130 | + self.action_button = QPushButton(Dialog) |
| 131 | + self.action_button.setObjectName(u"action_button") |
| 132 | + |
87 | 133 | self.horizontalLayout.addWidget(self.action_button) |
| 134 | + |
88 | 135 | self.verticalLayout.addLayout(self.horizontalLayout) |
89 | 136 |
|
90 | 137 | self.retranslateUi(Dialog) |
| 138 | + |
91 | 139 | self.stackedWidget.setCurrentIndex(0) |
92 | | - QtCore.QMetaObject.connectSlotsByName(Dialog) |
| 140 | + |
| 141 | + QMetaObject.connectSlotsByName(Dialog) |
| 142 | + # setupUi |
93 | 143 |
|
94 | 144 | def retranslateUi(self, Dialog): |
95 | | - Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Create Config Sandbox", None, QtGui.QApplication.UnicodeUTF8)) |
96 | | - self.copy_config.setToolTip(QtGui.QApplication.translate("Dialog", "If you tick this, the configuration will be copied into the location automatically.\n" |
| 145 | + Dialog.setWindowTitle(QCoreApplication.translate("Dialog", u"Create Config Sandbox", None)) |
| 146 | +#if QT_CONFIG(tooltip) |
| 147 | + self.copy_config.setToolTip(QCoreApplication.translate("Dialog", u"If you tick this, the configuration will be copied into the location automatically.\n" |
97 | 148 | "If you leave it blank, you have to manually add a configuration, for example via source control.\n" |
98 | | -"If you select a folder which already contains files, copying will be disabled.", None, QtGui.QApplication.UnicodeUTF8)) |
99 | | - self.copy_config.setText(QtGui.QApplication.translate("Dialog", "Copy configuration into folder", None, QtGui.QApplication.UnicodeUTF8)) |
100 | | - self.label_3.setText(QtGui.QApplication.translate("Dialog", "Config Name", None, QtGui.QApplication.UnicodeUTF8)) |
101 | | - self.label_5.setText(QtGui.QApplication.translate("Dialog", "Create a configuration sandbox on disk where you can make configuration changes, retrieve updates and do development.", None, QtGui.QApplication.UnicodeUTF8)) |
102 | | - self.browse.setText(QtGui.QApplication.translate("Dialog", "...", None, QtGui.QApplication.UnicodeUTF8)) |
103 | | - self.label_4.setText(QtGui.QApplication.translate("Dialog", "Location on disk", None, QtGui.QApplication.UnicodeUTF8)) |
104 | | - self.label_7.setText(QtGui.QApplication.translate("Dialog", "Configuration Successfully created. Reload to pick up your changes.", None, QtGui.QApplication.UnicodeUTF8)) |
105 | | - self.action_button.setText(QtGui.QApplication.translate("Dialog", "Proceed", None, QtGui.QApplication.UnicodeUTF8)) |
106 | | - |
107 | | -from . import resources_rc |
| 149 | +"If you select a folder which already contains files, copying will be disabled.", None)) |
| 150 | +#endif // QT_CONFIG(tooltip) |
| 151 | + self.copy_config.setText(QCoreApplication.translate("Dialog", u"Copy configuration into folder", None)) |
| 152 | + self.label_3.setText(QCoreApplication.translate("Dialog", u"Config Name", None)) |
| 153 | +#if QT_CONFIG(tooltip) |
| 154 | + self.path.setToolTip("") |
| 155 | +#endif // QT_CONFIG(tooltip) |
| 156 | + self.label_5.setText(QCoreApplication.translate("Dialog", u"Create a configuration sandbox on disk where you can make configuration changes, retrieve updates and do development.", None)) |
| 157 | + self.browse.setText(QCoreApplication.translate("Dialog", u"...", None)) |
| 158 | + self.label_4.setText(QCoreApplication.translate("Dialog", u"Location on disk", None)) |
| 159 | + self.label.setText("") |
| 160 | + self.label_7.setText(QCoreApplication.translate("Dialog", u"Configuration Successfully created. Reload to pick up your changes.", None)) |
| 161 | + self.action_button.setText(QCoreApplication.translate("Dialog", u"Proceed", None)) |
| 162 | + # retranslateUi |
0 commit comments