@@ -1,131 +1,118 | |||
|
1 | # -*- coding: utf-8 -*- | |
|
2 | ||
|
3 |
# Form implementation generated from reading ui file ' |
|
|
4 | # | |
|
5 |
# Created: |
|
|
6 |
# by: PyQt4 UI code generator 4. |
|
|
7 | # | |
|
8 | # WARNING! All changes made in this file will be lost! | |
|
9 | ||
|
10 | from PyQt4 import QtCore, QtGui | |
|
11 | ||
|
12 | try: | |
|
13 | _fromUtf8 = QtCore.QString.fromUtf8 | |
|
14 | except AttributeError: | |
|
15 | _fromUtf8 = lambda s: s | |
|
16 | ||
|
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) | |
|
24 |
self.gridLayout. |
|
|
25 | self.dirWork = QtGui.QLabel(self.centralWidget) | |
|
26 | font = QtGui.QFont() | |
|
27 | font.setPointSize(8) | |
|
28 |
self.dir |
|
|
29 | self.dirWork.setObjectName(_fromUtf8("dirWork")) | |
|
30 | self.gridLayout.addWidget(self.dirWork, 3, 0, 1, 1) | |
|
31 | self.dirLabel = QtGui.QTextEdit(self.centralWidget) | |
|
32 | self.dirLabel.setMaximumSize(QtCore.QSize(16777215, 75)) | |
|
33 | self.dirLabel.setReadOnly(True) | |
|
34 | self.dirLabel.setObjectName(_fromUtf8("dirLabel")) | |
|
35 | self.gridLayout.addWidget(self.dirLabel, 0, 0, 1, 2) | |
|
36 | self.line = QtGui.QFrame(self.centralWidget) | |
|
37 | self.line.setFrameShape(QtGui.QFrame.HLine) | |
|
38 | self.line.setFrameShadow(QtGui.QFrame.Sunken) | |
|
39 | self.line.setObjectName(_fromUtf8("line")) | |
|
40 | self.gridLayout.addWidget(self.line, 1, 0, 1, 2) | |
|
41 | self.dirComBox = QtGui.QComboBox(self.centralWidget) | |
|
42 | palette = QtGui.QPalette() | |
|
43 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |
|
44 | brush.setStyle(QtCore.Qt.SolidPattern) | |
|
45 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) | |
|
46 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |
|
47 | brush.setStyle(QtCore.Qt.SolidPattern) | |
|
48 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) | |
|
49 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |
|
50 | brush.setStyle(QtCore.Qt.SolidPattern) | |
|
51 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) | |
|
52 | self.dirComBox.setPalette(palette) | |
|
53 | self.dirComBox.setObjectName(_fromUtf8("dirComBox")) | |
|
54 | self.gridLayout.addWidget(self.dirComBox, 5, 0, 1, 1) | |
|
55 | self.horizontalLayout_3 = QtGui.QHBoxLayout() | |
|
56 | self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) | |
|
57 | spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |
|
58 | self.horizontalLayout_3.addItem(spacerItem) | |
|
59 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |
|
60 | self.horizontalLayout_3.addItem(spacerItem1) | |
|
61 | spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |
|
62 | self.horizontalLayout_3.addItem(spacerItem2) | |
|
63 | spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |
|
64 | self.horizontalLayout_3.addItem(spacerItem3) | |
|
65 | spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |
|
66 | self.horizontalLayout_3.addItem(spacerItem4) | |
|
67 | self.gridLayout.addLayout(self.horizontalLayout_3, 8, 0, 1, 1) | |
|
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_ |
|
|
76 |
spacerItem |
|
|
77 |
self.horizontalLayout_ |
|
|
78 | self.gridLayout.addLayout(self.horizontalLayout_2, 9, 0, 1, 2) | |
|
79 |
self.horizontalLayout |
|
|
80 | self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) | |
|
81 | spacerItem6 = QtGui.QSpacerItem(438, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |
|
82 | self.horizontalLayout.addItem(spacerItem6) | |
|
83 | self.dirOkBtn = QtGui.QPushButton(self.centralWidget) | |
|
84 | font = QtGui.QFont() | |
|
85 | font.setPointSize(8) | |
|
86 | self.dirOkBtn.setFont(font) | |
|
87 | self.dirOkBtn.setObjectName(_fromUtf8("dirOkBtn")) | |
|
88 |
self.horizontalLayout.add |
|
|
89 |
self.dir |
|
|
90 | self.dirCancelBtn.setObjectName(_fromUtf8("dirCancelBtn")) | |
|
91 | self.horizontalLayout.addWidget(self.dirCancelBtn) | |
|
92 | self.gridLayout.addLayout(self.horizontalLayout, 10, 0, 1, 2) | |
|
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 | ||
|
101 | self.retranslateUi(MainWindow) | |
|
102 | QtCore.QMetaObject.connectSlotsByName(MainWindow) | |
|
103 | ||
|
104 | def retranslateUi(self, MainWindow): | |
|
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)) | |
|
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 | ||
|
1 | # -*- coding: utf-8 -*- | |
|
2 | ||
|
3 | # Form implementation generated from reading ui file '/home/roj-idl71/SignalChain/workspacev4.ui' | |
|
4 | # | |
|
5 | # Created: Wed Mar 6 14:59:06 2013 | |
|
6 | # by: PyQt4 UI code generator 4.8.6 | |
|
7 | # | |
|
8 | # WARNING! All changes made in this file will be lost! | |
|
9 | ||
|
10 | from PyQt4 import QtCore, QtGui | |
|
11 | ||
|
12 | try: | |
|
13 | _fromUtf8 = QtCore.QString.fromUtf8 | |
|
14 | except AttributeError: | |
|
15 | _fromUtf8 = lambda s: s | |
|
16 | ||
|
17 | class Ui_Workspace(object): | |
|
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() | |
|
25 | self.gridLayout.setObjectName(_fromUtf8("gridLayout")) | |
|
26 | self.dirLabel = QtGui.QTextEdit(Dialog) | |
|
27 | self.dirLabel.setMaximumSize(QtCore.QSize(16777215, 75)) | |
|
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)) | |
|
37 | self.dirLabel.setObjectName(_fromUtf8("dirLabel")) | |
|
38 | self.gridLayout.addWidget(self.dirLabel, 0, 0, 1, 2) | |
|
39 | self.line = QtGui.QFrame(Dialog) | |
|
40 | self.line.setFrameShape(QtGui.QFrame.HLine) | |
|
41 | self.line.setFrameShadow(QtGui.QFrame.Sunken) | |
|
42 | self.line.setObjectName(_fromUtf8("line")) | |
|
43 | self.gridLayout.addWidget(self.line, 1, 0, 1, 2) | |
|
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) | |
|
52 | palette = QtGui.QPalette() | |
|
53 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |
|
54 | brush.setStyle(QtCore.Qt.SolidPattern) | |
|
55 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) | |
|
56 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |
|
57 | brush.setStyle(QtCore.Qt.SolidPattern) | |
|
58 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) | |
|
59 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |
|
60 | brush.setStyle(QtCore.Qt.SolidPattern) | |
|
61 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) | |
|
62 | self.dirComBox.setPalette(palette) | |
|
63 | self.dirComBox.setObjectName(_fromUtf8("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) | |
|
72 | self.horizontalLayout_3 = QtGui.QHBoxLayout() | |
|
73 | self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) | |
|
74 | spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |
|
75 | self.horizontalLayout_3.addItem(spacerItem) | |
|
76 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |
|
77 | self.horizontalLayout_3.addItem(spacerItem1) | |
|
78 | spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |
|
79 | self.horizontalLayout_3.addItem(spacerItem2) | |
|
80 | spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |
|
81 | self.horizontalLayout_3.addItem(spacerItem3) | |
|
82 | spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |
|
83 | self.horizontalLayout_3.addItem(spacerItem4) | |
|
84 | self.gridLayout.addLayout(self.horizontalLayout_3, 4, 0, 1, 1) | |
|
85 | self.horizontalLayout = QtGui.QHBoxLayout() | |
|
86 | self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) | |
|
87 | spacerItem5 = QtGui.QSpacerItem(438, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |
|
88 | self.horizontalLayout.addItem(spacerItem5) | |
|
89 | self.dirOkBtn = QtGui.QPushButton(Dialog) | |
|
90 | font = QtGui.QFont() | |
|
91 | font.setPointSize(8) | |
|
92 | self.dirOkBtn.setFont(font) | |
|
93 | self.dirOkBtn.setText(QtGui.QApplication.translate("Dialog", "OK", None, QtGui.QApplication.UnicodeUTF8)) | |
|
94 | self.dirOkBtn.setObjectName(_fromUtf8("dirOkBtn")) | |
|
95 | self.horizontalLayout.addWidget(self.dirOkBtn) | |
|
96 | self.dirCancelBtn = QtGui.QPushButton(Dialog) | |
|
97 | self.dirCancelBtn.setText(QtGui.QApplication.translate("Dialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |
|
98 | self.dirCancelBtn.setObjectName(_fromUtf8("dirCancelBtn")) | |
|
99 | self.horizontalLayout.addWidget(self.dirCancelBtn) | |
|
100 | self.gridLayout.addLayout(self.horizontalLayout, 5, 0, 1, 1) | |
|
101 | self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1) | |
|
102 | ||
|
103 | self.retranslateUi(Dialog) | |
|
104 | QtCore.QMetaObject.connectSlotsByName(Dialog) | |
|
105 | ||
|
106 | def retranslateUi(self, Dialog): | |
|
107 | pass | |
|
108 | ||
|
109 | ||
|
110 | if __name__ == "__main__": | |
|
111 | import sys | |
|
112 | app = QtGui.QApplication(sys.argv) | |
|
113 | Dialog = QtGui.QDialog() | |
|
114 | ui = Ui_Workspace() | |
|
115 | ui.setupUi(Dialog) | |
|
116 | Dialog.show() | |
|
117 | sys.exit(app.exec_()) | |
|
118 |
General Comments 0
You need to be logged in to leave comments.
Login now