The requested changes are too big and content was truncated. Show full diff
@@ -0,0 +1,5 | |||
|
1 | from ui_project import * | |
|
2 | from ui_voltage import * | |
|
3 | from ui_spectra import * | |
|
4 | from ui_spectra_heis import * | |
|
5 | from ui_correlation import * No newline at end of file |
@@ -0,0 +1,45 | |||
|
1 | ||
|
2 | from PyQt4 import QtCore, QtGui | |
|
3 | ||
|
4 | try: | |
|
5 | _fromUtf8 = QtCore.QString.fromUtf8 | |
|
6 | except AttributeError: | |
|
7 | def _fromUtf8(s): | |
|
8 | return s | |
|
9 | ||
|
10 | try: | |
|
11 | _encoding = QtGui.QApplication.UnicodeUTF8 | |
|
12 | def _translate(context, text, disambig): | |
|
13 | return QtGui.QApplication.translate(context, text, disambig, _encoding) | |
|
14 | except AttributeError: | |
|
15 | def _translate(context, text, disambig): | |
|
16 | return QtGui.QApplication.translate(context, text, disambig) | |
|
17 | ||
|
18 | class Ui_CorrelationTab(object): | |
|
19 | ||
|
20 | def setupUi(self): | |
|
21 | ||
|
22 | self.tabCorrelation = QtGui.QWidget() | |
|
23 | self.tabCorrelation.setObjectName(_fromUtf8("tabCorrelation")) | |
|
24 | self.gridLayout_13 = QtGui.QGridLayout(self.tabCorrelation) | |
|
25 | self.gridLayout_13.setObjectName(_fromUtf8("gridLayout_13")) | |
|
26 | self.tabWidgetCorrelation = QtGui.QTabWidget(self.tabCorrelation) | |
|
27 | self.tabWidgetCorrelation.setObjectName(_fromUtf8("tabWidgetCorrelation")) | |
|
28 | self.tabopCorrelation = QtGui.QWidget() | |
|
29 | self.tabopCorrelation.setObjectName(_fromUtf8("tabopCorrelation")) | |
|
30 | self.tabWidgetCorrelation.addTab(self.tabopCorrelation, _fromUtf8("")) | |
|
31 | self.tabopCorrelation1 = QtGui.QWidget() | |
|
32 | self.tabopCorrelation1.setObjectName(_fromUtf8("tabopCorrelation1")) | |
|
33 | self.tabWidgetCorrelation.addTab(self.tabopCorrelation1, _fromUtf8("")) | |
|
34 | self.gridLayout_13.addWidget(self.tabWidgetCorrelation, 0, 0, 1, 1) | |
|
35 | ||
|
36 | self.tabWidgetProject.addTab(self.tabCorrelation, _fromUtf8("")) | |
|
37 | ||
|
38 | self.tabWidgetCorrelation.setCurrentIndex(0) | |
|
39 | ||
|
40 | def retranslateUi(self): | |
|
41 | ||
|
42 | self.tabWidgetCorrelation.setTabText(self.tabWidgetCorrelation.indexOf(self.tabopCorrelation), _translate("MainWindow", "Operation", None)) | |
|
43 | self.tabWidgetCorrelation.setTabText(self.tabWidgetCorrelation.indexOf(self.tabopCorrelation1), _translate("MainWindow", "Graphics", None)) | |
|
44 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabCorrelation), _translate("MainWindow", "Correlation", None)) | |
|
45 | No newline at end of file |
@@ -0,0 +1,171 | |||
|
1 | ||
|
2 | from PyQt4 import QtCore, QtGui | |
|
3 | ||
|
4 | try: | |
|
5 | _fromUtf8 = QtCore.QString.fromUtf8 | |
|
6 | except AttributeError: | |
|
7 | def _fromUtf8(s): | |
|
8 | return s | |
|
9 | ||
|
10 | try: | |
|
11 | _encoding = QtGui.QApplication.UnicodeUTF8 | |
|
12 | def _translate(context, text, disambig): | |
|
13 | return QtGui.QApplication.translate(context, text, disambig, _encoding) | |
|
14 | except AttributeError: | |
|
15 | def _translate(context, text, disambig): | |
|
16 | return QtGui.QApplication.translate(context, text, disambig) | |
|
17 | ||
|
18 | class Ui_ProjectTab(object): | |
|
19 | ||
|
20 | def setupUi(self): | |
|
21 | ||
|
22 | self.tabProject = QtGui.QWidget() | |
|
23 | self.tabProject.setObjectName(_fromUtf8("tabProject")) | |
|
24 | self.gridLayout_15 = QtGui.QGridLayout(self.tabProject) | |
|
25 | self.gridLayout_15.setObjectName(_fromUtf8("gridLayout_15")) | |
|
26 | self.frame = QtGui.QFrame(self.tabProject) | |
|
27 | self.frame.setFrameShape(QtGui.QFrame.StyledPanel) | |
|
28 | self.frame.setFrameShadow(QtGui.QFrame.Raised) | |
|
29 | self.frame.setObjectName(_fromUtf8("frame")) | |
|
30 | self.gridLayout_2 = QtGui.QGridLayout(self.frame) | |
|
31 | self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) | |
|
32 | self.label = QtGui.QLabel(self.frame) | |
|
33 | self.label.setObjectName(_fromUtf8("label")) | |
|
34 | self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) | |
|
35 | self.proName = QtGui.QLineEdit(self.frame) | |
|
36 | self.proName.setObjectName(_fromUtf8("proName")) | |
|
37 | self.gridLayout_2.addWidget(self.proName, 0, 1, 1, 8) | |
|
38 | self.label_11 = QtGui.QLabel(self.frame) | |
|
39 | self.label_11.setObjectName(_fromUtf8("label_11")) | |
|
40 | self.gridLayout_2.addWidget(self.label_11, 1, 0, 1, 1) | |
|
41 | self.proComDataType = QtGui.QComboBox(self.frame) | |
|
42 | self.proComDataType.setObjectName(_fromUtf8("proComDataType")) | |
|
43 | self.proComDataType.addItem(_fromUtf8("")) | |
|
44 | self.proComDataType.addItem(_fromUtf8("")) | |
|
45 | self.proComDataType.addItem(_fromUtf8("")) | |
|
46 | self.gridLayout_2.addWidget(self.proComDataType, 1, 1, 1, 5) | |
|
47 | self.proDataType = QtGui.QLineEdit(self.frame) | |
|
48 | self.proDataType.setObjectName(_fromUtf8("proDataType")) | |
|
49 | self.gridLayout_2.addWidget(self.proDataType, 1, 6, 1, 3) | |
|
50 | self.label_15 = QtGui.QLabel(self.frame) | |
|
51 | self.label_15.setObjectName(_fromUtf8("label_15")) | |
|
52 | self.gridLayout_2.addWidget(self.label_15, 2, 0, 1, 1) | |
|
53 | self.proToolPath = QtGui.QToolButton(self.frame) | |
|
54 | self.proToolPath.setObjectName(_fromUtf8("proToolPath")) | |
|
55 | self.gridLayout_2.addWidget(self.proToolPath, 2, 1, 1, 1) | |
|
56 | self.proDataPath = QtGui.QLineEdit(self.frame) | |
|
57 | self.proDataPath.setObjectName(_fromUtf8("proDataPath")) | |
|
58 | self.gridLayout_2.addWidget(self.proDataPath, 2, 2, 1, 7) | |
|
59 | self.label_23 = QtGui.QLabel(self.frame) | |
|
60 | self.label_23.setObjectName(_fromUtf8("label_23")) | |
|
61 | self.gridLayout_2.addWidget(self.label_23, 3, 0, 1, 1) | |
|
62 | self.proComReadMode = QtGui.QComboBox(self.frame) | |
|
63 | self.proComReadMode.setObjectName(_fromUtf8("proComReadMode")) | |
|
64 | self.proComReadMode.addItem(_fromUtf8("")) | |
|
65 | self.proComReadMode.addItem(_fromUtf8("")) | |
|
66 | self.gridLayout_2.addWidget(self.proComReadMode, 3, 1, 1, 2) | |
|
67 | self.label_33 = QtGui.QLabel(self.frame) | |
|
68 | self.label_33.setObjectName(_fromUtf8("label_33")) | |
|
69 | self.gridLayout_2.addWidget(self.label_33, 3, 5, 1, 2) | |
|
70 | self.proDelay = QtGui.QLineEdit(self.frame) | |
|
71 | self.proDelay.setObjectName(_fromUtf8("proDelay")) | |
|
72 | self.gridLayout_2.addWidget(self.proDelay, 3, 8, 1, 1) | |
|
73 | self.label_32 = QtGui.QLabel(self.frame) | |
|
74 | self.label_32.setObjectName(_fromUtf8("label_32")) | |
|
75 | self.gridLayout_2.addWidget(self.label_32, 4, 0, 1, 1) | |
|
76 | self.proComWalk = QtGui.QComboBox(self.frame) | |
|
77 | self.proComWalk.setObjectName(_fromUtf8("proComWalk")) | |
|
78 | self.proComWalk.addItem(_fromUtf8("")) | |
|
79 | self.proComWalk.addItem(_fromUtf8("")) | |
|
80 | self.gridLayout_2.addWidget(self.proComWalk, 4, 1, 1, 8) | |
|
81 | self.proLoadButton = QtGui.QPushButton(self.frame) | |
|
82 | self.proLoadButton.setObjectName(_fromUtf8("proLoadButton")) | |
|
83 | self.gridLayout_2.addWidget(self.proLoadButton, 5, 0, 1, 9) | |
|
84 | self.label_10 = QtGui.QLabel(self.frame) | |
|
85 | self.label_10.setObjectName(_fromUtf8("label_10")) | |
|
86 | self.gridLayout_2.addWidget(self.label_10, 3, 3, 1, 1) | |
|
87 | self.proSet = QtGui.QLineEdit(self.frame) | |
|
88 | self.proSet.setObjectName(_fromUtf8("proSet")) | |
|
89 | self.gridLayout_2.addWidget(self.proSet, 3, 4, 1, 1) | |
|
90 | self.gridLayout_15.addWidget(self.frame, 0, 0, 1, 1) | |
|
91 | self.frame_2 = QtGui.QFrame(self.tabProject) | |
|
92 | self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) | |
|
93 | self.frame_2.setFrameShadow(QtGui.QFrame.Raised) | |
|
94 | self.frame_2.setObjectName(_fromUtf8("frame_2")) | |
|
95 | self.gridLayout_10 = QtGui.QGridLayout(self.frame_2) | |
|
96 | self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10")) | |
|
97 | self.label_27 = QtGui.QLabel(self.frame_2) | |
|
98 | self.label_27.setObjectName(_fromUtf8("label_27")) | |
|
99 | self.gridLayout_10.addWidget(self.label_27, 0, 0, 1, 1) | |
|
100 | self.proComStartDate = QtGui.QComboBox(self.frame_2) | |
|
101 | self.proComStartDate.setObjectName(_fromUtf8("proComStartDate")) | |
|
102 | self.gridLayout_10.addWidget(self.proComStartDate, 0, 1, 1, 1) | |
|
103 | self.label_28 = QtGui.QLabel(self.frame_2) | |
|
104 | self.label_28.setObjectName(_fromUtf8("label_28")) | |
|
105 | self.gridLayout_10.addWidget(self.label_28, 1, 0, 1, 1) | |
|
106 | self.proComEndDate = QtGui.QComboBox(self.frame_2) | |
|
107 | self.proComEndDate.setObjectName(_fromUtf8("proComEndDate")) | |
|
108 | self.gridLayout_10.addWidget(self.proComEndDate, 1, 1, 1, 1) | |
|
109 | self.label_2 = QtGui.QLabel(self.frame_2) | |
|
110 | self.label_2.setObjectName(_fromUtf8("label_2")) | |
|
111 | self.gridLayout_10.addWidget(self.label_2, 2, 0, 1, 1) | |
|
112 | self.proStartTime = QtGui.QTimeEdit(self.frame_2) | |
|
113 | self.proStartTime.setObjectName(_fromUtf8("proStartTime")) | |
|
114 | self.gridLayout_10.addWidget(self.proStartTime, 2, 1, 1, 1) | |
|
115 | self.label_3 = QtGui.QLabel(self.frame_2) | |
|
116 | self.label_3.setObjectName(_fromUtf8("label_3")) | |
|
117 | self.gridLayout_10.addWidget(self.label_3, 3, 0, 1, 1) | |
|
118 | self.proEndTime = QtGui.QTimeEdit(self.frame_2) | |
|
119 | self.proEndTime.setObjectName(_fromUtf8("proEndTime")) | |
|
120 | self.gridLayout_10.addWidget(self.proEndTime, 3, 1, 1, 1) | |
|
121 | self.label_30 = QtGui.QLabel(self.frame_2) | |
|
122 | self.label_30.setObjectName(_fromUtf8("label_30")) | |
|
123 | self.gridLayout_10.addWidget(self.label_30, 4, 0, 1, 1) | |
|
124 | self.proDescription = QtGui.QTextEdit(self.frame_2) | |
|
125 | self.proDescription.setObjectName(_fromUtf8("proDescription")) | |
|
126 | self.gridLayout_10.addWidget(self.proDescription, 4, 1, 1, 1) | |
|
127 | self.gridLayout_15.addWidget(self.frame_2, 1, 0, 1, 1) | |
|
128 | self.frame_3 = QtGui.QFrame(self.tabProject) | |
|
129 | self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel) | |
|
130 | self.frame_3.setFrameShadow(QtGui.QFrame.Raised) | |
|
131 | self.frame_3.setObjectName(_fromUtf8("frame_3")) | |
|
132 | self.gridLayout_14 = QtGui.QGridLayout(self.frame_3) | |
|
133 | self.gridLayout_14.setObjectName(_fromUtf8("gridLayout_14")) | |
|
134 | self.proOk = QtGui.QPushButton(self.frame_3) | |
|
135 | self.proOk.setObjectName(_fromUtf8("proOk")) | |
|
136 | self.gridLayout_14.addWidget(self.proOk, 0, 0, 1, 1) | |
|
137 | self.proClear = QtGui.QPushButton(self.frame_3) | |
|
138 | self.proClear.setObjectName(_fromUtf8("proClear")) | |
|
139 | self.gridLayout_14.addWidget(self.proClear, 0, 1, 1, 1) | |
|
140 | self.gridLayout_15.addWidget(self.frame_3, 2, 0, 1, 1) | |
|
141 | ||
|
142 | self.tabWidgetProject.addTab(self.tabProject, _fromUtf8("")) | |
|
143 | ||
|
144 | def retranslateUi(self): | |
|
145 | ||
|
146 | self.label.setText(_translate("MainWindow", "Project Name :", None)) | |
|
147 | self.label_11.setText(_translate("MainWindow", "DataType :", None)) | |
|
148 | self.proComDataType.setItemText(0, _translate("MainWindow", "Voltage", None)) | |
|
149 | self.proComDataType.setItemText(1, _translate("MainWindow", "Spectra", None)) | |
|
150 | self.proComDataType.setItemText(2, _translate("MainWindow", "Fits", None)) | |
|
151 | self.label_15.setText(_translate("MainWindow", "DataPath :", None)) | |
|
152 | self.proToolPath.setText(_translate("MainWindow", "...", None)) | |
|
153 | self.label_23.setText(_translate("MainWindow", "Read Mode:", None)) | |
|
154 | self.proComReadMode.setItemText(0, _translate("MainWindow", "Offline", None)) | |
|
155 | self.proComReadMode.setItemText(1, _translate("MainWindow", "Online", None)) | |
|
156 | self.label_33.setText(_translate("MainWindow", "Delay:", None)) | |
|
157 | self.label_32.setText(_translate("MainWindow", "Walk :", None)) | |
|
158 | self.proComWalk.setItemText(0, _translate("MainWindow", "On Files", None)) | |
|
159 | self.proComWalk.setItemText(1, _translate("MainWindow", "On Folder", None)) | |
|
160 | self.proLoadButton.setText(_translate("MainWindow", "Load", None)) | |
|
161 | self.label_10.setText(_translate("MainWindow", "Set:", None)) | |
|
162 | self.label_27.setText(_translate("MainWindow", "Star Date:", None)) | |
|
163 | self.label_28.setText(_translate("MainWindow", "End Date:", None)) | |
|
164 | self.label_2.setText(_translate("MainWindow", "Start Time:", None)) | |
|
165 | self.label_3.setText(_translate("MainWindow", "End Time:", None)) | |
|
166 | self.label_30.setText(_translate("MainWindow", "Description:", None)) | |
|
167 | self.proOk.setText(_translate("MainWindow", "Ok", None)) | |
|
168 | self.proClear.setText(_translate("MainWindow", "Clear", None)) | |
|
169 | ||
|
170 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabProject), _translate("MainWindow", "Project", None)) | |
|
171 | No newline at end of file |
|
1 | NO CONTENT: new file 100644 | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: new file 100644 | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: new file 100644 | |
The requested commit or file is too big and content was truncated. Show full diff |
@@ -1,1024 +1,1026 | |||
|
1 | 1 | ''' |
|
2 | 2 | Created on September , 2012 |
|
3 | 3 | @author: |
|
4 | 4 | ''' |
|
5 | 5 | from xml.etree.ElementTree import Element, SubElement |
|
6 | 6 | from xml.etree import ElementTree as ET |
|
7 | 7 | from xml.dom import minidom |
|
8 | 8 | |
|
9 | 9 | #import datetime |
|
10 | 10 | from model import * |
|
11 | 11 | |
|
12 | 12 | import ast |
|
13 | 13 | |
|
14 | 14 | def prettify(elem): |
|
15 | 15 | """Return a pretty-printed XML string for the Element. |
|
16 | 16 | """ |
|
17 | 17 | rough_string = ET.tostring(elem, 'utf-8') |
|
18 | 18 | reparsed = minidom.parseString(rough_string) |
|
19 | 19 | return reparsed.toprettyxml(indent=" ") |
|
20 | 20 | |
|
21 | 21 | class ParameterConf(): |
|
22 | 22 | |
|
23 | 23 | id = None |
|
24 | 24 | name = None |
|
25 | 25 | value = None |
|
26 | 26 | format = None |
|
27 | 27 | |
|
28 | 28 | __formated_value = None |
|
29 | 29 | |
|
30 | 30 | ELEMENTNAME = 'Parameter' |
|
31 | 31 | |
|
32 | 32 | def __init__(self): |
|
33 | 33 | |
|
34 | 34 | self.format = 'str' |
|
35 | 35 | |
|
36 | 36 | def getElementName(self): |
|
37 | 37 | |
|
38 | 38 | return self.ELEMENTNAME |
|
39 | 39 | |
|
40 | 40 | def getValue(self): |
|
41 | 41 | |
|
42 | 42 | if self.__formated_value != None: |
|
43 | 43 | |
|
44 | 44 | return self.__formated_value |
|
45 | 45 | |
|
46 | 46 | value = self.value |
|
47 | 47 | |
|
48 | 48 | if self.format == 'bool': |
|
49 | 49 | value = int(value) |
|
50 | 50 | |
|
51 | 51 | if self.format == 'list': |
|
52 | 52 | strList = value.split(',') |
|
53 | 53 | |
|
54 | 54 | self.__formated_value = strList |
|
55 | 55 | |
|
56 | 56 | return self.__formated_value |
|
57 | 57 | |
|
58 | 58 | if self.format == 'intlist': |
|
59 | 59 | """ |
|
60 | 60 | Example: |
|
61 | 61 | value = (0,1,2) |
|
62 | 62 | """ |
|
63 | 63 | strList = value.split(',') |
|
64 | 64 | intList = [int(x) for x in strList] |
|
65 | 65 | |
|
66 | 66 | self.__formated_value = intList |
|
67 | 67 | |
|
68 | 68 | return self.__formated_value |
|
69 | 69 | |
|
70 | 70 | if self.format == 'floatlist': |
|
71 | 71 | """ |
|
72 | 72 | Example: |
|
73 | 73 | value = (0.5, 1.4, 2.7) |
|
74 | 74 | """ |
|
75 | 75 | strList = value.split(',') |
|
76 | 76 | floatList = [float(x) for x in strList] |
|
77 | 77 | |
|
78 | 78 | self.__formated_value = floatList |
|
79 | 79 | |
|
80 | 80 | return self.__formated_value |
|
81 | 81 | |
|
82 | 82 | if self.format == 'date': |
|
83 | 83 | strList = value.split('/') |
|
84 | 84 | intList = [int(x) for x in strList] |
|
85 | 85 | date = datetime.date(intList[0], intList[1], intList[2]) |
|
86 | 86 | |
|
87 | 87 | self.__formated_value = date |
|
88 | 88 | |
|
89 | 89 | return self.__formated_value |
|
90 | 90 | |
|
91 | 91 | if self.format == 'time': |
|
92 | 92 | strList = value.split(':') |
|
93 | 93 | intList = [int(x) for x in strList] |
|
94 | 94 | time = datetime.time(intList[0], intList[1], intList[2]) |
|
95 | 95 | |
|
96 | 96 | self.__formated_value = time |
|
97 | 97 | |
|
98 | 98 | return self.__formated_value |
|
99 | 99 | |
|
100 | 100 | if self.format == 'pairslist': |
|
101 | 101 | """ |
|
102 | 102 | Example: |
|
103 | 103 | value = (0,1),(1,2) |
|
104 | 104 | """ |
|
105 | 105 | |
|
106 | 106 | value = value.replace('(', '') |
|
107 | 107 | value = value.replace(')', '') |
|
108 | 108 | |
|
109 | 109 | strList = value.split(',') |
|
110 | 110 | intList = [int(item) for item in strList] |
|
111 | 111 | pairList = [] |
|
112 | 112 | for i in range(len(intList)/2): |
|
113 | 113 | pairList.append((intList[i*2], intList[i*2 + 1])) |
|
114 | 114 | |
|
115 | 115 | self.__formated_value = pairList |
|
116 | 116 | |
|
117 | 117 | return self.__formated_value |
|
118 | 118 | |
|
119 | 119 | if self.format == 'multilist': |
|
120 | 120 | """ |
|
121 | 121 | Example: |
|
122 | 122 | value = (0,1,2),(3,4,5) |
|
123 | 123 | """ |
|
124 | 124 | multiList = ast.literal_eval(value) |
|
125 | 125 | |
|
126 | 126 | self.__formated_value = multiList |
|
127 | 127 | |
|
128 | 128 | return self.__formated_value |
|
129 | 129 | |
|
130 | 130 | format_func = eval(self.format) |
|
131 | 131 | |
|
132 | 132 | self.__formated_value = format_func(value) |
|
133 | 133 | |
|
134 | 134 | return self.__formated_value |
|
135 | 135 | |
|
136 | 136 | def setup(self, id, name, value, format='str'): |
|
137 | 137 | |
|
138 | 138 | self.id = id |
|
139 | 139 | self.name = name |
|
140 | 140 | self.value = str(value) |
|
141 | 141 | self.format = str.lower(format) |
|
142 | 142 | |
|
143 | 143 | def update(self, name, value, format='str'): |
|
144 | 144 | |
|
145 | 145 | self.name = name |
|
146 | 146 | self.value = str(value) |
|
147 | 147 | self.format = format |
|
148 | 148 | |
|
149 | 149 | def makeXml(self, opElement): |
|
150 | 150 | |
|
151 | 151 | parmElement = SubElement(opElement, self.ELEMENTNAME) |
|
152 | 152 | parmElement.set('id', str(self.id)) |
|
153 | 153 | parmElement.set('name', self.name) |
|
154 | 154 | parmElement.set('value', self.value) |
|
155 | 155 | parmElement.set('format', self.format) |
|
156 | 156 | |
|
157 | 157 | def readXml(self, parmElement): |
|
158 | 158 | |
|
159 | 159 | self.id = parmElement.get('id') |
|
160 | 160 | self.name = parmElement.get('name') |
|
161 | 161 | self.value = parmElement.get('value') |
|
162 | 162 | self.format = str.lower(parmElement.get('format')) |
|
163 | 163 | |
|
164 | 164 | #Compatible with old signal chain version |
|
165 | 165 | if self.format == 'int' and self.name == 'idfigure': |
|
166 | 166 | self.name = 'id' |
|
167 | 167 | |
|
168 | 168 | def printattr(self): |
|
169 | 169 | |
|
170 | 170 | print "Parameter[%s]: name = %s, value = %s, format = %s" %(self.id, self.name, self.value, self.format) |
|
171 | 171 | |
|
172 | 172 | class OperationConf(): |
|
173 | 173 | |
|
174 | 174 | id = None |
|
175 | 175 | name = None |
|
176 | 176 | priority = None |
|
177 | 177 | type = None |
|
178 | 178 | |
|
179 | 179 | parmConfObjList = [] |
|
180 | 180 | |
|
181 | 181 | ELEMENTNAME = 'Operation' |
|
182 | 182 | |
|
183 | 183 | def __init__(self): |
|
184 | 184 | |
|
185 | 185 | self.id = 0 |
|
186 | 186 | self.name = None |
|
187 | 187 | self.priority = None |
|
188 | 188 | self.type = 'self' |
|
189 | 189 | |
|
190 | 190 | |
|
191 | 191 | def __getNewId(self): |
|
192 | 192 | |
|
193 | 193 | return int(self.id)*10 + len(self.parmConfObjList) + 1 |
|
194 | 194 | |
|
195 | 195 | def getElementName(self): |
|
196 | 196 | |
|
197 | 197 | return self.ELEMENTNAME |
|
198 | 198 | |
|
199 | 199 | def getParameterObjList(self): |
|
200 | 200 | |
|
201 | 201 | return self.parmConfObjList |
|
202 | 202 | |
|
203 | 203 | def getParameterObj(self, parameterName): |
|
204 | 204 | |
|
205 | 205 | for parmConfObj in self.parmConfObjList: |
|
206 | 206 | |
|
207 | 207 | if parmConfObj.name != parameterName: |
|
208 | 208 | continue |
|
209 | 209 | |
|
210 | 210 | return parmConfObj |
|
211 | 211 | |
|
212 | 212 | return None |
|
213 | 213 | |
|
214 | 214 | def getParameterObjfromValue(self,parameterValue): |
|
215 | 215 | for parmConfObj in self.parmConfObjList: |
|
216 | 216 | |
|
217 | 217 | if parmConfObj.getValue() != parameterValue: |
|
218 | 218 | continue |
|
219 | 219 | |
|
220 | 220 | return parmConfObj.getValue() |
|
221 | 221 | |
|
222 | 222 | return None |
|
223 | 223 | |
|
224 | 224 | def getParameterValue(self, parameterName): |
|
225 | 225 | |
|
226 | 226 | parameterObj = self.getParameterObj(parameterName) |
|
227 | 227 | value = parameterObj.getValue() |
|
228 | 228 | |
|
229 | 229 | return value |
|
230 | 230 | |
|
231 | 231 | def setup(self, id, name, priority, type): |
|
232 | 232 | |
|
233 | 233 | self.id = id |
|
234 | 234 | self.name = name |
|
235 | 235 | self.type = type |
|
236 | 236 | self.priority = priority |
|
237 | 237 | |
|
238 | 238 | self.parmConfObjList = [] |
|
239 | 239 | |
|
240 | 240 | def removeParameters(self): |
|
241 | 241 | |
|
242 | 242 | for obj in self.parmConfObjList: |
|
243 | 243 | del obj |
|
244 | 244 | |
|
245 | 245 | self.parmConfObjList = [] |
|
246 | 246 | |
|
247 | 247 | def addParameter(self, name, value, format='str'): |
|
248 | 248 | |
|
249 | 249 | id = self.__getNewId() |
|
250 | 250 | |
|
251 | 251 | parmConfObj = ParameterConf() |
|
252 | 252 | parmConfObj.setup(id, name, value, format) |
|
253 | 253 | |
|
254 | 254 | self.parmConfObjList.append(parmConfObj) |
|
255 | 255 | |
|
256 | 256 | return parmConfObj |
|
257 | 257 | |
|
258 | 258 | def changeParameter(self, name, value, format='str'): |
|
259 | 259 | |
|
260 | 260 | parmConfObj = self.getParameterObj(name) |
|
261 | 261 | parmConfObj.update(name, value, format) |
|
262 | 262 | |
|
263 | 263 | return parmConfObj |
|
264 | 264 | |
|
265 | 265 | def makeXml(self, upElement): |
|
266 | 266 | |
|
267 | 267 | opElement = SubElement(upElement, self.ELEMENTNAME) |
|
268 | 268 | opElement.set('id', str(self.id)) |
|
269 | 269 | opElement.set('name', self.name) |
|
270 | 270 | opElement.set('type', self.type) |
|
271 | 271 | opElement.set('priority', str(self.priority)) |
|
272 | 272 | |
|
273 | 273 | for parmConfObj in self.parmConfObjList: |
|
274 | 274 | parmConfObj.makeXml(opElement) |
|
275 | 275 | |
|
276 | 276 | def readXml(self, opElement): |
|
277 | 277 | |
|
278 | 278 | self.id = opElement.get('id') |
|
279 | 279 | self.name = opElement.get('name') |
|
280 | 280 | self.type = opElement.get('type') |
|
281 | 281 | self.priority = opElement.get('priority') |
|
282 | 282 | |
|
283 | 283 | #Compatible with old signal chain version |
|
284 | 284 | #Use of 'run' method instead 'init' |
|
285 | 285 | if self.type == 'self' and self.name == 'init': |
|
286 | 286 | self.name = 'run' |
|
287 | 287 | |
|
288 | 288 | self.parmConfObjList = [] |
|
289 | 289 | |
|
290 | 290 | parmElementList = opElement.getiterator(ParameterConf().getElementName()) |
|
291 | 291 | |
|
292 | 292 | for parmElement in parmElementList: |
|
293 | 293 | parmConfObj = ParameterConf() |
|
294 | 294 | parmConfObj.readXml(parmElement) |
|
295 | 295 | |
|
296 | 296 | #Compatible with old signal chain version |
|
297 | 297 | #If an 'plot' OPERATION is found, changes name operation by the value of its type PARAMETER |
|
298 | 298 | if self.type != 'self' and self.name == 'Plot': |
|
299 | 299 | if parmConfObj.format == 'str' and parmConfObj.name == 'type': |
|
300 | 300 | self.name = parmConfObj.value |
|
301 | 301 | continue |
|
302 | 302 | |
|
303 | 303 | self.parmConfObjList.append(parmConfObj) |
|
304 | 304 | |
|
305 | 305 | def printattr(self): |
|
306 | 306 | |
|
307 | 307 | print "%s[%s]: name = %s, type = %s, priority = %s" %(self.ELEMENTNAME, |
|
308 | 308 | self.id, |
|
309 | 309 | self.name, |
|
310 | 310 | self.type, |
|
311 | 311 | self.priority) |
|
312 | 312 | |
|
313 | 313 | for parmConfObj in self.parmConfObjList: |
|
314 | 314 | parmConfObj.printattr() |
|
315 | 315 | |
|
316 | 316 | def createObject(self): |
|
317 | 317 | |
|
318 | 318 | if self.type == 'self': |
|
319 | 319 | raise ValueError, "This operation type cannot be created" |
|
320 | 320 | |
|
321 | 321 | if self.type == 'external' or self.type == 'other': |
|
322 | 322 | className = eval(self.name) |
|
323 | 323 | opObj = className() |
|
324 | 324 | |
|
325 | 325 | return opObj |
|
326 | 326 | |
|
327 | 327 | class ProcUnitConf(): |
|
328 | 328 | |
|
329 | 329 | id = None |
|
330 | 330 | name = None |
|
331 | 331 | datatype = None |
|
332 | 332 | inputId = None |
|
333 | 333 | parentId = None |
|
334 | 334 | |
|
335 | 335 | opConfObjList = [] |
|
336 | 336 | |
|
337 | 337 | procUnitObj = None |
|
338 | 338 | opObjList = [] |
|
339 | 339 | |
|
340 | 340 | ELEMENTNAME = 'ProcUnit' |
|
341 | 341 | |
|
342 | 342 | def __init__(self): |
|
343 | 343 | |
|
344 | 344 | self.id = None |
|
345 | 345 | self.datatype = None |
|
346 | 346 | self.name = None |
|
347 | 347 | self.inputId = None |
|
348 | 348 | |
|
349 | 349 | self.opConfObjList = [] |
|
350 | 350 | |
|
351 | 351 | self.procUnitObj = None |
|
352 | 352 | self.opObjDict = {} |
|
353 | 353 | |
|
354 | 354 | def __getPriority(self): |
|
355 | 355 | |
|
356 | 356 | return len(self.opConfObjList)+1 |
|
357 | 357 | |
|
358 | 358 | def __getNewId(self): |
|
359 | 359 | |
|
360 | 360 | return int(self.id)*10 + len(self.opConfObjList) + 1 |
|
361 | 361 | |
|
362 | 362 | def getElementName(self): |
|
363 | 363 | |
|
364 | 364 | return self.ELEMENTNAME |
|
365 | 365 | |
|
366 | 366 | def getId(self): |
|
367 | 367 | |
|
368 | 368 | return str(self.id) |
|
369 | 369 | |
|
370 | 370 | def getInputId(self): |
|
371 | 371 | |
|
372 | 372 | return str(self.inputId) |
|
373 | 373 | |
|
374 | 374 | def getOperationObjList(self): |
|
375 | 375 | |
|
376 | 376 | return self.opConfObjList |
|
377 | 377 | |
|
378 | 378 | def getOperationObj(self, name=None): |
|
379 | 379 | |
|
380 | 380 | for opConfObj in self.opConfObjList: |
|
381 | 381 | |
|
382 | 382 | if opConfObj.name != name: |
|
383 | 383 | continue |
|
384 | 384 | |
|
385 | 385 | return opConfObj |
|
386 | 386 | |
|
387 | 387 | return None |
|
388 | 388 | |
|
389 | 389 | def getOpObjfromParamValue(self,value=None): |
|
390 | 390 | |
|
391 | 391 | for opConfObj in self.opConfObjList: |
|
392 | 392 | if opConfObj.getParameterObjfromValue(parameterValue=value) != value: |
|
393 | 393 | continue |
|
394 | 394 | return opConfObj |
|
395 | 395 | return None |
|
396 | 396 | |
|
397 | 397 | def getProcUnitObj(self): |
|
398 | 398 | |
|
399 | 399 | return self.procUnitObj |
|
400 | 400 | |
|
401 | 401 | def setup(self, id, name, datatype, inputId, parentId=None): |
|
402 | 402 | |
|
403 | 403 | self.id = id |
|
404 | 404 | self.name = name |
|
405 | 405 | self.datatype = datatype |
|
406 | 406 | self.inputId = inputId |
|
407 | 407 | self.parentId = parentId |
|
408 | 408 | |
|
409 | 409 | self.opConfObjList = [] |
|
410 | 410 | |
|
411 | 411 | self.addOperation(name='run', optype='self') |
|
412 | 412 | |
|
413 | 413 | def removeOperations(self): |
|
414 | 414 | |
|
415 | 415 | for obj in self.opConfObjList: |
|
416 | 416 | del obj |
|
417 | 417 | |
|
418 | 418 | self.opConfObjList = [] |
|
419 | 419 | self.addOperation(name='run') |
|
420 | 420 | |
|
421 | 421 | def addParameter(self, **kwargs): |
|
422 | ||
|
422 | ''' | |
|
423 | Add parameters to "run" operation | |
|
424 | ''' | |
|
423 | 425 | opObj = self.opConfObjList[0] |
|
424 | 426 | |
|
425 | 427 | opObj.addParameter(**kwargs) |
|
426 | 428 | |
|
427 | 429 | return opObj |
|
428 | 430 | |
|
429 | 431 | def addOperation(self, name, optype='self'): |
|
430 | 432 | |
|
431 | 433 | id = self.__getNewId() |
|
432 | 434 | priority = self.__getPriority() |
|
433 | 435 | |
|
434 | 436 | opConfObj = OperationConf() |
|
435 | 437 | opConfObj.setup(id, name=name, priority=priority, type=optype) |
|
436 | 438 | |
|
437 | 439 | self.opConfObjList.append(opConfObj) |
|
438 | 440 | |
|
439 | 441 | return opConfObj |
|
440 | 442 | |
|
441 | 443 | def makeXml(self, procUnitElement): |
|
442 | 444 | |
|
443 | 445 | upElement = SubElement(procUnitElement, self.ELEMENTNAME) |
|
444 | 446 | upElement.set('id', str(self.id)) |
|
445 | 447 | upElement.set('name', self.name) |
|
446 | 448 | upElement.set('datatype', self.datatype) |
|
447 | 449 | upElement.set('inputId', str(self.inputId)) |
|
448 | 450 | |
|
449 | 451 | for opConfObj in self.opConfObjList: |
|
450 | 452 | opConfObj.makeXml(upElement) |
|
451 | 453 | |
|
452 | 454 | def readXml(self, upElement): |
|
453 | 455 | |
|
454 | 456 | self.id = upElement.get('id') |
|
455 | 457 | self.name = upElement.get('name') |
|
456 | 458 | self.datatype = upElement.get('datatype') |
|
457 | 459 | self.inputId = upElement.get('inputId') |
|
458 | 460 | |
|
459 | 461 | self.opConfObjList = [] |
|
460 | 462 | |
|
461 | 463 | opElementList = upElement.getiterator(OperationConf().getElementName()) |
|
462 | 464 | |
|
463 | 465 | for opElement in opElementList: |
|
464 | 466 | opConfObj = OperationConf() |
|
465 | 467 | opConfObj.readXml(opElement) |
|
466 | 468 | self.opConfObjList.append(opConfObj) |
|
467 | 469 | |
|
468 | 470 | def printattr(self): |
|
469 | 471 | |
|
470 | 472 | print "%s[%s]: name = %s, datatype = %s, inputId = %s" %(self.ELEMENTNAME, |
|
471 | 473 | self.id, |
|
472 | 474 | self.name, |
|
473 | 475 | self.datatype, |
|
474 | 476 | self.inputId) |
|
475 | 477 | |
|
476 | 478 | for opConfObj in self.opConfObjList: |
|
477 | 479 | opConfObj.printattr() |
|
478 | 480 | |
|
479 | 481 | def createObjects(self): |
|
480 | 482 | |
|
481 | 483 | className = eval(self.name) |
|
482 | 484 | procUnitObj = className() |
|
483 | 485 | |
|
484 | 486 | for opConfObj in self.opConfObjList: |
|
485 | 487 | |
|
486 | 488 | if opConfObj.type == 'self': |
|
487 | 489 | continue |
|
488 | 490 | |
|
489 | 491 | opObj = opConfObj.createObject() |
|
490 | 492 | |
|
491 | 493 | self.opObjDict[opConfObj.id] = opObj |
|
492 | 494 | procUnitObj.addOperation(opObj, opConfObj.id) |
|
493 | 495 | |
|
494 | 496 | self.procUnitObj = procUnitObj |
|
495 | 497 | |
|
496 | 498 | return procUnitObj |
|
497 | 499 | |
|
498 | 500 | def run(self): |
|
499 | 501 | |
|
500 | 502 | finalSts = False |
|
501 | 503 | |
|
502 | 504 | for opConfObj in self.opConfObjList: |
|
503 | 505 | |
|
504 | 506 | kwargs = {} |
|
505 | 507 | for parmConfObj in opConfObj.getParameterObjList(): |
|
506 | 508 | if opConfObj.name == 'run' and parmConfObj.name == 'datatype': |
|
507 | 509 | continue |
|
508 | 510 | |
|
509 | 511 | kwargs[parmConfObj.name] = parmConfObj.getValue() |
|
510 | 512 | |
|
511 | 513 | #print "\tRunning the '%s' operation with %s" %(opConfObj.name, opConfObj.id) |
|
512 | 514 | sts = self.procUnitObj.call(opType = opConfObj.type, |
|
513 | 515 | opName = opConfObj.name, |
|
514 | 516 | opId = opConfObj.id, |
|
515 | 517 | **kwargs) |
|
516 | 518 | finalSts = finalSts or sts |
|
517 | 519 | |
|
518 | 520 | return finalSts |
|
519 | 521 | |
|
520 | 522 | def close(self): |
|
521 | 523 | |
|
522 | 524 | for opConfObj in self.opConfObjList: |
|
523 | 525 | if opConfObj.type == 'self': |
|
524 | 526 | continue |
|
525 | 527 | |
|
526 | 528 | opObj = self.procUnitObj.getOperationObj(opConfObj.id) |
|
527 | 529 | opObj.close() |
|
528 | 530 | |
|
529 | 531 | self.procUnitObj.close() |
|
530 | 532 | |
|
531 | 533 | return |
|
532 | 534 | |
|
533 | 535 | class ReadUnitConf(ProcUnitConf): |
|
534 | 536 | |
|
535 | 537 | path = None |
|
536 | 538 | startDate = None |
|
537 | 539 | endDate = None |
|
538 | 540 | startTime = None |
|
539 | 541 | endTime = None |
|
540 | 542 | |
|
541 | 543 | ELEMENTNAME = 'ReadUnit' |
|
542 | 544 | |
|
543 | 545 | def __init__(self): |
|
544 | 546 | |
|
545 | 547 | self.id = None |
|
546 | 548 | self.datatype = None |
|
547 | 549 | self.name = None |
|
548 | 550 | self.inputId = 0 |
|
549 | 551 | |
|
550 | 552 | self.opConfObjList = [] |
|
551 | 553 | self.opObjList = [] |
|
552 | 554 | |
|
553 | 555 | def getElementName(self): |
|
554 | 556 | |
|
555 | 557 | return self.ELEMENTNAME |
|
556 | 558 | |
|
557 | 559 | def setup(self, id, name, datatype, path, startDate="", endDate="", startTime="", endTime="", parentId=None, **kwargs): |
|
558 | 560 | |
|
559 | 561 | self.id = id |
|
560 | 562 | self.name = name |
|
561 | 563 | self.datatype = datatype |
|
562 | 564 | |
|
563 | 565 | self.path = path |
|
564 | 566 | self.startDate = startDate |
|
565 | 567 | self.endDate = endDate |
|
566 | 568 | self.startTime = startTime |
|
567 | 569 | self.endTime = endTime |
|
568 | 570 | |
|
569 | 571 | self.addRunOperation(**kwargs) |
|
570 | 572 | |
|
571 | 573 | def update(self, datatype, path, startDate, endDate, startTime, endTime, parentId=None, **kwargs): |
|
572 | 574 | |
|
573 | 575 | self.datatype = datatype |
|
574 | 576 | self.path = path |
|
575 | 577 | self.startDate = startDate |
|
576 | 578 | self.endDate = endDate |
|
577 | 579 | self.startTime = startTime |
|
578 | 580 | self.endTime = endTime |
|
579 | 581 | |
|
580 | 582 | self.updateRunOperation(**kwargs) |
|
581 | 583 | |
|
582 | 584 | def addRunOperation(self, **kwargs): |
|
583 | 585 | |
|
584 | 586 | opObj = self.addOperation(name = 'run', optype = 'self') |
|
585 | 587 | |
|
586 | 588 | opObj.addParameter(name='datatype' , value=self.datatype, format='str') |
|
587 | 589 | opObj.addParameter(name='path' , value=self.path, format='str') |
|
588 | 590 | opObj.addParameter(name='startDate' , value=self.startDate, format='date') |
|
589 | 591 | opObj.addParameter(name='endDate' , value=self.endDate, format='date') |
|
590 | 592 | opObj.addParameter(name='startTime' , value=self.startTime, format='time') |
|
591 | 593 | opObj.addParameter(name='endTime' , value=self.endTime, format='time') |
|
592 | 594 | |
|
593 | 595 | for key, value in kwargs.items(): |
|
594 | 596 | opObj.addParameter(name=key, value=value, format=type(value).__name__) |
|
595 | 597 | |
|
596 | 598 | return opObj |
|
597 | 599 | |
|
598 | 600 | def updateRunOperation(self, **kwargs): |
|
599 | 601 | |
|
600 | 602 | opObj = self.getOperationObj(name = 'run') |
|
601 | 603 | opObj.removeParameters() |
|
602 | 604 | |
|
603 | 605 | opObj.addParameter(name='datatype' , value=self.datatype, format='str') |
|
604 | 606 | opObj.addParameter(name='path' , value=self.path, format='str') |
|
605 | 607 | opObj.addParameter(name='startDate' , value=self.startDate, format='date') |
|
606 | 608 | opObj.addParameter(name='endDate' , value=self.endDate, format='date') |
|
607 | 609 | opObj.addParameter(name='startTime' , value=self.startTime, format='time') |
|
608 | 610 | opObj.addParameter(name='endTime' , value=self.endTime, format='time') |
|
609 | 611 | |
|
610 | 612 | for key, value in kwargs.items(): |
|
611 | 613 | opObj.addParameter(name=key, value=value, format=type(value).__name__) |
|
612 | 614 | |
|
613 | 615 | return opObj |
|
614 | 616 | |
|
615 | 617 | class Project(): |
|
616 | 618 | |
|
617 | 619 | id = None |
|
618 | 620 | name = None |
|
619 | 621 | description = None |
|
620 | 622 | # readUnitConfObjList = None |
|
621 | 623 | procUnitConfObjDict = None |
|
622 | 624 | |
|
623 | 625 | ELEMENTNAME = 'Project' |
|
624 | 626 | |
|
625 | 627 | def __init__(self, control=None, dataq=None): |
|
626 | 628 | |
|
627 | 629 | self.id = None |
|
628 | 630 | self.name = None |
|
629 | 631 | self.description = None |
|
630 | 632 | |
|
631 | 633 | self.procUnitConfObjDict = {} |
|
632 | 634 | |
|
633 | 635 | #global data_q |
|
634 | 636 | #data_q = dataq |
|
635 | 637 | |
|
636 | 638 | if control==None: |
|
637 | 639 | control = {} |
|
638 | 640 | control['stop'] = False |
|
639 | 641 | control['pause'] = False |
|
640 | 642 | |
|
641 | 643 | self.control = control |
|
642 | 644 | |
|
643 | 645 | def __getNewId(self): |
|
644 | 646 | |
|
645 | 647 | id = int(self.id)*10 + len(self.procUnitConfObjDict) + 1 |
|
646 | 648 | |
|
647 | 649 | return str(id) |
|
648 | 650 | |
|
649 | 651 | def getElementName(self): |
|
650 | 652 | |
|
651 | 653 | return self.ELEMENTNAME |
|
652 | 654 | |
|
653 | 655 | def getId(self): |
|
654 | 656 | |
|
655 | 657 | return self.id |
|
656 | 658 | |
|
657 | 659 | def setup(self, id, name, description): |
|
658 | 660 | |
|
659 | 661 | self.id = id |
|
660 | 662 | self.name = name |
|
661 | 663 | self.description = description |
|
662 | 664 | |
|
663 | 665 | def update(self, name, description): |
|
664 | 666 | |
|
665 | 667 | self.name = name |
|
666 | 668 | self.description = description |
|
667 | 669 | |
|
668 | 670 | def addReadUnit(self, datatype=None, name=None, **kwargs): |
|
669 | 671 | |
|
670 | 672 | #Compatible with old signal chain version |
|
671 | 673 | if datatype==None and name==None: |
|
672 | 674 | raise ValueError, "datatype or name should be defined" |
|
673 | 675 | |
|
674 | 676 | if name==None: |
|
675 | 677 | if 'Reader' in datatype: |
|
676 | 678 | name = datatype |
|
677 | 679 | else: |
|
678 | 680 | name = '%sReader' %(datatype) |
|
679 | 681 | |
|
680 | 682 | if datatype==None: |
|
681 | 683 | datatype = name.replace('Reader','') |
|
682 | 684 | |
|
683 | 685 | id = self.__getNewId() |
|
684 | 686 | |
|
685 | 687 | readUnitConfObj = ReadUnitConf() |
|
686 | 688 | readUnitConfObj.setup(id, name, datatype, parentId=self.id, **kwargs) |
|
687 | 689 | |
|
688 | 690 | self.procUnitConfObjDict[readUnitConfObj.getId()] = readUnitConfObj |
|
689 | 691 | |
|
690 | 692 | return readUnitConfObj |
|
691 | 693 | |
|
692 | 694 | def addProcUnit(self, inputId=0, datatype=None, name=None): |
|
693 | 695 | |
|
694 | 696 | #Compatible with old signal chain version |
|
695 | 697 | if datatype==None and name==None: |
|
696 | 698 | raise ValueError, "datatype or name should be defined" |
|
697 | 699 | |
|
698 | 700 | if name==None: |
|
699 | 701 | if 'Proc' in datatype: |
|
700 | 702 | name = datatype |
|
701 | 703 | else: |
|
702 | 704 | name = '%sProc' %(datatype) |
|
703 | 705 | |
|
704 | 706 | if datatype==None: |
|
705 | 707 | datatype = name.replace('Proc','') |
|
706 | 708 | |
|
707 | 709 | id = self.__getNewId() |
|
708 | 710 | |
|
709 | 711 | procUnitConfObj = ProcUnitConf() |
|
710 | 712 | procUnitConfObj.setup(id, name, datatype, inputId, parentId=self.id) |
|
711 | 713 | |
|
712 | 714 | self.procUnitConfObjDict[procUnitConfObj.getId()] = procUnitConfObj |
|
713 | 715 | |
|
714 | 716 | return procUnitConfObj |
|
715 | 717 | |
|
716 | 718 | def getReadUnitId(self): |
|
717 | 719 | |
|
718 | 720 | readUnitConfObj = self.getReadUnitObj() |
|
719 | 721 | |
|
720 | 722 | return readUnitConfObj.id |
|
721 | 723 | |
|
722 | 724 | def getReadUnitObj(self): |
|
723 | 725 | |
|
724 | 726 | for obj in self.procUnitConfObjDict.values(): |
|
725 | 727 | if obj.getElementName() == "ReadUnit": |
|
726 | 728 | return obj |
|
727 | 729 | |
|
728 | 730 | return None |
|
729 | 731 | |
|
730 | 732 | def getProcUnitObj(self, id): |
|
731 | 733 | |
|
732 | 734 | return self.procUnitConfObjDict[id] |
|
733 | 735 | |
|
734 | 736 | def makeXml(self): |
|
735 | 737 | |
|
736 | 738 | projectElement = Element('Project') |
|
737 | 739 | projectElement.set('id', str(self.id)) |
|
738 | 740 | projectElement.set('name', self.name) |
|
739 | 741 | projectElement.set('description', self.description) |
|
740 | 742 | |
|
741 | 743 | # for readUnitConfObj in self.readUnitConfObjList: |
|
742 | 744 | # readUnitConfObj.makeXml(projectElement) |
|
743 | 745 | |
|
744 | 746 | for procUnitConfObj in self.procUnitConfObjDict.values(): |
|
745 | 747 | procUnitConfObj.makeXml(projectElement) |
|
746 | 748 | |
|
747 | 749 | self.projectElement = projectElement |
|
748 | 750 | |
|
749 | 751 | def writeXml(self, filename): |
|
750 | 752 | |
|
751 | 753 | self.makeXml() |
|
752 | 754 | |
|
753 | 755 | #print prettify(self.projectElement) |
|
754 | 756 | |
|
755 | 757 | ElementTree(self.projectElement).write(filename, method='xml') |
|
756 | 758 | |
|
757 | 759 | def readXml(self, filename): |
|
758 | 760 | |
|
759 | 761 | #tree = ET.parse(filename) |
|
760 | 762 | self.projectElement = None |
|
761 | 763 | # self.readUnitConfObjList = [] |
|
762 | 764 | self.procUnitConfObjDict = {} |
|
763 | 765 | |
|
764 | 766 | self.projectElement = ElementTree().parse(filename) |
|
765 | 767 | |
|
766 | 768 | self.project = self.projectElement.tag |
|
767 | 769 | |
|
768 | 770 | self.id = self.projectElement.get('id') |
|
769 | 771 | self.name = self.projectElement.get('name') |
|
770 | 772 | self.description = self.projectElement.get('description') |
|
771 | 773 | |
|
772 | 774 | readUnitElementList = self.projectElement.getiterator(ReadUnitConf().getElementName()) |
|
773 | 775 | |
|
774 | 776 | for readUnitElement in readUnitElementList: |
|
775 | 777 | readUnitConfObj = ReadUnitConf() |
|
776 | 778 | readUnitConfObj.readXml(readUnitElement) |
|
777 | 779 | |
|
778 | 780 | self.procUnitConfObjDict[readUnitConfObj.getId()] = readUnitConfObj |
|
779 | 781 | |
|
780 | 782 | procUnitElementList = self.projectElement.getiterator(ProcUnitConf().getElementName()) |
|
781 | 783 | |
|
782 | 784 | for procUnitElement in procUnitElementList: |
|
783 | 785 | procUnitConfObj = ProcUnitConf() |
|
784 | 786 | procUnitConfObj.readXml(procUnitElement) |
|
785 | 787 | |
|
786 | 788 | self.procUnitConfObjDict[procUnitConfObj.getId()] = procUnitConfObj |
|
787 | 789 | |
|
788 | 790 | def printattr(self): |
|
789 | 791 | |
|
790 | 792 | print "Project[%s]: name = %s, description = %s" %(self.id, |
|
791 | 793 | self.name, |
|
792 | 794 | self.description) |
|
793 | 795 | |
|
794 | 796 | # for readUnitConfObj in self.readUnitConfObjList: |
|
795 | 797 | # readUnitConfObj.printattr() |
|
796 | 798 | |
|
797 | 799 | for procUnitConfObj in self.procUnitConfObjDict.values(): |
|
798 | 800 | procUnitConfObj.printattr() |
|
799 | 801 | |
|
800 | 802 | def createObjects(self): |
|
801 | 803 | |
|
802 | 804 | # for readUnitConfObj in self.readUnitConfObjList: |
|
803 | 805 | # readUnitConfObj.createObjects() |
|
804 | 806 | |
|
805 | 807 | for procUnitConfObj in self.procUnitConfObjDict.values(): |
|
806 | 808 | procUnitConfObj.createObjects() |
|
807 | 809 | |
|
808 | 810 | def __connect(self, objIN, thisObj): |
|
809 | 811 | |
|
810 | 812 | thisObj.setInput(objIN.getOutputObj()) |
|
811 | 813 | |
|
812 | 814 | def connectObjects(self): |
|
813 | 815 | |
|
814 | 816 | for thisPUConfObj in self.procUnitConfObjDict.values(): |
|
815 | 817 | |
|
816 | 818 | inputId = thisPUConfObj.getInputId() |
|
817 | 819 | |
|
818 | 820 | if int(inputId) == 0: |
|
819 | 821 | continue |
|
820 | 822 | |
|
821 | 823 | #Get input object |
|
822 | 824 | puConfINObj = self.procUnitConfObjDict[inputId] |
|
823 | 825 | puObjIN = puConfINObj.getProcUnitObj() |
|
824 | 826 | |
|
825 | 827 | #Get current object |
|
826 | 828 | thisPUObj = thisPUConfObj.getProcUnitObj() |
|
827 | 829 | |
|
828 | 830 | self.__connect(puObjIN, thisPUObj) |
|
829 | 831 | |
|
830 | 832 | def run(self): |
|
831 | 833 | |
|
832 | 834 | # for readUnitConfObj in self.readUnitConfObjList: |
|
833 | 835 | # readUnitConfObj.run() |
|
834 | 836 | |
|
835 | 837 | print "*"*40 |
|
836 | 838 | print " Starting SIGNAL CHAIN PROCESSING " |
|
837 | 839 | print "*"*40 |
|
838 | 840 | |
|
839 | 841 | |
|
840 | 842 | keyList = self.procUnitConfObjDict.keys() |
|
841 | 843 | keyList.sort() |
|
842 | 844 | |
|
843 | 845 | while(True): |
|
844 | 846 | |
|
845 | 847 | finalSts = False |
|
846 | 848 | |
|
847 | 849 | for procKey in keyList: |
|
848 | 850 | # print "Running the '%s' process with %s" %(procUnitConfObj.name, procUnitConfObj.id) |
|
849 | 851 | |
|
850 | 852 | procUnitConfObj = self.procUnitConfObjDict[procKey] |
|
851 | 853 | sts = procUnitConfObj.run() |
|
852 | 854 | finalSts = finalSts or sts |
|
853 | 855 | |
|
854 | 856 | #If every process unit finished so end process |
|
855 | 857 | if not(finalSts): |
|
856 | 858 | print "Every process unit have finished" |
|
857 | 859 | break |
|
858 | 860 | |
|
859 | 861 | if self.control['pause']: |
|
860 | 862 | print "Pause..." |
|
861 | 863 | |
|
862 | 864 | while True: |
|
863 | 865 | time.sleep(0.1) |
|
864 | 866 | |
|
865 | 867 | if not self.control['pause']: |
|
866 | 868 | break |
|
867 | 869 | |
|
868 | 870 | if self.control['stop']: |
|
869 | 871 | break |
|
870 | 872 | |
|
871 | 873 | if self.control['stop']: |
|
872 | 874 | print "Stopping process" |
|
873 | 875 | break |
|
874 | 876 | |
|
875 | 877 | #Closing every process |
|
876 | 878 | for procKey in keyList: |
|
877 | 879 | procUnitConfObj = self.procUnitConfObjDict[procKey] |
|
878 | 880 | procUnitConfObj.close() |
|
879 | 881 | |
|
880 | 882 | print "Process stopped" |
|
881 | 883 | |
|
882 | 884 | def start(self, filename): |
|
883 | 885 | |
|
884 | 886 | self.writeXml(filename) |
|
885 | 887 | self.readXml(filename) |
|
886 | 888 | |
|
887 | 889 | self.createObjects() |
|
888 | 890 | self.connectObjects() |
|
889 | 891 | self.run() |
|
890 | 892 | |
|
891 | 893 | if __name__ == '__main__': |
|
892 | 894 | |
|
893 | 895 | desc = "Segundo Test" |
|
894 | 896 | filename = "schain.xml" |
|
895 | 897 | |
|
896 | 898 | controllerObj = Project() |
|
897 | 899 | |
|
898 | 900 | controllerObj.setup(id = '191', name='test01', description=desc) |
|
899 | 901 | |
|
900 | 902 | readUnitConfObj = controllerObj.addReadUnit(datatype='Voltage', |
|
901 | 903 | path='data/rawdata/', |
|
902 | 904 | startDate='2011/01/01', |
|
903 | 905 | endDate='2012/12/31', |
|
904 | 906 | startTime='00:00:00', |
|
905 | 907 | endTime='23:59:59', |
|
906 | 908 | online=1, |
|
907 | 909 | walk=1) |
|
908 | 910 | |
|
909 | 911 | # opObj00 = readUnitConfObj.addOperation(name='printInfo') |
|
910 | 912 | |
|
911 | 913 | procUnitConfObj0 = controllerObj.addProcUnit(datatype='Voltage', inputId=readUnitConfObj.getId()) |
|
912 | 914 | |
|
913 | 915 | opObj10 = procUnitConfObj0.addOperation(name='selectChannels') |
|
914 | 916 | opObj10.addParameter(name='channelList', value='3,4,5', format='intlist') |
|
915 | 917 | |
|
916 | 918 | opObj10 = procUnitConfObj0.addOperation(name='selectHeights') |
|
917 | 919 | opObj10.addParameter(name='minHei', value='90', format='float') |
|
918 | 920 | opObj10.addParameter(name='maxHei', value='180', format='float') |
|
919 | 921 | |
|
920 | 922 | opObj12 = procUnitConfObj0.addOperation(name='CohInt', optype='external') |
|
921 | 923 | opObj12.addParameter(name='n', value='10', format='int') |
|
922 | 924 | |
|
923 | 925 | procUnitConfObj1 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObj0.getId()) |
|
924 | 926 | procUnitConfObj1.addParameter(name='nFFTPoints', value='32', format='int') |
|
925 | 927 | # procUnitConfObj1.addParameter(name='pairList', value='(0,1),(0,2),(1,2)', format='') |
|
926 | 928 | |
|
927 | 929 | |
|
928 | 930 | opObj11 = procUnitConfObj1.addOperation(name='SpectraPlot', optype='external') |
|
929 | 931 | opObj11.addParameter(name='idfigure', value='1', format='int') |
|
930 | 932 | opObj11.addParameter(name='wintitle', value='SpectraPlot0', format='str') |
|
931 | 933 | opObj11.addParameter(name='zmin', value='40', format='int') |
|
932 | 934 | opObj11.addParameter(name='zmax', value='90', format='int') |
|
933 | 935 | opObj11.addParameter(name='showprofile', value='1', format='int') |
|
934 | 936 | |
|
935 | 937 | # opObj11 = procUnitConfObj1.addOperation(name='CrossSpectraPlot', optype='external') |
|
936 | 938 | # opObj11.addParameter(name='idfigure', value='2', format='int') |
|
937 | 939 | # opObj11.addParameter(name='wintitle', value='CrossSpectraPlot', format='str') |
|
938 | 940 | # opObj11.addParameter(name='zmin', value='40', format='int') |
|
939 | 941 | # opObj11.addParameter(name='zmax', value='90', format='int') |
|
940 | 942 | |
|
941 | 943 | |
|
942 | 944 | # procUnitConfObj2 = controllerObj.addProcUnit(datatype='Voltage', inputId=procUnitConfObj0.getId()) |
|
943 | 945 | # |
|
944 | 946 | # opObj12 = procUnitConfObj2.addOperation(name='CohInt', optype='external') |
|
945 | 947 | # opObj12.addParameter(name='n', value='2', format='int') |
|
946 | 948 | # opObj12.addParameter(name='overlapping', value='1', format='int') |
|
947 | 949 | # |
|
948 | 950 | # procUnitConfObj3 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObj2.getId()) |
|
949 | 951 | # procUnitConfObj3.addParameter(name='nFFTPoints', value='32', format='int') |
|
950 | 952 | # |
|
951 | 953 | # opObj11 = procUnitConfObj3.addOperation(name='SpectraPlot', optype='external') |
|
952 | 954 | # opObj11.addParameter(name='idfigure', value='2', format='int') |
|
953 | 955 | # opObj11.addParameter(name='wintitle', value='SpectraPlot1', format='str') |
|
954 | 956 | # opObj11.addParameter(name='zmin', value='40', format='int') |
|
955 | 957 | # opObj11.addParameter(name='zmax', value='90', format='int') |
|
956 | 958 | # opObj11.addParameter(name='showprofile', value='1', format='int') |
|
957 | 959 | |
|
958 | 960 | # opObj11 = procUnitConfObj1.addOperation(name='RTIPlot', optype='external') |
|
959 | 961 | # opObj11.addParameter(name='idfigure', value='10', format='int') |
|
960 | 962 | # opObj11.addParameter(name='wintitle', value='RTI', format='str') |
|
961 | 963 | ## opObj11.addParameter(name='xmin', value='21', format='float') |
|
962 | 964 | ## opObj11.addParameter(name='xmax', value='22', format='float') |
|
963 | 965 | # opObj11.addParameter(name='zmin', value='40', format='int') |
|
964 | 966 | # opObj11.addParameter(name='zmax', value='90', format='int') |
|
965 | 967 | # opObj11.addParameter(name='showprofile', value='1', format='int') |
|
966 | 968 | # opObj11.addParameter(name='timerange', value=str(60), format='int') |
|
967 | 969 | |
|
968 | 970 | # opObj10 = procUnitConfObj1.addOperation(name='selectChannels') |
|
969 | 971 | # opObj10.addParameter(name='channelList', value='0,2,4,6', format='intlist') |
|
970 | 972 | # |
|
971 | 973 | # opObj12 = procUnitConfObj1.addOperation(name='IncohInt', optype='external') |
|
972 | 974 | # opObj12.addParameter(name='n', value='2', format='int') |
|
973 | 975 | # |
|
974 | 976 | # opObj11 = procUnitConfObj1.addOperation(name='SpectraPlot', optype='external') |
|
975 | 977 | # opObj11.addParameter(name='idfigure', value='2', format='int') |
|
976 | 978 | # opObj11.addParameter(name='wintitle', value='SpectraPlot10', format='str') |
|
977 | 979 | # opObj11.addParameter(name='zmin', value='70', format='int') |
|
978 | 980 | # opObj11.addParameter(name='zmax', value='90', format='int') |
|
979 | 981 | # |
|
980 | 982 | # opObj10 = procUnitConfObj1.addOperation(name='selectChannels') |
|
981 | 983 | # opObj10.addParameter(name='channelList', value='2,6', format='intlist') |
|
982 | 984 | # |
|
983 | 985 | # opObj12 = procUnitConfObj1.addOperation(name='IncohInt', optype='external') |
|
984 | 986 | # opObj12.addParameter(name='n', value='2', format='int') |
|
985 | 987 | # |
|
986 | 988 | # opObj11 = procUnitConfObj1.addOperation(name='SpectraPlot', optype='external') |
|
987 | 989 | # opObj11.addParameter(name='idfigure', value='3', format='int') |
|
988 | 990 | # opObj11.addParameter(name='wintitle', value='SpectraPlot10', format='str') |
|
989 | 991 | # opObj11.addParameter(name='zmin', value='70', format='int') |
|
990 | 992 | # opObj11.addParameter(name='zmax', value='90', format='int') |
|
991 | 993 | |
|
992 | 994 | |
|
993 | 995 | # opObj12 = procUnitConfObj1.addOperation(name='decoder') |
|
994 | 996 | # opObj12.addParameter(name='ncode', value='2', format='int') |
|
995 | 997 | # opObj12.addParameter(name='nbauds', value='8', format='int') |
|
996 | 998 | # opObj12.addParameter(name='code0', value='001110011', format='int') |
|
997 | 999 | # opObj12.addParameter(name='code1', value='001110011', format='int') |
|
998 | 1000 | |
|
999 | 1001 | |
|
1000 | 1002 | |
|
1001 | 1003 | # procUnitConfObj2 = controllerObj.addProcUnit(datatype='Spectra', inputId=procUnitConfObj1.getId()) |
|
1002 | 1004 | # |
|
1003 | 1005 | # opObj21 = procUnitConfObj2.addOperation(name='IncohInt', optype='external') |
|
1004 | 1006 | # opObj21.addParameter(name='n', value='2', format='int') |
|
1005 | 1007 | # |
|
1006 | 1008 | # opObj11 = procUnitConfObj2.addOperation(name='SpectraPlot', optype='external') |
|
1007 | 1009 | # opObj11.addParameter(name='idfigure', value='4', format='int') |
|
1008 | 1010 | # opObj11.addParameter(name='wintitle', value='SpectraPlot OBJ 2', format='str') |
|
1009 | 1011 | # opObj11.addParameter(name='zmin', value='70', format='int') |
|
1010 | 1012 | # opObj11.addParameter(name='zmax', value='90', format='int') |
|
1011 | 1013 | |
|
1012 | 1014 | print "Escribiendo el archivo XML" |
|
1013 | 1015 | |
|
1014 | 1016 | controllerObj.writeXml(filename) |
|
1015 | 1017 | |
|
1016 | 1018 | print "Leyendo el archivo XML" |
|
1017 | 1019 | controllerObj.readXml(filename) |
|
1018 | 1020 | #controllerObj.printattr() |
|
1019 | 1021 | |
|
1020 | 1022 | controllerObj.createObjects() |
|
1021 | 1023 | controllerObj.connectObjects() |
|
1022 | 1024 | controllerObj.run() |
|
1023 | 1025 | |
|
1024 | 1026 | No newline at end of file |
@@ -1,1 +1,1 | |||
|
1 |
|
|
|
1 | from viewcontroller import * No newline at end of file |
|
1 | NO CONTENT: modified file | |
The requested commit or file is too big and content was truncated. Show full diff |
@@ -1,97 +1,100 | |||
|
1 | 1 | import threading |
|
2 | 2 | import Queue |
|
3 | 3 | import pickle |
|
4 | 4 | import numpy, os, sys |
|
5 | 5 | |
|
6 | 6 | from schainpy.controller import Project |
|
7 | 7 | from command import * |
|
8 | 8 | |
|
9 | 9 | class ControllerThread(threading.Thread): |
|
10 | def __init__(self, filename, data_q): | |
|
10 | def __init__(self, filename, data_q=None): | |
|
11 | 11 | super(ControllerThread, self).__init__() |
|
12 | 12 | self.filename = filename |
|
13 | 13 | self.data_q = data_q |
|
14 | 14 | self.control = {'stop':False,'pause':False} |
|
15 | 15 | |
|
16 | 16 | def stop(self): |
|
17 | 17 | self.control['stop'] = True |
|
18 | 18 | |
|
19 | 19 | def pause(self): |
|
20 | 20 | self.control['pause'] = not(self.control['pause']) |
|
21 | 21 | |
|
22 | 22 | def run(self): |
|
23 | 23 | self.control['stop'] = False |
|
24 | 24 | self.control['pause'] = False |
|
25 | 25 | self.controllerObj = Project(self.control, self.data_q) |
|
26 | 26 | self.controllerObj.readXml(self.filename) |
|
27 | 27 | self.controllerObj.createObjects() |
|
28 | 28 | self.controllerObj.connectObjects() |
|
29 | 29 | self.controllerObj.run() |
|
30 | 30 | |
|
31 | 31 | class CommCtrlProcessThread(threading.Thread): |
|
32 | 32 | """ Implements the threading.Thread interface (start, join, etc.) and |
|
33 | 33 | can be controlled via the cmd_q Queue attribute. Replies are placed in |
|
34 | 34 | the reply_q Queue attribute. |
|
35 | 35 | """ |
|
36 | 36 | def __init__(self, cmd_q=Queue.Queue(), reply_q=Queue.Queue()): |
|
37 | 37 | super(CommCtrlProcessThread, self).__init__() |
|
38 | 38 | self.cmd_q = cmd_q |
|
39 | self.reply_q = reply_q | |
|
39 | # self.reply_q = reply_q | |
|
40 | 40 | |
|
41 | 41 | # self.print_q = Queue.Queue() |
|
42 | self.data_q = Queue.Queue() | |
|
42 | # self.data_q = Queue.Queue() | |
|
43 | ||
|
43 | 44 | |
|
44 | 45 | self.alive = threading.Event() |
|
46 | self.setDaemon(True) | |
|
45 | 47 | self.alive.set() |
|
46 | 48 | self.socket = None |
|
47 | 49 | |
|
48 | 50 | self.socketIO = None |
|
49 | 51 | self.mySocket = None |
|
50 | 52 | |
|
51 | 53 | |
|
52 | 54 | self.handlers = { |
|
53 | 55 | ProcessCommand.PROCESS: self._handle_ioPROCESSTHREAD, |
|
54 | 56 | ProcessCommand.MESSAGE: self._handle_ioMESSAGE, |
|
55 | 57 | ProcessCommand.DATA: self._handle_ioDATA, |
|
56 | 58 | ProcessCommand.STOP: self._handle_ioSTOP, |
|
57 | 59 | ProcessCommand.PAUSE: self._handle_ioPAUSE |
|
58 | 60 | } |
|
59 | 61 | |
|
60 | 62 | def run(self): |
|
63 | ||
|
61 | 64 | while self.alive.isSet(): |
|
62 | 65 | try: |
|
63 | 66 | cmd = self.cmd_q.get(True, 0.1) |
|
64 | 67 | self.handlers[cmd.type](cmd) |
|
65 | 68 | except Queue.Empty as e: |
|
66 | 69 | continue |
|
67 | 70 | |
|
68 | 71 | |
|
69 | 72 | def _handle_ioPROCESSTHREAD(self, cmd): |
|
70 | 73 | filename = cmd.data |
|
71 |
self.controllerObj = ControllerThread(filename=filename |
|
|
74 | self.controllerObj = ControllerThread(filename=filename) | |
|
72 | 75 | self.controllerObj.start() |
|
73 | 76 | |
|
74 | 77 | def _handle_ioPAUSE(self, cmd): |
|
75 | 78 | self.controllerObj.pause() |
|
76 | 79 | |
|
77 | 80 | def _handle_ioSTOP(self, cmd): |
|
78 | 81 | self.controllerObj.stop() |
|
79 | 82 | |
|
80 | 83 | def _handle_ioDATA(self, cmd): |
|
81 | 84 | self.reply_q.put(self._success_reply_data(data=cmd.data)) |
|
82 | 85 | |
|
83 | 86 | def _handle_ioMESSAGE(self, cmd): |
|
84 | 87 | self.reply_q.put(self._success_reply_message(data=cmd.data)) |
|
85 | 88 | |
|
86 | 89 | def _success_reply_data(self, data=None): |
|
87 | 90 | return ClientReply(ClientReply.DATA, data) |
|
88 | 91 | |
|
89 | 92 | def _success_reply_message(self, data=None): |
|
90 | 93 | return ClientReply(ClientReply.MESSAGE, data) |
|
91 | 94 | |
|
92 | 95 | def join(self, timeout=None): |
|
93 | 96 | self.alive.clear() |
|
94 | 97 | threading.Thread.join(self, timeout) |
|
95 | 98 | |
|
96 | 99 | |
|
97 | 100 | No newline at end of file |
@@ -1,139 +1,140 | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 | 3 | # Form implementation generated from reading ui file '/home/alex/ui/ftpConfig4.ui' |
|
4 | 4 | # |
|
5 | 5 | # Created: Tue Aug 20 08:24:35 2013 |
|
6 | 6 | # by: PyQt4 UI code generator 4.10 |
|
7 | 7 | # |
|
8 | 8 | # WARNING! All changes made in this file will be lost! |
|
9 | 9 | |
|
10 | 10 | from PyQt4 import QtCore, QtGui |
|
11 | 11 | |
|
12 | 12 | try: |
|
13 | 13 | _fromUtf8 = QtCore.QString.fromUtf8 |
|
14 | 14 | except AttributeError: |
|
15 | 15 | def _fromUtf8(s): |
|
16 | 16 | return s |
|
17 | 17 | |
|
18 | 18 | try: |
|
19 | 19 | _encoding = QtGui.QApplication.UnicodeUTF8 |
|
20 | 20 | def _translate(context, text, disambig): |
|
21 | 21 | return QtGui.QApplication.translate(context, text, disambig, _encoding) |
|
22 | 22 | except AttributeError: |
|
23 | 23 | def _translate(context, text, disambig): |
|
24 | 24 | return QtGui.QApplication.translate(context, text, disambig) |
|
25 | 25 | |
|
26 | 26 | class Ui_Ftp(object): |
|
27 | 27 | def setupUi(self, MainWindow): |
|
28 | 28 | MainWindow.setObjectName(_fromUtf8("MainWindow")) |
|
29 | 29 | MainWindow.resize(374, 399) |
|
30 | 30 | MainWindow.setMinimumSize(QtCore.QSize(374, 399)) |
|
31 | 31 | MainWindow.setMaximumSize(QtCore.QSize(374, 399)) |
|
32 | 32 | self.centralWidget = QtGui.QWidget(MainWindow) |
|
33 | 33 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) |
|
34 | 34 | self.label = QtGui.QLabel(self.centralWidget) |
|
35 | 35 | self.label.setGeometry(QtCore.QRect(9, 38, 47, 17)) |
|
36 | 36 | self.label.setObjectName(_fromUtf8("label")) |
|
37 | 37 | self.label_2 = QtGui.QLabel(self.centralWidget) |
|
38 | 38 | self.label_2.setGeometry(QtCore.QRect(9, 133, 77, 17)) |
|
39 | 39 | self.label_2.setObjectName(_fromUtf8("label_2")) |
|
40 | 40 | self.label_3 = QtGui.QLabel(self.centralWidget) |
|
41 | 41 | self.label_3.setGeometry(QtCore.QRect(9, 166, 68, 17)) |
|
42 | 42 | self.label_3.setObjectName(_fromUtf8("label_3")) |
|
43 | 43 | self.label_4 = QtGui.QLabel(self.centralWidget) |
|
44 | 44 | self.label_4.setGeometry(QtCore.QRect(9, 9, 101, 17)) |
|
45 | 45 | font = QtGui.QFont() |
|
46 | 46 | font.setBold(True) |
|
47 | 47 | font.setWeight(75) |
|
48 | 48 | self.label_4.setFont(font) |
|
49 | 49 | self.label_4.setObjectName(_fromUtf8("label_4")) |
|
50 | 50 | self.label_5 = QtGui.QLabel(self.centralWidget) |
|
51 | 51 | self.label_5.setGeometry(QtCore.QRect(9, 104, 87, 17)) |
|
52 | 52 | font = QtGui.QFont() |
|
53 | 53 | font.setBold(True) |
|
54 | 54 | font.setWeight(75) |
|
55 | 55 | self.label_5.setFont(font) |
|
56 | 56 | self.label_5.setObjectName(_fromUtf8("label_5")) |
|
57 | 57 | self.label_6 = QtGui.QLabel(self.centralWidget) |
|
58 | 58 | self.label_6.setGeometry(QtCore.QRect(9, 71, 47, 17)) |
|
59 | 59 | self.label_6.setObjectName(_fromUtf8("label_6")) |
|
60 | 60 | self.serverFTP = QtGui.QLineEdit(self.centralWidget) |
|
61 | 61 | self.serverFTP.setGeometry(QtCore.QRect(130, 40, 231, 27)) |
|
62 | 62 | self.serverFTP.setObjectName(_fromUtf8("serverFTP")) |
|
63 | 63 | self.folderFTP = QtGui.QLineEdit(self.centralWidget) |
|
64 | 64 | self.folderFTP.setGeometry(QtCore.QRect(130, 70, 231, 27)) |
|
65 | 65 | self.folderFTP.setObjectName(_fromUtf8("folderFTP")) |
|
66 | 66 | self.usernameFTP = QtGui.QLineEdit(self.centralWidget) |
|
67 | 67 | self.usernameFTP.setGeometry(QtCore.QRect(130, 130, 231, 27)) |
|
68 | 68 | self.usernameFTP.setObjectName(_fromUtf8("usernameFTP")) |
|
69 | 69 | self.passwordFTP = QtGui.QLineEdit(self.centralWidget) |
|
70 | self.passwordFTP.setEchoMode(QtGui.QLineEdit.Password) | |
|
70 | 71 | self.passwordFTP.setGeometry(QtCore.QRect(130, 160, 231, 27)) |
|
71 | 72 | self.passwordFTP.setObjectName(_fromUtf8("passwordFTP")) |
|
72 | 73 | self.ftpCancelButton = QtGui.QPushButton(self.centralWidget) |
|
73 | 74 | self.ftpCancelButton.setGeometry(QtCore.QRect(130, 360, 111, 27)) |
|
74 | 75 | self.ftpCancelButton.setObjectName(_fromUtf8("ftpCancelButton")) |
|
75 | 76 | self.ftpOkButton = QtGui.QPushButton(self.centralWidget) |
|
76 | 77 | self.ftpOkButton.setGeometry(QtCore.QRect(250, 360, 111, 27)) |
|
77 | 78 | self.ftpOkButton.setObjectName(_fromUtf8("ftpOkButton")) |
|
78 | 79 | self.label_7 = QtGui.QLabel(self.centralWidget) |
|
79 | 80 | self.label_7.setGeometry(QtCore.QRect(10, 200, 66, 17)) |
|
80 | 81 | font = QtGui.QFont() |
|
81 | 82 | font.setBold(True) |
|
82 | 83 | font.setWeight(75) |
|
83 | 84 | self.label_7.setFont(font) |
|
84 | 85 | self.label_7.setObjectName(_fromUtf8("label_7")) |
|
85 | 86 | self.label_8 = QtGui.QLabel(self.centralWidget) |
|
86 | 87 | self.label_8.setGeometry(QtCore.QRect(10, 230, 81, 17)) |
|
87 | 88 | self.label_8.setObjectName(_fromUtf8("label_8")) |
|
88 | 89 | self.label_9 = QtGui.QLabel(self.centralWidget) |
|
89 | 90 | self.label_9.setGeometry(QtCore.QRect(10, 260, 81, 17)) |
|
90 | 91 | self.label_9.setObjectName(_fromUtf8("label_9")) |
|
91 | 92 | self.label_10 = QtGui.QLabel(self.centralWidget) |
|
92 | 93 | self.label_10.setGeometry(QtCore.QRect(10, 290, 81, 17)) |
|
93 | 94 | self.label_10.setObjectName(_fromUtf8("label_10")) |
|
94 | 95 | self.label_11 = QtGui.QLabel(self.centralWidget) |
|
95 | 96 | self.label_11.setGeometry(QtCore.QRect(10, 320, 81, 17)) |
|
96 | 97 | self.label_11.setObjectName(_fromUtf8("label_11")) |
|
97 | 98 | self.weightFTP = QtGui.QLineEdit(self.centralWidget) |
|
98 | 99 | self.weightFTP.setGeometry(QtCore.QRect(130, 230, 231, 27)) |
|
99 | 100 | self.weightFTP.setObjectName(_fromUtf8("weightFTP")) |
|
100 | 101 | self.expcodeFTP = QtGui.QLineEdit(self.centralWidget) |
|
101 | 102 | self.expcodeFTP.setGeometry(QtCore.QRect(130, 260, 231, 27)) |
|
102 | 103 | self.expcodeFTP.setObjectName(_fromUtf8("expcodeFTP")) |
|
103 | 104 | self.subexpFTP = QtGui.QLineEdit(self.centralWidget) |
|
104 | 105 | self.subexpFTP.setGeometry(QtCore.QRect(130, 290, 231, 27)) |
|
105 | 106 | self.subexpFTP.setObjectName(_fromUtf8("subexpFTP")) |
|
106 | 107 | self.plotposFTP = QtGui.QLineEdit(self.centralWidget) |
|
107 | 108 | self.plotposFTP.setGeometry(QtCore.QRect(130, 320, 231, 27)) |
|
108 | 109 | self.plotposFTP.setObjectName(_fromUtf8("plotposFTP")) |
|
109 | 110 | MainWindow.setCentralWidget(self.centralWidget) |
|
110 | 111 | |
|
111 | 112 | self.retranslateUi(MainWindow) |
|
112 | 113 | QtCore.QMetaObject.connectSlotsByName(MainWindow) |
|
113 | 114 | |
|
114 | 115 | def retranslateUi(self, MainWindow): |
|
115 | 116 | MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None)) |
|
116 | 117 | self.label.setText(_translate("MainWindow", "Server:", None)) |
|
117 | 118 | self.label_2.setText(_translate("MainWindow", "User Name:", None)) |
|
118 | 119 | self.label_3.setText(_translate("MainWindow", "Password:", None)) |
|
119 | 120 | self.label_4.setText(_translate("MainWindow", "Server Details", None)) |
|
120 | 121 | self.label_5.setText(_translate("MainWindow", "User Details", None)) |
|
121 | self.label_6.setText(_translate("MainWindow", "Folder:", None)) | |
|
122 | self.label_6.setText(_translate("MainWindow", "Remote Folder:", None)) | |
|
122 | 123 | self.ftpCancelButton.setText(_translate("MainWindow", "Cancel", None)) |
|
123 | 124 | self.ftpOkButton.setText(_translate("MainWindow", "Ok", None)) |
|
124 |
self.label_7.setText(_translate("MainWindow", " |
|
|
125 | self.label_7.setText(_translate("MainWindow", "Project Details", None)) | |
|
125 | 126 | self.label_8.setText(_translate("MainWindow", "Ftp_wei:", None)) |
|
126 | 127 | self.label_9.setText(_translate("MainWindow", "Exp_code:", None)) |
|
127 | 128 | self.label_10.setText(_translate("MainWindow", "Sub_exp:", None)) |
|
128 | 129 | self.label_11.setText(_translate("MainWindow", "Plot_pos:", None)) |
|
129 | 130 | |
|
130 | 131 | |
|
131 | 132 | if __name__ == "__main__": |
|
132 | 133 | import sys |
|
133 | 134 | app = QtGui.QApplication(sys.argv) |
|
134 | 135 | MainWindow = QtGui.QMainWindow() |
|
135 | 136 | ui = Ui_Ftp() |
|
136 | 137 | ui.setupUi(MainWindow) |
|
137 | 138 | MainWindow.show() |
|
138 | 139 | sys.exit(app.exec_()) |
|
139 | 140 |
@@ -1,1279 +1,1532 | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 | 3 | # Form implementation generated from reading ui file '/home/alex/ui/MainWindow_21_02_13_v49.ui' |
|
4 | 4 | # |
|
5 | 5 | # Created: Mon Mar 24 13:28:36 2014 |
|
6 | 6 | # by: PyQt4 UI code generator 4.10 |
|
7 | 7 | # |
|
8 | 8 | # WARNING! All changes made in this file will be lost! |
|
9 | 9 | |
|
10 | 10 | from PyQt4 import QtCore, QtGui |
|
11 | from windows import * | |
|
11 | 12 | |
|
12 | 13 | try: |
|
13 | 14 | _fromUtf8 = QtCore.QString.fromUtf8 |
|
14 | 15 | except AttributeError: |
|
15 | 16 | def _fromUtf8(s): |
|
16 | 17 | return s |
|
17 | 18 | |
|
18 | 19 | try: |
|
19 | 20 | _encoding = QtGui.QApplication.UnicodeUTF8 |
|
20 | 21 | def _translate(context, text, disambig): |
|
21 | 22 | return QtGui.QApplication.translate(context, text, disambig, _encoding) |
|
22 | 23 | except AttributeError: |
|
23 | 24 | def _translate(context, text, disambig): |
|
24 | 25 | return QtGui.QApplication.translate(context, text, disambig) |
|
25 | 26 | |
|
26 | 27 | class Ui_MainWindow(object): |
|
28 | ||
|
27 | 29 | def setupUi(self, MainWindow): |
|
30 | ||
|
28 | 31 | MainWindow.setObjectName(_fromUtf8("MainWindow")) |
|
29 | 32 | MainWindow.resize(1203, 711) |
|
33 | ||
|
30 | 34 | self.centralWidget = QtGui.QWidget(MainWindow) |
|
31 | 35 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) |
|
32 | 36 | self.gridLayout_16 = QtGui.QGridLayout(self.centralWidget) |
|
33 | 37 | self.gridLayout_16.setObjectName(_fromUtf8("gridLayout_16")) |
|
34 | 38 | self.splitter_2 = QtGui.QSplitter(self.centralWidget) |
|
35 | 39 | self.splitter_2.setOrientation(QtCore.Qt.Horizontal) |
|
36 | 40 | self.splitter_2.setObjectName(_fromUtf8("splitter_2")) |
|
37 | 41 | self.projectExplorerTree = QtGui.QTreeView(self.splitter_2) |
|
38 | 42 | self.projectExplorerTree.setObjectName(_fromUtf8("projectExplorerTree")) |
|
39 | 43 | self.splitter = QtGui.QSplitter(self.splitter_2) |
|
40 | 44 | self.splitter.setOrientation(QtCore.Qt.Vertical) |
|
41 | 45 | self.splitter.setObjectName(_fromUtf8("splitter")) |
|
42 | 46 | self.tabWidgetProject = QtGui.QTabWidget(self.splitter) |
|
43 | 47 | self.tabWidgetProject.setMinimumSize(QtCore.QSize(0, 278)) |
|
44 | 48 | self.tabWidgetProject.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
45 | 49 | self.tabWidgetProject.setObjectName(_fromUtf8("tabWidgetProject")) |
|
50 | ||
|
51 | ||
|
46 | 52 | self.tabProject = QtGui.QWidget() |
|
47 | 53 | self.tabProject.setObjectName(_fromUtf8("tabProject")) |
|
48 | 54 | self.gridLayout_15 = QtGui.QGridLayout(self.tabProject) |
|
49 | 55 | self.gridLayout_15.setObjectName(_fromUtf8("gridLayout_15")) |
|
50 | 56 | self.frame = QtGui.QFrame(self.tabProject) |
|
51 | 57 | self.frame.setFrameShape(QtGui.QFrame.StyledPanel) |
|
52 | 58 | self.frame.setFrameShadow(QtGui.QFrame.Raised) |
|
53 | 59 | self.frame.setObjectName(_fromUtf8("frame")) |
|
54 | 60 | self.gridLayout_2 = QtGui.QGridLayout(self.frame) |
|
55 | 61 | self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) |
|
62 | ||
|
56 | 63 | self.label = QtGui.QLabel(self.frame) |
|
57 | 64 | self.label.setObjectName(_fromUtf8("label")) |
|
58 | 65 | self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) |
|
59 | 66 | self.proName = QtGui.QLineEdit(self.frame) |
|
60 | 67 | self.proName.setObjectName(_fromUtf8("proName")) |
|
61 | 68 | self.gridLayout_2.addWidget(self.proName, 0, 1, 1, 8) |
|
62 | 69 | self.label_11 = QtGui.QLabel(self.frame) |
|
63 | 70 | self.label_11.setObjectName(_fromUtf8("label_11")) |
|
64 | 71 | self.gridLayout_2.addWidget(self.label_11, 1, 0, 1, 1) |
|
65 | 72 | self.proComDataType = QtGui.QComboBox(self.frame) |
|
66 | 73 | self.proComDataType.setObjectName(_fromUtf8("proComDataType")) |
|
67 | 74 | self.proComDataType.addItem(_fromUtf8("")) |
|
68 | 75 | self.proComDataType.addItem(_fromUtf8("")) |
|
69 | 76 | self.proComDataType.addItem(_fromUtf8("")) |
|
70 | 77 | self.gridLayout_2.addWidget(self.proComDataType, 1, 1, 1, 5) |
|
71 | 78 | self.proDataType = QtGui.QLineEdit(self.frame) |
|
72 | 79 | self.proDataType.setObjectName(_fromUtf8("proDataType")) |
|
73 | 80 | self.gridLayout_2.addWidget(self.proDataType, 1, 6, 1, 3) |
|
74 | 81 | self.label_15 = QtGui.QLabel(self.frame) |
|
75 | 82 | self.label_15.setObjectName(_fromUtf8("label_15")) |
|
76 | 83 | self.gridLayout_2.addWidget(self.label_15, 2, 0, 1, 1) |
|
77 | 84 | self.proToolPath = QtGui.QToolButton(self.frame) |
|
78 | 85 | self.proToolPath.setObjectName(_fromUtf8("proToolPath")) |
|
79 | 86 | self.gridLayout_2.addWidget(self.proToolPath, 2, 1, 1, 1) |
|
80 | 87 | self.proDataPath = QtGui.QLineEdit(self.frame) |
|
81 | 88 | self.proDataPath.setObjectName(_fromUtf8("proDataPath")) |
|
82 | 89 | self.gridLayout_2.addWidget(self.proDataPath, 2, 2, 1, 7) |
|
83 | 90 | self.label_23 = QtGui.QLabel(self.frame) |
|
84 | 91 | self.label_23.setObjectName(_fromUtf8("label_23")) |
|
85 | 92 | self.gridLayout_2.addWidget(self.label_23, 3, 0, 1, 1) |
|
86 | 93 | self.proComReadMode = QtGui.QComboBox(self.frame) |
|
87 | 94 | self.proComReadMode.setObjectName(_fromUtf8("proComReadMode")) |
|
88 | 95 | self.proComReadMode.addItem(_fromUtf8("")) |
|
89 | 96 | self.proComReadMode.addItem(_fromUtf8("")) |
|
90 | 97 | self.gridLayout_2.addWidget(self.proComReadMode, 3, 1, 1, 2) |
|
91 | 98 | self.label_33 = QtGui.QLabel(self.frame) |
|
92 | 99 | self.label_33.setObjectName(_fromUtf8("label_33")) |
|
93 | 100 | self.gridLayout_2.addWidget(self.label_33, 3, 5, 1, 2) |
|
94 | 101 | self.proDelay = QtGui.QLineEdit(self.frame) |
|
95 | 102 | self.proDelay.setObjectName(_fromUtf8("proDelay")) |
|
96 | 103 | self.gridLayout_2.addWidget(self.proDelay, 3, 8, 1, 1) |
|
97 | 104 | self.label_32 = QtGui.QLabel(self.frame) |
|
98 | 105 | self.label_32.setObjectName(_fromUtf8("label_32")) |
|
99 | 106 | self.gridLayout_2.addWidget(self.label_32, 4, 0, 1, 1) |
|
100 | 107 | self.proComWalk = QtGui.QComboBox(self.frame) |
|
101 | 108 | self.proComWalk.setObjectName(_fromUtf8("proComWalk")) |
|
102 | 109 | self.proComWalk.addItem(_fromUtf8("")) |
|
103 | 110 | self.proComWalk.addItem(_fromUtf8("")) |
|
104 | 111 | self.gridLayout_2.addWidget(self.proComWalk, 4, 1, 1, 8) |
|
105 | 112 | self.proLoadButton = QtGui.QPushButton(self.frame) |
|
106 | 113 | self.proLoadButton.setObjectName(_fromUtf8("proLoadButton")) |
|
107 | 114 | self.gridLayout_2.addWidget(self.proLoadButton, 5, 0, 1, 9) |
|
108 | 115 | self.label_10 = QtGui.QLabel(self.frame) |
|
109 | 116 | self.label_10.setObjectName(_fromUtf8("label_10")) |
|
110 | 117 | self.gridLayout_2.addWidget(self.label_10, 3, 3, 1, 1) |
|
111 | 118 | self.proSet = QtGui.QLineEdit(self.frame) |
|
112 | 119 | self.proSet.setObjectName(_fromUtf8("proSet")) |
|
113 | 120 | self.gridLayout_2.addWidget(self.proSet, 3, 4, 1, 1) |
|
114 | 121 | self.gridLayout_15.addWidget(self.frame, 0, 0, 1, 1) |
|
115 | 122 | self.frame_2 = QtGui.QFrame(self.tabProject) |
|
116 | 123 | self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) |
|
117 | 124 | self.frame_2.setFrameShadow(QtGui.QFrame.Raised) |
|
118 | 125 | self.frame_2.setObjectName(_fromUtf8("frame_2")) |
|
119 | 126 | self.gridLayout_10 = QtGui.QGridLayout(self.frame_2) |
|
120 | 127 | self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10")) |
|
121 | 128 | self.label_27 = QtGui.QLabel(self.frame_2) |
|
122 | 129 | self.label_27.setObjectName(_fromUtf8("label_27")) |
|
123 | 130 | self.gridLayout_10.addWidget(self.label_27, 0, 0, 1, 1) |
|
124 | 131 | self.proComStartDate = QtGui.QComboBox(self.frame_2) |
|
125 | 132 | self.proComStartDate.setObjectName(_fromUtf8("proComStartDate")) |
|
126 | 133 | self.gridLayout_10.addWidget(self.proComStartDate, 0, 1, 1, 1) |
|
127 | 134 | self.label_28 = QtGui.QLabel(self.frame_2) |
|
128 | 135 | self.label_28.setObjectName(_fromUtf8("label_28")) |
|
129 | 136 | self.gridLayout_10.addWidget(self.label_28, 1, 0, 1, 1) |
|
130 | 137 | self.proComEndDate = QtGui.QComboBox(self.frame_2) |
|
131 | 138 | self.proComEndDate.setObjectName(_fromUtf8("proComEndDate")) |
|
132 | 139 | self.gridLayout_10.addWidget(self.proComEndDate, 1, 1, 1, 1) |
|
133 | 140 | self.label_2 = QtGui.QLabel(self.frame_2) |
|
134 | 141 | self.label_2.setObjectName(_fromUtf8("label_2")) |
|
135 | 142 | self.gridLayout_10.addWidget(self.label_2, 2, 0, 1, 1) |
|
136 | 143 | self.proStartTime = QtGui.QTimeEdit(self.frame_2) |
|
137 | 144 | self.proStartTime.setObjectName(_fromUtf8("proStartTime")) |
|
138 | 145 | self.gridLayout_10.addWidget(self.proStartTime, 2, 1, 1, 1) |
|
139 | 146 | self.label_3 = QtGui.QLabel(self.frame_2) |
|
140 | 147 | self.label_3.setObjectName(_fromUtf8("label_3")) |
|
141 | 148 | self.gridLayout_10.addWidget(self.label_3, 3, 0, 1, 1) |
|
142 | 149 | self.proEndTime = QtGui.QTimeEdit(self.frame_2) |
|
143 | 150 | self.proEndTime.setObjectName(_fromUtf8("proEndTime")) |
|
144 | 151 | self.gridLayout_10.addWidget(self.proEndTime, 3, 1, 1, 1) |
|
145 | 152 | self.label_30 = QtGui.QLabel(self.frame_2) |
|
146 | 153 | self.label_30.setObjectName(_fromUtf8("label_30")) |
|
147 | 154 | self.gridLayout_10.addWidget(self.label_30, 4, 0, 1, 1) |
|
148 | 155 | self.proDescription = QtGui.QTextEdit(self.frame_2) |
|
149 | 156 | self.proDescription.setObjectName(_fromUtf8("proDescription")) |
|
150 | 157 | self.gridLayout_10.addWidget(self.proDescription, 4, 1, 1, 1) |
|
151 | 158 | self.gridLayout_15.addWidget(self.frame_2, 1, 0, 1, 1) |
|
152 | 159 | self.frame_3 = QtGui.QFrame(self.tabProject) |
|
153 | 160 | self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel) |
|
154 | 161 | self.frame_3.setFrameShadow(QtGui.QFrame.Raised) |
|
155 | 162 | self.frame_3.setObjectName(_fromUtf8("frame_3")) |
|
156 | 163 | self.gridLayout_14 = QtGui.QGridLayout(self.frame_3) |
|
157 | 164 | self.gridLayout_14.setObjectName(_fromUtf8("gridLayout_14")) |
|
158 | 165 | self.proOk = QtGui.QPushButton(self.frame_3) |
|
159 | 166 | self.proOk.setObjectName(_fromUtf8("proOk")) |
|
160 | 167 | self.gridLayout_14.addWidget(self.proOk, 0, 0, 1, 1) |
|
161 | 168 | self.proClear = QtGui.QPushButton(self.frame_3) |
|
162 | 169 | self.proClear.setObjectName(_fromUtf8("proClear")) |
|
163 | 170 | self.gridLayout_14.addWidget(self.proClear, 0, 1, 1, 1) |
|
164 | 171 | self.gridLayout_15.addWidget(self.frame_3, 2, 0, 1, 1) |
|
165 | 172 | self.tabWidgetProject.addTab(self.tabProject, _fromUtf8("")) |
|
166 | 173 | self.tabVoltage = QtGui.QWidget() |
|
167 | 174 | self.tabVoltage.setObjectName(_fromUtf8("tabVoltage")) |
|
168 | 175 | self.gridLayout_3 = QtGui.QGridLayout(self.tabVoltage) |
|
169 | 176 | self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) |
|
170 | 177 | self.frame_4 = QtGui.QFrame(self.tabVoltage) |
|
171 | 178 | self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel) |
|
172 | 179 | self.frame_4.setFrameShadow(QtGui.QFrame.Raised) |
|
173 | 180 | self.frame_4.setObjectName(_fromUtf8("frame_4")) |
|
174 | 181 | self.gridLayout_17 = QtGui.QGridLayout(self.frame_4) |
|
175 | 182 | self.gridLayout_17.setObjectName(_fromUtf8("gridLayout_17")) |
|
176 | 183 | self.volOpOk = QtGui.QPushButton(self.frame_4) |
|
177 | 184 | self.volOpOk.setObjectName(_fromUtf8("volOpOk")) |
|
178 | 185 | self.gridLayout_17.addWidget(self.volOpOk, 0, 0, 1, 1) |
|
179 | 186 | self.volGraphClear = QtGui.QPushButton(self.frame_4) |
|
180 | 187 | self.volGraphClear.setObjectName(_fromUtf8("volGraphClear")) |
|
181 | 188 | self.gridLayout_17.addWidget(self.volGraphClear, 0, 1, 1, 1) |
|
182 | 189 | self.gridLayout_3.addWidget(self.frame_4, 1, 1, 1, 1) |
|
183 | 190 | self.tabWidgetVoltage = QtGui.QTabWidget(self.tabVoltage) |
|
184 | 191 | self.tabWidgetVoltage.setObjectName(_fromUtf8("tabWidgetVoltage")) |
|
185 | 192 | self.tabopVoltage = QtGui.QWidget() |
|
186 | 193 | self.tabopVoltage.setObjectName(_fromUtf8("tabopVoltage")) |
|
187 | 194 | self.gridLayout = QtGui.QGridLayout(self.tabopVoltage) |
|
188 | 195 | self.gridLayout.setObjectName(_fromUtf8("gridLayout")) |
|
189 | 196 | self.volOpHeights = QtGui.QLineEdit(self.tabopVoltage) |
|
190 | 197 | self.volOpHeights.setObjectName(_fromUtf8("volOpHeights")) |
|
191 | 198 | self.gridLayout.addWidget(self.volOpHeights, 4, 4, 1, 1) |
|
192 | 199 | self.volOpComHeights = QtGui.QComboBox(self.tabopVoltage) |
|
193 | 200 | self.volOpComHeights.setObjectName(_fromUtf8("volOpComHeights")) |
|
194 | 201 | self.volOpComHeights.addItem(_fromUtf8("")) |
|
195 | 202 | self.volOpComHeights.addItem(_fromUtf8("")) |
|
196 | 203 | self.gridLayout.addWidget(self.volOpComHeights, 4, 0, 1, 3) |
|
197 | 204 | self.volOpComChannels = QtGui.QComboBox(self.tabopVoltage) |
|
198 | 205 | self.volOpComChannels.setObjectName(_fromUtf8("volOpComChannels")) |
|
199 | 206 | self.volOpComChannels.addItem(_fromUtf8("")) |
|
200 | 207 | self.volOpComChannels.addItem(_fromUtf8("")) |
|
201 | 208 | self.gridLayout.addWidget(self.volOpComChannels, 2, 0, 1, 3) |
|
202 | 209 | self.volOpCebProfile = QtGui.QCheckBox(self.tabopVoltage) |
|
203 | 210 | self.volOpCebProfile.setObjectName(_fromUtf8("volOpCebProfile")) |
|
204 | 211 | self.gridLayout.addWidget(self.volOpCebProfile, 6, 0, 1, 3) |
|
205 | 212 | self.volOpComProfile = QtGui.QComboBox(self.tabopVoltage) |
|
206 | 213 | self.volOpComProfile.setObjectName(_fromUtf8("volOpComProfile")) |
|
207 | 214 | self.volOpComProfile.addItem(_fromUtf8("")) |
|
208 | 215 | self.volOpComProfile.addItem(_fromUtf8("")) |
|
209 | 216 | self.gridLayout.addWidget(self.volOpComProfile, 7, 0, 1, 3) |
|
210 | 217 | self.volOpCebDecodification = QtGui.QCheckBox(self.tabopVoltage) |
|
211 | 218 | self.volOpCebDecodification.setObjectName(_fromUtf8("volOpCebDecodification")) |
|
212 | 219 | self.gridLayout.addWidget(self.volOpCebDecodification, 8, 0, 1, 3) |
|
213 | 220 | self.volOpCebCohInt = QtGui.QCheckBox(self.tabopVoltage) |
|
214 | 221 | self.volOpCebCohInt.setObjectName(_fromUtf8("volOpCebCohInt")) |
|
215 | 222 | self.gridLayout.addWidget(self.volOpCebCohInt, 11, 0, 1, 3) |
|
216 | 223 | self.volOpProfile = QtGui.QLineEdit(self.tabopVoltage) |
|
217 | 224 | self.volOpProfile.setObjectName(_fromUtf8("volOpProfile")) |
|
218 | 225 | self.gridLayout.addWidget(self.volOpProfile, 7, 4, 1, 1) |
|
219 | 226 | self.volOpFilter = QtGui.QLineEdit(self.tabopVoltage) |
|
220 | 227 | self.volOpFilter.setObjectName(_fromUtf8("volOpFilter")) |
|
221 | 228 | self.gridLayout.addWidget(self.volOpFilter, 5, 4, 1, 1) |
|
222 | 229 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
223 | 230 | self.gridLayout.addItem(spacerItem, 6, 4, 1, 1) |
|
224 | 231 | spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
225 | 232 | self.gridLayout.addItem(spacerItem1, 8, 4, 1, 1) |
|
226 | 233 | spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
227 | 234 | self.gridLayout.addItem(spacerItem2, 3, 4, 1, 1) |
|
228 | 235 | self.volOpChannel = QtGui.QLineEdit(self.tabopVoltage) |
|
229 | 236 | self.volOpChannel.setObjectName(_fromUtf8("volOpChannel")) |
|
230 | 237 | self.gridLayout.addWidget(self.volOpChannel, 2, 4, 1, 1) |
|
231 | 238 | self.label_4 = QtGui.QLabel(self.tabopVoltage) |
|
232 | 239 | self.label_4.setObjectName(_fromUtf8("label_4")) |
|
233 | 240 | self.gridLayout.addWidget(self.label_4, 9, 2, 1, 1) |
|
234 | 241 | self.volOpCebChannels = QtGui.QCheckBox(self.tabopVoltage) |
|
235 | 242 | self.volOpCebChannels.setObjectName(_fromUtf8("volOpCebChannels")) |
|
236 | 243 | self.gridLayout.addWidget(self.volOpCebChannels, 1, 0, 1, 3) |
|
237 | 244 | self.volOpCebHeights = QtGui.QCheckBox(self.tabopVoltage) |
|
238 | 245 | self.volOpCebHeights.setObjectName(_fromUtf8("volOpCebHeights")) |
|
239 | 246 | self.gridLayout.addWidget(self.volOpCebHeights, 3, 0, 1, 3) |
|
240 | 247 | self.volOpCebFilter = QtGui.QCheckBox(self.tabopVoltage) |
|
241 | 248 | self.volOpCebFilter.setObjectName(_fromUtf8("volOpCebFilter")) |
|
242 | 249 | self.gridLayout.addWidget(self.volOpCebFilter, 5, 0, 1, 3) |
|
243 | 250 | self.volOpRadarfrequency = QtGui.QLineEdit(self.tabopVoltage) |
|
244 | 251 | self.volOpRadarfrequency.setObjectName(_fromUtf8("volOpRadarfrequency")) |
|
245 | 252 | self.gridLayout.addWidget(self.volOpRadarfrequency, 0, 4, 1, 1) |
|
246 | 253 | self.volOpCebRadarfrequency = QtGui.QCheckBox(self.tabopVoltage) |
|
247 | 254 | self.volOpCebRadarfrequency.setObjectName(_fromUtf8("volOpCebRadarfrequency")) |
|
248 | 255 | self.gridLayout.addWidget(self.volOpCebRadarfrequency, 0, 0, 1, 3) |
|
249 | 256 | self.label_5 = QtGui.QLabel(self.tabopVoltage) |
|
250 | 257 | self.label_5.setObjectName(_fromUtf8("label_5")) |
|
251 | 258 | self.gridLayout.addWidget(self.label_5, 10, 2, 1, 1) |
|
252 | 259 | spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
253 | 260 | self.gridLayout.addItem(spacerItem3, 1, 4, 1, 1) |
|
254 | 261 | self.volOpCohInt = QtGui.QLineEdit(self.tabopVoltage) |
|
255 | 262 | self.volOpCohInt.setObjectName(_fromUtf8("volOpCohInt")) |
|
256 | 263 | self.gridLayout.addWidget(self.volOpCohInt, 11, 4, 1, 1) |
|
257 | 264 | self.volOpComCode = QtGui.QComboBox(self.tabopVoltage) |
|
258 | 265 | self.volOpComCode.setObjectName(_fromUtf8("volOpComCode")) |
|
259 | 266 | self.volOpComCode.addItem(_fromUtf8("")) |
|
260 | 267 | self.volOpComCode.addItem(_fromUtf8("")) |
|
261 | 268 | self.volOpComCode.addItem(_fromUtf8("")) |
|
262 | 269 | self.volOpComCode.addItem(_fromUtf8("")) |
|
263 | 270 | self.volOpComCode.addItem(_fromUtf8("")) |
|
264 | 271 | self.volOpComCode.addItem(_fromUtf8("")) |
|
265 | 272 | self.volOpComCode.addItem(_fromUtf8("")) |
|
266 | 273 | self.volOpComCode.addItem(_fromUtf8("")) |
|
267 | 274 | self.volOpComCode.addItem(_fromUtf8("")) |
|
268 | 275 | self.volOpComCode.addItem(_fromUtf8("")) |
|
269 | 276 | self.volOpComCode.addItem(_fromUtf8("")) |
|
270 | 277 | self.volOpComCode.addItem(_fromUtf8("")) |
|
271 | 278 | self.volOpComCode.addItem(_fromUtf8("")) |
|
272 | 279 | self.gridLayout.addWidget(self.volOpComCode, 9, 4, 1, 1) |
|
273 | 280 | self.volOpComMode = QtGui.QComboBox(self.tabopVoltage) |
|
274 | 281 | self.volOpComMode.setObjectName(_fromUtf8("volOpComMode")) |
|
275 | 282 | self.volOpComMode.addItem(_fromUtf8("")) |
|
276 | 283 | self.volOpComMode.addItem(_fromUtf8("")) |
|
277 | 284 | self.gridLayout.addWidget(self.volOpComMode, 10, 4, 1, 1) |
|
278 | 285 | self.tabWidgetVoltage.addTab(self.tabopVoltage, _fromUtf8("")) |
|
279 | 286 | self.tabgraphVoltage = QtGui.QWidget() |
|
280 | 287 | self.tabgraphVoltage.setObjectName(_fromUtf8("tabgraphVoltage")) |
|
281 | 288 | self.gridLayout_6 = QtGui.QGridLayout(self.tabgraphVoltage) |
|
282 | 289 | self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) |
|
283 | 290 | spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
284 | 291 | self.gridLayout_6.addItem(spacerItem4, 12, 3, 1, 1) |
|
285 | 292 | self.volGraphfreqrange = QtGui.QLineEdit(self.tabgraphVoltage) |
|
286 | 293 | self.volGraphfreqrange.setObjectName(_fromUtf8("volGraphfreqrange")) |
|
287 | 294 | self.gridLayout_6.addWidget(self.volGraphfreqrange, 9, 1, 1, 6) |
|
288 | 295 | self.volGraphPrefix = QtGui.QLineEdit(self.tabgraphVoltage) |
|
289 | 296 | self.volGraphPrefix.setObjectName(_fromUtf8("volGraphPrefix")) |
|
290 | 297 | self.gridLayout_6.addWidget(self.volGraphPrefix, 2, 1, 1, 6) |
|
291 | 298 | self.volGraphToolPath = QtGui.QToolButton(self.tabgraphVoltage) |
|
292 | 299 | self.volGraphToolPath.setObjectName(_fromUtf8("volGraphToolPath")) |
|
293 | 300 | self.gridLayout_6.addWidget(self.volGraphToolPath, 1, 5, 1, 2) |
|
294 | 301 | self.volGraphPath = QtGui.QLineEdit(self.tabgraphVoltage) |
|
295 | 302 | self.volGraphPath.setObjectName(_fromUtf8("volGraphPath")) |
|
296 | 303 | self.gridLayout_6.addWidget(self.volGraphPath, 1, 1, 1, 4) |
|
297 | 304 | self.label_14 = QtGui.QLabel(self.tabgraphVoltage) |
|
298 | 305 | self.label_14.setObjectName(_fromUtf8("label_14")) |
|
299 | 306 | self.gridLayout_6.addWidget(self.label_14, 6, 0, 1, 1) |
|
300 | 307 | spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
301 | 308 | self.gridLayout_6.addItem(spacerItem5, 3, 3, 1, 1) |
|
302 | 309 | self.label_8 = QtGui.QLabel(self.tabgraphVoltage) |
|
303 | 310 | self.label_8.setObjectName(_fromUtf8("label_8")) |
|
304 | 311 | self.gridLayout_6.addWidget(self.label_8, 8, 0, 1, 1) |
|
305 | 312 | self.label_49 = QtGui.QLabel(self.tabgraphVoltage) |
|
306 | 313 | self.label_49.setObjectName(_fromUtf8("label_49")) |
|
307 | 314 | self.gridLayout_6.addWidget(self.label_49, 4, 3, 1, 1) |
|
308 | 315 | self.label_51 = QtGui.QLabel(self.tabgraphVoltage) |
|
309 | 316 | self.label_51.setObjectName(_fromUtf8("label_51")) |
|
310 | 317 | self.gridLayout_6.addWidget(self.label_51, 9, 0, 1, 1) |
|
311 | 318 | self.volGraphCebshow = QtGui.QCheckBox(self.tabgraphVoltage) |
|
312 | 319 | self.volGraphCebshow.setText(_fromUtf8("")) |
|
313 | 320 | self.volGraphCebshow.setObjectName(_fromUtf8("volGraphCebshow")) |
|
314 | 321 | self.gridLayout_6.addWidget(self.volGraphCebshow, 6, 3, 1, 1) |
|
315 | 322 | self.label_12 = QtGui.QLabel(self.tabgraphVoltage) |
|
316 | 323 | self.label_12.setObjectName(_fromUtf8("label_12")) |
|
317 | 324 | self.gridLayout_6.addWidget(self.label_12, 1, 0, 1, 1) |
|
318 | 325 | self.label_13 = QtGui.QLabel(self.tabgraphVoltage) |
|
319 | 326 | self.label_13.setObjectName(_fromUtf8("label_13")) |
|
320 | 327 | self.gridLayout_6.addWidget(self.label_13, 2, 0, 1, 1) |
|
321 | 328 | self.label_52 = QtGui.QLabel(self.tabgraphVoltage) |
|
322 | 329 | self.label_52.setObjectName(_fromUtf8("label_52")) |
|
323 | 330 | self.gridLayout_6.addWidget(self.label_52, 11, 0, 1, 1) |
|
324 | 331 | spacerItem6 = QtGui.QSpacerItem(40, 12, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
325 | 332 | self.gridLayout_6.addItem(spacerItem6, 14, 5, 1, 2) |
|
326 | 333 | spacerItem7 = QtGui.QSpacerItem(18, 12, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
327 | 334 | self.gridLayout_6.addItem(spacerItem7, 14, 3, 1, 1) |
|
328 | 335 | self.volGraphChannelList = QtGui.QLineEdit(self.tabgraphVoltage) |
|
329 | 336 | self.volGraphChannelList.setObjectName(_fromUtf8("volGraphChannelList")) |
|
330 | 337 | self.gridLayout_6.addWidget(self.volGraphChannelList, 8, 1, 1, 6) |
|
331 | 338 | self.volGraphHeightrange = QtGui.QLineEdit(self.tabgraphVoltage) |
|
332 | 339 | self.volGraphHeightrange.setObjectName(_fromUtf8("volGraphHeightrange")) |
|
333 | 340 | self.gridLayout_6.addWidget(self.volGraphHeightrange, 11, 1, 1, 6) |
|
334 | 341 | self.label_50 = QtGui.QLabel(self.tabgraphVoltage) |
|
335 | 342 | self.label_50.setObjectName(_fromUtf8("label_50")) |
|
336 | 343 | self.gridLayout_6.addWidget(self.label_50, 4, 4, 1, 1) |
|
337 | 344 | self.volGraphCebSave = QtGui.QCheckBox(self.tabgraphVoltage) |
|
338 | 345 | self.volGraphCebSave.setText(_fromUtf8("")) |
|
339 | 346 | self.volGraphCebSave.setObjectName(_fromUtf8("volGraphCebSave")) |
|
340 | 347 | self.gridLayout_6.addWidget(self.volGraphCebSave, 6, 4, 1, 1) |
|
341 | 348 | self.tabWidgetVoltage.addTab(self.tabgraphVoltage, _fromUtf8("")) |
|
342 | 349 | self.taboutputVoltage = QtGui.QWidget() |
|
343 | 350 | self.taboutputVoltage.setObjectName(_fromUtf8("taboutputVoltage")) |
|
344 | 351 | self.gridLayout_12 = QtGui.QGridLayout(self.taboutputVoltage) |
|
345 | 352 | self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12")) |
|
346 | 353 | self.label_36 = QtGui.QLabel(self.taboutputVoltage) |
|
347 | 354 | self.label_36.setObjectName(_fromUtf8("label_36")) |
|
348 | 355 | self.gridLayout_12.addWidget(self.label_36, 0, 0, 1, 1) |
|
349 | 356 | self.label_37 = QtGui.QLabel(self.taboutputVoltage) |
|
350 | 357 | self.label_37.setObjectName(_fromUtf8("label_37")) |
|
351 | 358 | self.gridLayout_12.addWidget(self.label_37, 1, 0, 1, 1) |
|
352 | 359 | self.volOutputPath = QtGui.QLineEdit(self.taboutputVoltage) |
|
353 | 360 | self.volOutputPath.setObjectName(_fromUtf8("volOutputPath")) |
|
354 | 361 | self.gridLayout_12.addWidget(self.volOutputPath, 1, 2, 1, 1) |
|
355 | 362 | self.volOutputToolPath = QtGui.QToolButton(self.taboutputVoltage) |
|
356 | 363 | self.volOutputToolPath.setObjectName(_fromUtf8("volOutputToolPath")) |
|
357 | 364 | self.gridLayout_12.addWidget(self.volOutputToolPath, 1, 3, 1, 1) |
|
358 | 365 | self.volOutputComData = QtGui.QComboBox(self.taboutputVoltage) |
|
359 | 366 | self.volOutputComData.setObjectName(_fromUtf8("volOutputComData")) |
|
360 | 367 | self.volOutputComData.addItem(_fromUtf8("")) |
|
361 | 368 | self.gridLayout_12.addWidget(self.volOutputComData, 0, 2, 1, 2) |
|
362 | 369 | spacerItem8 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
363 | 370 | self.gridLayout_12.addItem(spacerItem8, 5, 2, 1, 1) |
|
364 | 371 | self.volOutputblocksperfile = QtGui.QLineEdit(self.taboutputVoltage) |
|
365 | 372 | self.volOutputblocksperfile.setObjectName(_fromUtf8("volOutputblocksperfile")) |
|
366 | 373 | self.gridLayout_12.addWidget(self.volOutputblocksperfile, 3, 2, 1, 1) |
|
367 | 374 | self.label_7 = QtGui.QLabel(self.taboutputVoltage) |
|
368 | 375 | self.label_7.setObjectName(_fromUtf8("label_7")) |
|
369 | 376 | self.gridLayout_12.addWidget(self.label_7, 3, 0, 1, 1) |
|
370 | 377 | self.label_35 = QtGui.QLabel(self.taboutputVoltage) |
|
371 | 378 | self.label_35.setObjectName(_fromUtf8("label_35")) |
|
372 | 379 | self.gridLayout_12.addWidget(self.label_35, 4, 0, 1, 1) |
|
373 | 380 | self.volOutputprofilesperblock = QtGui.QLineEdit(self.taboutputVoltage) |
|
374 | 381 | self.volOutputprofilesperblock.setObjectName(_fromUtf8("volOutputprofilesperblock")) |
|
375 | 382 | self.gridLayout_12.addWidget(self.volOutputprofilesperblock, 4, 2, 1, 1) |
|
376 | 383 | self.tabWidgetVoltage.addTab(self.taboutputVoltage, _fromUtf8("")) |
|
377 | 384 | self.gridLayout_3.addWidget(self.tabWidgetVoltage, 0, 1, 1, 1) |
|
378 | 385 | self.tabWidgetProject.addTab(self.tabVoltage, _fromUtf8("")) |
|
379 | 386 | self.tabSpectra = QtGui.QWidget() |
|
380 | 387 | self.tabSpectra.setObjectName(_fromUtf8("tabSpectra")) |
|
381 | 388 | self.gridLayout_7 = QtGui.QGridLayout(self.tabSpectra) |
|
382 | 389 | self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) |
|
383 | 390 | self.frame_5 = QtGui.QFrame(self.tabSpectra) |
|
384 | 391 | self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel) |
|
385 | 392 | self.frame_5.setFrameShadow(QtGui.QFrame.Raised) |
|
386 | 393 | self.frame_5.setObjectName(_fromUtf8("frame_5")) |
|
387 | 394 | self.gridLayout_18 = QtGui.QGridLayout(self.frame_5) |
|
388 | 395 | self.gridLayout_18.setObjectName(_fromUtf8("gridLayout_18")) |
|
389 | 396 | self.specOpOk = QtGui.QPushButton(self.frame_5) |
|
390 | 397 | self.specOpOk.setObjectName(_fromUtf8("specOpOk")) |
|
391 | 398 | self.gridLayout_18.addWidget(self.specOpOk, 0, 0, 1, 1) |
|
392 | 399 | self.specGraphClear = QtGui.QPushButton(self.frame_5) |
|
393 | 400 | self.specGraphClear.setObjectName(_fromUtf8("specGraphClear")) |
|
394 | 401 | self.gridLayout_18.addWidget(self.specGraphClear, 0, 1, 1, 1) |
|
395 | 402 | self.gridLayout_7.addWidget(self.frame_5, 1, 1, 1, 1) |
|
396 | 403 | self.tabWidgetSpectra = QtGui.QTabWidget(self.tabSpectra) |
|
397 | 404 | self.tabWidgetSpectra.setObjectName(_fromUtf8("tabWidgetSpectra")) |
|
398 | 405 | self.tabopSpectra = QtGui.QWidget() |
|
399 | 406 | self.tabopSpectra.setObjectName(_fromUtf8("tabopSpectra")) |
|
400 | 407 | self.gridLayout_5 = QtGui.QGridLayout(self.tabopSpectra) |
|
401 | 408 | self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) |
|
402 | 409 | self.specOpCebCrossSpectra = QtGui.QCheckBox(self.tabopSpectra) |
|
403 | 410 | self.specOpCebCrossSpectra.setObjectName(_fromUtf8("specOpCebCrossSpectra")) |
|
404 | 411 | self.gridLayout_5.addWidget(self.specOpCebCrossSpectra, 4, 0, 1, 2) |
|
405 | 412 | self.specOpComChannel = QtGui.QComboBox(self.tabopSpectra) |
|
406 | 413 | self.specOpComChannel.setObjectName(_fromUtf8("specOpComChannel")) |
|
407 | 414 | self.specOpComChannel.addItem(_fromUtf8("")) |
|
408 | 415 | self.specOpComChannel.addItem(_fromUtf8("")) |
|
409 | 416 | self.gridLayout_5.addWidget(self.specOpComChannel, 8, 0, 1, 2) |
|
410 | 417 | self.specOpChannel = QtGui.QLineEdit(self.tabopSpectra) |
|
411 | 418 | self.specOpChannel.setObjectName(_fromUtf8("specOpChannel")) |
|
412 | 419 | self.gridLayout_5.addWidget(self.specOpChannel, 8, 3, 1, 2) |
|
413 | 420 | self.specOpComHeights = QtGui.QComboBox(self.tabopSpectra) |
|
414 | 421 | self.specOpComHeights.setObjectName(_fromUtf8("specOpComHeights")) |
|
415 | 422 | self.specOpComHeights.addItem(_fromUtf8("")) |
|
416 | 423 | self.specOpComHeights.addItem(_fromUtf8("")) |
|
417 | 424 | self.gridLayout_5.addWidget(self.specOpComHeights, 11, 0, 1, 2) |
|
418 | 425 | self.specOpHeights = QtGui.QLineEdit(self.tabopSpectra) |
|
419 | 426 | self.specOpHeights.setObjectName(_fromUtf8("specOpHeights")) |
|
420 | 427 | self.gridLayout_5.addWidget(self.specOpHeights, 11, 3, 1, 2) |
|
421 | 428 | self.specOpIncoherent = QtGui.QLineEdit(self.tabopSpectra) |
|
422 | 429 | self.specOpIncoherent.setObjectName(_fromUtf8("specOpIncoherent")) |
|
423 | 430 | self.gridLayout_5.addWidget(self.specOpIncoherent, 13, 3, 1, 2) |
|
424 | 431 | self.specOpCebRemoveDC = QtGui.QCheckBox(self.tabopSpectra) |
|
425 | 432 | self.specOpCebRemoveDC.setObjectName(_fromUtf8("specOpCebRemoveDC")) |
|
426 | 433 | self.gridLayout_5.addWidget(self.specOpCebRemoveDC, 14, 0, 1, 2) |
|
427 | 434 | self.specOpCebHeights = QtGui.QCheckBox(self.tabopSpectra) |
|
428 | 435 | self.specOpCebHeights.setObjectName(_fromUtf8("specOpCebHeights")) |
|
429 | 436 | self.gridLayout_5.addWidget(self.specOpCebHeights, 9, 0, 1, 1) |
|
430 | 437 | self.specOpCebChannel = QtGui.QCheckBox(self.tabopSpectra) |
|
431 | 438 | self.specOpCebChannel.setObjectName(_fromUtf8("specOpCebChannel")) |
|
432 | 439 | self.gridLayout_5.addWidget(self.specOpCebChannel, 7, 0, 1, 1) |
|
433 | 440 | self.specOppairsList = QtGui.QLineEdit(self.tabopSpectra) |
|
434 | 441 | self.specOppairsList.setObjectName(_fromUtf8("specOppairsList")) |
|
435 | 442 | self.gridLayout_5.addWidget(self.specOppairsList, 6, 3, 1, 2) |
|
436 | 443 | self.specOpnFFTpoints = QtGui.QLineEdit(self.tabopSpectra) |
|
437 | 444 | self.specOpnFFTpoints.setObjectName(_fromUtf8("specOpnFFTpoints")) |
|
438 | 445 | self.gridLayout_5.addWidget(self.specOpnFFTpoints, 2, 3, 1, 2) |
|
439 | 446 | self.label_31 = QtGui.QLabel(self.tabopSpectra) |
|
440 | 447 | self.label_31.setObjectName(_fromUtf8("label_31")) |
|
441 | 448 | self.gridLayout_5.addWidget(self.label_31, 6, 0, 1, 2) |
|
442 | 449 | self.label_26 = QtGui.QLabel(self.tabopSpectra) |
|
443 | 450 | self.label_26.setObjectName(_fromUtf8("label_26")) |
|
444 | 451 | self.gridLayout_5.addWidget(self.label_26, 2, 0, 1, 2) |
|
445 | 452 | self.specOpCebIncoherent = QtGui.QCheckBox(self.tabopSpectra) |
|
446 | 453 | self.specOpCebIncoherent.setObjectName(_fromUtf8("specOpCebIncoherent")) |
|
447 | 454 | self.gridLayout_5.addWidget(self.specOpCebIncoherent, 12, 0, 1, 1) |
|
448 | 455 | self.specOpCobIncInt = QtGui.QComboBox(self.tabopSpectra) |
|
449 | 456 | self.specOpCobIncInt.setObjectName(_fromUtf8("specOpCobIncInt")) |
|
450 | 457 | self.specOpCobIncInt.addItem(_fromUtf8("")) |
|
451 | 458 | self.specOpCobIncInt.addItem(_fromUtf8("")) |
|
452 | 459 | self.gridLayout_5.addWidget(self.specOpCobIncInt, 13, 0, 1, 2) |
|
453 | 460 | spacerItem9 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
454 | 461 | self.gridLayout_5.addItem(spacerItem9, 12, 3, 1, 1) |
|
455 | 462 | self.specOpCebRadarfrequency = QtGui.QCheckBox(self.tabopSpectra) |
|
456 | 463 | self.specOpCebRadarfrequency.setObjectName(_fromUtf8("specOpCebRadarfrequency")) |
|
457 | 464 | self.gridLayout_5.addWidget(self.specOpCebRadarfrequency, 0, 0, 1, 2) |
|
458 | 465 | spacerItem10 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
459 | 466 | self.gridLayout_5.addItem(spacerItem10, 9, 3, 1, 1) |
|
460 | 467 | spacerItem11 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
461 | 468 | self.gridLayout_5.addItem(spacerItem11, 7, 3, 1, 1) |
|
462 | 469 | self.specOpRadarfrequency = QtGui.QLineEdit(self.tabopSpectra) |
|
463 | 470 | self.specOpRadarfrequency.setObjectName(_fromUtf8("specOpRadarfrequency")) |
|
464 | 471 | self.gridLayout_5.addWidget(self.specOpRadarfrequency, 0, 3, 1, 2) |
|
465 | 472 | spacerItem12 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
466 | 473 | self.gridLayout_5.addItem(spacerItem12, 4, 3, 1, 1) |
|
467 | 474 | self.label_21 = QtGui.QLabel(self.tabopSpectra) |
|
468 | 475 | self.label_21.setObjectName(_fromUtf8("label_21")) |
|
469 | 476 | self.gridLayout_5.addWidget(self.label_21, 1, 0, 1, 1) |
|
470 | 477 | self.specOpProfiles = QtGui.QLineEdit(self.tabopSpectra) |
|
471 | 478 | self.specOpProfiles.setObjectName(_fromUtf8("specOpProfiles")) |
|
472 | 479 | self.gridLayout_5.addWidget(self.specOpProfiles, 1, 3, 1, 2) |
|
473 | 480 | self.specOpCebRemoveInt = QtGui.QCheckBox(self.tabopSpectra) |
|
474 | 481 | self.specOpCebRemoveInt.setObjectName(_fromUtf8("specOpCebRemoveInt")) |
|
475 | 482 | self.gridLayout_5.addWidget(self.specOpCebRemoveInt, 15, 0, 1, 1) |
|
476 | 483 | spacerItem13 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
477 | 484 | self.gridLayout_5.addItem(spacerItem13, 15, 3, 1, 1) |
|
478 | 485 | self.label_70 = QtGui.QLabel(self.tabopSpectra) |
|
479 | 486 | self.label_70.setObjectName(_fromUtf8("label_70")) |
|
480 | 487 | self.gridLayout_5.addWidget(self.label_70, 3, 0, 1, 1) |
|
481 | 488 | self.specOpCebgetNoise = QtGui.QCheckBox(self.tabopSpectra) |
|
482 | 489 | self.specOpCebgetNoise.setObjectName(_fromUtf8("specOpCebgetNoise")) |
|
483 | 490 | self.gridLayout_5.addWidget(self.specOpCebgetNoise, 16, 0, 1, 1) |
|
484 | 491 | self.specOpippFactor = QtGui.QLineEdit(self.tabopSpectra) |
|
485 | 492 | self.specOpippFactor.setObjectName(_fromUtf8("specOpippFactor")) |
|
486 | 493 | self.gridLayout_5.addWidget(self.specOpippFactor, 3, 3, 1, 2) |
|
487 | 494 | self.specOpComRemoveDC = QtGui.QComboBox(self.tabopSpectra) |
|
488 | 495 | self.specOpComRemoveDC.setObjectName(_fromUtf8("specOpComRemoveDC")) |
|
489 | 496 | self.specOpComRemoveDC.addItem(_fromUtf8("")) |
|
490 | 497 | self.specOpComRemoveDC.addItem(_fromUtf8("")) |
|
491 | 498 | self.gridLayout_5.addWidget(self.specOpComRemoveDC, 14, 3, 1, 2) |
|
492 | 499 | self.specOpgetNoise = QtGui.QLineEdit(self.tabopSpectra) |
|
493 | 500 | self.specOpgetNoise.setObjectName(_fromUtf8("specOpgetNoise")) |
|
494 | 501 | self.gridLayout_5.addWidget(self.specOpgetNoise, 16, 3, 1, 2) |
|
495 | 502 | self.tabWidgetSpectra.addTab(self.tabopSpectra, _fromUtf8("")) |
|
496 | 503 | self.tabgraphSpectra = QtGui.QWidget() |
|
497 | 504 | self.tabgraphSpectra.setObjectName(_fromUtf8("tabgraphSpectra")) |
|
498 | 505 | self.gridLayout_9 = QtGui.QGridLayout(self.tabgraphSpectra) |
|
499 | 506 | self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9")) |
|
500 | 507 | self.label_44 = QtGui.QLabel(self.tabgraphSpectra) |
|
501 | 508 | self.label_44.setObjectName(_fromUtf8("label_44")) |
|
502 | 509 | self.gridLayout_9.addWidget(self.label_44, 10, 0, 1, 1) |
|
503 | 510 | spacerItem14 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
504 | 511 | self.gridLayout_9.addItem(spacerItem14, 14, 2, 1, 1) |
|
505 | 512 | self.label_20 = QtGui.QLabel(self.tabgraphSpectra) |
|
506 | 513 | self.label_20.setObjectName(_fromUtf8("label_20")) |
|
507 | 514 | self.gridLayout_9.addWidget(self.label_20, 21, 0, 1, 1) |
|
508 | 515 | self.specGraphSaveRTInoise = QtGui.QCheckBox(self.tabgraphSpectra) |
|
509 | 516 | self.specGraphSaveRTInoise.setText(_fromUtf8("")) |
|
510 | 517 | self.specGraphSaveRTInoise.setObjectName(_fromUtf8("specGraphSaveRTInoise")) |
|
511 | 518 | self.gridLayout_9.addWidget(self.specGraphSaveRTInoise, 13, 4, 1, 1) |
|
512 | 519 | self.specGgraphmagnitud = QtGui.QLineEdit(self.tabgraphSpectra) |
|
513 | 520 | self.specGgraphmagnitud.setObjectName(_fromUtf8("specGgraphmagnitud")) |
|
514 | 521 | self.gridLayout_9.addWidget(self.specGgraphmagnitud, 20, 1, 1, 7) |
|
515 | 522 | self.specGraphSaveSpectra = QtGui.QCheckBox(self.tabgraphSpectra) |
|
516 | 523 | self.specGraphSaveSpectra.setText(_fromUtf8("")) |
|
517 | 524 | self.specGraphSaveSpectra.setObjectName(_fromUtf8("specGraphSaveSpectra")) |
|
518 | 525 | self.gridLayout_9.addWidget(self.specGraphSaveSpectra, 6, 4, 1, 1) |
|
519 | 526 | self.specGgraphChannelList = QtGui.QLineEdit(self.tabgraphSpectra) |
|
520 | 527 | self.specGgraphChannelList.setObjectName(_fromUtf8("specGgraphChannelList")) |
|
521 | 528 | self.gridLayout_9.addWidget(self.specGgraphChannelList, 15, 1, 1, 7) |
|
522 | 529 | self.label_25 = QtGui.QLabel(self.tabgraphSpectra) |
|
523 | 530 | self.label_25.setObjectName(_fromUtf8("label_25")) |
|
524 | 531 | self.gridLayout_9.addWidget(self.label_25, 2, 0, 1, 1) |
|
525 | 532 | self.specGgraphTminTmax = QtGui.QLineEdit(self.tabgraphSpectra) |
|
526 | 533 | self.specGgraphTminTmax.setObjectName(_fromUtf8("specGgraphTminTmax")) |
|
527 | 534 | self.gridLayout_9.addWidget(self.specGgraphTminTmax, 21, 1, 1, 7) |
|
528 | 535 | spacerItem15 = QtGui.QSpacerItem(28, 15, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
529 | 536 | self.gridLayout_9.addItem(spacerItem15, 27, 6, 1, 2) |
|
530 | 537 | spacerItem16 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
531 | 538 | self.gridLayout_9.addItem(spacerItem16, 3, 5, 1, 1) |
|
532 | 539 | self.label_42 = QtGui.QLabel(self.tabgraphSpectra) |
|
533 | 540 | self.label_42.setObjectName(_fromUtf8("label_42")) |
|
534 | 541 | self.gridLayout_9.addWidget(self.label_42, 9, 0, 1, 1) |
|
535 | 542 | self.label_16 = QtGui.QLabel(self.tabgraphSpectra) |
|
536 | 543 | self.label_16.setObjectName(_fromUtf8("label_16")) |
|
537 | 544 | self.gridLayout_9.addWidget(self.label_16, 18, 0, 1, 1) |
|
538 | 545 | self.label_17 = QtGui.QLabel(self.tabgraphSpectra) |
|
539 | 546 | self.label_17.setObjectName(_fromUtf8("label_17")) |
|
540 | 547 | self.gridLayout_9.addWidget(self.label_17, 19, 0, 1, 1) |
|
541 | 548 | self.label_18 = QtGui.QLabel(self.tabgraphSpectra) |
|
542 | 549 | self.label_18.setObjectName(_fromUtf8("label_18")) |
|
543 | 550 | self.gridLayout_9.addWidget(self.label_18, 20, 0, 1, 1) |
|
544 | 551 | self.specGgraphFreq = QtGui.QLineEdit(self.tabgraphSpectra) |
|
545 | 552 | self.specGgraphFreq.setObjectName(_fromUtf8("specGgraphFreq")) |
|
546 | 553 | self.gridLayout_9.addWidget(self.specGgraphFreq, 16, 1, 1, 7) |
|
547 | 554 | self.specGgraphHeight = QtGui.QLineEdit(self.tabgraphSpectra) |
|
548 | 555 | self.specGgraphHeight.setObjectName(_fromUtf8("specGgraphHeight")) |
|
549 | 556 | self.gridLayout_9.addWidget(self.specGgraphHeight, 18, 1, 1, 7) |
|
550 | 557 | spacerItem17 = QtGui.QSpacerItem(49, 15, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
551 | 558 | self.gridLayout_9.addItem(spacerItem17, 27, 0, 1, 1) |
|
552 | 559 | self.label_24 = QtGui.QLabel(self.tabgraphSpectra) |
|
553 | 560 | self.label_24.setObjectName(_fromUtf8("label_24")) |
|
554 | 561 | self.gridLayout_9.addWidget(self.label_24, 0, 0, 1, 1) |
|
555 | 562 | self.specGraphPrefix = QtGui.QLineEdit(self.tabgraphSpectra) |
|
556 | 563 | self.specGraphPrefix.setObjectName(_fromUtf8("specGraphPrefix")) |
|
557 | 564 | self.gridLayout_9.addWidget(self.specGraphPrefix, 2, 1, 1, 7) |
|
558 | 565 | self.specGgraphDbsrange = QtGui.QLineEdit(self.tabgraphSpectra) |
|
559 | 566 | self.specGgraphDbsrange.setObjectName(_fromUtf8("specGgraphDbsrange")) |
|
560 | 567 | self.gridLayout_9.addWidget(self.specGgraphDbsrange, 19, 1, 1, 7) |
|
561 | 568 | self.label_46 = QtGui.QLabel(self.tabgraphSpectra) |
|
562 | 569 | self.label_46.setObjectName(_fromUtf8("label_46")) |
|
563 | 570 | self.gridLayout_9.addWidget(self.label_46, 11, 0, 1, 1) |
|
564 | 571 | self.label_22 = QtGui.QLabel(self.tabgraphSpectra) |
|
565 | 572 | self.label_22.setObjectName(_fromUtf8("label_22")) |
|
566 | 573 | self.gridLayout_9.addWidget(self.label_22, 16, 0, 1, 1) |
|
567 | 574 | self.specGraphPath = QtGui.QLineEdit(self.tabgraphSpectra) |
|
568 | 575 | self.specGraphPath.setObjectName(_fromUtf8("specGraphPath")) |
|
569 | 576 | self.gridLayout_9.addWidget(self.specGraphPath, 0, 1, 1, 6) |
|
570 | 577 | self.label_41 = QtGui.QLabel(self.tabgraphSpectra) |
|
571 | 578 | self.label_41.setObjectName(_fromUtf8("label_41")) |
|
572 | 579 | self.gridLayout_9.addWidget(self.label_41, 8, 0, 1, 1) |
|
573 | 580 | self.specGraphToolPath = QtGui.QToolButton(self.tabgraphSpectra) |
|
574 | 581 | self.specGraphToolPath.setObjectName(_fromUtf8("specGraphToolPath")) |
|
575 | 582 | self.gridLayout_9.addWidget(self.specGraphToolPath, 0, 7, 1, 1) |
|
576 | 583 | self.label_6 = QtGui.QLabel(self.tabgraphSpectra) |
|
577 | 584 | self.label_6.setObjectName(_fromUtf8("label_6")) |
|
578 | 585 | self.gridLayout_9.addWidget(self.label_6, 15, 0, 1, 1) |
|
579 | 586 | self.label_40 = QtGui.QLabel(self.tabgraphSpectra) |
|
580 | 587 | self.label_40.setObjectName(_fromUtf8("label_40")) |
|
581 | 588 | self.gridLayout_9.addWidget(self.label_40, 6, 0, 1, 1) |
|
582 | 589 | self.specGraphCebSpectraplot = QtGui.QCheckBox(self.tabgraphSpectra) |
|
583 | 590 | self.specGraphCebSpectraplot.setText(_fromUtf8("")) |
|
584 | 591 | self.specGraphCebSpectraplot.setObjectName(_fromUtf8("specGraphCebSpectraplot")) |
|
585 | 592 | self.gridLayout_9.addWidget(self.specGraphCebSpectraplot, 6, 2, 1, 1) |
|
586 | 593 | self.specGraphCebCrossSpectraplot = QtGui.QCheckBox(self.tabgraphSpectra) |
|
587 | 594 | self.specGraphCebCrossSpectraplot.setText(_fromUtf8("")) |
|
588 | 595 | self.specGraphCebCrossSpectraplot.setObjectName(_fromUtf8("specGraphCebCrossSpectraplot")) |
|
589 | 596 | self.gridLayout_9.addWidget(self.specGraphCebCrossSpectraplot, 8, 2, 1, 1) |
|
590 | 597 | self.specGraphCebRTIplot = QtGui.QCheckBox(self.tabgraphSpectra) |
|
591 | 598 | self.specGraphCebRTIplot.setText(_fromUtf8("")) |
|
592 | 599 | self.specGraphCebRTIplot.setObjectName(_fromUtf8("specGraphCebRTIplot")) |
|
593 | 600 | self.gridLayout_9.addWidget(self.specGraphCebRTIplot, 9, 2, 1, 1) |
|
594 | 601 | self.specGraphCebCoherencmap = QtGui.QCheckBox(self.tabgraphSpectra) |
|
595 | 602 | self.specGraphCebCoherencmap.setText(_fromUtf8("")) |
|
596 | 603 | self.specGraphCebCoherencmap.setObjectName(_fromUtf8("specGraphCebCoherencmap")) |
|
597 | 604 | self.gridLayout_9.addWidget(self.specGraphCebCoherencmap, 10, 2, 1, 1) |
|
598 | 605 | self.specGraphPowerprofile = QtGui.QCheckBox(self.tabgraphSpectra) |
|
599 | 606 | self.specGraphPowerprofile.setText(_fromUtf8("")) |
|
600 | 607 | self.specGraphPowerprofile.setObjectName(_fromUtf8("specGraphPowerprofile")) |
|
601 | 608 | self.gridLayout_9.addWidget(self.specGraphPowerprofile, 11, 2, 1, 1) |
|
602 | 609 | self.specGraphSaveCross = QtGui.QCheckBox(self.tabgraphSpectra) |
|
603 | 610 | self.specGraphSaveCross.setText(_fromUtf8("")) |
|
604 | 611 | self.specGraphSaveCross.setObjectName(_fromUtf8("specGraphSaveCross")) |
|
605 | 612 | self.gridLayout_9.addWidget(self.specGraphSaveCross, 8, 4, 1, 1) |
|
606 | 613 | self.specGraphftpSpectra = QtGui.QCheckBox(self.tabgraphSpectra) |
|
607 | 614 | self.specGraphftpSpectra.setText(_fromUtf8("")) |
|
608 | 615 | self.specGraphftpSpectra.setObjectName(_fromUtf8("specGraphftpSpectra")) |
|
609 | 616 | self.gridLayout_9.addWidget(self.specGraphftpSpectra, 6, 6, 1, 1) |
|
610 | 617 | spacerItem18 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
611 | 618 | self.gridLayout_9.addItem(spacerItem18, 4, 3, 1, 1) |
|
612 | 619 | self.specGraphSavePowerprofile = QtGui.QCheckBox(self.tabgraphSpectra) |
|
613 | 620 | self.specGraphSavePowerprofile.setText(_fromUtf8("")) |
|
614 | 621 | self.specGraphSavePowerprofile.setObjectName(_fromUtf8("specGraphSavePowerprofile")) |
|
615 | 622 | self.gridLayout_9.addWidget(self.specGraphSavePowerprofile, 11, 4, 1, 1) |
|
616 | 623 | self.specGraphSaveCoherencemap = QtGui.QCheckBox(self.tabgraphSpectra) |
|
617 | 624 | self.specGraphSaveCoherencemap.setText(_fromUtf8("")) |
|
618 | 625 | self.specGraphSaveCoherencemap.setObjectName(_fromUtf8("specGraphSaveCoherencemap")) |
|
619 | 626 | self.gridLayout_9.addWidget(self.specGraphSaveCoherencemap, 10, 4, 1, 1) |
|
620 | 627 | spacerItem19 = QtGui.QSpacerItem(39, 15, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
621 | 628 | self.gridLayout_9.addItem(spacerItem19, 27, 4, 1, 1) |
|
622 | 629 | self.specGgraphftpratio = QtGui.QLineEdit(self.tabgraphSpectra) |
|
623 | 630 | self.specGgraphftpratio.setObjectName(_fromUtf8("specGgraphftpratio")) |
|
624 | 631 | self.gridLayout_9.addWidget(self.specGgraphftpratio, 23, 1, 1, 7) |
|
625 | 632 | self.label_43 = QtGui.QLabel(self.tabgraphSpectra) |
|
626 | 633 | self.label_43.setObjectName(_fromUtf8("label_43")) |
|
627 | 634 | self.gridLayout_9.addWidget(self.label_43, 3, 2, 2, 1) |
|
628 | 635 | self.specGraphftpCross = QtGui.QCheckBox(self.tabgraphSpectra) |
|
629 | 636 | self.specGraphftpCross.setText(_fromUtf8("")) |
|
630 | 637 | self.specGraphftpCross.setObjectName(_fromUtf8("specGraphftpCross")) |
|
631 | 638 | self.gridLayout_9.addWidget(self.specGraphftpCross, 8, 6, 1, 1) |
|
632 | 639 | self.label_29 = QtGui.QLabel(self.tabgraphSpectra) |
|
633 | 640 | self.label_29.setObjectName(_fromUtf8("label_29")) |
|
634 | 641 | self.gridLayout_9.addWidget(self.label_29, 23, 0, 1, 1) |
|
635 | 642 | self.label_47 = QtGui.QLabel(self.tabgraphSpectra) |
|
636 | 643 | self.label_47.setObjectName(_fromUtf8("label_47")) |
|
637 | 644 | self.gridLayout_9.addWidget(self.label_47, 3, 4, 2, 1) |
|
638 | 645 | self.specGraphftpRTIplot = QtGui.QCheckBox(self.tabgraphSpectra) |
|
639 | 646 | self.specGraphftpRTIplot.setText(_fromUtf8("")) |
|
640 | 647 | self.specGraphftpRTIplot.setObjectName(_fromUtf8("specGraphftpRTIplot")) |
|
641 | 648 | self.gridLayout_9.addWidget(self.specGraphftpRTIplot, 9, 6, 1, 1) |
|
642 | 649 | self.specGraphftpCoherencemap = QtGui.QCheckBox(self.tabgraphSpectra) |
|
643 | 650 | self.specGraphftpCoherencemap.setText(_fromUtf8("")) |
|
644 | 651 | self.specGraphftpCoherencemap.setObjectName(_fromUtf8("specGraphftpCoherencemap")) |
|
645 | 652 | self.gridLayout_9.addWidget(self.specGraphftpCoherencemap, 10, 6, 1, 1) |
|
646 | 653 | self.specGraphftpPowerprofile = QtGui.QCheckBox(self.tabgraphSpectra) |
|
647 | 654 | self.specGraphftpPowerprofile.setText(_fromUtf8("")) |
|
648 | 655 | self.specGraphftpPowerprofile.setObjectName(_fromUtf8("specGraphftpPowerprofile")) |
|
649 | 656 | self.gridLayout_9.addWidget(self.specGraphftpPowerprofile, 11, 6, 1, 1) |
|
650 | 657 | self.label_19 = QtGui.QLabel(self.tabgraphSpectra) |
|
651 | 658 | self.label_19.setObjectName(_fromUtf8("label_19")) |
|
652 | 659 | self.gridLayout_9.addWidget(self.label_19, 3, 6, 2, 2) |
|
653 | 660 | self.specGraphSaveRTIplot = QtGui.QCheckBox(self.tabgraphSpectra) |
|
654 | 661 | self.specGraphSaveRTIplot.setText(_fromUtf8("")) |
|
655 | 662 | self.specGraphSaveRTIplot.setObjectName(_fromUtf8("specGraphSaveRTIplot")) |
|
656 | 663 | self.gridLayout_9.addWidget(self.specGraphSaveRTIplot, 9, 4, 1, 1) |
|
657 | 664 | self.label_45 = QtGui.QLabel(self.tabgraphSpectra) |
|
658 | 665 | self.label_45.setObjectName(_fromUtf8("label_45")) |
|
659 | 666 | self.gridLayout_9.addWidget(self.label_45, 13, 0, 1, 1) |
|
660 | 667 | self.specGraphftpRTInoise = QtGui.QCheckBox(self.tabgraphSpectra) |
|
661 | 668 | self.specGraphftpRTInoise.setText(_fromUtf8("")) |
|
662 | 669 | self.specGraphftpRTInoise.setObjectName(_fromUtf8("specGraphftpRTInoise")) |
|
663 | 670 | self.gridLayout_9.addWidget(self.specGraphftpRTInoise, 13, 6, 1, 1) |
|
664 | 671 | self.specGraphCebRTInoise = QtGui.QCheckBox(self.tabgraphSpectra) |
|
665 | 672 | self.specGraphCebRTInoise.setText(_fromUtf8("")) |
|
666 | 673 | self.specGraphCebRTInoise.setObjectName(_fromUtf8("specGraphCebRTInoise")) |
|
667 | 674 | self.gridLayout_9.addWidget(self.specGraphCebRTInoise, 13, 2, 1, 1) |
|
668 | 675 | self.label_48 = QtGui.QLabel(self.tabgraphSpectra) |
|
669 | 676 | self.label_48.setObjectName(_fromUtf8("label_48")) |
|
670 | 677 | self.gridLayout_9.addWidget(self.label_48, 22, 0, 1, 1) |
|
671 | 678 | self.specGgraphTimeRange = QtGui.QLineEdit(self.tabgraphSpectra) |
|
672 | 679 | self.specGgraphTimeRange.setObjectName(_fromUtf8("specGgraphTimeRange")) |
|
673 | 680 | self.gridLayout_9.addWidget(self.specGgraphTimeRange, 22, 1, 1, 7) |
|
674 | 681 | self.tabWidgetSpectra.addTab(self.tabgraphSpectra, _fromUtf8("")) |
|
675 | 682 | self.taboutputSpectra = QtGui.QWidget() |
|
676 | 683 | self.taboutputSpectra.setObjectName(_fromUtf8("taboutputSpectra")) |
|
677 | 684 | self.gridLayout_11 = QtGui.QGridLayout(self.taboutputSpectra) |
|
678 | 685 | self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11")) |
|
679 | 686 | self.label_39 = QtGui.QLabel(self.taboutputSpectra) |
|
680 | 687 | self.label_39.setObjectName(_fromUtf8("label_39")) |
|
681 | 688 | self.gridLayout_11.addWidget(self.label_39, 0, 0, 1, 1) |
|
682 | 689 | self.specOutputComData = QtGui.QComboBox(self.taboutputSpectra) |
|
683 | 690 | self.specOutputComData.setObjectName(_fromUtf8("specOutputComData")) |
|
684 | 691 | self.specOutputComData.addItem(_fromUtf8("")) |
|
685 | 692 | self.gridLayout_11.addWidget(self.specOutputComData, 0, 2, 1, 2) |
|
686 | 693 | self.label_34 = QtGui.QLabel(self.taboutputSpectra) |
|
687 | 694 | self.label_34.setObjectName(_fromUtf8("label_34")) |
|
688 | 695 | self.gridLayout_11.addWidget(self.label_34, 1, 0, 1, 1) |
|
689 | 696 | self.specOutputPath = QtGui.QLineEdit(self.taboutputSpectra) |
|
690 | 697 | self.specOutputPath.setObjectName(_fromUtf8("specOutputPath")) |
|
691 | 698 | self.gridLayout_11.addWidget(self.specOutputPath, 1, 2, 1, 1) |
|
692 | 699 | spacerItem20 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
693 | 700 | self.gridLayout_11.addItem(spacerItem20, 4, 2, 1, 1) |
|
694 | 701 | self.specOutputToolPath = QtGui.QToolButton(self.taboutputSpectra) |
|
695 | 702 | self.specOutputToolPath.setObjectName(_fromUtf8("specOutputToolPath")) |
|
696 | 703 | self.gridLayout_11.addWidget(self.specOutputToolPath, 1, 3, 1, 1) |
|
697 | 704 | self.specOutputblocksperfile = QtGui.QLineEdit(self.taboutputSpectra) |
|
698 | 705 | self.specOutputblocksperfile.setObjectName(_fromUtf8("specOutputblocksperfile")) |
|
699 | 706 | self.gridLayout_11.addWidget(self.specOutputblocksperfile, 2, 2, 1, 1) |
|
700 | 707 | self.label_9 = QtGui.QLabel(self.taboutputSpectra) |
|
701 | 708 | self.label_9.setObjectName(_fromUtf8("label_9")) |
|
702 | 709 | self.gridLayout_11.addWidget(self.label_9, 2, 0, 1, 2) |
|
703 | 710 | self.label_38 = QtGui.QLabel(self.taboutputSpectra) |
|
704 | 711 | self.label_38.setObjectName(_fromUtf8("label_38")) |
|
705 | 712 | self.gridLayout_11.addWidget(self.label_38, 3, 0, 1, 1) |
|
706 | 713 | self.specOutputprofileperblock = QtGui.QLineEdit(self.taboutputSpectra) |
|
707 | 714 | self.specOutputprofileperblock.setObjectName(_fromUtf8("specOutputprofileperblock")) |
|
708 | 715 | self.gridLayout_11.addWidget(self.specOutputprofileperblock, 3, 2, 1, 1) |
|
709 | 716 | self.tabWidgetSpectra.addTab(self.taboutputSpectra, _fromUtf8("")) |
|
710 | 717 | self.gridLayout_7.addWidget(self.tabWidgetSpectra, 0, 1, 1, 1) |
|
711 | 718 | self.tabWidgetProject.addTab(self.tabSpectra, _fromUtf8("")) |
|
712 | 719 | self.tabSpectraHeis = QtGui.QWidget() |
|
713 | 720 | self.tabSpectraHeis.setObjectName(_fromUtf8("tabSpectraHeis")) |
|
714 | 721 | self.gridLayout_23 = QtGui.QGridLayout(self.tabSpectraHeis) |
|
715 | 722 | self.gridLayout_23.setObjectName(_fromUtf8("gridLayout_23")) |
|
716 | 723 | self.frame_6 = QtGui.QFrame(self.tabSpectraHeis) |
|
717 | 724 | self.frame_6.setFrameShape(QtGui.QFrame.StyledPanel) |
|
718 | 725 | self.frame_6.setFrameShadow(QtGui.QFrame.Raised) |
|
719 | 726 | self.frame_6.setObjectName(_fromUtf8("frame_6")) |
|
720 | 727 | self.gridLayout_22 = QtGui.QGridLayout(self.frame_6) |
|
721 | 728 | self.gridLayout_22.setObjectName(_fromUtf8("gridLayout_22")) |
|
722 | 729 | self.specHeisGraphClear = QtGui.QPushButton(self.frame_6) |
|
723 | 730 | self.specHeisGraphClear.setObjectName(_fromUtf8("specHeisGraphClear")) |
|
724 | 731 | self.gridLayout_22.addWidget(self.specHeisGraphClear, 0, 1, 1, 1) |
|
725 | 732 | self.specHeisOpOk = QtGui.QPushButton(self.frame_6) |
|
726 | 733 | self.specHeisOpOk.setObjectName(_fromUtf8("specHeisOpOk")) |
|
727 | 734 | self.gridLayout_22.addWidget(self.specHeisOpOk, 0, 0, 1, 1) |
|
728 | 735 | self.gridLayout_23.addWidget(self.frame_6, 1, 0, 1, 1) |
|
729 | 736 | self.tabWidgetSpectraHeis = QtGui.QTabWidget(self.tabSpectraHeis) |
|
730 | 737 | self.tabWidgetSpectraHeis.setObjectName(_fromUtf8("tabWidgetSpectraHeis")) |
|
731 | 738 | self.tabopSpectraHeis = QtGui.QWidget() |
|
732 | 739 | self.tabopSpectraHeis.setObjectName(_fromUtf8("tabopSpectraHeis")) |
|
733 | 740 | self.gridLayout_21 = QtGui.QGridLayout(self.tabopSpectraHeis) |
|
734 | 741 | self.gridLayout_21.setObjectName(_fromUtf8("gridLayout_21")) |
|
735 | 742 | spacerItem21 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
736 | 743 | self.gridLayout_21.addItem(spacerItem21, 0, 1, 1, 1) |
|
737 | 744 | self.specHeisOpCobIncInt = QtGui.QComboBox(self.tabopSpectraHeis) |
|
738 | 745 | self.specHeisOpCobIncInt.setObjectName(_fromUtf8("specHeisOpCobIncInt")) |
|
739 | 746 | self.specHeisOpCobIncInt.addItem(_fromUtf8("")) |
|
740 | 747 | self.gridLayout_21.addWidget(self.specHeisOpCobIncInt, 1, 0, 1, 1) |
|
741 | 748 | self.specHeisOpCebIncoherent = QtGui.QCheckBox(self.tabopSpectraHeis) |
|
742 | 749 | self.specHeisOpCebIncoherent.setObjectName(_fromUtf8("specHeisOpCebIncoherent")) |
|
743 | 750 | self.gridLayout_21.addWidget(self.specHeisOpCebIncoherent, 0, 0, 1, 1) |
|
744 | 751 | self.specHeisOpIncoherent = QtGui.QLineEdit(self.tabopSpectraHeis) |
|
745 | 752 | self.specHeisOpIncoherent.setObjectName(_fromUtf8("specHeisOpIncoherent")) |
|
746 | 753 | self.gridLayout_21.addWidget(self.specHeisOpIncoherent, 1, 1, 1, 1) |
|
747 | 754 | spacerItem22 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
748 | 755 | self.gridLayout_21.addItem(spacerItem22, 2, 0, 1, 1) |
|
749 | 756 | self.tabWidgetSpectraHeis.addTab(self.tabopSpectraHeis, _fromUtf8("")) |
|
750 | 757 | self.tabgraphSpectraHeis = QtGui.QWidget() |
|
751 | 758 | self.tabgraphSpectraHeis.setObjectName(_fromUtf8("tabgraphSpectraHeis")) |
|
752 | 759 | self.gridLayout_20 = QtGui.QGridLayout(self.tabgraphSpectraHeis) |
|
753 | 760 | self.gridLayout_20.setObjectName(_fromUtf8("gridLayout_20")) |
|
754 | 761 | self.label_54 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
755 | 762 | self.label_54.setObjectName(_fromUtf8("label_54")) |
|
756 | 763 | self.gridLayout_20.addWidget(self.label_54, 1, 0, 1, 1) |
|
757 | 764 | self.specHeisGraphToolPath = QtGui.QToolButton(self.tabgraphSpectraHeis) |
|
758 | 765 | self.specHeisGraphToolPath.setObjectName(_fromUtf8("specHeisGraphToolPath")) |
|
759 | 766 | self.gridLayout_20.addWidget(self.specHeisGraphToolPath, 0, 6, 1, 1) |
|
760 | 767 | self.specHeisGraphCebRTIplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
761 | 768 | self.specHeisGraphCebRTIplot.setText(_fromUtf8("")) |
|
762 | 769 | self.specHeisGraphCebRTIplot.setObjectName(_fromUtf8("specHeisGraphCebRTIplot")) |
|
763 | 770 | self.gridLayout_20.addWidget(self.specHeisGraphCebRTIplot, 4, 2, 1, 1) |
|
764 | 771 | self.label_62 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
765 | 772 | self.label_62.setObjectName(_fromUtf8("label_62")) |
|
766 | 773 | self.gridLayout_20.addWidget(self.label_62, 7, 0, 1, 1) |
|
767 | 774 | self.label_63 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
768 | 775 | self.label_63.setObjectName(_fromUtf8("label_63")) |
|
769 | 776 | self.gridLayout_20.addWidget(self.label_63, 8, 0, 1, 1) |
|
770 | 777 | self.label_64 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
771 | 778 | self.label_64.setObjectName(_fromUtf8("label_64")) |
|
772 | 779 | self.gridLayout_20.addWidget(self.label_64, 9, 0, 1, 1) |
|
773 | 780 | self.label_65 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
774 | 781 | self.label_65.setObjectName(_fromUtf8("label_65")) |
|
775 | 782 | self.gridLayout_20.addWidget(self.label_65, 10, 0, 1, 1) |
|
776 | 783 | spacerItem23 = QtGui.QSpacerItem(134, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
777 | 784 | self.gridLayout_20.addItem(spacerItem23, 11, 0, 1, 2) |
|
778 | 785 | self.specHeisGgraphftpratio = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
779 | 786 | self.specHeisGgraphftpratio.setObjectName(_fromUtf8("specHeisGgraphftpratio")) |
|
780 | 787 | self.gridLayout_20.addWidget(self.specHeisGgraphftpratio, 10, 1, 1, 6) |
|
781 | 788 | self.specHeisGraphftpRTIplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
782 | 789 | self.specHeisGraphftpRTIplot.setText(_fromUtf8("")) |
|
783 | 790 | self.specHeisGraphftpRTIplot.setObjectName(_fromUtf8("specHeisGraphftpRTIplot")) |
|
784 | 791 | self.gridLayout_20.addWidget(self.specHeisGraphftpRTIplot, 4, 6, 1, 1) |
|
785 | 792 | self.specHeisGgraphTminTmax = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
786 | 793 | self.specHeisGgraphTminTmax.setObjectName(_fromUtf8("specHeisGgraphTminTmax")) |
|
787 | 794 | self.gridLayout_20.addWidget(self.specHeisGgraphTminTmax, 8, 1, 1, 6) |
|
788 | 795 | self.label_60 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
789 | 796 | self.label_60.setObjectName(_fromUtf8("label_60")) |
|
790 | 797 | self.gridLayout_20.addWidget(self.label_60, 5, 0, 1, 1) |
|
791 | 798 | self.label_61 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
792 | 799 | self.label_61.setObjectName(_fromUtf8("label_61")) |
|
793 | 800 | self.gridLayout_20.addWidget(self.label_61, 6, 0, 1, 1) |
|
794 | 801 | self.specHeisGraphPrefix = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
795 | 802 | self.specHeisGraphPrefix.setObjectName(_fromUtf8("specHeisGraphPrefix")) |
|
796 | 803 | self.gridLayout_20.addWidget(self.specHeisGraphPrefix, 1, 1, 1, 6) |
|
797 | 804 | self.label_56 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
798 | 805 | self.label_56.setObjectName(_fromUtf8("label_56")) |
|
799 | 806 | self.gridLayout_20.addWidget(self.label_56, 2, 4, 1, 1) |
|
800 | 807 | self.label_57 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
801 | 808 | self.label_57.setObjectName(_fromUtf8("label_57")) |
|
802 | 809 | self.gridLayout_20.addWidget(self.label_57, 2, 6, 1, 1) |
|
803 | 810 | self.label_58 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
804 | 811 | self.label_58.setObjectName(_fromUtf8("label_58")) |
|
805 | 812 | self.gridLayout_20.addWidget(self.label_58, 3, 0, 1, 1) |
|
806 | 813 | self.specHeisGraphCebSpectraplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
807 | 814 | self.specHeisGraphCebSpectraplot.setText(_fromUtf8("")) |
|
808 | 815 | self.specHeisGraphCebSpectraplot.setObjectName(_fromUtf8("specHeisGraphCebSpectraplot")) |
|
809 | 816 | self.gridLayout_20.addWidget(self.specHeisGraphCebSpectraplot, 3, 2, 1, 1) |
|
810 | 817 | self.specHeisGgraphYminYmax = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
811 | 818 | self.specHeisGgraphYminYmax.setObjectName(_fromUtf8("specHeisGgraphYminYmax")) |
|
812 | 819 | self.gridLayout_20.addWidget(self.specHeisGgraphYminYmax, 7, 1, 1, 6) |
|
813 | 820 | self.label_53 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
814 | 821 | self.label_53.setObjectName(_fromUtf8("label_53")) |
|
815 | 822 | self.gridLayout_20.addWidget(self.label_53, 0, 0, 1, 1) |
|
816 | 823 | self.label_55 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
817 | 824 | self.label_55.setObjectName(_fromUtf8("label_55")) |
|
818 | 825 | self.gridLayout_20.addWidget(self.label_55, 2, 2, 1, 1) |
|
819 | 826 | self.specHeisGraphSaveRTIplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
820 | 827 | self.specHeisGraphSaveRTIplot.setText(_fromUtf8("")) |
|
821 | 828 | self.specHeisGraphSaveRTIplot.setObjectName(_fromUtf8("specHeisGraphSaveRTIplot")) |
|
822 | 829 | self.gridLayout_20.addWidget(self.specHeisGraphSaveRTIplot, 4, 4, 1, 1) |
|
823 | 830 | spacerItem24 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
824 | 831 | self.gridLayout_20.addItem(spacerItem24, 2, 3, 1, 1) |
|
825 | 832 | self.specHeisGgraphXminXmax = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
826 | 833 | self.specHeisGgraphXminXmax.setObjectName(_fromUtf8("specHeisGgraphXminXmax")) |
|
827 | 834 | self.gridLayout_20.addWidget(self.specHeisGgraphXminXmax, 6, 1, 1, 6) |
|
828 | 835 | self.specHeisGgraphChannelList = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
829 | 836 | self.specHeisGgraphChannelList.setObjectName(_fromUtf8("specHeisGgraphChannelList")) |
|
830 | 837 | self.gridLayout_20.addWidget(self.specHeisGgraphChannelList, 5, 1, 1, 6) |
|
831 | 838 | self.specHeisGgraphTimeRange = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
832 | 839 | self.specHeisGgraphTimeRange.setObjectName(_fromUtf8("specHeisGgraphTimeRange")) |
|
833 | 840 | self.gridLayout_20.addWidget(self.specHeisGgraphTimeRange, 9, 1, 1, 6) |
|
834 | 841 | spacerItem25 = QtGui.QSpacerItem(106, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
835 | 842 | self.gridLayout_20.addItem(spacerItem25, 11, 3, 1, 3) |
|
836 | 843 | self.specHeisGraphSaveSpectra = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
837 | 844 | self.specHeisGraphSaveSpectra.setText(_fromUtf8("")) |
|
838 | 845 | self.specHeisGraphSaveSpectra.setObjectName(_fromUtf8("specHeisGraphSaveSpectra")) |
|
839 | 846 | self.gridLayout_20.addWidget(self.specHeisGraphSaveSpectra, 3, 4, 1, 1) |
|
840 | 847 | self.specHeisGraphftpSpectra = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
841 | 848 | self.specHeisGraphftpSpectra.setText(_fromUtf8("")) |
|
842 | 849 | self.specHeisGraphftpSpectra.setObjectName(_fromUtf8("specHeisGraphftpSpectra")) |
|
843 | 850 | self.gridLayout_20.addWidget(self.specHeisGraphftpSpectra, 3, 6, 1, 1) |
|
844 | 851 | self.label_59 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
845 | 852 | self.label_59.setObjectName(_fromUtf8("label_59")) |
|
846 | 853 | self.gridLayout_20.addWidget(self.label_59, 4, 0, 1, 1) |
|
847 | 854 | spacerItem26 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
848 | 855 | self.gridLayout_20.addItem(spacerItem26, 2, 5, 1, 1) |
|
849 | 856 | self.specHeisGraphPath = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
850 | 857 | self.specHeisGraphPath.setObjectName(_fromUtf8("specHeisGraphPath")) |
|
851 | 858 | self.gridLayout_20.addWidget(self.specHeisGraphPath, 0, 1, 1, 5) |
|
852 | 859 | self.tabWidgetSpectraHeis.addTab(self.tabgraphSpectraHeis, _fromUtf8("")) |
|
853 | 860 | self.taboutputSpectraHeis = QtGui.QWidget() |
|
854 | 861 | self.taboutputSpectraHeis.setObjectName(_fromUtf8("taboutputSpectraHeis")) |
|
855 | 862 | self.gridLayout_19 = QtGui.QGridLayout(self.taboutputSpectraHeis) |
|
856 | 863 | self.gridLayout_19.setObjectName(_fromUtf8("gridLayout_19")) |
|
857 | 864 | self.label_67 = QtGui.QLabel(self.taboutputSpectraHeis) |
|
858 | 865 | self.label_67.setObjectName(_fromUtf8("label_67")) |
|
859 | 866 | self.gridLayout_19.addWidget(self.label_67, 1, 0, 1, 1) |
|
860 | 867 | self.label_68 = QtGui.QLabel(self.taboutputSpectraHeis) |
|
861 | 868 | self.label_68.setObjectName(_fromUtf8("label_68")) |
|
862 | 869 | self.gridLayout_19.addWidget(self.label_68, 2, 0, 1, 2) |
|
863 | 870 | self.label_66 = QtGui.QLabel(self.taboutputSpectraHeis) |
|
864 | 871 | self.label_66.setObjectName(_fromUtf8("label_66")) |
|
865 | 872 | self.gridLayout_19.addWidget(self.label_66, 0, 0, 1, 1) |
|
866 | 873 | spacerItem27 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
867 | 874 | self.gridLayout_19.addItem(spacerItem27, 4, 0, 1, 1) |
|
868 | 875 | self.specHeisOutputToolPath = QtGui.QToolButton(self.taboutputSpectraHeis) |
|
869 | 876 | self.specHeisOutputToolPath.setObjectName(_fromUtf8("specHeisOutputToolPath")) |
|
870 | 877 | self.gridLayout_19.addWidget(self.specHeisOutputToolPath, 1, 4, 1, 1) |
|
871 | 878 | self.specHeisOutputPath = QtGui.QLineEdit(self.taboutputSpectraHeis) |
|
872 | 879 | self.specHeisOutputPath.setObjectName(_fromUtf8("specHeisOutputPath")) |
|
873 | 880 | self.gridLayout_19.addWidget(self.specHeisOutputPath, 1, 3, 1, 1) |
|
874 | 881 | self.specHeisOutputComdata = QtGui.QComboBox(self.taboutputSpectraHeis) |
|
875 | 882 | self.specHeisOutputComdata.setObjectName(_fromUtf8("specHeisOutputComdata")) |
|
876 | 883 | self.specHeisOutputComdata.addItem(_fromUtf8("")) |
|
877 | 884 | self.gridLayout_19.addWidget(self.specHeisOutputComdata, 0, 3, 1, 2) |
|
878 | 885 | self.label_69 = QtGui.QLabel(self.taboutputSpectraHeis) |
|
879 | 886 | self.label_69.setObjectName(_fromUtf8("label_69")) |
|
880 | 887 | self.gridLayout_19.addWidget(self.label_69, 3, 0, 1, 2) |
|
881 | 888 | self.specHeisOutputblocksperfile = QtGui.QLineEdit(self.taboutputSpectraHeis) |
|
882 | 889 | self.specHeisOutputblocksperfile.setObjectName(_fromUtf8("specHeisOutputblocksperfile")) |
|
883 | 890 | self.gridLayout_19.addWidget(self.specHeisOutputblocksperfile, 2, 3, 1, 1) |
|
884 | 891 | self.specHeisOutputMetada = QtGui.QLineEdit(self.taboutputSpectraHeis) |
|
885 | 892 | self.specHeisOutputMetada.setObjectName(_fromUtf8("specHeisOutputMetada")) |
|
886 | 893 | self.gridLayout_19.addWidget(self.specHeisOutputMetada, 3, 3, 1, 1) |
|
887 | 894 | self.specHeisOutputMetadaToolPath = QtGui.QToolButton(self.taboutputSpectraHeis) |
|
888 | 895 | self.specHeisOutputMetadaToolPath.setObjectName(_fromUtf8("specHeisOutputMetadaToolPath")) |
|
889 | 896 | self.gridLayout_19.addWidget(self.specHeisOutputMetadaToolPath, 3, 4, 1, 1) |
|
890 | 897 | self.tabWidgetSpectraHeis.addTab(self.taboutputSpectraHeis, _fromUtf8("")) |
|
891 | 898 | self.gridLayout_23.addWidget(self.tabWidgetSpectraHeis, 0, 0, 1, 1) |
|
892 | 899 | self.tabWidgetProject.addTab(self.tabSpectraHeis, _fromUtf8("")) |
|
893 | 900 | self.tabCorrelation = QtGui.QWidget() |
|
894 | 901 | self.tabCorrelation.setObjectName(_fromUtf8("tabCorrelation")) |
|
895 | 902 | self.gridLayout_13 = QtGui.QGridLayout(self.tabCorrelation) |
|
896 | 903 | self.gridLayout_13.setObjectName(_fromUtf8("gridLayout_13")) |
|
897 | 904 | self.tabWidget_2 = QtGui.QTabWidget(self.tabCorrelation) |
|
898 | 905 | self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2")) |
|
899 | 906 | self.tabopCorrelation = QtGui.QWidget() |
|
900 | 907 | self.tabopCorrelation.setObjectName(_fromUtf8("tabopCorrelation")) |
|
901 | 908 | self.tabWidget_2.addTab(self.tabopCorrelation, _fromUtf8("")) |
|
902 | 909 | self.tabopCorrelation1 = QtGui.QWidget() |
|
903 | 910 | self.tabopCorrelation1.setObjectName(_fromUtf8("tabopCorrelation1")) |
|
904 | 911 | self.tabWidget_2.addTab(self.tabopCorrelation1, _fromUtf8("")) |
|
905 | 912 | self.gridLayout_13.addWidget(self.tabWidget_2, 0, 0, 1, 1) |
|
906 | 913 | self.tabWidgetProject.addTab(self.tabCorrelation, _fromUtf8("")) |
|
914 | ||
|
915 | ||
|
907 | 916 | self.tabConsole = QtGui.QTabWidget(self.splitter) |
|
908 | 917 | self.tabConsole.setMinimumSize(QtCore.QSize(0, 0)) |
|
909 | 918 | self.tabConsole.setObjectName(_fromUtf8("tabConsole")) |
|
910 | 919 | self.tab_5 = QtGui.QWidget() |
|
911 | 920 | self.tab_5.setObjectName(_fromUtf8("tab_5")) |
|
912 | 921 | self.gridLayout_4 = QtGui.QGridLayout(self.tab_5) |
|
913 | 922 | self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) |
|
914 | 923 | self.console = QtGui.QTextEdit(self.tab_5) |
|
915 | 924 | self.console.setObjectName(_fromUtf8("console")) |
|
916 | 925 | self.gridLayout_4.addWidget(self.console, 0, 0, 1, 1) |
|
917 | 926 | self.tabConsole.addTab(self.tab_5, _fromUtf8("")) |
|
918 | 927 | self.tabWidget = QtGui.QTabWidget(self.splitter_2) |
|
919 | 928 | self.tabWidget.setObjectName(_fromUtf8("tabWidget")) |
|
920 | 929 | self.tabProjectProperty = QtGui.QWidget() |
|
921 | 930 | self.tabProjectProperty.setObjectName(_fromUtf8("tabProjectProperty")) |
|
922 | 931 | self.gridLayout_8 = QtGui.QGridLayout(self.tabProjectProperty) |
|
923 | 932 | self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8")) |
|
924 | 933 | self.treeProjectProperties = QtGui.QTreeView(self.tabProjectProperty) |
|
925 | 934 | self.treeProjectProperties.setObjectName(_fromUtf8("treeProjectProperties")) |
|
926 | 935 | self.gridLayout_8.addWidget(self.treeProjectProperties, 0, 0, 1, 1) |
|
927 | 936 | self.tabWidget.addTab(self.tabProjectProperty, _fromUtf8("")) |
|
928 | 937 | self.gridLayout_16.addWidget(self.splitter_2, 1, 0, 1, 1) |
|
929 | 938 | MainWindow.setCentralWidget(self.centralWidget) |
|
930 | 939 | self.toolBar = QtGui.QToolBar(MainWindow) |
|
931 | 940 | self.toolBar.setObjectName(_fromUtf8("toolBar")) |
|
932 | 941 | MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) |
|
933 | 942 | self.menuBar = QtGui.QMenuBar(MainWindow) |
|
934 | 943 | self.menuBar.setGeometry(QtCore.QRect(0, 0, 1065, 25)) |
|
935 | 944 | self.menuBar.setObjectName(_fromUtf8("menuBar")) |
|
936 | 945 | self.menuProject = QtGui.QMenu(self.menuBar) |
|
937 | 946 | self.menuProject.setObjectName(_fromUtf8("menuProject")) |
|
938 | 947 | self.menuRun = QtGui.QMenu(self.menuBar) |
|
939 | 948 | self.menuRun.setObjectName(_fromUtf8("menuRun")) |
|
940 | 949 | self.menuOptions = QtGui.QMenu(self.menuBar) |
|
941 | 950 | self.menuOptions.setObjectName(_fromUtf8("menuOptions")) |
|
942 | 951 | self.menuHelp = QtGui.QMenu(self.menuBar) |
|
943 | 952 | self.menuHelp.setObjectName(_fromUtf8("menuHelp")) |
|
944 | 953 | MainWindow.setMenuBar(self.menuBar) |
|
945 | 954 | self.actionOpen = QtGui.QAction(MainWindow) |
|
946 | icon = QtGui.QIcon() | |
|
947 | icon.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/open.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
948 | self.actionOpen.setIcon(icon) | |
|
955 | ||
|
956 | iconOpen = QtGui.QIcon() | |
|
957 | iconOpen.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/open.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
958 | ||
|
959 | iconCreate = QtGui.QIcon() | |
|
960 | iconCreate.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/project.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
961 | ||
|
962 | iconSave = QtGui.QIcon() | |
|
963 | iconSave.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/saveicon.jpeg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
964 | ||
|
965 | iconStart = QtGui.QIcon() | |
|
966 | iconStart.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/startServer.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
967 | ||
|
968 | iconStop = QtGui.QIcon() | |
|
969 | iconStop.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/stopServer.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
970 | ||
|
971 | iconPause = QtGui.QIcon() | |
|
972 | iconPause.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/pause.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
973 | ||
|
974 | iconAddPU = QtGui.QIcon() | |
|
975 | iconAddPU.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/add_PU.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
976 | ||
|
977 | self.actionOpen.setIcon(iconOpen) | |
|
949 | 978 | self.actionOpen.setObjectName(_fromUtf8("actionOpen")) |
|
950 | 979 | self.actionCreate = QtGui.QAction(MainWindow) |
|
951 | icon1 = QtGui.QIcon() | |
|
952 | icon1.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/project.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
953 | self.actionCreate.setIcon(icon1) | |
|
980 | self.actionCreate.setIcon(iconCreate) | |
|
954 | 981 | self.actionCreate.setObjectName(_fromUtf8("actionCreate")) |
|
955 | 982 | self.actionSave = QtGui.QAction(MainWindow) |
|
956 | icon2 = QtGui.QIcon() | |
|
957 | icon2.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/saveicon.jpeg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
958 | self.actionSave.setIcon(icon2) | |
|
983 | self.actionSave.setIcon(iconSave) | |
|
959 | 984 | self.actionSave.setObjectName(_fromUtf8("actionSave")) |
|
960 | 985 | self.actionClose = QtGui.QAction(MainWindow) |
|
961 | 986 | self.actionClose.setObjectName(_fromUtf8("actionClose")) |
|
962 | 987 | self.actionStart = QtGui.QAction(MainWindow) |
|
963 | icon3 = QtGui.QIcon() | |
|
964 | icon3.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/startServer.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
965 | self.actionStart.setIcon(icon3) | |
|
988 | self.actionStart.setIcon(iconStart) | |
|
966 | 989 | self.actionStart.setObjectName(_fromUtf8("actionStart")) |
|
967 | 990 | self.actionPause = QtGui.QAction(MainWindow) |
|
991 | self.actionPause.setIcon(iconPause) | |
|
968 | 992 | self.actionPause.setObjectName(_fromUtf8("actionPause")) |
|
993 | self.actionStop = QtGui.QAction(MainWindow) | |
|
994 | self.actionStop.setIcon(iconStop) | |
|
995 | self.actionStop.setObjectName(_fromUtf8("actionStop")) | |
|
969 | 996 | self.actionAbout = QtGui.QAction(MainWindow) |
|
970 | 997 | self.actionAbout.setObjectName(_fromUtf8("actionAbout")) |
|
971 | 998 | self.actionOpenToolbar = QtGui.QAction(MainWindow) |
|
972 | self.actionOpenToolbar.setIcon(icon) | |
|
999 | self.actionOpenToolbar.setIcon(iconOpen) | |
|
973 | 1000 | self.actionOpenToolbar.setObjectName(_fromUtf8("actionOpenToolbar")) |
|
974 | 1001 | self.actionCreateToolbar = QtGui.QAction(MainWindow) |
|
975 |
self.actionCreateToolbar.setIcon(icon |
|
|
1002 | self.actionCreateToolbar.setIcon(iconCreate) | |
|
976 | 1003 | self.actionCreateToolbar.setObjectName(_fromUtf8("actionCreateToolbar")) |
|
977 | 1004 | self.actionSaveToolbar = QtGui.QAction(MainWindow) |
|
978 |
self.actionSaveToolbar.setIcon(icon |
|
|
1005 | self.actionSaveToolbar.setIcon(iconSave) | |
|
979 | 1006 | self.actionSaveToolbar.setObjectName(_fromUtf8("actionSaveToolbar")) |
|
980 | 1007 | self.actionStarToolbar = QtGui.QAction(MainWindow) |
|
981 |
self.actionStarToolbar.setIcon(icon |
|
|
1008 | self.actionStarToolbar.setIcon(iconStart) | |
|
982 | 1009 | self.actionStarToolbar.setObjectName(_fromUtf8("actionStarToolbar")) |
|
983 | 1010 | self.actionStopToolbar = QtGui.QAction(MainWindow) |
|
984 | icon4 = QtGui.QIcon() | |
|
985 | icon4.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/stopServer.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
986 | self.actionStopToolbar.setIcon(icon4) | |
|
1011 | self.actionStopToolbar.setIcon(iconStop) | |
|
987 | 1012 | self.actionStopToolbar.setObjectName(_fromUtf8("actionStopToolbar")) |
|
988 | 1013 | self.actionPauseToolbar = QtGui.QAction(MainWindow) |
|
989 | icon5 = QtGui.QIcon() | |
|
990 | icon5.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/pause.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
991 | self.actionPause.setIcon(icon5) | |
|
992 | self.actionPauseToolbar.setIcon(icon5) | |
|
1014 | self.actionPause.setIcon(iconPause) | |
|
1015 | self.actionPauseToolbar.setIcon(iconPause) | |
|
993 | 1016 | self.actionPauseToolbar.setObjectName(_fromUtf8("actionPauseToolbar")) |
|
994 | 1017 | self.actionAddPU = QtGui.QAction(MainWindow) |
|
995 | icon6 = QtGui.QIcon() | |
|
996 | icon6.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/add_PU.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
997 | self.actionAddPU.setIcon(icon6) | |
|
1018 | self.actionAddPU.setIcon(iconAddPU) | |
|
998 | 1019 | self.actionAddPU.setObjectName(_fromUtf8("actionAddPU")) |
|
999 | 1020 | self.actionFTP = QtGui.QAction(MainWindow) |
|
1000 | 1021 | self.actionFTP.setObjectName(_fromUtf8("actionFTP")) |
|
1001 | 1022 | self.toolBar.addAction(self.actionOpenToolbar) |
|
1002 | 1023 | self.toolBar.addSeparator() |
|
1003 | 1024 | self.toolBar.addAction(self.actionCreateToolbar) |
|
1004 | 1025 | self.toolBar.addSeparator() |
|
1005 | 1026 | self.toolBar.addAction(self.actionAddPU) |
|
1006 | 1027 | self.toolBar.addSeparator() |
|
1007 | 1028 | self.toolBar.addAction(self.actionSaveToolbar) |
|
1008 | 1029 | self.toolBar.addSeparator() |
|
1009 | 1030 | self.toolBar.addAction(self.actionStarToolbar) |
|
1010 | 1031 | self.toolBar.addSeparator() |
|
1011 | 1032 | self.toolBar.addAction(self.actionPauseToolbar) |
|
1012 | 1033 | self.toolBar.addSeparator() |
|
1013 | 1034 | self.toolBar.addAction(self.actionStopToolbar) |
|
1014 | 1035 | self.toolBar.addSeparator() |
|
1015 | 1036 | self.a=1 |
|
1016 | 1037 | self.actionPauseToolbar.triggered.connect(self.changeIcon) |
|
1017 | 1038 | |
|
1018 | 1039 | |
|
1019 | 1040 | self.menuProject.addAction(self.actionOpen) |
|
1020 | 1041 | self.menuProject.addAction(self.actionCreate) |
|
1021 | 1042 | self.menuProject.addAction(self.actionSave) |
|
1022 | 1043 | self.menuProject.addAction(self.actionClose) |
|
1023 | 1044 | self.menuRun.addAction(self.actionStart) |
|
1024 | 1045 | self.menuRun.addAction(self.actionPause) |
|
1046 | self.menuRun.addAction(self.actionStop) | |
|
1025 | 1047 | self.menuOptions.addAction(self.actionFTP) |
|
1026 | 1048 | self.menuHelp.addAction(self.actionAbout) |
|
1027 | 1049 | self.menuBar.addAction(self.menuProject.menuAction()) |
|
1028 | 1050 | self.menuBar.addAction(self.menuRun.menuAction()) |
|
1029 | 1051 | self.menuBar.addAction(self.menuOptions.menuAction()) |
|
1030 | 1052 | self.menuBar.addAction(self.menuHelp.menuAction()) |
|
1031 | 1053 | |
|
1032 | 1054 | self.retranslateUi(MainWindow) |
|
1033 | 1055 | self.tabWidgetProject.setCurrentIndex(0) |
|
1034 | 1056 | self.tabWidgetVoltage.setCurrentIndex(0) |
|
1035 | 1057 | self.tabWidgetSpectra.setCurrentIndex(0) |
|
1036 | 1058 | self.tabWidgetSpectraHeis.setCurrentIndex(0) |
|
1037 | 1059 | self.tabWidget_2.setCurrentIndex(0) |
|
1038 | 1060 | self.tabConsole.setCurrentIndex(0) |
|
1039 | 1061 | self.tabWidget.setCurrentIndex(0) |
|
1040 | 1062 | QtCore.QMetaObject.connectSlotsByName(MainWindow) |
|
1041 | 1063 | |
|
1042 | 1064 | def changeIcon(self): |
|
1065 | ||
|
1043 | 1066 | if self.a==1: |
|
1044 |
icon |
|
|
1045 |
icon |
|
|
1046 |
self.actionPauseToolbar.setIcon(icon |
|
|
1067 | iconPauseRed = QtGui.QIcon() | |
|
1068 | iconPauseRed.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/pausered.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1069 | self.actionPauseToolbar.setIcon(iconPauseRed) | |
|
1047 | 1070 | self.a+=1 |
|
1048 | 1071 | return 0 |
|
1049 | 1072 | if self.a==2: |
|
1050 |
icon |
|
|
1051 |
icon |
|
|
1052 |
self.actionPauseToolbar.setIcon(icon |
|
|
1073 | iconPause = QtGui.QIcon() | |
|
1074 | iconPause.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/pause.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1075 | self.actionPauseToolbar.setIcon(iconPause) | |
|
1053 | 1076 | self.a-=1 |
|
1054 | 1077 | return 0 |
|
1055 | 1078 | |
|
1056 | 1079 | def retranslateUi(self, MainWindow): |
|
1080 | ||
|
1057 | 1081 | MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None)) |
|
1058 | 1082 | self.label.setText(_translate("MainWindow", "Project Name :", None)) |
|
1059 | 1083 | self.label_11.setText(_translate("MainWindow", "DataType :", None)) |
|
1060 | 1084 | self.proComDataType.setItemText(0, _translate("MainWindow", "Voltage", None)) |
|
1061 | 1085 | self.proComDataType.setItemText(1, _translate("MainWindow", "Spectra", None)) |
|
1062 | 1086 | self.proComDataType.setItemText(2, _translate("MainWindow", "Fits", None)) |
|
1063 | 1087 | self.label_15.setText(_translate("MainWindow", "DataPath :", None)) |
|
1064 | 1088 | self.proToolPath.setText(_translate("MainWindow", "...", None)) |
|
1065 | 1089 | self.label_23.setText(_translate("MainWindow", "Read Mode:", None)) |
|
1066 | 1090 | self.proComReadMode.setItemText(0, _translate("MainWindow", "Offline", None)) |
|
1067 | 1091 | self.proComReadMode.setItemText(1, _translate("MainWindow", "Online", None)) |
|
1068 | 1092 | self.label_33.setText(_translate("MainWindow", "Delay:", None)) |
|
1069 | 1093 | self.label_32.setText(_translate("MainWindow", "Walk :", None)) |
|
1070 | 1094 | self.proComWalk.setItemText(0, _translate("MainWindow", "On Files", None)) |
|
1071 | 1095 | self.proComWalk.setItemText(1, _translate("MainWindow", "On Folder", None)) |
|
1072 | 1096 | self.proLoadButton.setText(_translate("MainWindow", "Load", None)) |
|
1073 | 1097 | self.label_10.setText(_translate("MainWindow", "Set:", None)) |
|
1074 | 1098 | self.label_27.setText(_translate("MainWindow", "Star Date:", None)) |
|
1075 | 1099 | self.label_28.setText(_translate("MainWindow", "End Date:", None)) |
|
1076 | 1100 | self.label_2.setText(_translate("MainWindow", "Start Time:", None)) |
|
1077 | 1101 | self.label_3.setText(_translate("MainWindow", "End Time:", None)) |
|
1078 | 1102 | self.label_30.setText(_translate("MainWindow", "Description:", None)) |
|
1079 | 1103 | self.proOk.setText(_translate("MainWindow", "Ok", None)) |
|
1080 | 1104 | self.proClear.setText(_translate("MainWindow", "Clear", None)) |
|
1081 | 1105 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabProject), _translate("MainWindow", "Project", None)) |
|
1082 | 1106 | self.volOpOk.setText(_translate("MainWindow", "Ok", None)) |
|
1083 | 1107 | self.volGraphClear.setText(_translate("MainWindow", "Clear", None)) |
|
1084 | 1108 | self.volOpComHeights.setItemText(0, _translate("MainWindow", "Value", None)) |
|
1085 | 1109 | self.volOpComHeights.setItemText(1, _translate("MainWindow", "Index", None)) |
|
1086 | 1110 | self.volOpComChannels.setItemText(0, _translate("MainWindow", "Value", None)) |
|
1087 | 1111 | self.volOpComChannels.setItemText(1, _translate("MainWindow", "Index", None)) |
|
1088 | 1112 | self.volOpCebProfile.setText(_translate("MainWindow", "Profile Selector", None)) |
|
1089 | 1113 | self.volOpComProfile.setItemText(0, _translate("MainWindow", "Profile List", None)) |
|
1090 | 1114 | self.volOpComProfile.setItemText(1, _translate("MainWindow", "Profile Range List", None)) |
|
1091 | 1115 | self.volOpCebDecodification.setText(_translate("MainWindow", "Decoder", None)) |
|
1092 | 1116 | self.volOpCebCohInt.setText(_translate("MainWindow", "Coherent Integration", None)) |
|
1093 | 1117 | self.label_4.setText(_translate("MainWindow", "Code:", None)) |
|
1094 | 1118 | self.volOpCebChannels.setText(_translate("MainWindow", "Select Channels", None)) |
|
1095 | 1119 | self.volOpCebHeights.setText(_translate("MainWindow", "Select Heights", None)) |
|
1096 | 1120 | self.volOpCebFilter.setText(_translate("MainWindow", "Filter", None)) |
|
1097 | 1121 | self.volOpCebRadarfrequency.setText(_translate("MainWindow", "Radar Frequency", None)) |
|
1098 | 1122 | self.label_5.setText(_translate("MainWindow", "Mode:", None)) |
|
1099 | 1123 | self.volOpComCode.setItemText(0, _translate("MainWindow", "Barker 3", None)) |
|
1100 | 1124 | self.volOpComCode.setItemText(1, _translate("MainWindow", "Barker 4", None)) |
|
1101 | 1125 | self.volOpComCode.setItemText(2, _translate("MainWindow", "Barker 5", None)) |
|
1102 | 1126 | self.volOpComCode.setItemText(3, _translate("MainWindow", "Barker 7", None)) |
|
1103 | 1127 | self.volOpComCode.setItemText(4, _translate("MainWindow", "Barker 11", None)) |
|
1104 | 1128 | self.volOpComCode.setItemText(5, _translate("MainWindow", "Barker 13", None)) |
|
1105 | 1129 | self.volOpComCode.setItemText(6, _translate("MainWindow", "Barker 3 + Comp.", None)) |
|
1106 | 1130 | self.volOpComCode.setItemText(7, _translate("MainWindow", "Barker 4 + Comp.", None)) |
|
1107 | 1131 | self.volOpComCode.setItemText(8, _translate("MainWindow", "Barker 5 + Comp.", None)) |
|
1108 | 1132 | self.volOpComCode.setItemText(9, _translate("MainWindow", "Barker 7 + Comp.", None)) |
|
1109 | 1133 | self.volOpComCode.setItemText(10, _translate("MainWindow", "Barker 11+ Comp.", None)) |
|
1110 | 1134 | self.volOpComCode.setItemText(11, _translate("MainWindow", "Barker 13+ Comp.", None)) |
|
1111 | 1135 | self.volOpComCode.setItemText(12, _translate("MainWindow", "Default", None)) |
|
1112 | 1136 | self.volOpComMode.setItemText(0, _translate("MainWindow", "Time", None)) |
|
1113 | 1137 | self.volOpComMode.setItemText(1, _translate("MainWindow", "Freq 1", None)) |
|
1114 | 1138 | self.tabWidgetVoltage.setTabText(self.tabWidgetVoltage.indexOf(self.tabopVoltage), _translate("MainWindow", "Operation", None)) |
|
1115 | 1139 | self.volGraphToolPath.setText(_translate("MainWindow", "...", None)) |
|
1116 | 1140 | self.label_14.setText(_translate("MainWindow", "Scope", None)) |
|
1117 | 1141 | self.label_8.setText(_translate("MainWindow", "Channel List", None)) |
|
1118 | 1142 | self.label_49.setText(_translate("MainWindow", "Show", None)) |
|
1119 | 1143 | self.label_51.setText(_translate("MainWindow", "Freq/Vel", None)) |
|
1120 | 1144 | self.label_12.setText(_translate("MainWindow", "Path :", None)) |
|
1121 | 1145 | self.label_13.setText(_translate("MainWindow", "Prefix:", None)) |
|
1122 | 1146 | self.label_52.setText(_translate("MainWindow", "Height range", None)) |
|
1123 | 1147 | self.label_50.setText(_translate("MainWindow", "Save", None)) |
|
1124 | 1148 | self.tabWidgetVoltage.setTabText(self.tabWidgetVoltage.indexOf(self.tabgraphVoltage), _translate("MainWindow", "Graphics", None)) |
|
1125 | 1149 | self.label_36.setText(_translate("MainWindow", "Type:", None)) |
|
1126 | 1150 | self.label_37.setText(_translate("MainWindow", "Path:", None)) |
|
1127 | 1151 | self.volOutputToolPath.setText(_translate("MainWindow", "...", None)) |
|
1128 | 1152 | self.volOutputComData.setItemText(0, _translate("MainWindow", ".rawdata", None)) |
|
1129 | 1153 | self.label_7.setText(_translate("MainWindow", "Blocks per File : ", None)) |
|
1130 | 1154 | self.label_35.setText(_translate("MainWindow", "Profiles per Block: ", None)) |
|
1131 | 1155 | self.tabWidgetVoltage.setTabText(self.tabWidgetVoltage.indexOf(self.taboutputVoltage), _translate("MainWindow", "Output", None)) |
|
1132 | 1156 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabVoltage), _translate("MainWindow", "Voltage", None)) |
|
1133 | 1157 | self.specOpOk.setText(_translate("MainWindow", "Ok", None)) |
|
1134 | 1158 | self.specGraphClear.setText(_translate("MainWindow", "Clear", None)) |
|
1135 | 1159 | self.specOpCebCrossSpectra.setText(_translate("MainWindow", "Select Cross Spectra", None)) |
|
1136 | 1160 | self.specOpComChannel.setItemText(0, _translate("MainWindow", "Value", None)) |
|
1137 | 1161 | self.specOpComChannel.setItemText(1, _translate("MainWindow", "Index", None)) |
|
1138 | 1162 | self.specOpComHeights.setItemText(0, _translate("MainWindow", "Value", None)) |
|
1139 | 1163 | self.specOpComHeights.setItemText(1, _translate("MainWindow", "Index", None)) |
|
1140 | 1164 | self.specOpCebRemoveDC.setText(_translate("MainWindow", "Remove DC", None)) |
|
1141 | 1165 | self.specOpCebHeights.setText(_translate("MainWindow", "Select Heights", None)) |
|
1142 | 1166 | self.specOpCebChannel.setText(_translate("MainWindow", "Select Channel", None)) |
|
1143 | 1167 | self.label_31.setText(_translate("MainWindow", "x-y pairs", None)) |
|
1144 | 1168 | self.label_26.setText(_translate("MainWindow", "nFFTPoints", None)) |
|
1145 | 1169 | self.specOpCebIncoherent.setText(_translate("MainWindow", "Incoherent Integration", None)) |
|
1146 | 1170 | self.specOpCobIncInt.setItemText(0, _translate("MainWindow", "Time Interval", None)) |
|
1147 | 1171 | self.specOpCobIncInt.setItemText(1, _translate("MainWindow", "Profiles", None)) |
|
1148 | 1172 | self.specOpCebRadarfrequency.setText(_translate("MainWindow", "Radar Frequency", None)) |
|
1149 | 1173 | self.label_21.setText(_translate("MainWindow", "Profiles", None)) |
|
1150 | 1174 | self.specOpCebRemoveInt.setText(_translate("MainWindow", "Remove Interference", None)) |
|
1151 | 1175 | self.label_70.setText(_translate("MainWindow", "IppFactor", None)) |
|
1152 | 1176 | self.specOpCebgetNoise.setText(_translate("MainWindow", "Get Noise", None)) |
|
1153 | 1177 | self.specOpComRemoveDC.setItemText(0, _translate("MainWindow", "Mode 1", None)) |
|
1154 | 1178 | self.specOpComRemoveDC.setItemText(1, _translate("MainWindow", "Mode 2", None)) |
|
1155 | 1179 | self.tabWidgetSpectra.setTabText(self.tabWidgetSpectra.indexOf(self.tabopSpectra), _translate("MainWindow", "Operation", None)) |
|
1156 | 1180 | self.label_44.setText(_translate("MainWindow", "Coherence Map", None)) |
|
1157 | 1181 | self.label_20.setText(_translate("MainWindow", "Tmin, Tmax:", None)) |
|
1158 | 1182 | self.label_25.setText(_translate("MainWindow", "Prefix", None)) |
|
1159 | 1183 | self.label_42.setText(_translate("MainWindow", "RTI Plot", None)) |
|
1160 | 1184 | self.label_16.setText(_translate("MainWindow", "Height range", None)) |
|
1161 | 1185 | self.label_17.setText(_translate("MainWindow", "dB range", None)) |
|
1162 | 1186 | self.label_18.setText(_translate("MainWindow", "Magnitud ", None)) |
|
1163 | 1187 | self.label_24.setText(_translate("MainWindow", "Path", None)) |
|
1164 | 1188 | self.label_46.setText(_translate("MainWindow", "Power Profile", None)) |
|
1165 | 1189 | self.label_22.setText(_translate("MainWindow", "Freq/Vel:", None)) |
|
1166 | 1190 | self.label_41.setText(_translate("MainWindow", "Cross Spectra Plot", None)) |
|
1167 | 1191 | self.specGraphToolPath.setText(_translate("MainWindow", "...", None)) |
|
1168 | 1192 | self.label_6.setText(_translate("MainWindow", "Channel List:", None)) |
|
1169 | 1193 | self.label_40.setText(_translate("MainWindow", "Spectra Plot", None)) |
|
1170 | 1194 | self.label_43.setText(_translate("MainWindow", "Show", None)) |
|
1171 | 1195 | self.label_29.setText(_translate("MainWindow", "Wr Period:", None)) |
|
1172 | 1196 | self.label_47.setText(_translate("MainWindow", "Save", None)) |
|
1173 | 1197 | self.label_19.setText(_translate("MainWindow", "ftp", None)) |
|
1174 | 1198 | self.label_45.setText(_translate("MainWindow", "Noise", None)) |
|
1175 | 1199 | self.label_48.setText(_translate("MainWindow", "Time Range:", None)) |
|
1176 | 1200 | self.tabWidgetSpectra.setTabText(self.tabWidgetSpectra.indexOf(self.tabgraphSpectra), _translate("MainWindow", "Graphics", None)) |
|
1177 | 1201 | self.label_39.setText(_translate("MainWindow", "Type:", None)) |
|
1178 | 1202 | self.specOutputComData.setItemText(0, _translate("MainWindow", ".pdata", None)) |
|
1179 | 1203 | self.label_34.setText(_translate("MainWindow", "Path:", None)) |
|
1180 | 1204 | self.specOutputToolPath.setText(_translate("MainWindow", "...", None)) |
|
1181 | 1205 | self.label_9.setText(_translate("MainWindow", "Blocks per File: ", None)) |
|
1182 | 1206 | self.label_38.setText(_translate("MainWindow", "Profile per Block: ", None)) |
|
1183 | 1207 | self.tabWidgetSpectra.setTabText(self.tabWidgetSpectra.indexOf(self.taboutputSpectra), _translate("MainWindow", "Output", None)) |
|
1184 | 1208 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabSpectra), _translate("MainWindow", "Spectra", None)) |
|
1185 | 1209 | self.specHeisGraphClear.setText(_translate("MainWindow", "Clear", None)) |
|
1186 | 1210 | self.specHeisOpOk.setText(_translate("MainWindow", "Ok", None)) |
|
1187 | 1211 | self.specHeisOpCobIncInt.setItemText(0, _translate("MainWindow", "Time Interval", None)) |
|
1188 | 1212 | self.specHeisOpCebIncoherent.setText(_translate("MainWindow", "Incoherent Intergration", None)) |
|
1189 | 1213 | self.tabWidgetSpectraHeis.setTabText(self.tabWidgetSpectraHeis.indexOf(self.tabopSpectraHeis), _translate("MainWindow", "Operation", None)) |
|
1190 | 1214 | self.label_54.setText(_translate("MainWindow", "Prefix", None)) |
|
1191 | 1215 | self.specHeisGraphToolPath.setText(_translate("MainWindow", "...", None)) |
|
1192 | 1216 | self.label_62.setText(_translate("MainWindow", "ymin - ymax", None)) |
|
1193 | 1217 | self.label_63.setText(_translate("MainWindow", "Tmin - Tmax:", None)) |
|
1194 | 1218 | self.label_64.setText(_translate("MainWindow", "Time Range:", None)) |
|
1195 | 1219 | self.label_65.setText(_translate("MainWindow", "Wr Period", None)) |
|
1196 | 1220 | self.label_60.setText(_translate("MainWindow", "Channel List:", None)) |
|
1197 | 1221 | self.label_61.setText(_translate("MainWindow", "xmin - xmax", None)) |
|
1198 | 1222 | self.label_56.setText(_translate("MainWindow", "Save", None)) |
|
1199 | 1223 | self.label_57.setText(_translate("MainWindow", "ftp", None)) |
|
1200 | 1224 | self.label_58.setText(_translate("MainWindow", "Spectra Plot", None)) |
|
1201 | 1225 | self.label_53.setText(_translate("MainWindow", "Path", None)) |
|
1202 | 1226 | self.label_55.setText(_translate("MainWindow", "Show", None)) |
|
1203 | 1227 | self.label_59.setText(_translate("MainWindow", "RTI PLot", None)) |
|
1204 | 1228 | self.tabWidgetSpectraHeis.setTabText(self.tabWidgetSpectraHeis.indexOf(self.tabgraphSpectraHeis), _translate("MainWindow", "Graphics", None)) |
|
1205 | 1229 | self.label_67.setText(_translate("MainWindow", "Path:", None)) |
|
1206 | 1230 | self.label_68.setText(_translate("MainWindow", "Blocks per File:", None)) |
|
1207 | 1231 | self.label_66.setText(_translate("MainWindow", "Type:", None)) |
|
1208 | 1232 | self.specHeisOutputToolPath.setText(_translate("MainWindow", "...", None)) |
|
1209 | 1233 | self.specHeisOutputComdata.setItemText(0, _translate("MainWindow", ".fits", None)) |
|
1210 | 1234 | self.label_69.setText(_translate("MainWindow", "Metada", None)) |
|
1211 | 1235 | self.specHeisOutputMetadaToolPath.setText(_translate("MainWindow", "...", None)) |
|
1212 | 1236 | self.tabWidgetSpectraHeis.setTabText(self.tabWidgetSpectraHeis.indexOf(self.taboutputSpectraHeis), _translate("MainWindow", "Output", None)) |
|
1213 | 1237 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabSpectraHeis), _translate("MainWindow", "SpectraHeis", None)) |
|
1214 | 1238 | self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tabopCorrelation), _translate("MainWindow", "Operation", None)) |
|
1215 | 1239 | self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tabopCorrelation1), _translate("MainWindow", "Graphics", None)) |
|
1216 | 1240 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabCorrelation), _translate("MainWindow", "Correlation", None)) |
|
1241 | ||
|
1242 | ||
|
1217 | 1243 | self.tabConsole.setTabText(self.tabConsole.indexOf(self.tab_5), _translate("MainWindow", "Console", None)) |
|
1244 | ||
|
1218 | 1245 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabProjectProperty), _translate("MainWindow", "Project Property", None)) |
|
1219 | 1246 | self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None)) |
|
1220 | 1247 | self.menuProject.setTitle(_translate("MainWindow", "Project", None)) |
|
1221 | 1248 | self.menuRun.setTitle(_translate("MainWindow", "Run", None)) |
|
1222 | 1249 | self.menuOptions.setTitle(_translate("MainWindow", "Options", None)) |
|
1223 | 1250 | self.menuHelp.setTitle(_translate("MainWindow", "Help", None)) |
|
1224 | 1251 | self.actionOpen.setText(_translate("MainWindow", "Open", None)) |
|
1225 | 1252 | self.actionCreate.setText(_translate("MainWindow", "Create", None)) |
|
1226 | 1253 | self.actionSave.setText(_translate("MainWindow", "Save", None)) |
|
1227 | 1254 | self.actionClose.setText(_translate("MainWindow", "Close", None)) |
|
1228 | 1255 | self.actionStart.setText(_translate("MainWindow", "Start", None)) |
|
1229 | 1256 | self.actionPause.setText(_translate("MainWindow", "Pause", None)) |
|
1257 | self.actionStop.setText(_translate("MainWindow", "Stop", None)) | |
|
1230 | 1258 | self.actionAbout.setText(_translate("MainWindow", "About", None)) |
|
1231 | 1259 | self.actionOpenToolbar.setText(_translate("MainWindow", "openToolbar", None)) |
|
1232 | 1260 | self.actionOpenToolbar.setToolTip(_translate("MainWindow", "Open Project", None)) |
|
1233 | 1261 | self.actionCreateToolbar.setText(_translate("MainWindow", "createToolbar", None)) |
|
1234 | 1262 | self.actionCreateToolbar.setToolTip(_translate("MainWindow", "Create Ṕroject", None)) |
|
1235 | 1263 | self.actionSaveToolbar.setText(_translate("MainWindow", "saveToolbar", None)) |
|
1236 | 1264 | self.actionSaveToolbar.setToolTip(_translate("MainWindow", "Save Project", None)) |
|
1237 | 1265 | self.actionStarToolbar.setText(_translate("MainWindow", "starToolbar", None)) |
|
1238 | 1266 | self.actionStarToolbar.setToolTip(_translate("MainWindow", "Start ", None)) |
|
1239 | 1267 | self.actionStopToolbar.setText(_translate("MainWindow", "stopToolbar", None)) |
|
1240 | 1268 | self.actionStopToolbar.setToolTip(_translate("MainWindow", "Stop", None)) |
|
1241 | 1269 | self.actionPauseToolbar.setText(_translate("MainWindow", "pauseToolbar", None)) |
|
1242 | 1270 | self.actionPauseToolbar.setToolTip(_translate("MainWindow", "Pause", None)) |
|
1243 | 1271 | self.actionAddPU.setText(_translate("MainWindow", "Add Processing Unit", None)) |
|
1244 | 1272 | self.actionFTP.setText(_translate("MainWindow", "FTP", None)) |
|
1245 | 1273 | |
|
1246 | 1274 | |
|
1247 |
class Ui_ |
|
|
1275 | class Ui_EnvWindow(object): | |
|
1276 | ||
|
1277 | def changeIcon(self): | |
|
1278 | ||
|
1279 | if self.a==1: | |
|
1280 | iconPauseRed = QtGui.QIcon() | |
|
1281 | iconPauseRed.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/pausered.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1282 | self.actionPauseToolbar.setIcon(iconPauseRed) | |
|
1283 | self.a+=1 | |
|
1284 | return 0 | |
|
1285 | if self.a==2: | |
|
1286 | iconPause = QtGui.QIcon() | |
|
1287 | iconPause.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/pause.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1288 | self.actionPauseToolbar.setIcon(iconPause) | |
|
1289 | self.a-=1 | |
|
1290 | return 0 | |
|
1291 | ||
|
1292 | def setupUi(self, MainWindow): | |
|
1293 | ||
|
1294 | MainWindow.setObjectName(_fromUtf8("MainWindow")) | |
|
1295 | MainWindow.resize(1203, 711) | |
|
1296 | ||
|
1297 | self.centralWidget = QtGui.QWidget(MainWindow) | |
|
1298 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) | |
|
1299 | self.gridLayout_16 = QtGui.QGridLayout(self.centralWidget) | |
|
1300 | self.gridLayout_16.setObjectName(_fromUtf8("gridLayout_16")) | |
|
1301 | self.splitter_2 = QtGui.QSplitter(self.centralWidget) | |
|
1302 | self.splitter_2.setOrientation(QtCore.Qt.Horizontal) | |
|
1303 | self.splitter_2.setObjectName(_fromUtf8("splitter_2")) | |
|
1304 | self.projectExplorerTree = QtGui.QTreeView(self.splitter_2) | |
|
1305 | self.projectExplorerTree.setObjectName(_fromUtf8("projectExplorerTree")) | |
|
1306 | self.splitter = QtGui.QSplitter(self.splitter_2) | |
|
1307 | self.splitter.setOrientation(QtCore.Qt.Vertical) | |
|
1308 | self.splitter.setObjectName(_fromUtf8("splitter")) | |
|
1309 | self.tabWidgetProject = QtGui.QTabWidget(self.splitter) | |
|
1310 | self.tabWidgetProject.setMinimumSize(QtCore.QSize(0, 278)) | |
|
1311 | self.tabWidgetProject.setMaximumSize(QtCore.QSize(16777215, 16777215)) | |
|
1312 | self.tabWidgetProject.setObjectName(_fromUtf8("tabWidgetProject")) | |
|
1313 | ||
|
1314 | self.tabConsole = QtGui.QTabWidget(self.splitter) | |
|
1315 | self.tabConsole.setMinimumSize(QtCore.QSize(0, 0)) | |
|
1316 | self.tabConsole.setObjectName(_fromUtf8("tabConsole")) | |
|
1317 | self.tab_5 = QtGui.QWidget() | |
|
1318 | self.tab_5.setObjectName(_fromUtf8("tab_5")) | |
|
1319 | self.gridLayout_4 = QtGui.QGridLayout(self.tab_5) | |
|
1320 | self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) | |
|
1321 | self.console = QtGui.QTextEdit(self.tab_5) | |
|
1322 | self.console.setObjectName(_fromUtf8("console")) | |
|
1323 | self.gridLayout_4.addWidget(self.console, 0, 0, 1, 1) | |
|
1324 | self.tabConsole.addTab(self.tab_5, _fromUtf8("")) | |
|
1325 | self.tabWidget = QtGui.QTabWidget(self.splitter_2) | |
|
1326 | self.tabWidget.setObjectName(_fromUtf8("tabWidget")) | |
|
1327 | self.tabProjectProperty = QtGui.QWidget() | |
|
1328 | self.tabProjectProperty.setObjectName(_fromUtf8("tabProjectProperty")) | |
|
1329 | self.gridLayout_8 = QtGui.QGridLayout(self.tabProjectProperty) | |
|
1330 | self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8")) | |
|
1331 | self.treeProjectProperties = QtGui.QTreeView(self.tabProjectProperty) | |
|
1332 | self.treeProjectProperties.setObjectName(_fromUtf8("treeProjectProperties")) | |
|
1333 | self.gridLayout_8.addWidget(self.treeProjectProperties, 0, 0, 1, 1) | |
|
1334 | self.tabWidget.addTab(self.tabProjectProperty, _fromUtf8("")) | |
|
1335 | self.gridLayout_16.addWidget(self.splitter_2, 1, 0, 1, 1) | |
|
1336 | ||
|
1337 | MainWindow.setCentralWidget(self.centralWidget) | |
|
1338 | self.toolBar = QtGui.QToolBar(MainWindow) | |
|
1339 | self.toolBar.setObjectName(_fromUtf8("toolBar")) | |
|
1340 | MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) | |
|
1341 | ||
|
1342 | self.menuBar = QtGui.QMenuBar(MainWindow) | |
|
1343 | self.menuBar.setGeometry(QtCore.QRect(0, 0, 1065, 25)) | |
|
1344 | self.menuBar.setObjectName(_fromUtf8("menuBar")) | |
|
1345 | self.menuProject = QtGui.QMenu(self.menuBar) | |
|
1346 | self.menuProject.setObjectName(_fromUtf8("menuProject")) | |
|
1347 | self.menuRun = QtGui.QMenu(self.menuBar) | |
|
1348 | self.menuRun.setObjectName(_fromUtf8("menuRun")) | |
|
1349 | self.menuOptions = QtGui.QMenu(self.menuBar) | |
|
1350 | self.menuOptions.setObjectName(_fromUtf8("menuOptions")) | |
|
1351 | self.menuHelp = QtGui.QMenu(self.menuBar) | |
|
1352 | self.menuHelp.setObjectName(_fromUtf8("menuHelp")) | |
|
1353 | MainWindow.setMenuBar(self.menuBar) | |
|
1354 | ||
|
1355 | iconOpen = QtGui.QIcon() | |
|
1356 | iconOpen.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/open.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1357 | iconCreate = QtGui.QIcon() | |
|
1358 | iconCreate.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/project.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1359 | iconSave = QtGui.QIcon() | |
|
1360 | iconSave.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/saveicon.jpeg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1361 | iconStart = QtGui.QIcon() | |
|
1362 | iconStart.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/startServer.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1363 | iconStop = QtGui.QIcon() | |
|
1364 | iconStop.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/stopServer.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1365 | iconPause = QtGui.QIcon() | |
|
1366 | iconPause.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/pause.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1367 | iconAddPU = QtGui.QIcon() | |
|
1368 | iconAddPU.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/add_PU.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1369 | ||
|
1370 | self.actionOpen = QtGui.QAction(MainWindow) | |
|
1371 | self.actionOpen.setIcon(iconOpen) | |
|
1372 | self.actionOpen.setObjectName(_fromUtf8("actionOpen")) | |
|
1373 | self.actionCreate = QtGui.QAction(MainWindow) | |
|
1374 | self.actionCreate.setIcon(iconCreate) | |
|
1375 | self.actionCreate.setObjectName(_fromUtf8("actionCreate")) | |
|
1376 | self.actionSave = QtGui.QAction(MainWindow) | |
|
1377 | self.actionSave.setIcon(iconSave) | |
|
1378 | self.actionSave.setObjectName(_fromUtf8("actionSave")) | |
|
1379 | self.actionClose = QtGui.QAction(MainWindow) | |
|
1380 | self.actionClose.setObjectName(_fromUtf8("actionClose")) | |
|
1381 | self.actionStart = QtGui.QAction(MainWindow) | |
|
1382 | self.actionStart.setIcon(iconStart) | |
|
1383 | self.actionStart.setObjectName(_fromUtf8("actionStart")) | |
|
1384 | self.actionPause = QtGui.QAction(MainWindow) | |
|
1385 | self.actionPause.setIcon(iconPause) | |
|
1386 | self.actionPause.setObjectName(_fromUtf8("actionPause")) | |
|
1387 | self.actionStop = QtGui.QAction(MainWindow) | |
|
1388 | self.actionStop.setIcon(iconStop) | |
|
1389 | self.actionStop.setObjectName(_fromUtf8("actionStop")) | |
|
1390 | self.actionAbout = QtGui.QAction(MainWindow) | |
|
1391 | self.actionAbout.setObjectName(_fromUtf8("actionAbout")) | |
|
1392 | self.actionOpenToolbar = QtGui.QAction(MainWindow) | |
|
1393 | self.actionOpenToolbar.setIcon(iconOpen) | |
|
1394 | self.actionOpenToolbar.setObjectName(_fromUtf8("actionOpenToolbar")) | |
|
1395 | self.actionCreateToolbar = QtGui.QAction(MainWindow) | |
|
1396 | self.actionCreateToolbar.setIcon(iconCreate) | |
|
1397 | self.actionCreateToolbar.setObjectName(_fromUtf8("actionCreateToolbar")) | |
|
1398 | self.actionSaveToolbar = QtGui.QAction(MainWindow) | |
|
1399 | self.actionSaveToolbar.setIcon(iconSave) | |
|
1400 | self.actionSaveToolbar.setObjectName(_fromUtf8("actionSaveToolbar")) | |
|
1401 | self.actionStarToolbar = QtGui.QAction(MainWindow) | |
|
1402 | self.actionStarToolbar.setIcon(iconStart) | |
|
1403 | self.actionStarToolbar.setObjectName(_fromUtf8("actionStarToolbar")) | |
|
1404 | self.actionStopToolbar = QtGui.QAction(MainWindow) | |
|
1405 | self.actionStopToolbar.setIcon(iconStop) | |
|
1406 | self.actionStopToolbar.setObjectName(_fromUtf8("actionStopToolbar")) | |
|
1407 | self.actionPauseToolbar = QtGui.QAction(MainWindow) | |
|
1408 | self.actionPause.setIcon(iconPause) | |
|
1409 | self.actionPauseToolbar.setIcon(iconPause) | |
|
1410 | self.actionPauseToolbar.setObjectName(_fromUtf8("actionPauseToolbar")) | |
|
1411 | self.actionAddPU = QtGui.QAction(MainWindow) | |
|
1412 | self.actionAddPU.setIcon(iconAddPU) | |
|
1413 | self.actionAddPU.setObjectName(_fromUtf8("actionAddPU")) | |
|
1414 | self.actionFTP = QtGui.QAction(MainWindow) | |
|
1415 | self.actionFTP.setObjectName(_fromUtf8("actionFTP")) | |
|
1416 | self.toolBar.addAction(self.actionOpenToolbar) | |
|
1417 | self.toolBar.addSeparator() | |
|
1418 | self.toolBar.addAction(self.actionCreateToolbar) | |
|
1419 | self.toolBar.addSeparator() | |
|
1420 | self.toolBar.addAction(self.actionAddPU) | |
|
1421 | self.toolBar.addSeparator() | |
|
1422 | self.toolBar.addAction(self.actionSaveToolbar) | |
|
1423 | self.toolBar.addSeparator() | |
|
1424 | self.toolBar.addAction(self.actionStarToolbar) | |
|
1425 | self.toolBar.addSeparator() | |
|
1426 | self.toolBar.addAction(self.actionPauseToolbar) | |
|
1427 | self.toolBar.addSeparator() | |
|
1428 | self.toolBar.addAction(self.actionStopToolbar) | |
|
1429 | self.toolBar.addSeparator() | |
|
1430 | self.a=1 | |
|
1431 | self.actionPauseToolbar.triggered.connect(self.changeIcon) | |
|
1432 | ||
|
1433 | self.menuProject.addAction(self.actionOpen) | |
|
1434 | self.menuProject.addAction(self.actionCreate) | |
|
1435 | self.menuProject.addAction(self.actionSave) | |
|
1436 | self.menuProject.addAction(self.actionClose) | |
|
1437 | self.menuRun.addAction(self.actionStart) | |
|
1438 | self.menuRun.addAction(self.actionPause) | |
|
1439 | self.menuRun.addAction(self.actionStop) | |
|
1440 | self.menuOptions.addAction(self.actionFTP) | |
|
1441 | self.menuHelp.addAction(self.actionAbout) | |
|
1442 | self.menuBar.addAction(self.menuProject.menuAction()) | |
|
1443 | self.menuBar.addAction(self.menuRun.menuAction()) | |
|
1444 | self.menuBar.addAction(self.menuOptions.menuAction()) | |
|
1445 | self.menuBar.addAction(self.menuHelp.menuAction()) | |
|
1446 | ||
|
1447 | self.tabConsole.setCurrentIndex(0) | |
|
1448 | self.tabWidget.setCurrentIndex(0) | |
|
1449 | ||
|
1450 | def retranslateUi(self, MainWindow): | |
|
1451 | ||
|
1452 | MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None)) | |
|
1453 | ||
|
1454 | self.tabConsole.setTabText(self.tabConsole.indexOf(self.tab_5), _translate("MainWindow", "Console", None)) | |
|
1455 | ||
|
1456 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabProjectProperty), _translate("MainWindow", "Project Property", None)) | |
|
1457 | self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None)) | |
|
1458 | self.menuProject.setTitle(_translate("MainWindow", "Project", None)) | |
|
1459 | self.menuRun.setTitle(_translate("MainWindow", "Run", None)) | |
|
1460 | self.menuOptions.setTitle(_translate("MainWindow", "Options", None)) | |
|
1461 | self.menuHelp.setTitle(_translate("MainWindow", "Help", None)) | |
|
1462 | self.actionOpen.setText(_translate("MainWindow", "Open", None)) | |
|
1463 | self.actionCreate.setText(_translate("MainWindow", "Create", None)) | |
|
1464 | self.actionSave.setText(_translate("MainWindow", "Save", None)) | |
|
1465 | self.actionClose.setText(_translate("MainWindow", "Close", None)) | |
|
1466 | self.actionStart.setText(_translate("MainWindow", "Start", None)) | |
|
1467 | self.actionPause.setText(_translate("MainWindow", "Pause", None)) | |
|
1468 | self.actionStop.setText(_translate("MainWindow", "Stop", None)) | |
|
1469 | self.actionAbout.setText(_translate("MainWindow", "About", None)) | |
|
1470 | self.actionOpenToolbar.setText(_translate("MainWindow", "openToolbar", None)) | |
|
1471 | self.actionOpenToolbar.setToolTip(_translate("MainWindow", "Open Project", None)) | |
|
1472 | self.actionCreateToolbar.setText(_translate("MainWindow", "createToolbar", None)) | |
|
1473 | self.actionCreateToolbar.setToolTip(_translate("MainWindow", "Create Ṕroject", None)) | |
|
1474 | self.actionSaveToolbar.setText(_translate("MainWindow", "saveToolbar", None)) | |
|
1475 | self.actionSaveToolbar.setToolTip(_translate("MainWindow", "Save Project", None)) | |
|
1476 | self.actionStarToolbar.setText(_translate("MainWindow", "starToolbar", None)) | |
|
1477 | self.actionStarToolbar.setToolTip(_translate("MainWindow", "Start ", None)) | |
|
1478 | self.actionStopToolbar.setText(_translate("MainWindow", "stopToolbar", None)) | |
|
1479 | self.actionStopToolbar.setToolTip(_translate("MainWindow", "Stop", None)) | |
|
1480 | self.actionPauseToolbar.setText(_translate("MainWindow", "pauseToolbar", None)) | |
|
1481 | self.actionPauseToolbar.setToolTip(_translate("MainWindow", "Pause", None)) | |
|
1482 | self.actionAddPU.setText(_translate("MainWindow", "Add Processing Unit", None)) | |
|
1483 | self.actionFTP.setText(_translate("MainWindow", "FTP", None)) | |
|
1484 | ||
|
1485 | class Ui_BasicWindow(Ui_EnvWindow, Ui_ProjectTab, Ui_VoltageTab, Ui_SpectraTab, Ui_SpectraHeisTab, Ui_CorrelationTab): | |
|
1248 | 1486 | |
|
1249 |
def setupUi(self, |
|
|
1487 | def setupUi(self, MainWindow): | |
|
1488 | ||
|
1489 | Ui_EnvWindow.setupUi(self, MainWindow) | |
|
1250 | 1490 | |
|
1251 |
Ui_ |
|
|
1491 | Ui_ProjectTab.setupUi(self) | |
|
1492 | Ui_VoltageTab.setupUi(self) | |
|
1493 | Ui_SpectraTab.setupUi(self) | |
|
1494 | Ui_SpectraHeisTab.setupUi(self) | |
|
1495 | Ui_CorrelationTab.setupUi(self) | |
|
1252 | 1496 | |
|
1253 |
|
|
|
1497 | self.retranslateUi(MainWindow) | |
|
1498 | ||
|
1499 | QtCore.QMetaObject.connectSlotsByName(MainWindow) | |
|
1500 | ||
|
1501 | def retranslateUi(self, MainWindow): | |
|
1502 | ||
|
1503 | Ui_EnvWindow.retranslateUi(self, MainWindow) | |
|
1504 | ||
|
1505 | Ui_ProjectTab.retranslateUi(self) | |
|
1506 | Ui_VoltageTab.retranslateUi(self) | |
|
1507 | Ui_SpectraTab.retranslateUi(self) | |
|
1508 | Ui_SpectraHeisTab.retranslateUi(self) | |
|
1509 | Ui_CorrelationTab.retranslateUi(self) | |
|
1254 | 1510 | |
|
1255 | Ui_MainWindow.retranslateUi(self,BasicWindow) | |
|
1256 | ||
|
1257 | ||
|
1258 | 1511 | |
|
1259 | 1512 | class Ui_AdvancedWindow(Ui_MainWindow): |
|
1260 | 1513 | |
|
1261 | 1514 | def setupUi(self, AdvancedWindow): |
|
1262 | 1515 | |
|
1263 | 1516 | Ui_MainWindow.setupUi(self, AdvancedWindow) |
|
1264 | 1517 | |
|
1265 | 1518 | def retranslateUi(self, AdvancedWindow): |
|
1266 | 1519 | |
|
1267 | 1520 | Ui_MainWindow.retranslateUi(self, AdvancedWindow) |
|
1268 | 1521 | |
|
1269 | 1522 | |
|
1270 | 1523 | |
|
1271 | 1524 | if __name__ == "__main__": |
|
1272 | 1525 | import sys |
|
1273 | 1526 | app = QtGui.QApplication(sys.argv) |
|
1274 | 1527 | MainWindow = QtGui.QMainWindow() |
|
1275 |
ui = Ui_ |
|
|
1528 | ui = Ui_BasicWindow() | |
|
1276 | 1529 | ui.setupUi(MainWindow) |
|
1277 | 1530 | MainWindow.show() |
|
1278 | 1531 | sys.exit(app.exec_()) |
|
1279 | 1532 |
|
1 | NO CONTENT: modified file | |
The requested commit or file is too big and content was truncated. Show full diff |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed |
|
1 | NO CONTENT: file was removed | |
This diff has been collapsed as it changes many lines, (538 lines changed) Show them Hide them |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now