@@ -1,9 +1,9 | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 |
# Form implementation generated from reading ui file ' |
|
|
3 | # Form implementation generated from reading ui file '/home/roj-idl71/SignalChain/workspacev4.ui' | |
|
4 | 4 | # |
|
5 |
# Created: |
|
|
6 |
# by: PyQt4 UI code generator 4. |
|
|
5 | # Created: Wed Mar 6 14:59:06 2013 | |
|
6 | # by: PyQt4 UI code generator 4.8.6 | |
|
7 | 7 | # |
|
8 | 8 | # WARNING! All changes made in this file will be lost! |
|
9 | 9 | |
@@ -15,30 +15,40 except AttributeError: | |||
|
15 | 15 | _fromUtf8 = lambda s: s |
|
16 | 16 | |
|
17 | 17 | class Ui_Workspace(object): |
|
18 |
def setupUi(self, |
|
|
19 |
|
|
|
20 |
|
|
|
21 | self.centralWidget = QtGui.QWidget(MainWindow) | |
|
22 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) | |
|
23 | self.gridLayout = QtGui.QGridLayout(self.centralWidget) | |
|
18 | def setupUi(self, Dialog): | |
|
19 | Dialog.setObjectName(_fromUtf8("Dialog")) | |
|
20 | Dialog.resize(801, 309) | |
|
21 | Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8)) | |
|
22 | self.gridLayout_2 = QtGui.QGridLayout(Dialog) | |
|
23 | self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) | |
|
24 | self.gridLayout = QtGui.QGridLayout() | |
|
24 | 25 | self.gridLayout.setObjectName(_fromUtf8("gridLayout")) |
|
25 |
self.dir |
|
|
26 | font = QtGui.QFont() | |
|
27 | font.setPointSize(8) | |
|
28 | self.dirWork.setFont(font) | |
|
29 | self.dirWork.setObjectName(_fromUtf8("dirWork")) | |
|
30 | self.gridLayout.addWidget(self.dirWork, 3, 0, 1, 1) | |
|
31 | self.dirLabel = QtGui.QTextEdit(self.centralWidget) | |
|
26 | self.dirLabel = QtGui.QTextEdit(Dialog) | |
|
32 | 27 | self.dirLabel.setMaximumSize(QtCore.QSize(16777215, 75)) |
|
33 | 28 | self.dirLabel.setReadOnly(True) |
|
29 | self.dirLabel.setHtml(QtGui.QApplication.translate("Dialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | |
|
30 | "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" | |
|
31 | "p, li { white-space: pre-wrap; }\n" | |
|
32 | "</style></head><body style=\" font-family:\'Cantarell\'; font-size:11pt; font-weight:400; font-style:normal;\">\n" | |
|
33 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt; font-weight:600;\"> Select a workspace</span></p>\n" | |
|
34 | "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt; font-weight:600;\"><br /></p>\n" | |
|
35 | "<p align=\"justify\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Signal Chain stores your projects in a folder called a workspace.</span></p>\n" | |
|
36 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:8pt;\"> Choose a workspace folder to use for this session.</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) | |
|
34 | 37 | self.dirLabel.setObjectName(_fromUtf8("dirLabel")) |
|
35 | 38 | self.gridLayout.addWidget(self.dirLabel, 0, 0, 1, 2) |
|
36 |
self.line = QtGui.QFrame( |
|
|
39 | self.line = QtGui.QFrame(Dialog) | |
|
37 | 40 | self.line.setFrameShape(QtGui.QFrame.HLine) |
|
38 | 41 | self.line.setFrameShadow(QtGui.QFrame.Sunken) |
|
39 | 42 | self.line.setObjectName(_fromUtf8("line")) |
|
40 | 43 | self.gridLayout.addWidget(self.line, 1, 0, 1, 2) |
|
41 |
self.dir |
|
|
44 | self.dirWork = QtGui.QLabel(Dialog) | |
|
45 | font = QtGui.QFont() | |
|
46 | font.setPointSize(8) | |
|
47 | self.dirWork.setFont(font) | |
|
48 | self.dirWork.setText(QtGui.QApplication.translate("Dialog", "Workspace :", None, QtGui.QApplication.UnicodeUTF8)) | |
|
49 | self.dirWork.setObjectName(_fromUtf8("dirWork")) | |
|
50 | self.gridLayout.addWidget(self.dirWork, 2, 0, 1, 1) | |
|
51 | self.dirComBox = QtGui.QComboBox(Dialog) | |
|
42 | 52 | palette = QtGui.QPalette() |
|
43 | 53 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) |
|
44 | 54 | brush.setStyle(QtCore.Qt.SolidPattern) |
@@ -51,7 +61,14 class Ui_Workspace(object): | |||
|
51 | 61 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) |
|
52 | 62 | self.dirComBox.setPalette(palette) |
|
53 | 63 | self.dirComBox.setObjectName(_fromUtf8("dirComBox")) |
|
54 |
self.gridLayout.addWidget(self.dirComBox, |
|
|
64 | self.gridLayout.addWidget(self.dirComBox, 3, 0, 1, 1) | |
|
65 | self.dirToolPath = QtGui.QToolButton(Dialog) | |
|
66 | font = QtGui.QFont() | |
|
67 | font.setPointSize(8) | |
|
68 | self.dirToolPath.setFont(font) | |
|
69 | self.dirToolPath.setText(QtGui.QApplication.translate("Dialog", "...", None, QtGui.QApplication.UnicodeUTF8)) | |
|
70 | self.dirToolPath.setObjectName(_fromUtf8("dirToolPath")) | |
|
71 | self.gridLayout.addWidget(self.dirToolPath, 3, 1, 1, 1) | |
|
55 | 72 | self.horizontalLayout_3 = QtGui.QHBoxLayout() |
|
56 | 73 | self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) |
|
57 | 74 | spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
@@ -64,68 +81,38 class Ui_Workspace(object): | |||
|
64 | 81 | self.horizontalLayout_3.addItem(spacerItem3) |
|
65 | 82 | spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
66 | 83 | self.horizontalLayout_3.addItem(spacerItem4) |
|
67 |
self.gridLayout.addLayout(self.horizontalLayout_3, |
|
|
68 | self.horizontalLayout_2 = QtGui.QHBoxLayout() | |
|
69 | self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) | |
|
70 | self.dirButton = QtGui.QRadioButton(self.centralWidget) | |
|
71 | font = QtGui.QFont() | |
|
72 | font.setPointSize(8) | |
|
73 | self.dirButton.setFont(font) | |
|
74 | self.dirButton.setObjectName(_fromUtf8("dirButton")) | |
|
75 | self.horizontalLayout_2.addWidget(self.dirButton) | |
|
76 | spacerItem5 = QtGui.QSpacerItem(428, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |
|
77 | self.horizontalLayout_2.addItem(spacerItem5) | |
|
78 | self.gridLayout.addLayout(self.horizontalLayout_2, 9, 0, 1, 2) | |
|
84 | self.gridLayout.addLayout(self.horizontalLayout_3, 4, 0, 1, 1) | |
|
79 | 85 | self.horizontalLayout = QtGui.QHBoxLayout() |
|
80 | 86 | self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) |
|
81 |
spacerItem |
|
|
82 |
self.horizontalLayout.addItem(spacerItem |
|
|
83 |
self.dirOkBtn = QtGui.QPushButton( |
|
|
87 | spacerItem5 = QtGui.QSpacerItem(438, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |
|
88 | self.horizontalLayout.addItem(spacerItem5) | |
|
89 | self.dirOkBtn = QtGui.QPushButton(Dialog) | |
|
84 | 90 | font = QtGui.QFont() |
|
85 | 91 | font.setPointSize(8) |
|
86 | 92 | self.dirOkBtn.setFont(font) |
|
93 | self.dirOkBtn.setText(QtGui.QApplication.translate("Dialog", "OK", None, QtGui.QApplication.UnicodeUTF8)) | |
|
87 | 94 | self.dirOkBtn.setObjectName(_fromUtf8("dirOkBtn")) |
|
88 | 95 | self.horizontalLayout.addWidget(self.dirOkBtn) |
|
89 |
self.dirCancelBtn = QtGui.QPushButton( |
|
|
96 | self.dirCancelBtn = QtGui.QPushButton(Dialog) | |
|
97 | self.dirCancelBtn.setText(QtGui.QApplication.translate("Dialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |
|
90 | 98 | self.dirCancelBtn.setObjectName(_fromUtf8("dirCancelBtn")) |
|
91 | 99 | self.horizontalLayout.addWidget(self.dirCancelBtn) |
|
92 |
self.gridLayout.addLayout(self.horizontalLayout, |
|
|
93 | self.dirToolPath = QtGui.QToolButton(self.centralWidget) | |
|
94 | font = QtGui.QFont() | |
|
95 | font.setPointSize(8) | |
|
96 | self.dirToolPath.setFont(font) | |
|
97 | self.dirToolPath.setObjectName(_fromUtf8("dirToolPath")) | |
|
98 | self.gridLayout.addWidget(self.dirToolPath, 5, 1, 1, 1) | |
|
99 | MainWindow.setCentralWidget(self.centralWidget) | |
|
100 | self.gridLayout.addLayout(self.horizontalLayout, 5, 0, 1, 1) | |
|
101 | self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1) | |
|
100 | 102 | |
|
101 |
self.retranslateUi( |
|
|
102 |
QtCore.QMetaObject.connectSlotsByName( |
|
|
103 | self.retranslateUi(Dialog) | |
|
104 | QtCore.QMetaObject.connectSlotsByName(Dialog) | |
|
103 | 105 | |
|
104 |
def retranslateUi(self, |
|
|
105 | MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) | |
|
106 | self.dirWork.setText(QtGui.QApplication.translate("MainWindow", "Workspace :", None, QtGui.QApplication.UnicodeUTF8)) | |
|
107 | self.dirLabel.setHtml(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | |
|
108 | "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" | |
|
109 | "p, li { white-space: pre-wrap; }\n" | |
|
110 | "</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n" | |
|
111 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Cantarell\'; font-size:8pt; font-weight:600;\"> Select a workspace</span></p>\n" | |
|
112 | "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Cantarell\'; font-size:8pt; font-weight:600;\"><br /></p>\n" | |
|
113 | "<p align=\"justify\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Cantarell\'; font-size:8pt;\"> Signal Chain stores your projects in a folder called a workspace.</span></p>\n" | |
|
114 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Cantarell\'; font-size:8pt;\"> Choose a workspace folder to use for this session.</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) | |
|
115 | self.dirButton.setText(QtGui.QApplication.translate("MainWindow", "Use this as the default and do not ask again", None, QtGui.QApplication.UnicodeUTF8)) | |
|
116 | self.dirOkBtn.setText(QtGui.QApplication.translate("MainWindow", "OK", None, QtGui.QApplication.UnicodeUTF8)) | |
|
117 | self.dirCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |
|
118 | self.dirToolPath.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) | |
|
106 | def retranslateUi(self, Dialog): | |
|
107 | pass | |
|
119 | 108 | |
|
120 | 109 | |
|
121 | 110 | if __name__ == "__main__": |
|
122 | 111 | import sys |
|
123 | 112 | app = QtGui.QApplication(sys.argv) |
|
124 |
|
|
|
113 | Dialog = QtGui.QDialog() | |
|
125 | 114 | ui = Ui_Workspace() |
|
126 |
ui.setupUi( |
|
|
127 |
|
|
|
115 | ui.setupUi(Dialog) | |
|
116 | Dialog.show() | |
|
128 | 117 | sys.exit(app.exec_()) |
|
129 | 118 | |
|
130 | ||
|
131 |
General Comments 0
You need to be logged in to leave comments.
Login now