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