@@ -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 |
@@ -0,0 +1,415 | |||||
|
1 | from PyQt4 import QtCore, QtGui | |||
|
2 | ||||
|
3 | try: | |||
|
4 | _fromUtf8 = QtCore.QString.fromUtf8 | |||
|
5 | except AttributeError: | |||
|
6 | def _fromUtf8(s): | |||
|
7 | return s | |||
|
8 | ||||
|
9 | try: | |||
|
10 | _encoding = QtGui.QApplication.UnicodeUTF8 | |||
|
11 | def _translate(context, text, disambig): | |||
|
12 | return QtGui.QApplication.translate(context, text, disambig, _encoding) | |||
|
13 | except AttributeError: | |||
|
14 | def _translate(context, text, disambig): | |||
|
15 | return QtGui.QApplication.translate(context, text, disambig) | |||
|
16 | ||||
|
17 | class Ui_SpectraTab(object): | |||
|
18 | ||||
|
19 | def setupUi(self): | |||
|
20 | ||||
|
21 | self.tabSpectra = QtGui.QWidget() | |||
|
22 | self.tabSpectra.setObjectName(_fromUtf8("tabSpectra")) | |||
|
23 | self.gridLayout_7 = QtGui.QGridLayout(self.tabSpectra) | |||
|
24 | self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) | |||
|
25 | self.frame_5 = QtGui.QFrame(self.tabSpectra) | |||
|
26 | self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
27 | self.frame_5.setFrameShadow(QtGui.QFrame.Raised) | |||
|
28 | self.frame_5.setObjectName(_fromUtf8("frame_5")) | |||
|
29 | self.gridLayout_18 = QtGui.QGridLayout(self.frame_5) | |||
|
30 | self.gridLayout_18.setObjectName(_fromUtf8("gridLayout_18")) | |||
|
31 | self.specOpOk = QtGui.QPushButton(self.frame_5) | |||
|
32 | self.specOpOk.setObjectName(_fromUtf8("specOpOk")) | |||
|
33 | self.gridLayout_18.addWidget(self.specOpOk, 0, 0, 1, 1) | |||
|
34 | self.specGraphClear = QtGui.QPushButton(self.frame_5) | |||
|
35 | self.specGraphClear.setObjectName(_fromUtf8("specGraphClear")) | |||
|
36 | self.gridLayout_18.addWidget(self.specGraphClear, 0, 1, 1, 1) | |||
|
37 | self.gridLayout_7.addWidget(self.frame_5, 1, 1, 1, 1) | |||
|
38 | self.tabWidgetSpectra = QtGui.QTabWidget(self.tabSpectra) | |||
|
39 | self.tabWidgetSpectra.setObjectName(_fromUtf8("tabWidgetSpectra")) | |||
|
40 | self.tabopSpectra = QtGui.QWidget() | |||
|
41 | self.tabopSpectra.setObjectName(_fromUtf8("tabopSpectra")) | |||
|
42 | self.gridLayout_5 = QtGui.QGridLayout(self.tabopSpectra) | |||
|
43 | self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) | |||
|
44 | self.specOpCebCrossSpectra = QtGui.QCheckBox(self.tabopSpectra) | |||
|
45 | self.specOpCebCrossSpectra.setObjectName(_fromUtf8("specOpCebCrossSpectra")) | |||
|
46 | self.gridLayout_5.addWidget(self.specOpCebCrossSpectra, 4, 0, 1, 2) | |||
|
47 | self.specOpComChannel = QtGui.QComboBox(self.tabopSpectra) | |||
|
48 | self.specOpComChannel.setObjectName(_fromUtf8("specOpComChannel")) | |||
|
49 | self.specOpComChannel.addItem(_fromUtf8("")) | |||
|
50 | self.specOpComChannel.addItem(_fromUtf8("")) | |||
|
51 | self.gridLayout_5.addWidget(self.specOpComChannel, 8, 0, 1, 2) | |||
|
52 | self.specOpChannel = QtGui.QLineEdit(self.tabopSpectra) | |||
|
53 | self.specOpChannel.setObjectName(_fromUtf8("specOpChannel")) | |||
|
54 | self.gridLayout_5.addWidget(self.specOpChannel, 8, 3, 1, 2) | |||
|
55 | self.specOpComHeights = QtGui.QComboBox(self.tabopSpectra) | |||
|
56 | self.specOpComHeights.setObjectName(_fromUtf8("specOpComHeights")) | |||
|
57 | self.specOpComHeights.addItem(_fromUtf8("")) | |||
|
58 | self.specOpComHeights.addItem(_fromUtf8("")) | |||
|
59 | self.gridLayout_5.addWidget(self.specOpComHeights, 11, 0, 1, 2) | |||
|
60 | self.specOpHeights = QtGui.QLineEdit(self.tabopSpectra) | |||
|
61 | self.specOpHeights.setObjectName(_fromUtf8("specOpHeights")) | |||
|
62 | self.gridLayout_5.addWidget(self.specOpHeights, 11, 3, 1, 2) | |||
|
63 | self.specOpIncoherent = QtGui.QLineEdit(self.tabopSpectra) | |||
|
64 | self.specOpIncoherent.setObjectName(_fromUtf8("specOpIncoherent")) | |||
|
65 | self.gridLayout_5.addWidget(self.specOpIncoherent, 13, 3, 1, 2) | |||
|
66 | self.specOpCebRemoveDC = QtGui.QCheckBox(self.tabopSpectra) | |||
|
67 | self.specOpCebRemoveDC.setObjectName(_fromUtf8("specOpCebRemoveDC")) | |||
|
68 | self.gridLayout_5.addWidget(self.specOpCebRemoveDC, 14, 0, 1, 2) | |||
|
69 | self.specOpCebHeights = QtGui.QCheckBox(self.tabopSpectra) | |||
|
70 | self.specOpCebHeights.setObjectName(_fromUtf8("specOpCebHeights")) | |||
|
71 | self.gridLayout_5.addWidget(self.specOpCebHeights, 9, 0, 1, 1) | |||
|
72 | self.specOpCebChannel = QtGui.QCheckBox(self.tabopSpectra) | |||
|
73 | self.specOpCebChannel.setObjectName(_fromUtf8("specOpCebChannel")) | |||
|
74 | self.gridLayout_5.addWidget(self.specOpCebChannel, 7, 0, 1, 1) | |||
|
75 | self.specOppairsList = QtGui.QLineEdit(self.tabopSpectra) | |||
|
76 | self.specOppairsList.setObjectName(_fromUtf8("specOppairsList")) | |||
|
77 | self.gridLayout_5.addWidget(self.specOppairsList, 6, 3, 1, 2) | |||
|
78 | self.specOpnFFTpoints = QtGui.QLineEdit(self.tabopSpectra) | |||
|
79 | self.specOpnFFTpoints.setObjectName(_fromUtf8("specOpnFFTpoints")) | |||
|
80 | self.gridLayout_5.addWidget(self.specOpnFFTpoints, 2, 3, 1, 2) | |||
|
81 | self.label_31 = QtGui.QLabel(self.tabopSpectra) | |||
|
82 | self.label_31.setObjectName(_fromUtf8("label_31")) | |||
|
83 | self.gridLayout_5.addWidget(self.label_31, 6, 0, 1, 2) | |||
|
84 | self.label_26 = QtGui.QLabel(self.tabopSpectra) | |||
|
85 | self.label_26.setObjectName(_fromUtf8("label_26")) | |||
|
86 | self.gridLayout_5.addWidget(self.label_26, 2, 0, 1, 2) | |||
|
87 | self.specOpCebIncoherent = QtGui.QCheckBox(self.tabopSpectra) | |||
|
88 | self.specOpCebIncoherent.setObjectName(_fromUtf8("specOpCebIncoherent")) | |||
|
89 | self.gridLayout_5.addWidget(self.specOpCebIncoherent, 12, 0, 1, 1) | |||
|
90 | self.specOpCobIncInt = QtGui.QComboBox(self.tabopSpectra) | |||
|
91 | self.specOpCobIncInt.setObjectName(_fromUtf8("specOpCobIncInt")) | |||
|
92 | self.specOpCobIncInt.addItem(_fromUtf8("")) | |||
|
93 | self.specOpCobIncInt.addItem(_fromUtf8("")) | |||
|
94 | self.gridLayout_5.addWidget(self.specOpCobIncInt, 13, 0, 1, 2) | |||
|
95 | spacerItem9 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
96 | self.gridLayout_5.addItem(spacerItem9, 12, 3, 1, 1) | |||
|
97 | self.specOpCebRadarfrequency = QtGui.QCheckBox(self.tabopSpectra) | |||
|
98 | self.specOpCebRadarfrequency.setObjectName(_fromUtf8("specOpCebRadarfrequency")) | |||
|
99 | self.gridLayout_5.addWidget(self.specOpCebRadarfrequency, 0, 0, 1, 2) | |||
|
100 | spacerItem10 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
101 | self.gridLayout_5.addItem(spacerItem10, 9, 3, 1, 1) | |||
|
102 | spacerItem11 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
103 | self.gridLayout_5.addItem(spacerItem11, 7, 3, 1, 1) | |||
|
104 | self.specOpRadarfrequency = QtGui.QLineEdit(self.tabopSpectra) | |||
|
105 | self.specOpRadarfrequency.setObjectName(_fromUtf8("specOpRadarfrequency")) | |||
|
106 | self.gridLayout_5.addWidget(self.specOpRadarfrequency, 0, 3, 1, 2) | |||
|
107 | spacerItem12 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
108 | self.gridLayout_5.addItem(spacerItem12, 4, 3, 1, 1) | |||
|
109 | self.label_21 = QtGui.QLabel(self.tabopSpectra) | |||
|
110 | self.label_21.setObjectName(_fromUtf8("label_21")) | |||
|
111 | self.gridLayout_5.addWidget(self.label_21, 1, 0, 1, 1) | |||
|
112 | self.specOpProfiles = QtGui.QLineEdit(self.tabopSpectra) | |||
|
113 | self.specOpProfiles.setObjectName(_fromUtf8("specOpProfiles")) | |||
|
114 | self.gridLayout_5.addWidget(self.specOpProfiles, 1, 3, 1, 2) | |||
|
115 | self.specOpCebRemoveInt = QtGui.QCheckBox(self.tabopSpectra) | |||
|
116 | self.specOpCebRemoveInt.setObjectName(_fromUtf8("specOpCebRemoveInt")) | |||
|
117 | self.gridLayout_5.addWidget(self.specOpCebRemoveInt, 15, 0, 1, 1) | |||
|
118 | spacerItem13 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
119 | self.gridLayout_5.addItem(spacerItem13, 15, 3, 1, 1) | |||
|
120 | self.label_70 = QtGui.QLabel(self.tabopSpectra) | |||
|
121 | self.label_70.setObjectName(_fromUtf8("label_70")) | |||
|
122 | self.gridLayout_5.addWidget(self.label_70, 3, 0, 1, 1) | |||
|
123 | self.specOpCebgetNoise = QtGui.QCheckBox(self.tabopSpectra) | |||
|
124 | self.specOpCebgetNoise.setObjectName(_fromUtf8("specOpCebgetNoise")) | |||
|
125 | self.gridLayout_5.addWidget(self.specOpCebgetNoise, 16, 0, 1, 1) | |||
|
126 | self.specOpippFactor = QtGui.QLineEdit(self.tabopSpectra) | |||
|
127 | self.specOpippFactor.setObjectName(_fromUtf8("specOpippFactor")) | |||
|
128 | self.gridLayout_5.addWidget(self.specOpippFactor, 3, 3, 1, 2) | |||
|
129 | self.specOpComRemoveDC = QtGui.QComboBox(self.tabopSpectra) | |||
|
130 | self.specOpComRemoveDC.setObjectName(_fromUtf8("specOpComRemoveDC")) | |||
|
131 | self.specOpComRemoveDC.addItem(_fromUtf8("")) | |||
|
132 | self.specOpComRemoveDC.addItem(_fromUtf8("")) | |||
|
133 | self.gridLayout_5.addWidget(self.specOpComRemoveDC, 14, 3, 1, 2) | |||
|
134 | self.specOpgetNoise = QtGui.QLineEdit(self.tabopSpectra) | |||
|
135 | self.specOpgetNoise.setObjectName(_fromUtf8("specOpgetNoise")) | |||
|
136 | self.gridLayout_5.addWidget(self.specOpgetNoise, 16, 3, 1, 2) | |||
|
137 | self.tabWidgetSpectra.addTab(self.tabopSpectra, _fromUtf8("")) | |||
|
138 | self.tabgraphSpectra = QtGui.QWidget() | |||
|
139 | self.tabgraphSpectra.setObjectName(_fromUtf8("tabgraphSpectra")) | |||
|
140 | self.gridLayout_9 = QtGui.QGridLayout(self.tabgraphSpectra) | |||
|
141 | self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9")) | |||
|
142 | self.label_44 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
143 | self.label_44.setObjectName(_fromUtf8("label_44")) | |||
|
144 | self.gridLayout_9.addWidget(self.label_44, 10, 0, 1, 1) | |||
|
145 | spacerItem14 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |||
|
146 | self.gridLayout_9.addItem(spacerItem14, 14, 2, 1, 1) | |||
|
147 | self.label_20 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
148 | self.label_20.setObjectName(_fromUtf8("label_20")) | |||
|
149 | self.gridLayout_9.addWidget(self.label_20, 21, 0, 1, 1) | |||
|
150 | self.specGraphSaveRTInoise = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
151 | self.specGraphSaveRTInoise.setText(_fromUtf8("")) | |||
|
152 | self.specGraphSaveRTInoise.setObjectName(_fromUtf8("specGraphSaveRTInoise")) | |||
|
153 | self.gridLayout_9.addWidget(self.specGraphSaveRTInoise, 13, 4, 1, 1) | |||
|
154 | self.specGgraphmagnitud = QtGui.QLineEdit(self.tabgraphSpectra) | |||
|
155 | self.specGgraphmagnitud.setObjectName(_fromUtf8("specGgraphmagnitud")) | |||
|
156 | self.gridLayout_9.addWidget(self.specGgraphmagnitud, 20, 1, 1, 7) | |||
|
157 | self.specGraphSaveSpectra = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
158 | self.specGraphSaveSpectra.setText(_fromUtf8("")) | |||
|
159 | self.specGraphSaveSpectra.setObjectName(_fromUtf8("specGraphSaveSpectra")) | |||
|
160 | self.gridLayout_9.addWidget(self.specGraphSaveSpectra, 6, 4, 1, 1) | |||
|
161 | self.specGgraphChannelList = QtGui.QLineEdit(self.tabgraphSpectra) | |||
|
162 | self.specGgraphChannelList.setObjectName(_fromUtf8("specGgraphChannelList")) | |||
|
163 | self.gridLayout_9.addWidget(self.specGgraphChannelList, 15, 1, 1, 7) | |||
|
164 | self.label_25 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
165 | self.label_25.setObjectName(_fromUtf8("label_25")) | |||
|
166 | self.gridLayout_9.addWidget(self.label_25, 2, 0, 1, 1) | |||
|
167 | self.specGgraphTminTmax = QtGui.QLineEdit(self.tabgraphSpectra) | |||
|
168 | self.specGgraphTminTmax.setObjectName(_fromUtf8("specGgraphTminTmax")) | |||
|
169 | self.gridLayout_9.addWidget(self.specGgraphTminTmax, 21, 1, 1, 7) | |||
|
170 | spacerItem15 = QtGui.QSpacerItem(28, 15, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
171 | self.gridLayout_9.addItem(spacerItem15, 27, 6, 1, 2) | |||
|
172 | spacerItem16 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |||
|
173 | self.gridLayout_9.addItem(spacerItem16, 3, 5, 1, 1) | |||
|
174 | self.label_42 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
175 | self.label_42.setObjectName(_fromUtf8("label_42")) | |||
|
176 | self.gridLayout_9.addWidget(self.label_42, 9, 0, 1, 1) | |||
|
177 | self.label_16 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
178 | self.label_16.setObjectName(_fromUtf8("label_16")) | |||
|
179 | self.gridLayout_9.addWidget(self.label_16, 18, 0, 1, 1) | |||
|
180 | self.label_17 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
181 | self.label_17.setObjectName(_fromUtf8("label_17")) | |||
|
182 | self.gridLayout_9.addWidget(self.label_17, 19, 0, 1, 1) | |||
|
183 | self.label_18 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
184 | self.label_18.setObjectName(_fromUtf8("label_18")) | |||
|
185 | self.gridLayout_9.addWidget(self.label_18, 20, 0, 1, 1) | |||
|
186 | self.specGgraphFreq = QtGui.QLineEdit(self.tabgraphSpectra) | |||
|
187 | self.specGgraphFreq.setObjectName(_fromUtf8("specGgraphFreq")) | |||
|
188 | self.gridLayout_9.addWidget(self.specGgraphFreq, 16, 1, 1, 7) | |||
|
189 | self.specGgraphHeight = QtGui.QLineEdit(self.tabgraphSpectra) | |||
|
190 | self.specGgraphHeight.setObjectName(_fromUtf8("specGgraphHeight")) | |||
|
191 | self.gridLayout_9.addWidget(self.specGgraphHeight, 18, 1, 1, 7) | |||
|
192 | spacerItem17 = QtGui.QSpacerItem(49, 15, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
193 | self.gridLayout_9.addItem(spacerItem17, 27, 0, 1, 1) | |||
|
194 | self.label_24 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
195 | self.label_24.setObjectName(_fromUtf8("label_24")) | |||
|
196 | self.gridLayout_9.addWidget(self.label_24, 0, 0, 1, 1) | |||
|
197 | self.specGraphPrefix = QtGui.QLineEdit(self.tabgraphSpectra) | |||
|
198 | self.specGraphPrefix.setObjectName(_fromUtf8("specGraphPrefix")) | |||
|
199 | self.gridLayout_9.addWidget(self.specGraphPrefix, 2, 1, 1, 7) | |||
|
200 | self.specGgraphDbsrange = QtGui.QLineEdit(self.tabgraphSpectra) | |||
|
201 | self.specGgraphDbsrange.setObjectName(_fromUtf8("specGgraphDbsrange")) | |||
|
202 | self.gridLayout_9.addWidget(self.specGgraphDbsrange, 19, 1, 1, 7) | |||
|
203 | self.label_46 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
204 | self.label_46.setObjectName(_fromUtf8("label_46")) | |||
|
205 | self.gridLayout_9.addWidget(self.label_46, 11, 0, 1, 1) | |||
|
206 | self.label_22 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
207 | self.label_22.setObjectName(_fromUtf8("label_22")) | |||
|
208 | self.gridLayout_9.addWidget(self.label_22, 16, 0, 1, 1) | |||
|
209 | self.specGraphPath = QtGui.QLineEdit(self.tabgraphSpectra) | |||
|
210 | self.specGraphPath.setObjectName(_fromUtf8("specGraphPath")) | |||
|
211 | self.gridLayout_9.addWidget(self.specGraphPath, 0, 1, 1, 6) | |||
|
212 | self.label_41 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
213 | self.label_41.setObjectName(_fromUtf8("label_41")) | |||
|
214 | self.gridLayout_9.addWidget(self.label_41, 8, 0, 1, 1) | |||
|
215 | self.specGraphToolPath = QtGui.QToolButton(self.tabgraphSpectra) | |||
|
216 | self.specGraphToolPath.setObjectName(_fromUtf8("specGraphToolPath")) | |||
|
217 | self.gridLayout_9.addWidget(self.specGraphToolPath, 0, 7, 1, 1) | |||
|
218 | self.label_6 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
219 | self.label_6.setObjectName(_fromUtf8("label_6")) | |||
|
220 | self.gridLayout_9.addWidget(self.label_6, 15, 0, 1, 1) | |||
|
221 | self.label_40 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
222 | self.label_40.setObjectName(_fromUtf8("label_40")) | |||
|
223 | self.gridLayout_9.addWidget(self.label_40, 6, 0, 1, 1) | |||
|
224 | self.specGraphCebSpectraplot = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
225 | self.specGraphCebSpectraplot.setText(_fromUtf8("")) | |||
|
226 | self.specGraphCebSpectraplot.setObjectName(_fromUtf8("specGraphCebSpectraplot")) | |||
|
227 | self.gridLayout_9.addWidget(self.specGraphCebSpectraplot, 6, 2, 1, 1) | |||
|
228 | self.specGraphCebCrossSpectraplot = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
229 | self.specGraphCebCrossSpectraplot.setText(_fromUtf8("")) | |||
|
230 | self.specGraphCebCrossSpectraplot.setObjectName(_fromUtf8("specGraphCebCrossSpectraplot")) | |||
|
231 | self.gridLayout_9.addWidget(self.specGraphCebCrossSpectraplot, 8, 2, 1, 1) | |||
|
232 | self.specGraphCebRTIplot = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
233 | self.specGraphCebRTIplot.setText(_fromUtf8("")) | |||
|
234 | self.specGraphCebRTIplot.setObjectName(_fromUtf8("specGraphCebRTIplot")) | |||
|
235 | self.gridLayout_9.addWidget(self.specGraphCebRTIplot, 9, 2, 1, 1) | |||
|
236 | self.specGraphCebCoherencmap = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
237 | self.specGraphCebCoherencmap.setText(_fromUtf8("")) | |||
|
238 | self.specGraphCebCoherencmap.setObjectName(_fromUtf8("specGraphCebCoherencmap")) | |||
|
239 | self.gridLayout_9.addWidget(self.specGraphCebCoherencmap, 10, 2, 1, 1) | |||
|
240 | self.specGraphPowerprofile = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
241 | self.specGraphPowerprofile.setText(_fromUtf8("")) | |||
|
242 | self.specGraphPowerprofile.setObjectName(_fromUtf8("specGraphPowerprofile")) | |||
|
243 | self.gridLayout_9.addWidget(self.specGraphPowerprofile, 11, 2, 1, 1) | |||
|
244 | self.specGraphSaveCross = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
245 | self.specGraphSaveCross.setText(_fromUtf8("")) | |||
|
246 | self.specGraphSaveCross.setObjectName(_fromUtf8("specGraphSaveCross")) | |||
|
247 | self.gridLayout_9.addWidget(self.specGraphSaveCross, 8, 4, 1, 1) | |||
|
248 | self.specGraphftpSpectra = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
249 | self.specGraphftpSpectra.setText(_fromUtf8("")) | |||
|
250 | self.specGraphftpSpectra.setObjectName(_fromUtf8("specGraphftpSpectra")) | |||
|
251 | self.gridLayout_9.addWidget(self.specGraphftpSpectra, 6, 6, 1, 1) | |||
|
252 | spacerItem18 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
253 | self.gridLayout_9.addItem(spacerItem18, 4, 3, 1, 1) | |||
|
254 | self.specGraphSavePowerprofile = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
255 | self.specGraphSavePowerprofile.setText(_fromUtf8("")) | |||
|
256 | self.specGraphSavePowerprofile.setObjectName(_fromUtf8("specGraphSavePowerprofile")) | |||
|
257 | self.gridLayout_9.addWidget(self.specGraphSavePowerprofile, 11, 4, 1, 1) | |||
|
258 | self.specGraphSaveCoherencemap = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
259 | self.specGraphSaveCoherencemap.setText(_fromUtf8("")) | |||
|
260 | self.specGraphSaveCoherencemap.setObjectName(_fromUtf8("specGraphSaveCoherencemap")) | |||
|
261 | self.gridLayout_9.addWidget(self.specGraphSaveCoherencemap, 10, 4, 1, 1) | |||
|
262 | spacerItem19 = QtGui.QSpacerItem(39, 15, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
263 | self.gridLayout_9.addItem(spacerItem19, 27, 4, 1, 1) | |||
|
264 | self.specGgraphftpratio = QtGui.QLineEdit(self.tabgraphSpectra) | |||
|
265 | self.specGgraphftpratio.setObjectName(_fromUtf8("specGgraphftpratio")) | |||
|
266 | self.gridLayout_9.addWidget(self.specGgraphftpratio, 23, 1, 1, 7) | |||
|
267 | self.label_43 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
268 | self.label_43.setObjectName(_fromUtf8("label_43")) | |||
|
269 | self.gridLayout_9.addWidget(self.label_43, 3, 2, 2, 1) | |||
|
270 | self.specGraphftpCross = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
271 | self.specGraphftpCross.setText(_fromUtf8("")) | |||
|
272 | self.specGraphftpCross.setObjectName(_fromUtf8("specGraphftpCross")) | |||
|
273 | self.gridLayout_9.addWidget(self.specGraphftpCross, 8, 6, 1, 1) | |||
|
274 | self.label_29 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
275 | self.label_29.setObjectName(_fromUtf8("label_29")) | |||
|
276 | self.gridLayout_9.addWidget(self.label_29, 23, 0, 1, 1) | |||
|
277 | self.label_47 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
278 | self.label_47.setObjectName(_fromUtf8("label_47")) | |||
|
279 | self.gridLayout_9.addWidget(self.label_47, 3, 4, 2, 1) | |||
|
280 | self.specGraphftpRTIplot = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
281 | self.specGraphftpRTIplot.setText(_fromUtf8("")) | |||
|
282 | self.specGraphftpRTIplot.setObjectName(_fromUtf8("specGraphftpRTIplot")) | |||
|
283 | self.gridLayout_9.addWidget(self.specGraphftpRTIplot, 9, 6, 1, 1) | |||
|
284 | self.specGraphftpCoherencemap = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
285 | self.specGraphftpCoherencemap.setText(_fromUtf8("")) | |||
|
286 | self.specGraphftpCoherencemap.setObjectName(_fromUtf8("specGraphftpCoherencemap")) | |||
|
287 | self.gridLayout_9.addWidget(self.specGraphftpCoherencemap, 10, 6, 1, 1) | |||
|
288 | self.specGraphftpPowerprofile = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
289 | self.specGraphftpPowerprofile.setText(_fromUtf8("")) | |||
|
290 | self.specGraphftpPowerprofile.setObjectName(_fromUtf8("specGraphftpPowerprofile")) | |||
|
291 | self.gridLayout_9.addWidget(self.specGraphftpPowerprofile, 11, 6, 1, 1) | |||
|
292 | self.label_19 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
293 | self.label_19.setObjectName(_fromUtf8("label_19")) | |||
|
294 | self.gridLayout_9.addWidget(self.label_19, 3, 6, 2, 2) | |||
|
295 | self.specGraphSaveRTIplot = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
296 | self.specGraphSaveRTIplot.setText(_fromUtf8("")) | |||
|
297 | self.specGraphSaveRTIplot.setObjectName(_fromUtf8("specGraphSaveRTIplot")) | |||
|
298 | self.gridLayout_9.addWidget(self.specGraphSaveRTIplot, 9, 4, 1, 1) | |||
|
299 | self.label_45 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
300 | self.label_45.setObjectName(_fromUtf8("label_45")) | |||
|
301 | self.gridLayout_9.addWidget(self.label_45, 13, 0, 1, 1) | |||
|
302 | self.specGraphftpRTInoise = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
303 | self.specGraphftpRTInoise.setText(_fromUtf8("")) | |||
|
304 | self.specGraphftpRTInoise.setObjectName(_fromUtf8("specGraphftpRTInoise")) | |||
|
305 | self.gridLayout_9.addWidget(self.specGraphftpRTInoise, 13, 6, 1, 1) | |||
|
306 | self.specGraphCebRTInoise = QtGui.QCheckBox(self.tabgraphSpectra) | |||
|
307 | self.specGraphCebRTInoise.setText(_fromUtf8("")) | |||
|
308 | self.specGraphCebRTInoise.setObjectName(_fromUtf8("specGraphCebRTInoise")) | |||
|
309 | self.gridLayout_9.addWidget(self.specGraphCebRTInoise, 13, 2, 1, 1) | |||
|
310 | self.label_48 = QtGui.QLabel(self.tabgraphSpectra) | |||
|
311 | self.label_48.setObjectName(_fromUtf8("label_48")) | |||
|
312 | self.gridLayout_9.addWidget(self.label_48, 22, 0, 1, 1) | |||
|
313 | self.specGgraphTimeRange = QtGui.QLineEdit(self.tabgraphSpectra) | |||
|
314 | self.specGgraphTimeRange.setObjectName(_fromUtf8("specGgraphTimeRange")) | |||
|
315 | self.gridLayout_9.addWidget(self.specGgraphTimeRange, 22, 1, 1, 7) | |||
|
316 | self.tabWidgetSpectra.addTab(self.tabgraphSpectra, _fromUtf8("")) | |||
|
317 | self.taboutputSpectra = QtGui.QWidget() | |||
|
318 | self.taboutputSpectra.setObjectName(_fromUtf8("taboutputSpectra")) | |||
|
319 | self.gridLayout_11 = QtGui.QGridLayout(self.taboutputSpectra) | |||
|
320 | self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11")) | |||
|
321 | self.label_39 = QtGui.QLabel(self.taboutputSpectra) | |||
|
322 | self.label_39.setObjectName(_fromUtf8("label_39")) | |||
|
323 | self.gridLayout_11.addWidget(self.label_39, 0, 0, 1, 1) | |||
|
324 | self.specOutputComData = QtGui.QComboBox(self.taboutputSpectra) | |||
|
325 | self.specOutputComData.setObjectName(_fromUtf8("specOutputComData")) | |||
|
326 | self.specOutputComData.addItem(_fromUtf8("")) | |||
|
327 | self.gridLayout_11.addWidget(self.specOutputComData, 0, 2, 1, 2) | |||
|
328 | self.label_34 = QtGui.QLabel(self.taboutputSpectra) | |||
|
329 | self.label_34.setObjectName(_fromUtf8("label_34")) | |||
|
330 | self.gridLayout_11.addWidget(self.label_34, 1, 0, 1, 1) | |||
|
331 | self.specOutputPath = QtGui.QLineEdit(self.taboutputSpectra) | |||
|
332 | self.specOutputPath.setObjectName(_fromUtf8("specOutputPath")) | |||
|
333 | self.gridLayout_11.addWidget(self.specOutputPath, 1, 2, 1, 1) | |||
|
334 | spacerItem20 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |||
|
335 | self.gridLayout_11.addItem(spacerItem20, 4, 2, 1, 1) | |||
|
336 | self.specOutputToolPath = QtGui.QToolButton(self.taboutputSpectra) | |||
|
337 | self.specOutputToolPath.setObjectName(_fromUtf8("specOutputToolPath")) | |||
|
338 | self.gridLayout_11.addWidget(self.specOutputToolPath, 1, 3, 1, 1) | |||
|
339 | self.specOutputblocksperfile = QtGui.QLineEdit(self.taboutputSpectra) | |||
|
340 | self.specOutputblocksperfile.setObjectName(_fromUtf8("specOutputblocksperfile")) | |||
|
341 | self.gridLayout_11.addWidget(self.specOutputblocksperfile, 2, 2, 1, 1) | |||
|
342 | self.label_9 = QtGui.QLabel(self.taboutputSpectra) | |||
|
343 | self.label_9.setObjectName(_fromUtf8("label_9")) | |||
|
344 | self.gridLayout_11.addWidget(self.label_9, 2, 0, 1, 2) | |||
|
345 | self.label_38 = QtGui.QLabel(self.taboutputSpectra) | |||
|
346 | self.label_38.setObjectName(_fromUtf8("label_38")) | |||
|
347 | self.gridLayout_11.addWidget(self.label_38, 3, 0, 1, 1) | |||
|
348 | self.specOutputprofileperblock = QtGui.QLineEdit(self.taboutputSpectra) | |||
|
349 | self.specOutputprofileperblock.setObjectName(_fromUtf8("specOutputprofileperblock")) | |||
|
350 | self.gridLayout_11.addWidget(self.specOutputprofileperblock, 3, 2, 1, 1) | |||
|
351 | self.tabWidgetSpectra.addTab(self.taboutputSpectra, _fromUtf8("")) | |||
|
352 | self.gridLayout_7.addWidget(self.tabWidgetSpectra, 0, 1, 1, 1) | |||
|
353 | ||||
|
354 | self.tabWidgetProject.addTab(self.tabSpectra, _fromUtf8("")) | |||
|
355 | ||||
|
356 | self.tabWidgetSpectra.setCurrentIndex(0) | |||
|
357 | ||||
|
358 | def retranslateUi(self): | |||
|
359 | ||||
|
360 | self.specOpOk.setText(_translate("MainWindow", "Ok", None)) | |||
|
361 | self.specGraphClear.setText(_translate("MainWindow", "Clear", None)) | |||
|
362 | self.specOpCebCrossSpectra.setText(_translate("MainWindow", "Select Cross Spectra", None)) | |||
|
363 | self.specOpComChannel.setItemText(0, _translate("MainWindow", "Value", None)) | |||
|
364 | self.specOpComChannel.setItemText(1, _translate("MainWindow", "Index", None)) | |||
|
365 | self.specOpComHeights.setItemText(0, _translate("MainWindow", "Value", None)) | |||
|
366 | self.specOpComHeights.setItemText(1, _translate("MainWindow", "Index", None)) | |||
|
367 | self.specOpCebRemoveDC.setText(_translate("MainWindow", "Remove DC", None)) | |||
|
368 | self.specOpCebHeights.setText(_translate("MainWindow", "Select Heights", None)) | |||
|
369 | self.specOpCebChannel.setText(_translate("MainWindow", "Select Channel", None)) | |||
|
370 | self.label_31.setText(_translate("MainWindow", "x-y pairs", None)) | |||
|
371 | self.label_26.setText(_translate("MainWindow", "nFFTPoints", None)) | |||
|
372 | self.specOpCebIncoherent.setText(_translate("MainWindow", "Incoherent Integration", None)) | |||
|
373 | self.specOpCobIncInt.setItemText(0, _translate("MainWindow", "Time Interval", None)) | |||
|
374 | self.specOpCobIncInt.setItemText(1, _translate("MainWindow", "Profiles", None)) | |||
|
375 | self.specOpCebRadarfrequency.setText(_translate("MainWindow", "Radar Frequency", None)) | |||
|
376 | self.label_21.setText(_translate("MainWindow", "Profiles", None)) | |||
|
377 | self.specOpCebRemoveInt.setText(_translate("MainWindow", "Remove Interference", None)) | |||
|
378 | self.label_70.setText(_translate("MainWindow", "IppFactor", None)) | |||
|
379 | self.specOpCebgetNoise.setText(_translate("MainWindow", "Get Noise", None)) | |||
|
380 | self.specOpComRemoveDC.setItemText(0, _translate("MainWindow", "Mode 1", None)) | |||
|
381 | self.specOpComRemoveDC.setItemText(1, _translate("MainWindow", "Mode 2", None)) | |||
|
382 | self.tabWidgetSpectra.setTabText(self.tabWidgetSpectra.indexOf(self.tabopSpectra), _translate("MainWindow", "Operation", None)) | |||
|
383 | ||||
|
384 | self.label_44.setText(_translate("MainWindow", "Coherence Map", None)) | |||
|
385 | self.label_20.setText(_translate("MainWindow", "Tmin, Tmax:", None)) | |||
|
386 | self.label_25.setText(_translate("MainWindow", "Prefix", None)) | |||
|
387 | self.label_42.setText(_translate("MainWindow", "RTI Plot", None)) | |||
|
388 | self.label_16.setText(_translate("MainWindow", "Height range", None)) | |||
|
389 | self.label_17.setText(_translate("MainWindow", "dB range", None)) | |||
|
390 | self.label_18.setText(_translate("MainWindow", "Magnitud ", None)) | |||
|
391 | self.label_24.setText(_translate("MainWindow", "Path", None)) | |||
|
392 | self.label_46.setText(_translate("MainWindow", "Power Profile", None)) | |||
|
393 | self.label_22.setText(_translate("MainWindow", "Freq/Vel:", None)) | |||
|
394 | self.label_41.setText(_translate("MainWindow", "Cross Spectra Plot", None)) | |||
|
395 | self.specGraphToolPath.setText(_translate("MainWindow", "...", None)) | |||
|
396 | self.label_6.setText(_translate("MainWindow", "Channel List:", None)) | |||
|
397 | self.label_40.setText(_translate("MainWindow", "Spectra Plot", None)) | |||
|
398 | self.label_43.setText(_translate("MainWindow", "Show", None)) | |||
|
399 | self.label_29.setText(_translate("MainWindow", "Wr Period:", None)) | |||
|
400 | self.label_47.setText(_translate("MainWindow", "Save", None)) | |||
|
401 | self.label_19.setText(_translate("MainWindow", "ftp", None)) | |||
|
402 | self.label_45.setText(_translate("MainWindow", "Noise", None)) | |||
|
403 | self.label_48.setText(_translate("MainWindow", "Time Range:", None)) | |||
|
404 | self.tabWidgetSpectra.setTabText(self.tabWidgetSpectra.indexOf(self.tabgraphSpectra), _translate("MainWindow", "Graphics", None)) | |||
|
405 | ||||
|
406 | self.label_39.setText(_translate("MainWindow", "Type:", None)) | |||
|
407 | self.specOutputComData.setItemText(0, _translate("MainWindow", ".pdata", None)) | |||
|
408 | self.label_34.setText(_translate("MainWindow", "Path:", None)) | |||
|
409 | self.specOutputToolPath.setText(_translate("MainWindow", "...", None)) | |||
|
410 | self.label_9.setText(_translate("MainWindow", "Blocks per File: ", None)) | |||
|
411 | self.label_38.setText(_translate("MainWindow", "Profile per Block: ", None)) | |||
|
412 | self.tabWidgetSpectra.setTabText(self.tabWidgetSpectra.indexOf(self.taboutputSpectra), _translate("MainWindow", "Output", None)) | |||
|
413 | ||||
|
414 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabSpectra), _translate("MainWindow", "Spectra", None)) | |||
|
415 | No newline at end of file |
@@ -0,0 +1,240 | |||||
|
1 | from PyQt4 import QtCore, QtGui | |||
|
2 | ||||
|
3 | try: | |||
|
4 | _fromUtf8 = QtCore.QString.fromUtf8 | |||
|
5 | except AttributeError: | |||
|
6 | def _fromUtf8(s): | |||
|
7 | return s | |||
|
8 | ||||
|
9 | try: | |||
|
10 | _encoding = QtGui.QApplication.UnicodeUTF8 | |||
|
11 | def _translate(context, text, disambig): | |||
|
12 | return QtGui.QApplication.translate(context, text, disambig, _encoding) | |||
|
13 | except AttributeError: | |||
|
14 | def _translate(context, text, disambig): | |||
|
15 | return QtGui.QApplication.translate(context, text, disambig) | |||
|
16 | ||||
|
17 | class Ui_SpectraHeisTab(object): | |||
|
18 | ||||
|
19 | def setupUi(self): | |||
|
20 | ||||
|
21 | self.tabSpectraHeis = QtGui.QWidget() | |||
|
22 | self.tabSpectraHeis.setObjectName(_fromUtf8("tabSpectraHeis")) | |||
|
23 | self.gridLayout_23 = QtGui.QGridLayout(self.tabSpectraHeis) | |||
|
24 | self.gridLayout_23.setObjectName(_fromUtf8("gridLayout_23")) | |||
|
25 | self.frame_6 = QtGui.QFrame(self.tabSpectraHeis) | |||
|
26 | self.frame_6.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
27 | self.frame_6.setFrameShadow(QtGui.QFrame.Raised) | |||
|
28 | self.frame_6.setObjectName(_fromUtf8("frame_6")) | |||
|
29 | self.gridLayout_22 = QtGui.QGridLayout(self.frame_6) | |||
|
30 | self.gridLayout_22.setObjectName(_fromUtf8("gridLayout_22")) | |||
|
31 | self.specHeisGraphClear = QtGui.QPushButton(self.frame_6) | |||
|
32 | self.specHeisGraphClear.setObjectName(_fromUtf8("specHeisGraphClear")) | |||
|
33 | self.gridLayout_22.addWidget(self.specHeisGraphClear, 0, 1, 1, 1) | |||
|
34 | self.specHeisOpOk = QtGui.QPushButton(self.frame_6) | |||
|
35 | self.specHeisOpOk.setObjectName(_fromUtf8("specHeisOpOk")) | |||
|
36 | self.gridLayout_22.addWidget(self.specHeisOpOk, 0, 0, 1, 1) | |||
|
37 | self.gridLayout_23.addWidget(self.frame_6, 1, 0, 1, 1) | |||
|
38 | self.tabWidgetSpectraHeis = QtGui.QTabWidget(self.tabSpectraHeis) | |||
|
39 | self.tabWidgetSpectraHeis.setObjectName(_fromUtf8("tabWidgetSpectraHeis")) | |||
|
40 | self.tabopSpectraHeis = QtGui.QWidget() | |||
|
41 | self.tabopSpectraHeis.setObjectName(_fromUtf8("tabopSpectraHeis")) | |||
|
42 | self.gridLayout_21 = QtGui.QGridLayout(self.tabopSpectraHeis) | |||
|
43 | self.gridLayout_21.setObjectName(_fromUtf8("gridLayout_21")) | |||
|
44 | spacerItem21 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
45 | self.gridLayout_21.addItem(spacerItem21, 0, 1, 1, 1) | |||
|
46 | self.specHeisOpCobIncInt = QtGui.QComboBox(self.tabopSpectraHeis) | |||
|
47 | self.specHeisOpCobIncInt.setObjectName(_fromUtf8("specHeisOpCobIncInt")) | |||
|
48 | self.specHeisOpCobIncInt.addItem(_fromUtf8("")) | |||
|
49 | self.gridLayout_21.addWidget(self.specHeisOpCobIncInt, 1, 0, 1, 1) | |||
|
50 | self.specHeisOpCebIncoherent = QtGui.QCheckBox(self.tabopSpectraHeis) | |||
|
51 | self.specHeisOpCebIncoherent.setObjectName(_fromUtf8("specHeisOpCebIncoherent")) | |||
|
52 | self.gridLayout_21.addWidget(self.specHeisOpCebIncoherent, 0, 0, 1, 1) | |||
|
53 | self.specHeisOpIncoherent = QtGui.QLineEdit(self.tabopSpectraHeis) | |||
|
54 | self.specHeisOpIncoherent.setObjectName(_fromUtf8("specHeisOpIncoherent")) | |||
|
55 | self.gridLayout_21.addWidget(self.specHeisOpIncoherent, 1, 1, 1, 1) | |||
|
56 | spacerItem22 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |||
|
57 | self.gridLayout_21.addItem(spacerItem22, 2, 0, 1, 1) | |||
|
58 | self.tabWidgetSpectraHeis.addTab(self.tabopSpectraHeis, _fromUtf8("")) | |||
|
59 | self.tabgraphSpectraHeis = QtGui.QWidget() | |||
|
60 | self.tabgraphSpectraHeis.setObjectName(_fromUtf8("tabgraphSpectraHeis")) | |||
|
61 | self.gridLayout_20 = QtGui.QGridLayout(self.tabgraphSpectraHeis) | |||
|
62 | self.gridLayout_20.setObjectName(_fromUtf8("gridLayout_20")) | |||
|
63 | self.label_54 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
64 | self.label_54.setObjectName(_fromUtf8("label_54")) | |||
|
65 | self.gridLayout_20.addWidget(self.label_54, 1, 0, 1, 1) | |||
|
66 | self.specHeisGraphToolPath = QtGui.QToolButton(self.tabgraphSpectraHeis) | |||
|
67 | self.specHeisGraphToolPath.setObjectName(_fromUtf8("specHeisGraphToolPath")) | |||
|
68 | self.gridLayout_20.addWidget(self.specHeisGraphToolPath, 0, 6, 1, 1) | |||
|
69 | self.specHeisGraphCebRTIplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) | |||
|
70 | self.specHeisGraphCebRTIplot.setText(_fromUtf8("")) | |||
|
71 | self.specHeisGraphCebRTIplot.setObjectName(_fromUtf8("specHeisGraphCebRTIplot")) | |||
|
72 | self.gridLayout_20.addWidget(self.specHeisGraphCebRTIplot, 4, 2, 1, 1) | |||
|
73 | self.label_62 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
74 | self.label_62.setObjectName(_fromUtf8("label_62")) | |||
|
75 | self.gridLayout_20.addWidget(self.label_62, 7, 0, 1, 1) | |||
|
76 | self.label_63 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
77 | self.label_63.setObjectName(_fromUtf8("label_63")) | |||
|
78 | self.gridLayout_20.addWidget(self.label_63, 8, 0, 1, 1) | |||
|
79 | self.label_64 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
80 | self.label_64.setObjectName(_fromUtf8("label_64")) | |||
|
81 | self.gridLayout_20.addWidget(self.label_64, 9, 0, 1, 1) | |||
|
82 | self.label_65 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
83 | self.label_65.setObjectName(_fromUtf8("label_65")) | |||
|
84 | self.gridLayout_20.addWidget(self.label_65, 10, 0, 1, 1) | |||
|
85 | spacerItem23 = QtGui.QSpacerItem(134, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
86 | self.gridLayout_20.addItem(spacerItem23, 11, 0, 1, 2) | |||
|
87 | self.specHeisGgraphftpratio = QtGui.QLineEdit(self.tabgraphSpectraHeis) | |||
|
88 | self.specHeisGgraphftpratio.setObjectName(_fromUtf8("specHeisGgraphftpratio")) | |||
|
89 | self.gridLayout_20.addWidget(self.specHeisGgraphftpratio, 10, 1, 1, 6) | |||
|
90 | self.specHeisGraphftpRTIplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) | |||
|
91 | self.specHeisGraphftpRTIplot.setText(_fromUtf8("")) | |||
|
92 | self.specHeisGraphftpRTIplot.setObjectName(_fromUtf8("specHeisGraphftpRTIplot")) | |||
|
93 | self.gridLayout_20.addWidget(self.specHeisGraphftpRTIplot, 4, 6, 1, 1) | |||
|
94 | self.specHeisGgraphTminTmax = QtGui.QLineEdit(self.tabgraphSpectraHeis) | |||
|
95 | self.specHeisGgraphTminTmax.setObjectName(_fromUtf8("specHeisGgraphTminTmax")) | |||
|
96 | self.gridLayout_20.addWidget(self.specHeisGgraphTminTmax, 8, 1, 1, 6) | |||
|
97 | self.label_60 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
98 | self.label_60.setObjectName(_fromUtf8("label_60")) | |||
|
99 | self.gridLayout_20.addWidget(self.label_60, 5, 0, 1, 1) | |||
|
100 | self.label_61 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
101 | self.label_61.setObjectName(_fromUtf8("label_61")) | |||
|
102 | self.gridLayout_20.addWidget(self.label_61, 6, 0, 1, 1) | |||
|
103 | self.specHeisGraphPrefix = QtGui.QLineEdit(self.tabgraphSpectraHeis) | |||
|
104 | self.specHeisGraphPrefix.setObjectName(_fromUtf8("specHeisGraphPrefix")) | |||
|
105 | self.gridLayout_20.addWidget(self.specHeisGraphPrefix, 1, 1, 1, 6) | |||
|
106 | self.label_56 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
107 | self.label_56.setObjectName(_fromUtf8("label_56")) | |||
|
108 | self.gridLayout_20.addWidget(self.label_56, 2, 4, 1, 1) | |||
|
109 | self.label_57 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
110 | self.label_57.setObjectName(_fromUtf8("label_57")) | |||
|
111 | self.gridLayout_20.addWidget(self.label_57, 2, 6, 1, 1) | |||
|
112 | self.label_58 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
113 | self.label_58.setObjectName(_fromUtf8("label_58")) | |||
|
114 | self.gridLayout_20.addWidget(self.label_58, 3, 0, 1, 1) | |||
|
115 | self.specHeisGraphCebSpectraplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) | |||
|
116 | self.specHeisGraphCebSpectraplot.setText(_fromUtf8("")) | |||
|
117 | self.specHeisGraphCebSpectraplot.setObjectName(_fromUtf8("specHeisGraphCebSpectraplot")) | |||
|
118 | self.gridLayout_20.addWidget(self.specHeisGraphCebSpectraplot, 3, 2, 1, 1) | |||
|
119 | self.specHeisGgraphYminYmax = QtGui.QLineEdit(self.tabgraphSpectraHeis) | |||
|
120 | self.specHeisGgraphYminYmax.setObjectName(_fromUtf8("specHeisGgraphYminYmax")) | |||
|
121 | self.gridLayout_20.addWidget(self.specHeisGgraphYminYmax, 7, 1, 1, 6) | |||
|
122 | self.label_53 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
123 | self.label_53.setObjectName(_fromUtf8("label_53")) | |||
|
124 | self.gridLayout_20.addWidget(self.label_53, 0, 0, 1, 1) | |||
|
125 | self.label_55 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
126 | self.label_55.setObjectName(_fromUtf8("label_55")) | |||
|
127 | self.gridLayout_20.addWidget(self.label_55, 2, 2, 1, 1) | |||
|
128 | self.specHeisGraphSaveRTIplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) | |||
|
129 | self.specHeisGraphSaveRTIplot.setText(_fromUtf8("")) | |||
|
130 | self.specHeisGraphSaveRTIplot.setObjectName(_fromUtf8("specHeisGraphSaveRTIplot")) | |||
|
131 | self.gridLayout_20.addWidget(self.specHeisGraphSaveRTIplot, 4, 4, 1, 1) | |||
|
132 | spacerItem24 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
133 | self.gridLayout_20.addItem(spacerItem24, 2, 3, 1, 1) | |||
|
134 | self.specHeisGgraphXminXmax = QtGui.QLineEdit(self.tabgraphSpectraHeis) | |||
|
135 | self.specHeisGgraphXminXmax.setObjectName(_fromUtf8("specHeisGgraphXminXmax")) | |||
|
136 | self.gridLayout_20.addWidget(self.specHeisGgraphXminXmax, 6, 1, 1, 6) | |||
|
137 | self.specHeisGgraphChannelList = QtGui.QLineEdit(self.tabgraphSpectraHeis) | |||
|
138 | self.specHeisGgraphChannelList.setObjectName(_fromUtf8("specHeisGgraphChannelList")) | |||
|
139 | self.gridLayout_20.addWidget(self.specHeisGgraphChannelList, 5, 1, 1, 6) | |||
|
140 | self.specHeisGgraphTimeRange = QtGui.QLineEdit(self.tabgraphSpectraHeis) | |||
|
141 | self.specHeisGgraphTimeRange.setObjectName(_fromUtf8("specHeisGgraphTimeRange")) | |||
|
142 | self.gridLayout_20.addWidget(self.specHeisGgraphTimeRange, 9, 1, 1, 6) | |||
|
143 | spacerItem25 = QtGui.QSpacerItem(106, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
144 | self.gridLayout_20.addItem(spacerItem25, 11, 3, 1, 3) | |||
|
145 | self.specHeisGraphSaveSpectra = QtGui.QCheckBox(self.tabgraphSpectraHeis) | |||
|
146 | self.specHeisGraphSaveSpectra.setText(_fromUtf8("")) | |||
|
147 | self.specHeisGraphSaveSpectra.setObjectName(_fromUtf8("specHeisGraphSaveSpectra")) | |||
|
148 | self.gridLayout_20.addWidget(self.specHeisGraphSaveSpectra, 3, 4, 1, 1) | |||
|
149 | self.specHeisGraphftpSpectra = QtGui.QCheckBox(self.tabgraphSpectraHeis) | |||
|
150 | self.specHeisGraphftpSpectra.setText(_fromUtf8("")) | |||
|
151 | self.specHeisGraphftpSpectra.setObjectName(_fromUtf8("specHeisGraphftpSpectra")) | |||
|
152 | self.gridLayout_20.addWidget(self.specHeisGraphftpSpectra, 3, 6, 1, 1) | |||
|
153 | self.label_59 = QtGui.QLabel(self.tabgraphSpectraHeis) | |||
|
154 | self.label_59.setObjectName(_fromUtf8("label_59")) | |||
|
155 | self.gridLayout_20.addWidget(self.label_59, 4, 0, 1, 1) | |||
|
156 | spacerItem26 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
157 | self.gridLayout_20.addItem(spacerItem26, 2, 5, 1, 1) | |||
|
158 | self.specHeisGraphPath = QtGui.QLineEdit(self.tabgraphSpectraHeis) | |||
|
159 | self.specHeisGraphPath.setObjectName(_fromUtf8("specHeisGraphPath")) | |||
|
160 | self.gridLayout_20.addWidget(self.specHeisGraphPath, 0, 1, 1, 5) | |||
|
161 | self.tabWidgetSpectraHeis.addTab(self.tabgraphSpectraHeis, _fromUtf8("")) | |||
|
162 | self.taboutputSpectraHeis = QtGui.QWidget() | |||
|
163 | self.taboutputSpectraHeis.setObjectName(_fromUtf8("taboutputSpectraHeis")) | |||
|
164 | self.gridLayout_19 = QtGui.QGridLayout(self.taboutputSpectraHeis) | |||
|
165 | self.gridLayout_19.setObjectName(_fromUtf8("gridLayout_19")) | |||
|
166 | self.label_67 = QtGui.QLabel(self.taboutputSpectraHeis) | |||
|
167 | self.label_67.setObjectName(_fromUtf8("label_67")) | |||
|
168 | self.gridLayout_19.addWidget(self.label_67, 1, 0, 1, 1) | |||
|
169 | self.label_68 = QtGui.QLabel(self.taboutputSpectraHeis) | |||
|
170 | self.label_68.setObjectName(_fromUtf8("label_68")) | |||
|
171 | self.gridLayout_19.addWidget(self.label_68, 2, 0, 1, 2) | |||
|
172 | self.label_66 = QtGui.QLabel(self.taboutputSpectraHeis) | |||
|
173 | self.label_66.setObjectName(_fromUtf8("label_66")) | |||
|
174 | self.gridLayout_19.addWidget(self.label_66, 0, 0, 1, 1) | |||
|
175 | spacerItem27 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |||
|
176 | self.gridLayout_19.addItem(spacerItem27, 4, 0, 1, 1) | |||
|
177 | self.specHeisOutputToolPath = QtGui.QToolButton(self.taboutputSpectraHeis) | |||
|
178 | self.specHeisOutputToolPath.setObjectName(_fromUtf8("specHeisOutputToolPath")) | |||
|
179 | self.gridLayout_19.addWidget(self.specHeisOutputToolPath, 1, 4, 1, 1) | |||
|
180 | self.specHeisOutputPath = QtGui.QLineEdit(self.taboutputSpectraHeis) | |||
|
181 | self.specHeisOutputPath.setObjectName(_fromUtf8("specHeisOutputPath")) | |||
|
182 | self.gridLayout_19.addWidget(self.specHeisOutputPath, 1, 3, 1, 1) | |||
|
183 | self.specHeisOutputComdata = QtGui.QComboBox(self.taboutputSpectraHeis) | |||
|
184 | self.specHeisOutputComdata.setObjectName(_fromUtf8("specHeisOutputComdata")) | |||
|
185 | self.specHeisOutputComdata.addItem(_fromUtf8("")) | |||
|
186 | self.gridLayout_19.addWidget(self.specHeisOutputComdata, 0, 3, 1, 2) | |||
|
187 | self.label_69 = QtGui.QLabel(self.taboutputSpectraHeis) | |||
|
188 | self.label_69.setObjectName(_fromUtf8("label_69")) | |||
|
189 | self.gridLayout_19.addWidget(self.label_69, 3, 0, 1, 2) | |||
|
190 | self.specHeisOutputblocksperfile = QtGui.QLineEdit(self.taboutputSpectraHeis) | |||
|
191 | self.specHeisOutputblocksperfile.setObjectName(_fromUtf8("specHeisOutputblocksperfile")) | |||
|
192 | self.gridLayout_19.addWidget(self.specHeisOutputblocksperfile, 2, 3, 1, 1) | |||
|
193 | self.specHeisOutputMetada = QtGui.QLineEdit(self.taboutputSpectraHeis) | |||
|
194 | self.specHeisOutputMetada.setObjectName(_fromUtf8("specHeisOutputMetada")) | |||
|
195 | self.gridLayout_19.addWidget(self.specHeisOutputMetada, 3, 3, 1, 1) | |||
|
196 | self.specHeisOutputMetadaToolPath = QtGui.QToolButton(self.taboutputSpectraHeis) | |||
|
197 | self.specHeisOutputMetadaToolPath.setObjectName(_fromUtf8("specHeisOutputMetadaToolPath")) | |||
|
198 | self.gridLayout_19.addWidget(self.specHeisOutputMetadaToolPath, 3, 4, 1, 1) | |||
|
199 | self.tabWidgetSpectraHeis.addTab(self.taboutputSpectraHeis, _fromUtf8("")) | |||
|
200 | self.gridLayout_23.addWidget(self.tabWidgetSpectraHeis, 0, 0, 1, 1) | |||
|
201 | ||||
|
202 | self.tabWidgetProject.addTab(self.tabSpectraHeis, _fromUtf8("")) | |||
|
203 | ||||
|
204 | self.tabWidgetSpectraHeis.setCurrentIndex(0) | |||
|
205 | ||||
|
206 | def retranslateUi(self): | |||
|
207 | ||||
|
208 | self.specHeisGraphClear.setText(_translate("MainWindow", "Clear", None)) | |||
|
209 | self.specHeisOpOk.setText(_translate("MainWindow", "Ok", None)) | |||
|
210 | self.specHeisOpCobIncInt.setItemText(0, _translate("MainWindow", "Time Interval", None)) | |||
|
211 | self.specHeisOpCebIncoherent.setText(_translate("MainWindow", "Incoherent Intergration", None)) | |||
|
212 | ||||
|
213 | self.tabWidgetSpectraHeis.setTabText(self.tabWidgetSpectraHeis.indexOf(self.tabopSpectraHeis), _translate("MainWindow", "Operation", None)) | |||
|
214 | self.label_54.setText(_translate("MainWindow", "Prefix", None)) | |||
|
215 | self.specHeisGraphToolPath.setText(_translate("MainWindow", "...", None)) | |||
|
216 | self.label_62.setText(_translate("MainWindow", "ymin - ymax", None)) | |||
|
217 | self.label_63.setText(_translate("MainWindow", "Tmin - Tmax:", None)) | |||
|
218 | self.label_64.setText(_translate("MainWindow", "Time Range:", None)) | |||
|
219 | self.label_65.setText(_translate("MainWindow", "Wr Period", None)) | |||
|
220 | self.label_60.setText(_translate("MainWindow", "Channel List:", None)) | |||
|
221 | self.label_61.setText(_translate("MainWindow", "xmin - xmax", None)) | |||
|
222 | self.label_56.setText(_translate("MainWindow", "Save", None)) | |||
|
223 | self.label_57.setText(_translate("MainWindow", "ftp", None)) | |||
|
224 | self.label_58.setText(_translate("MainWindow", "Spectra Plot", None)) | |||
|
225 | self.label_53.setText(_translate("MainWindow", "Path", None)) | |||
|
226 | self.label_55.setText(_translate("MainWindow", "Show", None)) | |||
|
227 | self.label_59.setText(_translate("MainWindow", "RTI PLot", None)) | |||
|
228 | ||||
|
229 | self.tabWidgetSpectraHeis.setTabText(self.tabWidgetSpectraHeis.indexOf(self.tabgraphSpectraHeis), _translate("MainWindow", "Graphics", None)) | |||
|
230 | self.label_67.setText(_translate("MainWindow", "Path:", None)) | |||
|
231 | self.label_68.setText(_translate("MainWindow", "Blocks per File:", None)) | |||
|
232 | self.label_66.setText(_translate("MainWindow", "Type:", None)) | |||
|
233 | ||||
|
234 | self.tabWidgetSpectraHeis.setTabText(self.tabWidgetSpectraHeis.indexOf(self.taboutputSpectraHeis), _translate("MainWindow", "Output", None)) | |||
|
235 | self.specHeisOutputToolPath.setText(_translate("MainWindow", "...", None)) | |||
|
236 | self.specHeisOutputComdata.setItemText(0, _translate("MainWindow", ".fits", None)) | |||
|
237 | self.label_69.setText(_translate("MainWindow", "Metada", None)) | |||
|
238 | self.specHeisOutputMetadaToolPath.setText(_translate("MainWindow", "...", None)) | |||
|
239 | ||||
|
240 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabSpectraHeis), _translate("MainWindow", "SpectraHeis", None)) |
@@ -0,0 +1,314 | |||||
|
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_VoltageTab(object): | |||
|
19 | ||||
|
20 | def setupUi(self): | |||
|
21 | ||||
|
22 | self.tabVoltage = QtGui.QWidget() | |||
|
23 | self.tabVoltage.setObjectName(_fromUtf8("tabVoltage")) | |||
|
24 | ||||
|
25 | self.gridLayout_3 = QtGui.QGridLayout(self.tabVoltage) | |||
|
26 | self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) | |||
|
27 | ||||
|
28 | self.frame_4 = QtGui.QFrame(self.tabVoltage) | |||
|
29 | self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
30 | self.frame_4.setFrameShadow(QtGui.QFrame.Raised) | |||
|
31 | self.frame_4.setObjectName(_fromUtf8("frame_4")) | |||
|
32 | ||||
|
33 | self.gridLayout_17 = QtGui.QGridLayout(self.frame_4) | |||
|
34 | self.gridLayout_17.setObjectName(_fromUtf8("gridLayout_17")) | |||
|
35 | self.volOpOk = QtGui.QPushButton(self.frame_4) | |||
|
36 | self.volOpOk.setObjectName(_fromUtf8("volOpOk")) | |||
|
37 | self.gridLayout_17.addWidget(self.volOpOk, 0, 0, 1, 1) | |||
|
38 | self.volGraphClear = QtGui.QPushButton(self.frame_4) | |||
|
39 | self.volGraphClear.setObjectName(_fromUtf8("volGraphClear")) | |||
|
40 | self.gridLayout_17.addWidget(self.volGraphClear, 0, 1, 1, 1) | |||
|
41 | self.gridLayout_3.addWidget(self.frame_4, 1, 1, 1, 1) | |||
|
42 | ||||
|
43 | ||||
|
44 | self.tabWidgetVoltage = QtGui.QTabWidget(self.tabVoltage) | |||
|
45 | self.tabWidgetVoltage.setObjectName(_fromUtf8("tabWidgetVoltage")) | |||
|
46 | self.tabopVoltage = QtGui.QWidget() | |||
|
47 | self.tabopVoltage.setObjectName(_fromUtf8("tabopVoltage")) | |||
|
48 | self.gridLayout = QtGui.QGridLayout(self.tabopVoltage) | |||
|
49 | self.gridLayout.setObjectName(_fromUtf8("gridLayout")) | |||
|
50 | self.volOpHeights = QtGui.QLineEdit(self.tabopVoltage) | |||
|
51 | self.volOpHeights.setObjectName(_fromUtf8("volOpHeights")) | |||
|
52 | self.gridLayout.addWidget(self.volOpHeights, 4, 4, 1, 1) | |||
|
53 | self.volOpComHeights = QtGui.QComboBox(self.tabopVoltage) | |||
|
54 | self.volOpComHeights.setObjectName(_fromUtf8("volOpComHeights")) | |||
|
55 | self.volOpComHeights.addItem(_fromUtf8("")) | |||
|
56 | self.volOpComHeights.addItem(_fromUtf8("")) | |||
|
57 | self.gridLayout.addWidget(self.volOpComHeights, 4, 0, 1, 3) | |||
|
58 | self.volOpComChannels = QtGui.QComboBox(self.tabopVoltage) | |||
|
59 | self.volOpComChannels.setObjectName(_fromUtf8("volOpComChannels")) | |||
|
60 | self.volOpComChannels.addItem(_fromUtf8("")) | |||
|
61 | self.volOpComChannels.addItem(_fromUtf8("")) | |||
|
62 | self.gridLayout.addWidget(self.volOpComChannels, 2, 0, 1, 3) | |||
|
63 | self.volOpCebProfile = QtGui.QCheckBox(self.tabopVoltage) | |||
|
64 | self.volOpCebProfile.setObjectName(_fromUtf8("volOpCebProfile")) | |||
|
65 | self.gridLayout.addWidget(self.volOpCebProfile, 6, 0, 1, 3) | |||
|
66 | self.volOpComProfile = QtGui.QComboBox(self.tabopVoltage) | |||
|
67 | self.volOpComProfile.setObjectName(_fromUtf8("volOpComProfile")) | |||
|
68 | self.volOpComProfile.addItem(_fromUtf8("")) | |||
|
69 | self.volOpComProfile.addItem(_fromUtf8("")) | |||
|
70 | self.gridLayout.addWidget(self.volOpComProfile, 7, 0, 1, 3) | |||
|
71 | self.volOpCebDecodification = QtGui.QCheckBox(self.tabopVoltage) | |||
|
72 | self.volOpCebDecodification.setObjectName(_fromUtf8("volOpCebDecodification")) | |||
|
73 | self.gridLayout.addWidget(self.volOpCebDecodification, 8, 0, 1, 3) | |||
|
74 | self.volOpProfile = QtGui.QLineEdit(self.tabopVoltage) | |||
|
75 | self.volOpProfile.setObjectName(_fromUtf8("volOpProfile")) | |||
|
76 | self.gridLayout.addWidget(self.volOpProfile, 7, 4, 1, 1) | |||
|
77 | self.volOpFilter = QtGui.QLineEdit(self.tabopVoltage) | |||
|
78 | self.volOpFilter.setObjectName(_fromUtf8("volOpFilter")) | |||
|
79 | self.gridLayout.addWidget(self.volOpFilter, 5, 4, 1, 1) | |||
|
80 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
81 | self.gridLayout.addItem(spacerItem, 6, 4, 1, 1) | |||
|
82 | spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
83 | self.gridLayout.addItem(spacerItem1, 8, 4, 1, 1) | |||
|
84 | spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
85 | self.gridLayout.addItem(spacerItem2, 3, 4, 1, 1) | |||
|
86 | self.volOpChannel = QtGui.QLineEdit(self.tabopVoltage) | |||
|
87 | self.volOpChannel.setObjectName(_fromUtf8("volOpChannel")) | |||
|
88 | self.gridLayout.addWidget(self.volOpChannel, 2, 4, 1, 1) | |||
|
89 | self.label_4 = QtGui.QLabel(self.tabopVoltage) | |||
|
90 | self.label_4.setObjectName(_fromUtf8("label_4")) | |||
|
91 | self.gridLayout.addWidget(self.label_4, 9, 2, 1, 1) | |||
|
92 | self.volOpCebChannels = QtGui.QCheckBox(self.tabopVoltage) | |||
|
93 | self.volOpCebChannels.setObjectName(_fromUtf8("volOpCebChannels")) | |||
|
94 | self.gridLayout.addWidget(self.volOpCebChannels, 1, 0, 1, 3) | |||
|
95 | self.volOpCebHeights = QtGui.QCheckBox(self.tabopVoltage) | |||
|
96 | self.volOpCebHeights.setObjectName(_fromUtf8("volOpCebHeights")) | |||
|
97 | self.gridLayout.addWidget(self.volOpCebHeights, 3, 0, 1, 3) | |||
|
98 | self.volOpCebFilter = QtGui.QCheckBox(self.tabopVoltage) | |||
|
99 | self.volOpCebFilter.setObjectName(_fromUtf8("volOpCebFilter")) | |||
|
100 | self.gridLayout.addWidget(self.volOpCebFilter, 5, 0, 1, 3) | |||
|
101 | self.volOpRadarfrequency = QtGui.QLineEdit(self.tabopVoltage) | |||
|
102 | self.volOpRadarfrequency.setObjectName(_fromUtf8("volOpRadarfrequency")) | |||
|
103 | self.gridLayout.addWidget(self.volOpRadarfrequency, 0, 4, 1, 1) | |||
|
104 | self.volOpCebRadarfrequency = QtGui.QCheckBox(self.tabopVoltage) | |||
|
105 | self.volOpCebRadarfrequency.setObjectName(_fromUtf8("volOpCebRadarfrequency")) | |||
|
106 | self.gridLayout.addWidget(self.volOpCebRadarfrequency, 0, 0, 1, 3) | |||
|
107 | self.label_5 = QtGui.QLabel(self.tabopVoltage) | |||
|
108 | self.label_5.setObjectName(_fromUtf8("label_5")) | |||
|
109 | self.gridLayout.addWidget(self.label_5, 10, 2, 1, 1) | |||
|
110 | spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
111 | self.gridLayout.addItem(spacerItem3, 1, 4, 1, 1) | |||
|
112 | self.volOpCebFlip = QtGui.QCheckBox(self.tabopVoltage) | |||
|
113 | self.volOpCebFlip.setObjectName(_fromUtf8("volOpCebFlip")) | |||
|
114 | self.gridLayout.addWidget(self.volOpCebFlip, 11, 0, 1, 3) | |||
|
115 | self.volOpFlip = QtGui.QLineEdit(self.tabopVoltage) | |||
|
116 | self.volOpFlip.setObjectName(_fromUtf8("volOpFlip")) | |||
|
117 | self.gridLayout.addWidget(self.volOpFlip, 11, 4, 1, 1) | |||
|
118 | ||||
|
119 | self.volOpCebCohInt = QtGui.QCheckBox(self.tabopVoltage) | |||
|
120 | self.volOpCebCohInt.setObjectName(_fromUtf8("volOpCebCohInt")) | |||
|
121 | self.gridLayout.addWidget(self.volOpCebCohInt, 12, 0, 1, 3) | |||
|
122 | self.volOpCohInt = QtGui.QLineEdit(self.tabopVoltage) | |||
|
123 | self.volOpCohInt.setObjectName(_fromUtf8("volOpCohInt")) | |||
|
124 | self.gridLayout.addWidget(self.volOpCohInt, 12, 4, 1, 1) | |||
|
125 | ||||
|
126 | self.volOpComCode = QtGui.QComboBox(self.tabopVoltage) | |||
|
127 | self.volOpComCode.setObjectName(_fromUtf8("volOpComCode")) | |||
|
128 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
129 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
130 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
131 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
132 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
133 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
134 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
135 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
136 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
137 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
138 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
139 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
140 | self.volOpComCode.addItem(_fromUtf8("")) | |||
|
141 | self.gridLayout.addWidget(self.volOpComCode, 9, 4, 1, 1) | |||
|
142 | self.volOpComMode = QtGui.QComboBox(self.tabopVoltage) | |||
|
143 | self.volOpComMode.setObjectName(_fromUtf8("volOpComMode")) | |||
|
144 | self.volOpComMode.addItem(_fromUtf8("")) | |||
|
145 | self.volOpComMode.addItem(_fromUtf8("")) | |||
|
146 | self.gridLayout.addWidget(self.volOpComMode, 10, 4, 1, 1) | |||
|
147 | self.tabWidgetVoltage.addTab(self.tabopVoltage, _fromUtf8("")) | |||
|
148 | ||||
|
149 | ||||
|
150 | self.tabgraphVoltage = QtGui.QWidget() | |||
|
151 | self.tabgraphVoltage.setObjectName(_fromUtf8("tabgraphVoltage")) | |||
|
152 | self.gridLayout_6 = QtGui.QGridLayout(self.tabgraphVoltage) | |||
|
153 | self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) | |||
|
154 | spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |||
|
155 | self.gridLayout_6.addItem(spacerItem4, 12, 3, 1, 1) | |||
|
156 | self.volGraphfreqrange = QtGui.QLineEdit(self.tabgraphVoltage) | |||
|
157 | self.volGraphfreqrange.setObjectName(_fromUtf8("volGraphfreqrange")) | |||
|
158 | self.gridLayout_6.addWidget(self.volGraphfreqrange, 9, 1, 1, 6) | |||
|
159 | self.volGraphPrefix = QtGui.QLineEdit(self.tabgraphVoltage) | |||
|
160 | self.volGraphPrefix.setObjectName(_fromUtf8("volGraphPrefix")) | |||
|
161 | self.gridLayout_6.addWidget(self.volGraphPrefix, 2, 1, 1, 6) | |||
|
162 | self.volGraphToolPath = QtGui.QToolButton(self.tabgraphVoltage) | |||
|
163 | self.volGraphToolPath.setObjectName(_fromUtf8("volGraphToolPath")) | |||
|
164 | self.gridLayout_6.addWidget(self.volGraphToolPath, 1, 5, 1, 2) | |||
|
165 | self.volGraphPath = QtGui.QLineEdit(self.tabgraphVoltage) | |||
|
166 | self.volGraphPath.setObjectName(_fromUtf8("volGraphPath")) | |||
|
167 | self.gridLayout_6.addWidget(self.volGraphPath, 1, 1, 1, 4) | |||
|
168 | self.label_14 = QtGui.QLabel(self.tabgraphVoltage) | |||
|
169 | self.label_14.setObjectName(_fromUtf8("label_14")) | |||
|
170 | self.gridLayout_6.addWidget(self.label_14, 6, 0, 1, 1) | |||
|
171 | spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |||
|
172 | self.gridLayout_6.addItem(spacerItem5, 3, 3, 1, 1) | |||
|
173 | self.label_8 = QtGui.QLabel(self.tabgraphVoltage) | |||
|
174 | self.label_8.setObjectName(_fromUtf8("label_8")) | |||
|
175 | self.gridLayout_6.addWidget(self.label_8, 8, 0, 1, 1) | |||
|
176 | self.label_49 = QtGui.QLabel(self.tabgraphVoltage) | |||
|
177 | self.label_49.setObjectName(_fromUtf8("label_49")) | |||
|
178 | self.gridLayout_6.addWidget(self.label_49, 4, 3, 1, 1) | |||
|
179 | self.label_51 = QtGui.QLabel(self.tabgraphVoltage) | |||
|
180 | self.label_51.setObjectName(_fromUtf8("label_51")) | |||
|
181 | self.gridLayout_6.addWidget(self.label_51, 9, 0, 1, 1) | |||
|
182 | self.volGraphCebshow = QtGui.QCheckBox(self.tabgraphVoltage) | |||
|
183 | self.volGraphCebshow.setText(_fromUtf8("")) | |||
|
184 | self.volGraphCebshow.setObjectName(_fromUtf8("volGraphCebshow")) | |||
|
185 | self.gridLayout_6.addWidget(self.volGraphCebshow, 6, 3, 1, 1) | |||
|
186 | self.label_12 = QtGui.QLabel(self.tabgraphVoltage) | |||
|
187 | self.label_12.setObjectName(_fromUtf8("label_12")) | |||
|
188 | self.gridLayout_6.addWidget(self.label_12, 1, 0, 1, 1) | |||
|
189 | self.label_13 = QtGui.QLabel(self.tabgraphVoltage) | |||
|
190 | self.label_13.setObjectName(_fromUtf8("label_13")) | |||
|
191 | self.gridLayout_6.addWidget(self.label_13, 2, 0, 1, 1) | |||
|
192 | self.label_52 = QtGui.QLabel(self.tabgraphVoltage) | |||
|
193 | self.label_52.setObjectName(_fromUtf8("label_52")) | |||
|
194 | self.gridLayout_6.addWidget(self.label_52, 11, 0, 1, 1) | |||
|
195 | spacerItem6 = QtGui.QSpacerItem(40, 12, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
196 | self.gridLayout_6.addItem(spacerItem6, 14, 5, 1, 2) | |||
|
197 | spacerItem7 = QtGui.QSpacerItem(18, 12, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
198 | self.gridLayout_6.addItem(spacerItem7, 14, 3, 1, 1) | |||
|
199 | self.volGraphChannelList = QtGui.QLineEdit(self.tabgraphVoltage) | |||
|
200 | self.volGraphChannelList.setObjectName(_fromUtf8("volGraphChannelList")) | |||
|
201 | self.gridLayout_6.addWidget(self.volGraphChannelList, 8, 1, 1, 6) | |||
|
202 | self.volGraphHeightrange = QtGui.QLineEdit(self.tabgraphVoltage) | |||
|
203 | self.volGraphHeightrange.setObjectName(_fromUtf8("volGraphHeightrange")) | |||
|
204 | self.gridLayout_6.addWidget(self.volGraphHeightrange, 11, 1, 1, 6) | |||
|
205 | self.label_50 = QtGui.QLabel(self.tabgraphVoltage) | |||
|
206 | self.label_50.setObjectName(_fromUtf8("label_50")) | |||
|
207 | self.gridLayout_6.addWidget(self.label_50, 4, 4, 1, 1) | |||
|
208 | self.volGraphCebSave = QtGui.QCheckBox(self.tabgraphVoltage) | |||
|
209 | self.volGraphCebSave.setText(_fromUtf8("")) | |||
|
210 | self.volGraphCebSave.setObjectName(_fromUtf8("volGraphCebSave")) | |||
|
211 | self.gridLayout_6.addWidget(self.volGraphCebSave, 6, 4, 1, 1) | |||
|
212 | self.tabWidgetVoltage.addTab(self.tabgraphVoltage, _fromUtf8("")) | |||
|
213 | ||||
|
214 | self.taboutputVoltage = QtGui.QWidget() | |||
|
215 | self.taboutputVoltage.setObjectName(_fromUtf8("taboutputVoltage")) | |||
|
216 | self.gridLayout_12 = QtGui.QGridLayout(self.taboutputVoltage) | |||
|
217 | self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12")) | |||
|
218 | self.label_36 = QtGui.QLabel(self.taboutputVoltage) | |||
|
219 | self.label_36.setObjectName(_fromUtf8("label_36")) | |||
|
220 | self.gridLayout_12.addWidget(self.label_36, 0, 0, 1, 1) | |||
|
221 | self.label_37 = QtGui.QLabel(self.taboutputVoltage) | |||
|
222 | self.label_37.setObjectName(_fromUtf8("label_37")) | |||
|
223 | self.gridLayout_12.addWidget(self.label_37, 1, 0, 1, 1) | |||
|
224 | self.volOutputPath = QtGui.QLineEdit(self.taboutputVoltage) | |||
|
225 | self.volOutputPath.setObjectName(_fromUtf8("volOutputPath")) | |||
|
226 | self.gridLayout_12.addWidget(self.volOutputPath, 1, 2, 1, 1) | |||
|
227 | self.volOutputToolPath = QtGui.QToolButton(self.taboutputVoltage) | |||
|
228 | self.volOutputToolPath.setObjectName(_fromUtf8("volOutputToolPath")) | |||
|
229 | self.gridLayout_12.addWidget(self.volOutputToolPath, 1, 3, 1, 1) | |||
|
230 | self.volOutputComData = QtGui.QComboBox(self.taboutputVoltage) | |||
|
231 | self.volOutputComData.setObjectName(_fromUtf8("volOutputComData")) | |||
|
232 | self.volOutputComData.addItem(_fromUtf8("")) | |||
|
233 | self.gridLayout_12.addWidget(self.volOutputComData, 0, 2, 1, 2) | |||
|
234 | spacerItem8 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) | |||
|
235 | self.gridLayout_12.addItem(spacerItem8, 5, 2, 1, 1) | |||
|
236 | self.volOutputblocksperfile = QtGui.QLineEdit(self.taboutputVoltage) | |||
|
237 | self.volOutputblocksperfile.setObjectName(_fromUtf8("volOutputblocksperfile")) | |||
|
238 | self.gridLayout_12.addWidget(self.volOutputblocksperfile, 3, 2, 1, 1) | |||
|
239 | self.label_7 = QtGui.QLabel(self.taboutputVoltage) | |||
|
240 | self.label_7.setObjectName(_fromUtf8("label_7")) | |||
|
241 | self.gridLayout_12.addWidget(self.label_7, 3, 0, 1, 1) | |||
|
242 | self.label_35 = QtGui.QLabel(self.taboutputVoltage) | |||
|
243 | self.label_35.setObjectName(_fromUtf8("label_35")) | |||
|
244 | self.gridLayout_12.addWidget(self.label_35, 4, 0, 1, 1) | |||
|
245 | self.volOutputprofilesperblock = QtGui.QLineEdit(self.taboutputVoltage) | |||
|
246 | self.volOutputprofilesperblock.setObjectName(_fromUtf8("volOutputprofilesperblock")) | |||
|
247 | self.gridLayout_12.addWidget(self.volOutputprofilesperblock, 4, 2, 1, 1) | |||
|
248 | self.tabWidgetVoltage.addTab(self.taboutputVoltage, _fromUtf8("")) | |||
|
249 | self.gridLayout_3.addWidget(self.tabWidgetVoltage, 0, 1, 1, 1) | |||
|
250 | ||||
|
251 | self.tabWidgetProject.addTab(self.tabVoltage, _fromUtf8("")) | |||
|
252 | ||||
|
253 | self.tabWidgetVoltage.setCurrentIndex(0) | |||
|
254 | ||||
|
255 | def retranslateUi(self): | |||
|
256 | ||||
|
257 | self.volOpOk.setText(_translate("MainWindow", "Ok", None)) | |||
|
258 | self.volGraphClear.setText(_translate("MainWindow", "Clear", None)) | |||
|
259 | self.volOpComHeights.setItemText(0, _translate("MainWindow", "Value", None)) | |||
|
260 | self.volOpComHeights.setItemText(1, _translate("MainWindow", "Index", None)) | |||
|
261 | self.volOpComChannels.setItemText(0, _translate("MainWindow", "Value", None)) | |||
|
262 | self.volOpComChannels.setItemText(1, _translate("MainWindow", "Index", None)) | |||
|
263 | self.volOpCebProfile.setText(_translate("MainWindow", "Profile Selector", None)) | |||
|
264 | self.volOpComProfile.setItemText(0, _translate("MainWindow", "Profile List", None)) | |||
|
265 | self.volOpComProfile.setItemText(1, _translate("MainWindow", "Profile Range List", None)) | |||
|
266 | self.volOpCebDecodification.setText(_translate("MainWindow", "Decoder", None)) | |||
|
267 | self.volOpCebCohInt.setText(_translate("MainWindow", "Coherent Integration", None)) | |||
|
268 | self.volOpCebFlip.setText(_translate("MainWindow", "Flip", None)) | |||
|
269 | self.label_4.setText(_translate("MainWindow", "Code:", None)) | |||
|
270 | self.volOpCebChannels.setText(_translate("MainWindow", "Select Channels", None)) | |||
|
271 | self.volOpCebHeights.setText(_translate("MainWindow", "Select Heights", None)) | |||
|
272 | self.volOpCebFilter.setText(_translate("MainWindow", "Filter", None)) | |||
|
273 | self.volOpCebRadarfrequency.setText(_translate("MainWindow", "Radar Frequency", None)) | |||
|
274 | self.label_5.setText(_translate("MainWindow", "Mode:", None)) | |||
|
275 | self.volOpComCode.setItemText(0, _translate("MainWindow", "Barker 3", None)) | |||
|
276 | self.volOpComCode.setItemText(1, _translate("MainWindow", "Barker 4", None)) | |||
|
277 | self.volOpComCode.setItemText(2, _translate("MainWindow", "Barker 5", None)) | |||
|
278 | self.volOpComCode.setItemText(3, _translate("MainWindow", "Barker 7", None)) | |||
|
279 | self.volOpComCode.setItemText(4, _translate("MainWindow", "Barker 11", None)) | |||
|
280 | self.volOpComCode.setItemText(5, _translate("MainWindow", "Barker 13", None)) | |||
|
281 | self.volOpComCode.setItemText(6, _translate("MainWindow", "Barker 3 + Comp.", None)) | |||
|
282 | self.volOpComCode.setItemText(7, _translate("MainWindow", "Barker 4 + Comp.", None)) | |||
|
283 | self.volOpComCode.setItemText(8, _translate("MainWindow", "Barker 5 + Comp.", None)) | |||
|
284 | self.volOpComCode.setItemText(9, _translate("MainWindow", "Barker 7 + Comp.", None)) | |||
|
285 | self.volOpComCode.setItemText(10, _translate("MainWindow", "Barker 11+ Comp.", None)) | |||
|
286 | self.volOpComCode.setItemText(11, _translate("MainWindow", "Barker 13+ Comp.", None)) | |||
|
287 | self.volOpComCode.setItemText(12, _translate("MainWindow", "Read from header", None)) | |||
|
288 | self.volOpComMode.setItemText(0, _translate("MainWindow", "Time", None)) | |||
|
289 | self.volOpComMode.setItemText(1, _translate("MainWindow", "Freq 1", None)) | |||
|
290 | self.tabWidgetVoltage.setTabText(self.tabWidgetVoltage.indexOf(self.tabopVoltage), _translate("MainWindow", "Operation", None)) | |||
|
291 | ||||
|
292 | self.volGraphToolPath.setText(_translate("MainWindow", "...", None)) | |||
|
293 | self.label_14.setText(_translate("MainWindow", "Scope", None)) | |||
|
294 | self.label_8.setText(_translate("MainWindow", "Channel List", None)) | |||
|
295 | self.label_49.setText(_translate("MainWindow", "Show", None)) | |||
|
296 | self.label_51.setText(_translate("MainWindow", "Freq/Vel", None)) | |||
|
297 | self.label_12.setText(_translate("MainWindow", "Path :", None)) | |||
|
298 | self.label_13.setText(_translate("MainWindow", "Prefix:", None)) | |||
|
299 | self.label_52.setText(_translate("MainWindow", "Height range", None)) | |||
|
300 | self.label_50.setText(_translate("MainWindow", "Save", None)) | |||
|
301 | self.tabWidgetVoltage.setTabText(self.tabWidgetVoltage.indexOf(self.tabgraphVoltage), _translate("MainWindow", "Graphics", None)) | |||
|
302 | ||||
|
303 | self.label_36.setText(_translate("MainWindow", "Type:", None)) | |||
|
304 | self.label_37.setText(_translate("MainWindow", "Path:", None)) | |||
|
305 | self.volOutputToolPath.setText(_translate("MainWindow", "...", None)) | |||
|
306 | self.volOutputComData.setItemText(0, _translate("MainWindow", ".rawdata", None)) | |||
|
307 | self.label_7.setText(_translate("MainWindow", "Blocks per File : ", None)) | |||
|
308 | self.label_35.setText(_translate("MainWindow", "Profiles per Block: ", None)) | |||
|
309 | self.tabWidgetVoltage.setTabText(self.tabWidgetVoltage.indexOf(self.taboutputVoltage), _translate("MainWindow", "Output", None)) | |||
|
310 | ||||
|
311 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabVoltage), _translate("MainWindow", "Voltage", None)) | |||
|
312 | ||||
|
313 | ||||
|
314 | No newline at end of file |
@@ -419,7 +419,9 class ProcUnitConf(): | |||||
419 | self.addOperation(name='run') |
|
419 | self.addOperation(name='run') | |
420 |
|
420 | |||
421 | def addParameter(self, **kwargs): |
|
421 | def addParameter(self, **kwargs): | |
422 |
|
422 | ''' | ||
|
423 | Add parameters to "run" operation | |||
|
424 | ''' | |||
423 | opObj = self.opConfObjList[0] |
|
425 | opObj = self.opConfObjList[0] | |
424 |
|
426 | |||
425 | opObj.addParameter(**kwargs) |
|
427 | opObj.addParameter(**kwargs) |
@@ -1,1 +1,1 | |||||
1 |
|
|
1 | from viewcontroller import * No newline at end of file |
This diff has been collapsed as it changes many lines, (829 lines changed) Show them Hide them | |||||
@@ -47,58 +47,61 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
47 | """ |
|
47 | """ | |
48 | """ |
|
48 | """ | |
49 | def __init__(self, parent=None): |
|
49 | def __init__(self, parent=None): | |
50 |
|
|
50 | """ | |
51 |
|
|
51 | ||
52 |
|
|
52 | """ | |
53 |
|
|
53 | QMainWindow.__init__(self, parent) | |
54 |
|
|
54 | self.setupUi(self) | |
55 |
|
|
55 | self.__puObjDict = {} | |
56 |
|
|
56 | self.__itemTreeDict = {} | |
57 |
|
|
57 | self.readUnitConfObjList = [] | |
58 |
|
|
58 | self.operObjList = [] | |
59 |
|
|
59 | self.projecObjView = None | |
60 |
|
|
60 | self.idProject = 0 | |
61 |
|
|
61 | # self.idImag = 0 | |
62 |
|
|
62 | ||
63 |
|
|
63 | self.idImagscope = 0 | |
64 |
|
|
64 | self.idImagspectra = 0 | |
65 |
|
|
65 | self.idImagcross = 0 | |
66 |
|
|
66 | self.idImagrti = 0 | |
67 |
|
|
67 | self.idImagcoherence = 0 | |
68 |
|
|
68 | self.idImagpower = 0 | |
69 |
|
|
69 | self.idImagrtinoise = 0 | |
70 |
|
|
70 | self.idImagspectraHeis = 0 | |
71 |
|
|
71 | self.idImagrtiHeis = 0 | |
72 |
|
|
72 | ||
73 |
|
|
73 | self.online = 0 | |
74 |
|
|
74 | self.walk = 0 | |
75 |
|
|
75 | self.create = False | |
76 |
|
|
76 | self.selectedItemTree = None | |
77 |
|
|
77 | self.commCtrlPThread = None | |
78 |
|
|
78 | self.setParameter() | |
79 |
|
|
79 | self.create_comm() | |
80 | self.create_timers() |
|
80 | # self.create_timers() | |
81 | self.create_figure() |
|
81 | # self.create_figure() | |
82 |
|
|
82 | self.temporalFTP = ftpBuffer() | |
83 |
|
|
83 | self.projectProperCaracteristica = [] | |
84 |
|
|
84 | self.projectProperPrincipal = [] | |
85 |
|
|
85 | self.projectProperDescripcion = [] | |
86 |
|
|
86 | self.volProperCaracteristica = [] | |
87 |
|
|
87 | self.volProperPrincipal = [] | |
88 |
|
|
88 | self.volProperDescripcion = [] | |
89 |
|
|
89 | self.specProperCaracteristica = [] | |
90 |
|
|
90 | self.specProperPrincipal = [] | |
91 |
|
|
91 | self.specProperDescripcion = [] | |
92 |
|
|
92 | ||
93 |
|
|
93 | self.specHeisProperCaracteristica = [] | |
94 |
|
|
94 | self.specHeisProperPrincipal = [] | |
95 |
|
|
95 | self.specHeisProperDescripcion = [] | |
96 |
|
|
96 | ||
97 | # self.pathWorkSpace = './' |
|
97 | # self.pathWorkSpace = './' | |
98 |
|
|
98 | ||
99 |
|
|
99 | self.__projectObjDict = {} | |
100 |
|
|
100 | self.__operationObjDict = {} | |
101 |
|
101 | |||
|
102 | self.__ftpProcUnitAdded = False | |||
|
103 | self.__ftpProcUnitId = None | |||
|
104 | ||||
102 | @pyqtSignature("") |
|
105 | @pyqtSignature("") | |
103 | def on_actionCreate_triggered(self): |
|
106 | def on_actionCreate_triggered(self): | |
104 | """ |
|
107 | """ | |
@@ -120,13 +123,6 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
120 | Slot documentation goes here. |
|
123 | Slot documentation goes here. | |
121 | """ |
|
124 | """ | |
122 | self.close() |
|
125 | self.close() | |
123 |
|
||||
124 | @pyqtSignature("") |
|
|||
125 | def on_actionPauseToolbar_triggered(self): |
|
|||
126 | self.actionStarToolbar.setEnabled(False) |
|
|||
127 | self.actionPauseToolbar.setEnabled(True) |
|
|||
128 | self.actionStopToolbar.setEnabled(True) |
|
|||
129 | self.pauseProject() |
|
|||
130 |
|
126 | |||
131 | @pyqtSignature("") |
|
127 | @pyqtSignature("") | |
132 | def on_actionStart_triggered(self): |
|
128 | def on_actionStart_triggered(self): | |
@@ -134,7 +130,18 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
134 | """ |
|
130 | """ | |
135 | self.playProject() |
|
131 | self.playProject() | |
136 |
|
132 | |||
137 |
|
133 | @pyqtSignature("") | ||
|
134 | def on_actionPause_triggered(self): | |||
|
135 | """ | |||
|
136 | """ | |||
|
137 | self.pauseProject() | |||
|
138 | ||||
|
139 | @pyqtSignature("") | |||
|
140 | def on_actionStop_triggered(self): | |||
|
141 | """ | |||
|
142 | """ | |||
|
143 | self.stopProject() | |||
|
144 | ||||
138 | @pyqtSignature("") |
|
145 | @pyqtSignature("") | |
139 | def on_actionFTP_triggered(self): |
|
146 | def on_actionFTP_triggered(self): | |
140 | """ |
|
147 | """ | |
@@ -172,7 +179,10 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
172 | try: |
|
179 | try: | |
173 | projectObjLoad.readXml(filename) |
|
180 | projectObjLoad.readXml(filename) | |
174 | except: |
|
181 | except: | |
|
182 | self.console.clear() | |||
|
183 | self.console.append("The selected xml file could not be loaded ...") | |||
175 | return 0 |
|
184 | return 0 | |
|
185 | ||||
176 | project_name, description = projectObjLoad.name, projectObjLoad.description |
|
186 | project_name, description = projectObjLoad.name, projectObjLoad.description | |
177 | id = projectObjLoad.id |
|
187 | id = projectObjLoad.id | |
178 | self.__projectObjDict[id] = projectObjLoad |
|
188 | self.__projectObjDict[id] = projectObjLoad | |
@@ -188,18 +198,19 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
188 | self.specOpippFactor.setEnabled(True) |
|
198 | self.specOpippFactor.setEnabled(True) | |
189 | elif datatype == "Spectra": |
|
199 | elif datatype == "Spectra": | |
190 | ext = '.pdata' |
|
200 | ext = '.pdata' | |
|
201 | self.specOpProfiles.setEnabled(False) | |||
|
202 | self.specOpippFactor.setEnabled(False) | |||
191 | elif datatype == "Fits": |
|
203 | elif datatype == "Fits": | |
192 | ext = '.fits' |
|
204 | ext = '.fits' | |
193 |
|
||||
194 |
|
205 | |||
195 | if online == 0: |
|
206 | if online == 0: | |
196 | self.loadDays(data_path, ext, walk) |
|
207 | self.loadDays(data_path, ext, walk) | |
197 | else: |
|
208 | else: | |
198 |
|
|
209 | self.proComStartDate.setEnabled(False) | |
199 |
|
|
210 | self.proComEndDate.setEnabled(False) | |
200 |
|
|
211 | self.proStartTime.setEnabled(False) | |
201 |
|
|
212 | self.proEndTime.setEnabled(False) | |
202 |
|
|
213 | self.frame_2.setEnabled(True) | |
203 |
|
214 | |||
204 | self.tabWidgetProject.setEnabled(True) |
|
215 | self.tabWidgetProject.setEnabled(True) | |
205 | self.tabWidgetProject.setCurrentWidget(self.tabProject) |
|
216 | self.tabWidgetProject.setCurrentWidget(self.tabProject) | |
@@ -228,7 +239,13 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
228 | self.refreshPUWindow(puObj.datatype, puObj) |
|
239 | self.refreshPUWindow(puObj.datatype, puObj) | |
229 | self.showPUSpectraHeisProperties(puObj) |
|
240 | self.showPUSpectraHeisProperties(puObj) | |
230 | self.showtabPUCreated(datatype=puObj.datatype) |
|
241 | self.showtabPUCreated(datatype=puObj.datatype) | |
231 |
|
242 | |||
|
243 | if puObj.name == "SendToServer": | |||
|
244 | self.__ftpProcUnitAdded = True | |||
|
245 | self.__ftpProcUnitId = puObj.getId() | |||
|
246 | ||||
|
247 | self.console.clear() | |||
|
248 | self.console.append("The selected xml file has been loaded successfully") | |||
232 | # self.refreshPUWindow(datatype=datatype,puObj=puObj) |
|
249 | # self.refreshPUWindow(datatype=datatype,puObj=puObj) | |
233 |
|
250 | |||
234 | @pyqtSignature("") |
|
251 | @pyqtSignature("") | |
@@ -268,18 +285,17 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
268 | Slot documentation goes here. |
|
285 | Slot documentation goes here. | |
269 | """ |
|
286 | """ | |
270 | self.playProject() |
|
287 | self.playProject() | |
271 | self.actionStarToolbar.setEnabled(False) |
|
288 | ||
272 | self.actionPauseToolbar.setEnabled(True) |
|
289 | @pyqtSignature("") | |
273 | self.actionStopToolbar.setEnabled(True) |
|
290 | def on_actionPauseToolbar_triggered(self): | |
274 |
|
291 | |||
|
292 | self.pauseProject() | |||
|
293 | ||||
275 | @pyqtSignature("") |
|
294 | @pyqtSignature("") | |
276 | def on_actionStopToolbar_triggered(self): |
|
295 | def on_actionStopToolbar_triggered(self): | |
277 | """ |
|
296 | """ | |
278 | Slot documentation goes here. |
|
297 | Slot documentation goes here. | |
279 | """ |
|
298 | """ | |
280 | self.actionStarToolbar.setEnabled(True) |
|
|||
281 | self.actionPauseToolbar.setEnabled(False) |
|
|||
282 | self.actionStopToolbar.setEnabled(False) |
|
|||
283 | self.stopProject() |
|
299 | self.stopProject() | |
284 |
|
300 | |||
285 | @pyqtSignature("int") |
|
301 | @pyqtSignature("int") | |
@@ -539,6 +555,12 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
539 | BUSCA EN LA LISTA DE OPERACIONES DEL TIPO VOLTAJE Y LES A�ADE EL PARAMETRO ADECUADO ESPERANDO LA ACEPTACION DEL USUARIO |
|
555 | BUSCA EN LA LISTA DE OPERACIONES DEL TIPO VOLTAJE Y LES A�ADE EL PARAMETRO ADECUADO ESPERANDO LA ACEPTACION DEL USUARIO | |
540 | PARA AGREGARLO AL ARCHIVO DE CONFIGURACION XML |
|
556 | PARA AGREGARLO AL ARCHIVO DE CONFIGURACION XML | |
541 | """ |
|
557 | """ | |
|
558 | ||||
|
559 | checkPath = False | |||
|
560 | ||||
|
561 | self.actionSaveToolbar.setEnabled(False) | |||
|
562 | self.actionStarToolbar.setEnabled(False) | |||
|
563 | ||||
542 | puObj = self.getSelectedPUObj() |
|
564 | puObj = self.getSelectedPUObj() | |
543 | puObj.removeOperations() |
|
565 | puObj.removeOperations() | |
544 |
|
566 | |||
@@ -682,7 +704,17 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
682 | opObj.addParameter(name=name_parameter2, value=value2, format=format2) |
|
704 | opObj.addParameter(name=name_parameter2, value=value2, format=format2) | |
683 | opObj.addParameter(name=name_parameter3, value=value3, format=format3) |
|
705 | opObj.addParameter(name=name_parameter3, value=value3, format=format3) | |
684 | opObj.addParameter(name=name_parameter4, value=value4, format=format4) |
|
706 | opObj.addParameter(name=name_parameter4, value=value4, format=format4) | |
685 |
|
707 | |||
|
708 | if self.volOpCebFlip.isChecked(): | |||
|
709 | name_operation = 'deFlip' | |||
|
710 | optype = 'self' | |||
|
711 | value = self.volOpFlip.text() | |||
|
712 | name_parameter = 'channelList' | |||
|
713 | format = 'intList' | |||
|
714 | ||||
|
715 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |||
|
716 | opObj.addParameter(name=name_parameter, value=value, format=format) | |||
|
717 | ||||
686 | if self.volOpCebCohInt.isChecked(): |
|
718 | if self.volOpCebCohInt.isChecked(): | |
687 | name_operation = 'CohInt' |
|
719 | name_operation = 'CohInt' | |
688 | optype = 'other' |
|
720 | optype = 'other' | |
@@ -690,11 +722,11 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
690 | name_parameter = 'n' |
|
722 | name_parameter = 'n' | |
691 | format = 'float' |
|
723 | format = 'float' | |
692 |
|
724 | |||
693 |
opObj = puObj.addOperation(name= |
|
725 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
694 | opObj.addParameter(name=name_parameter, value=value, format=format) |
|
726 | opObj.addParameter(name=name_parameter, value=value, format=format) | |
695 |
|
727 | |||
696 | if self.volGraphCebshow.isChecked(): |
|
728 | if self.volGraphCebshow.isChecked(): | |
697 |
name_operation = ' |
|
729 | name_operation = 'Scope' | |
698 | optype = 'other' |
|
730 | optype = 'other' | |
699 | name_parameter = 'type' |
|
731 | name_parameter = 'type' | |
700 | value = 'Scope' |
|
732 | value = 'Scope' | |
@@ -709,7 +741,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
709 | format = 'str' |
|
741 | format = 'str' | |
710 |
|
742 | |||
711 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
743 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
712 | opObj.addParameter(name=name_parameter, value=value, format=format) |
|
744 | # opObj.addParameter(name=name_parameter, value=value, format=format) | |
713 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) |
|
745 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) | |
714 |
|
746 | |||
715 | channelList = self.volGraphChannelList.text() |
|
747 | channelList = self.volGraphChannelList.text() | |
@@ -745,6 +777,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
745 | opObj.addParameter(name='ymax', value=yvalueList[1], format='int') |
|
777 | opObj.addParameter(name='ymax', value=yvalueList[1], format='int') | |
746 |
|
778 | |||
747 | if self.volGraphCebSave.isChecked(): |
|
779 | if self.volGraphCebSave.isChecked(): | |
|
780 | checkPath = True | |||
748 | opObj.addParameter(name='save', value='1', format='int') |
|
781 | opObj.addParameter(name='save', value='1', format='int') | |
749 | opObj.addParameter(name='figpath', value=self.volGraphPath.text(), format='str') |
|
782 | opObj.addParameter(name='figpath', value=self.volGraphPath.text(), format='str') | |
750 | value = self.volGraphPrefix.text() |
|
783 | value = self.volGraphPrefix.text() | |
@@ -756,35 +789,44 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
756 | self.console.append("Please Write prefix") |
|
789 | self.console.append("Please Write prefix") | |
757 | return 0 |
|
790 | return 0 | |
758 | opObj.addParameter(name='figfile', value=self.volGraphPrefix.text(), format='str') |
|
791 | opObj.addParameter(name='figfile', value=self.volGraphPrefix.text(), format='str') | |
759 |
|
792 | |||
|
793 | localfolder = None | |||
|
794 | if checkPath: | |||
|
795 | localfolder = str(self.specGraphPath.text()) | |||
|
796 | if localfolder == '': | |||
|
797 | self.console.clear() | |||
|
798 | self.console.append("Graphic path should be defined") | |||
|
799 | return 0 | |||
|
800 | ||||
760 | # if something happend |
|
801 | # if something happend | |
761 | parms_ok, output_path, blocksperfile, profilesperblock = self.checkInputsPUSave(datatype='Voltage') |
|
802 | parms_ok, output_path, blocksperfile, profilesperblock = self.checkInputsPUSave(datatype='Voltage') | |
762 | name_operation = 'VoltageWriter' |
|
|||
763 | optype = 'other' |
|
|||
764 | name_parameter1 = 'path' |
|
|||
765 | name_parameter2 = 'blocksPerFile' |
|
|||
766 | name_parameter3 = 'profilesPerBlock' |
|
|||
767 | value1 = output_path |
|
|||
768 | value2 = blocksperfile |
|
|||
769 | value3 = profilesperblock |
|
|||
770 | format = "int" |
|
|||
771 | if parms_ok: |
|
803 | if parms_ok: | |
|
804 | name_operation = 'VoltageWriter' | |||
|
805 | optype = 'other' | |||
|
806 | name_parameter1 = 'path' | |||
|
807 | name_parameter2 = 'blocksPerFile' | |||
|
808 | name_parameter3 = 'profilesPerBlock' | |||
|
809 | value1 = output_path | |||
|
810 | value2 = blocksperfile | |||
|
811 | value3 = profilesperblock | |||
|
812 | format = "int" | |||
772 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
813 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
773 | opObj.addParameter(name=name_parameter1, value=value1) |
|
814 | opObj.addParameter(name=name_parameter1, value=value1) | |
774 | opObj.addParameter(name=name_parameter2, value=value2, format=format) |
|
815 | opObj.addParameter(name=name_parameter2, value=value2, format=format) | |
775 | opObj.addParameter(name=name_parameter3, value=value3, format=format) |
|
816 | opObj.addParameter(name=name_parameter3, value=value3, format=format) | |
776 |
|
||||
777 |
|
||||
778 |
|
817 | |||
779 | #---------NEW VOLTAGE PROPERTIES |
|
818 | #---------NEW VOLTAGE PROPERTIES | |
780 | self.showPUVoltageProperties(puObj) |
|
819 | self.showPUVoltageProperties(puObj) | |
781 |
|
||||
782 |
|
820 | |||
783 | self.console.clear() |
|
821 | self.console.clear() | |
784 | self.console.append("If you want to save your project") |
|
822 | self.console.append("If you want to save your project") | |
785 | self.console.append("click on your project name in the Tree Project Explorer") |
|
823 | self.console.append("click on your project name in the Tree Project Explorer") | |
786 |
|
|
824 | ||
787 |
|
825 | self.actionSaveToolbar.setEnabled(True) | ||
|
826 | self.actionStarToolbar.setEnabled(True) | |||
|
827 | ||||
|
828 | return 1 | |||
|
829 | ||||
788 | """ |
|
830 | """ | |
789 | Voltage Graph |
|
831 | Voltage Graph | |
790 | """ |
|
832 | """ | |
@@ -915,7 +957,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
915 | self.specOpgetNoise.setEnabled(False) |
|
957 | self.specOpgetNoise.setEnabled(False) | |
916 |
|
958 | |||
917 | def refreshID(self, puObj): |
|
959 | def refreshID(self, puObj): | |
918 |
opObj = puObj.getOpObj |
|
960 | opObj = puObj.getOperationObj(name='Scope') | |
|
961 | # opObj = puObj.getOpObjfromParamValue(value="Scope") | |||
919 | if opObj == None: |
|
962 | if opObj == None: | |
920 | pass |
|
963 | pass | |
921 | else: |
|
964 | else: | |
@@ -928,7 +971,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
928 | value1 = int(self.idImagscope) |
|
971 | value1 = int(self.idImagscope) | |
929 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) |
|
972 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) | |
930 |
|
973 | |||
931 |
opObj = puObj.getOpObj |
|
974 | opObj = puObj.getOperationObj(name='SpectraPlot') | |
|
975 | # opObj = puObj.getOpObjfromParamValue(value="SpectraPlot") | |||
932 | if opObj == None: |
|
976 | if opObj == None: | |
933 | pass |
|
977 | pass | |
934 | else: |
|
978 | else: | |
@@ -941,8 +985,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
941 | value1 = int(self.idImagspectra) |
|
985 | value1 = int(self.idImagspectra) | |
942 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) |
|
986 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) | |
943 |
|
987 | |||
944 |
|
988 | opObj = puObj.getOperationObj(name='CrossSpectraPlot') | ||
945 | opObj = puObj.getOpObjfromParamValue(value="CrossSpectraPlot") |
|
989 | # opObj = puObj.getOpObjfromParamValue(value="CrossSpectraPlot") | |
946 | if opObj == None: |
|
990 | if opObj == None: | |
947 | pass |
|
991 | pass | |
948 | else: |
|
992 | else: | |
@@ -954,8 +998,9 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
954 | self.idImagcross = self.idImagcross + 1 |
|
998 | self.idImagcross = self.idImagcross + 1 | |
955 | value1 = int(self.idImagcross) |
|
999 | value1 = int(self.idImagcross) | |
956 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) |
|
1000 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) | |
957 |
|
1001 | |||
958 |
opObj = puObj.getOpObj |
|
1002 | opObj = puObj.getOperationObj(name='RTIPlot') | |
|
1003 | # opObj = puObj.getOpObjfromParamValue(value="RTIPlot") | |||
959 | if opObj == None: |
|
1004 | if opObj == None: | |
960 | pass |
|
1005 | pass | |
961 | else: |
|
1006 | else: | |
@@ -967,8 +1012,9 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
967 | self.idImagrti = self.idImagrti + 1 |
|
1012 | self.idImagrti = self.idImagrti + 1 | |
968 | value1 = int(self.idImagrti) |
|
1013 | value1 = int(self.idImagrti) | |
969 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) |
|
1014 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) | |
970 |
|
|
1015 | ||
971 |
opObj = puObj.getOpObj |
|
1016 | opObj = puObj.getOperationObj(name='CoherenceMap') | |
|
1017 | # opObj = puObj.getOpObjfromParamValue(value="CoherenceMap") | |||
972 | if opObj == None: |
|
1018 | if opObj == None: | |
973 | pass |
|
1019 | pass | |
974 | else: |
|
1020 | else: | |
@@ -981,7 +1027,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
981 | value1 = int(self.idImagcoherence) |
|
1027 | value1 = int(self.idImagcoherence) | |
982 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) |
|
1028 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) | |
983 |
|
1029 | |||
984 |
opObj = puObj.getOpObj |
|
1030 | opObj = puObj.getOperationObj(name='PowerProfilePlot') | |
|
1031 | # opObj = puObj.getOpObjfromParamValue(value="PowerProfilePlot") | |||
985 | if opObj == None: |
|
1032 | if opObj == None: | |
986 | pass |
|
1033 | pass | |
987 | else: |
|
1034 | else: | |
@@ -993,8 +1040,9 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
993 | self.idImagpower = self.idImagpower + 1 |
|
1040 | self.idImagpower = self.idImagpower + 1 | |
994 | value1 = int(self.idImagpower) |
|
1041 | value1 = int(self.idImagpower) | |
995 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) |
|
1042 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) | |
996 |
|
|
1043 | ||
997 |
opObj = puObj.getOpObj |
|
1044 | opObj = puObj.getOperationObj(name='Noise') | |
|
1045 | # opObj = puObj.getOpObjfromParamValue(value="Noise") | |||
998 | if opObj == None: |
|
1046 | if opObj == None: | |
999 | pass |
|
1047 | pass | |
1000 | else: |
|
1048 | else: | |
@@ -1006,8 +1054,9 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1006 | self.idImagrtinoise = self.idImagrtinoise + 1 |
|
1054 | self.idImagrtinoise = self.idImagrtinoise + 1 | |
1007 | value1 = int(self.idImagrtinoise) |
|
1055 | value1 = int(self.idImagrtinoise) | |
1008 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) |
|
1056 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) | |
1009 |
|
|
1057 | ||
1010 |
opObj = puObj.getOpObj |
|
1058 | opObj = puObj.getOperationObj(name='SpectraHeisScope') | |
|
1059 | # opObj = puObj.getOpObjfromParamValue(value="SpectraHeisScope") | |||
1011 | if opObj == None: |
|
1060 | if opObj == None: | |
1012 | pass |
|
1061 | pass | |
1013 | else: |
|
1062 | else: | |
@@ -1019,8 +1068,9 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1019 | self.idImagspectraHeis = self.idImagspectraHeis + 1 |
|
1068 | self.idImagspectraHeis = self.idImagspectraHeis + 1 | |
1020 | value1 = int(self.idImagspectraHeis) |
|
1069 | value1 = int(self.idImagspectraHeis) | |
1021 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) |
|
1070 | opObj.changeParameter(name=name_parameter1, value=value1, format=format1) | |
1022 |
|
|
1071 | ||
1023 |
opObj = puObj.getOpObj |
|
1072 | opObj = puObj.getOperationObj(name='RTIfromSpectraHeis') | |
|
1073 | # opObj = puObj.getOpObjfromParamValue(value="RTIfromSpectraHeis") | |||
1024 | if opObj == None: |
|
1074 | if opObj == None: | |
1025 | pass |
|
1075 | pass | |
1026 | else: |
|
1076 | else: | |
@@ -1038,6 +1088,13 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1038 | """ |
|
1088 | """ | |
1039 | AÑADE OPERACION SPECTRA |
|
1089 | AÑADE OPERACION SPECTRA | |
1040 | """ |
|
1090 | """ | |
|
1091 | ||||
|
1092 | addFTP = False | |||
|
1093 | checkPath = False | |||
|
1094 | ||||
|
1095 | self.actionSaveToolbar.setEnabled(False) | |||
|
1096 | self.actionStarToolbar.setEnabled(False) | |||
|
1097 | ||||
1041 | puObj = self.getSelectedPUObj() |
|
1098 | puObj = self.getSelectedPUObj() | |
1042 | puObj.removeOperations() |
|
1099 | puObj.removeOperations() | |
1043 |
|
1100 | |||
@@ -1229,7 +1286,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1229 |
|
1286 | |||
1230 | #-----Spectra Plot----- |
|
1287 | #-----Spectra Plot----- | |
1231 | if self.specGraphCebSpectraplot.isChecked(): |
|
1288 | if self.specGraphCebSpectraplot.isChecked(): | |
1232 | name_operation = 'Plot' |
|
1289 | name_operation = 'SpectraPlot' | |
1233 | optype = 'other' |
|
1290 | optype = 'other' | |
1234 | name_parameter = 'type' |
|
1291 | name_parameter = 'type' | |
1235 | value = 'SpectraPlot' |
|
1292 | value = 'SpectraPlot' | |
@@ -1249,7 +1306,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1249 | yvalue = self.specGgraphHeight.text() |
|
1306 | yvalue = self.specGgraphHeight.text() | |
1250 | zvalue = self.specGgraphDbsrange.text() |
|
1307 | zvalue = self.specGgraphDbsrange.text() | |
1251 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
1308 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
1252 | opObj.addParameter(name=name_parameter, value=value, format=format) |
|
1309 | # opObj.addParameter(name=name_parameter, value=value, format=format) | |
1253 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) |
|
1310 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) | |
1254 |
|
1311 | |||
1255 | if not channelList == '': |
|
1312 | if not channelList == '': | |
@@ -1301,6 +1358,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1301 | opObj.addParameter(name='zmax', value=zvalueList[1], format=format) |
|
1358 | opObj.addParameter(name='zmax', value=zvalueList[1], format=format) | |
1302 |
|
1359 | |||
1303 | if self.specGraphSaveSpectra.isChecked(): |
|
1360 | if self.specGraphSaveSpectra.isChecked(): | |
|
1361 | checkPath = True | |||
1304 | name_parameter1 = 'save' |
|
1362 | name_parameter1 = 'save' | |
1305 | name_parameter2 = 'figpath' |
|
1363 | name_parameter2 = 'figpath' | |
1306 | name_parameter3 = 'figfile' |
|
1364 | name_parameter3 = 'figfile' | |
@@ -1311,27 +1369,20 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1311 | format2 = 'str' |
|
1369 | format2 = 'str' | |
1312 | opObj.addParameter(name=name_parameter1, value=value1 , format=format1) |
|
1370 | opObj.addParameter(name=name_parameter1, value=value1 , format=format1) | |
1313 | opObj.addParameter(name=name_parameter2, value=value2, format=format2) |
|
1371 | opObj.addParameter(name=name_parameter2, value=value2, format=format2) | |
1314 | if not value3 == "": |
|
1372 | opObj.addParameter(name=name_parameter3, value=value3, format=format2) | |
1315 | try: |
|
|||
1316 | value3 = str(self.specGraphPrefix.text()) |
|
|||
1317 | except: |
|
|||
1318 | self.console.clear() |
|
|||
1319 | self.console.append("Please Write prefix") |
|
|||
1320 | return 0 |
|
|||
1321 | opObj.addParameter(name='figfile', value=self.specGraphPrefix.text(), format='str') |
|
|||
1322 |
|
1373 | |||
1323 | # opObj.addParameter(name=name_parameter3, value=value3, format=format2) |
|
|||
1324 | # opObj.addParameter(name='wr_period', value='5',format='int') |
|
1374 | # opObj.addParameter(name='wr_period', value='5',format='int') | |
1325 |
|
1375 | |||
1326 | if self.specGraphftpSpectra.isChecked(): |
|
1376 | if self.specGraphftpSpectra.isChecked(): | |
1327 | opObj.addParameter(name='ftp', value='1', format='int') |
|
1377 | opObj.addParameter(name='ftp', value='1', format='int') | |
1328 |
self.addFTPConf |
|
1378 | self.addFTPConf2Operation(puObj, opObj) | |
|
1379 | addFTP = True | |||
1329 |
|
1380 | |||
1330 | if self.specGraphCebCrossSpectraplot.isChecked(): |
|
1381 | if self.specGraphCebCrossSpectraplot.isChecked(): | |
1331 | name_operation = 'Plot' |
|
1382 | name_operation = 'CrossSpectraPlot' | |
1332 | optype = 'other' |
|
1383 | optype = 'other' | |
1333 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
1384 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
1334 | opObj.addParameter(name='type', value="CrossSpectraPlot", format='str') |
|
1385 | # opObj.addParameter(name='type', value="CrossSpectraPlot", format='str') | |
1335 | opObj.addParameter(name='power_cmap', value='jet', format='str') |
|
1386 | opObj.addParameter(name='power_cmap', value='jet', format='str') | |
1336 | opObj.addParameter(name='coherence_cmap', value='jet', format='str') |
|
1387 | opObj.addParameter(name='coherence_cmap', value='jet', format='str') | |
1337 | opObj.addParameter(name='phase_cmap', value='RdBu_r', format='str') |
|
1388 | opObj.addParameter(name='phase_cmap', value='RdBu_r', format='str') | |
@@ -1385,6 +1436,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1385 | opObj.addParameter(name='zmax', value=zvalueList[1], format='float') |
|
1436 | opObj.addParameter(name='zmax', value=zvalueList[1], format='float') | |
1386 |
|
1437 | |||
1387 | if self.specGraphSaveCross.isChecked(): |
|
1438 | if self.specGraphSaveCross.isChecked(): | |
|
1439 | checkPath = True | |||
1388 | opObj.addParameter(name='save', value='1', format='bool') |
|
1440 | opObj.addParameter(name='save', value='1', format='bool') | |
1389 | opObj.addParameter(name='figpath', value=self.specGraphPath.text(), format='str') |
|
1441 | opObj.addParameter(name='figpath', value=self.specGraphPath.text(), format='str') | |
1390 | value = self.specGraphPrefix.text() |
|
1442 | value = self.specGraphPrefix.text() | |
@@ -1399,10 +1451,11 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1399 | # opObj.addParameter(name='figfile', value=self.specGraphPrefix.text(), format='str') |
|
1451 | # opObj.addParameter(name='figfile', value=self.specGraphPrefix.text(), format='str') | |
1400 | if self.specGraphftpCross.isChecked(): |
|
1452 | if self.specGraphftpCross.isChecked(): | |
1401 | opObj.addParameter(name='ftp', value='1', format='int') |
|
1453 | opObj.addParameter(name='ftp', value='1', format='int') | |
1402 |
self.addFTPConf |
|
1454 | self.addFTPConf2Operation(puObj, opObj) | |
|
1455 | addFTP = True | |||
1403 |
|
1456 | |||
1404 | if self.specGraphCebRTIplot.isChecked(): |
|
1457 | if self.specGraphCebRTIplot.isChecked(): | |
1405 | name_operation = 'Plot' |
|
1458 | name_operation = 'RTIPlot' | |
1406 | optype = 'other' |
|
1459 | optype = 'other' | |
1407 | name_parameter = 'type' |
|
1460 | name_parameter = 'type' | |
1408 | value = 'RTIPlot' |
|
1461 | value = 'RTIPlot' | |
@@ -1420,7 +1473,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1420 | format = 'str' |
|
1473 | format = 'str' | |
1421 |
|
1474 | |||
1422 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
1475 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
1423 | opObj.addParameter(name=name_parameter, value=value, format=format) |
|
1476 | # opObj.addParameter(name=name_parameter, value=value, format=format) | |
1424 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) |
|
1477 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) | |
1425 |
|
1478 | |||
1426 | channelList = self.specGgraphChannelList.text() |
|
1479 | channelList = self.specGgraphChannelList.text() | |
@@ -1475,25 +1528,27 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1475 | opObj.addParameter(name='zmax', value=zvalueList[1], format=format) |
|
1528 | opObj.addParameter(name='zmax', value=zvalueList[1], format=format) | |
1476 |
|
1529 | |||
1477 | if self.specGraphSaveRTIplot.isChecked(): |
|
1530 | if self.specGraphSaveRTIplot.isChecked(): | |
1478 | opObj.addParameter(name='save', value='1', format='bool') |
|
1531 | checkPath = True | |
1479 |
opObj.addParameter(name=' |
|
1532 | opObj.addParameter(name='save', value='1', format='bool') | |
1480 | value = self.specGraphPrefix.text() |
|
1533 | opObj.addParameter(name='figpath', value=self.specGraphPath.text(), format='str') | |
1481 | if not value == "": |
|
1534 | value = self.specGraphPrefix.text() | |
1482 |
|
|
1535 | if not value == "": | |
1483 | value = str(self.specGraphPrefix.text()) |
|
1536 | try: | |
1484 | except: |
|
1537 | value = str(self.specGraphPrefix.text()) | |
1485 |
|
|
1538 | except: | |
1486 |
self.console. |
|
1539 | self.console.clear() | |
1487 | return 0 |
|
1540 | self.console.append("Please Write prefix") | |
1488 | opObj.addParameter(name='figfile', value=value, format='str') |
|
1541 | return 0 | |
|
1542 | opObj.addParameter(name='figfile', value=value, format='str') | |||
1489 |
|
1543 | |||
1490 | # test_ftp |
|
1544 | # test_ftp | |
1491 | if self.specGraphftpRTIplot.isChecked(): |
|
1545 | if self.specGraphftpRTIplot.isChecked(): | |
1492 | opObj.addParameter(name='ftp', value='1', format='int') |
|
1546 | opObj.addParameter(name='ftp', value='1', format='int') | |
1493 |
self.addFTPConf |
|
1547 | self.addFTPConf2Operation(puObj, opObj) | |
|
1548 | addFTP = True | |||
1494 |
|
1549 | |||
1495 | if self.specGraphCebCoherencmap.isChecked(): |
|
1550 | if self.specGraphCebCoherencmap.isChecked(): | |
1496 |
name_operation = ' |
|
1551 | name_operation = 'CoherenceMap' | |
1497 | optype = 'other' |
|
1552 | optype = 'other' | |
1498 | name_parameter = 'type' |
|
1553 | name_parameter = 'type' | |
1499 | value = 'CoherenceMap' |
|
1554 | value = 'CoherenceMap' | |
@@ -1508,7 +1563,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1508 | format1 = 'int' |
|
1563 | format1 = 'int' | |
1509 |
|
1564 | |||
1510 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
1565 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
1511 | opObj.addParameter(name=name_parameter, value=value, format=format) |
|
1566 | # opObj.addParameter(name=name_parameter, value=value, format=format) | |
1512 | # opObj.addParameter(name='coherence_cmap', value='jet', format='str') |
|
1567 | # opObj.addParameter(name='coherence_cmap', value='jet', format='str') | |
1513 | # opObj.addParameter(name='phase_cmap', value='RdBu_r', format='str') |
|
1568 | # opObj.addParameter(name='phase_cmap', value='RdBu_r', format='str') | |
1514 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) |
|
1569 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) | |
@@ -1562,6 +1617,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1562 | opObj.addParameter(name='zmax', value=zvalueList[1], format='float') |
|
1617 | opObj.addParameter(name='zmax', value=zvalueList[1], format='float') | |
1563 |
|
1618 | |||
1564 | if self.specGraphSaveCoherencemap.isChecked(): |
|
1619 | if self.specGraphSaveCoherencemap.isChecked(): | |
|
1620 | checkPath = True | |||
1565 | opObj.addParameter(name='save', value='1', format='bool') |
|
1621 | opObj.addParameter(name='save', value='1', format='bool') | |
1566 | opObj.addParameter(name='figpath', value=self.specGraphPath.text(), format='str') |
|
1622 | opObj.addParameter(name='figpath', value=self.specGraphPath.text(), format='str') | |
1567 | value = self.specGraphPrefix.text() |
|
1623 | value = self.specGraphPrefix.text() | |
@@ -1577,10 +1633,11 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1577 | # test_ftp |
|
1633 | # test_ftp | |
1578 | if self.specGraphftpCoherencemap.isChecked(): |
|
1634 | if self.specGraphftpCoherencemap.isChecked(): | |
1579 | opObj.addParameter(name='ftp', value='1', format='int') |
|
1635 | opObj.addParameter(name='ftp', value='1', format='int') | |
1580 |
self.addFTPConf |
|
1636 | self.addFTPConf2Operation(puObj, opObj) | |
|
1637 | addFTP = True | |||
1581 |
|
1638 | |||
1582 | if self.specGraphPowerprofile.isChecked(): |
|
1639 | if self.specGraphPowerprofile.isChecked(): | |
1583 | name_operation = 'Plot' |
|
1640 | name_operation = 'PowerProfilePlot' | |
1584 | optype = 'other' |
|
1641 | optype = 'other' | |
1585 | name_parameter = 'type' |
|
1642 | name_parameter = 'type' | |
1586 | value = 'PowerProfilePlot' |
|
1643 | value = 'PowerProfilePlot' | |
@@ -1592,7 +1649,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1592 | self.idImagpower = self.idImagpower + 1 |
|
1649 | self.idImagpower = self.idImagpower + 1 | |
1593 | value1 = int(self.idImagpower) |
|
1650 | value1 = int(self.idImagpower) | |
1594 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
1651 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
1595 | opObj.addParameter(name=name_parameter, value=value, format='str') |
|
1652 | # opObj.addParameter(name=name_parameter, value=value, format='str') | |
1596 | opObj.addParameter(name='id', value=value1, format='int') |
|
1653 | opObj.addParameter(name='id', value=value1, format='int') | |
1597 |
|
1654 | |||
1598 | channelList = self.specGgraphChannelList.text() |
|
1655 | channelList = self.specGgraphChannelList.text() | |
@@ -1625,6 +1682,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1625 |
|
1682 | |||
1626 |
|
1683 | |||
1627 | if self.specGraphSavePowerprofile.isChecked(): |
|
1684 | if self.specGraphSavePowerprofile.isChecked(): | |
|
1685 | checkPath = True | |||
1628 | opObj.addParameter(name='save', value='1', format='bool') |
|
1686 | opObj.addParameter(name='save', value='1', format='bool') | |
1629 | opObj.addParameter(name='figpath', value=self.specGraphPath.text(), format='str') |
|
1687 | opObj.addParameter(name='figpath', value=self.specGraphPath.text(), format='str') | |
1630 | value = self.specGraphPrefix.text() |
|
1688 | value = self.specGraphPrefix.text() | |
@@ -1640,11 +1698,12 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1640 |
|
1698 | |||
1641 | if self.specGraphftpPowerprofile.isChecked(): |
|
1699 | if self.specGraphftpPowerprofile.isChecked(): | |
1642 | opObj.addParameter(name='ftp', value='1', format='int') |
|
1700 | opObj.addParameter(name='ftp', value='1', format='int') | |
1643 |
self.addFTPConf |
|
1701 | self.addFTPConf2Operation(puObj, opObj) | |
|
1702 | addFTP = True | |||
1644 | # rti noise |
|
1703 | # rti noise | |
1645 |
|
1704 | |||
1646 | if self.specGraphCebRTInoise.isChecked(): |
|
1705 | if self.specGraphCebRTInoise.isChecked(): | |
1647 |
name_operation = ' |
|
1706 | name_operation = 'Noise' | |
1648 | optype = 'other' |
|
1707 | optype = 'other' | |
1649 | name_parameter = 'type' |
|
1708 | name_parameter = 'type' | |
1650 | value = 'Noise' |
|
1709 | value = 'Noise' | |
@@ -1661,7 +1720,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1661 | format = 'str' |
|
1720 | format = 'str' | |
1662 |
|
1721 | |||
1663 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
1722 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
1664 | opObj.addParameter(name=name_parameter, value=value, format=format) |
|
1723 | # opObj.addParameter(name=name_parameter, value=value, format=format) | |
1665 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) |
|
1724 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) | |
1666 |
|
1725 | |||
1667 | channelList = self.specGgraphChannelList.text() |
|
1726 | channelList = self.specGgraphChannelList.text() | |
@@ -1704,37 +1763,57 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1704 | opObj.addParameter(name='ymax', value=yvalueList[1], format=format) |
|
1763 | opObj.addParameter(name='ymax', value=yvalueList[1], format=format) | |
1705 |
|
1764 | |||
1706 | if self.specGraphSaveRTInoise.isChecked(): |
|
1765 | if self.specGraphSaveRTInoise.isChecked(): | |
1707 | opObj.addParameter(name='save', value='1', format='bool') |
|
1766 | checkPath = True | |
1708 |
opObj.addParameter(name=' |
|
1767 | opObj.addParameter(name='save', value='1', format='bool') | |
1709 | value = self.specGraphPrefix.text() |
|
1768 | opObj.addParameter(name='figpath', value=self.specGraphPath.text(), format='str') | |
1710 | if not value == "": |
|
1769 | value = self.specGraphPrefix.text() | |
1711 |
|
|
1770 | if not value == "": | |
1712 | value = str(self.specGraphPrefix.text()) |
|
1771 | try: | |
1713 | except: |
|
1772 | value = str(self.specGraphPrefix.text()) | |
1714 |
|
|
1773 | except: | |
1715 |
self.console. |
|
1774 | self.console.clear() | |
1716 | return 0 |
|
1775 | self.console.append("Please Write prefix") | |
1717 | opObj.addParameter(name='figfile', value=value, format='str') |
|
1776 | return 0 | |
|
1777 | opObj.addParameter(name='figfile', value=value, format='str') | |||
1718 |
|
1778 | |||
1719 | # test_ftp |
|
1779 | # test_ftp | |
1720 | if self.specGraphftpRTInoise.isChecked(): |
|
1780 | if self.specGraphftpRTInoise.isChecked(): | |
1721 | opObj.addParameter(name='ftp', value='1', format='int') |
|
1781 | opObj.addParameter(name='ftp', value='1', format='int') | |
1722 |
self.addFTPConf |
|
1782 | self.addFTPConf2Operation(puObj, opObj) | |
1723 |
|
1783 | addFTP = True | ||
1724 |
|
|
1784 | ||
1725 |
|
1785 | localfolder = None | ||
|
1786 | if checkPath: | |||
|
1787 | localfolder = str(self.specGraphPath.text()) | |||
|
1788 | if localfolder == '': | |||
|
1789 | self.console.clear() | |||
|
1790 | self.console.append("Graphic path should be defined") | |||
|
1791 | return 0 | |||
|
1792 | ||||
|
1793 | if addFTP: | |||
|
1794 | if not localfolder: | |||
|
1795 | self.console.clear() | |||
|
1796 | self.console.append("You have to save the plots before sending them to FTP Server") | |||
|
1797 | return 0 | |||
|
1798 | ||||
|
1799 | server, remotefolder, username, password, ftp_wei, exp_code, sub_exp_code, plot_pos = self.temporalFTP.recover() | |||
|
1800 | self.createFTPProcUnitView(server, username, password, remotefolder, localfolder) | |||
|
1801 | else: | |||
|
1802 | self.removeFTPProcUnitView() | |||
|
1803 | ||||
1726 | # if something happend |
|
1804 | # if something happend | |
1727 | parms_ok, output_path, blocksperfile, profilesperblock = self.checkInputsPUSave(datatype='Spectra') |
|
1805 | parms_ok, output_path, blocksperfile, profilesperblock = self.checkInputsPUSave(datatype='Spectra') | |
1728 | name_operation = 'SpectraWriter' |
|
|||
1729 | optype = 'other' |
|
|||
1730 | name_parameter1 = 'path' |
|
|||
1731 | name_parameter2 = 'blocksPerFile' |
|
|||
1732 | name_parameter3 = 'profilesPerBlock' |
|
|||
1733 | value1 = output_path |
|
|||
1734 | value2 = blocksperfile |
|
|||
1735 | value3 = profilesperblock |
|
|||
1736 | format = "int" |
|
|||
1737 | if parms_ok: |
|
1806 | if parms_ok: | |
|
1807 | name_operation = 'SpectraWriter' | |||
|
1808 | optype = 'other' | |||
|
1809 | name_parameter1 = 'path' | |||
|
1810 | name_parameter2 = 'blocksPerFile' | |||
|
1811 | name_parameter3 = 'profilesPerBlock' | |||
|
1812 | value1 = output_path | |||
|
1813 | value2 = blocksperfile | |||
|
1814 | value3 = profilesperblock | |||
|
1815 | format = "int" | |||
|
1816 | ||||
1738 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
1817 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
1739 | opObj.addParameter(name=name_parameter1, value=value1) |
|
1818 | opObj.addParameter(name=name_parameter1, value=value1) | |
1740 | opObj.addParameter(name=name_parameter2, value=value2, format=format) |
|
1819 | opObj.addParameter(name=name_parameter2, value=value2, format=format) | |
@@ -1745,7 +1824,12 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1745 | self.console.clear() |
|
1824 | self.console.clear() | |
1746 | self.console.append("If you want to save your project") |
|
1825 | self.console.append("If you want to save your project") | |
1747 | self.console.append("click on your project name in the Tree Project Explorer") |
|
1826 | self.console.append("click on your project name in the Tree Project Explorer") | |
1748 |
|
1827 | |||
|
1828 | self.actionSaveToolbar.setEnabled(True) | |||
|
1829 | self.actionStarToolbar.setEnabled(True) | |||
|
1830 | ||||
|
1831 | return 1 | |||
|
1832 | ||||
1749 | """ |
|
1833 | """ | |
1750 | Spectra Graph |
|
1834 | Spectra Graph | |
1751 | """ |
|
1835 | """ | |
@@ -1983,6 +2067,12 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1983 | """ |
|
2067 | """ | |
1984 | AÑADE OPERACION SPECTRAHEIS |
|
2068 | AÑADE OPERACION SPECTRAHEIS | |
1985 | """ |
|
2069 | """ | |
|
2070 | addFTP = False | |||
|
2071 | checkPath = False | |||
|
2072 | ||||
|
2073 | self.actionSaveToolbar.setEnabled(False) | |||
|
2074 | self.actionStarToolbar.setEnabled(False) | |||
|
2075 | ||||
1986 | puObj = self.getSelectedPUObj() |
|
2076 | puObj = self.getSelectedPUObj() | |
1987 | puObj.removeOperations() |
|
2077 | puObj.removeOperations() | |
1988 |
|
2078 | |||
@@ -1998,7 +2088,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
1998 |
|
2088 | |||
1999 | # ---- Spectra Plot----- |
|
2089 | # ---- Spectra Plot----- | |
2000 | if self.specHeisGraphCebSpectraplot.isChecked(): |
|
2090 | if self.specHeisGraphCebSpectraplot.isChecked(): | |
2001 |
name_operation = ' |
|
2091 | name_operation = 'SpectraHeisScope' | |
2002 | optype = 'other' |
|
2092 | optype = 'other' | |
2003 | name_parameter = 'type' |
|
2093 | name_parameter = 'type' | |
2004 | value = 'SpectraHeisScope' |
|
2094 | value = 'SpectraHeisScope' | |
@@ -2017,7 +2107,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2017 | xvalue = self.specHeisGgraphXminXmax.text() |
|
2107 | xvalue = self.specHeisGgraphXminXmax.text() | |
2018 | yvalue = self.specHeisGgraphYminYmax.text() |
|
2108 | yvalue = self.specHeisGgraphYminYmax.text() | |
2019 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
2109 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
2020 | opObj.addParameter(name=name_parameter, value=value, format=format) |
|
2110 | # opObj.addParameter(name=name_parameter, value=value, format=format) | |
2021 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) |
|
2111 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) | |
2022 |
|
2112 | |||
2023 | if not channelList == '': |
|
2113 | if not channelList == '': | |
@@ -2056,6 +2146,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2056 | opObj.addParameter(name=name2, value=value2, format=format) |
|
2146 | opObj.addParameter(name=name2, value=value2, format=format) | |
2057 |
|
2147 | |||
2058 | if self.specHeisGraphSaveSpectra.isChecked(): |
|
2148 | if self.specHeisGraphSaveSpectra.isChecked(): | |
|
2149 | checkPath = True | |||
2059 | name_parameter1 = 'save' |
|
2150 | name_parameter1 = 'save' | |
2060 | name_parameter2 = 'figpath' |
|
2151 | name_parameter2 = 'figpath' | |
2061 | name_parameter3 = 'figfile' |
|
2152 | name_parameter3 = 'figfile' | |
@@ -2080,10 +2171,11 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2080 |
|
2171 | |||
2081 | if self.specHeisGraphftpSpectra.isChecked(): |
|
2172 | if self.specHeisGraphftpSpectra.isChecked(): | |
2082 | opObj.addParameter(name='ftp', value='1', format='int') |
|
2173 | opObj.addParameter(name='ftp', value='1', format='int') | |
2083 |
self.addFTPConf |
|
2174 | self.addFTPConf2Operation(puObj, opObj) | |
|
2175 | addFTP = True | |||
2084 |
|
2176 | |||
2085 | if self.specHeisGraphCebRTIplot.isChecked(): |
|
2177 | if self.specHeisGraphCebRTIplot.isChecked(): | |
2086 |
name_operation = ' |
|
2178 | name_operation = 'RTIfromSpectraHeis' | |
2087 | optype = 'other' |
|
2179 | optype = 'other' | |
2088 | name_parameter = 'type' |
|
2180 | name_parameter = 'type' | |
2089 | value = 'RTIfromSpectraHeis' |
|
2181 | value = 'RTIfromSpectraHeis' | |
@@ -2101,7 +2193,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2101 | format = 'str' |
|
2193 | format = 'str' | |
2102 |
|
2194 | |||
2103 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
2195 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
2104 | opObj.addParameter(name=name_parameter, value=value, format=format) |
|
2196 | # opObj.addParameter(name=name_parameter, value=value, format=format) | |
2105 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) |
|
2197 | opObj.addParameter(name=name_parameter1, value=value1, format=format1) | |
2106 |
|
2198 | |||
2107 | channelList = self.specHeisGgraphChannelList.text() |
|
2199 | channelList = self.specHeisGgraphChannelList.text() | |
@@ -2144,36 +2236,57 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2144 | opObj.addParameter(name='ymax', value=yvalueList[1], format=format) |
|
2236 | opObj.addParameter(name='ymax', value=yvalueList[1], format=format) | |
2145 |
|
2237 | |||
2146 | if self.specHeisGraphSaveRTIplot.isChecked(): |
|
2238 | if self.specHeisGraphSaveRTIplot.isChecked(): | |
2147 | opObj.addParameter(name='save', value='1', format='bool') |
|
2239 | checkPath = True | |
2148 |
opObj.addParameter(name=' |
|
2240 | opObj.addParameter(name='save', value='1', format='bool') | |
2149 |
value |
|
2241 | opObj.addParameter(name='figpath', value=self.specHeisGraphPath.text(), format='str') | |
2150 | if not value == "": |
|
2242 | value = self.specHeisGraphPrefix.text() | |
2151 |
|
|
2243 | if not value == "": | |
2152 | value = str(self.specHeisGraphPrefix.text()) |
|
2244 | try: | |
2153 | except: |
|
2245 | value = str(self.specHeisGraphPrefix.text()) | |
2154 |
|
|
2246 | except: | |
2155 |
self.console. |
|
2247 | self.console.clear() | |
2156 | return 0 |
|
2248 | self.console.append("Please Write prefix") | |
2157 | opObj.addParameter(name='figfile', value=value, format='str') |
|
2249 | return 0 | |
|
2250 | opObj.addParameter(name='figfile', value=value, format='str') | |||
2158 |
|
2251 | |||
2159 | # test_ftp |
|
2252 | # test_ftp | |
2160 | if self.specHeisGraphftpRTIplot.isChecked(): |
|
2253 | if self.specHeisGraphftpRTIplot.isChecked(): | |
2161 | opObj.addParameter(name='ftp', value='1', format='int') |
|
2254 | opObj.addParameter(name='ftp', value='1', format='int') | |
2162 |
self.addFTPConf |
|
2255 | self.addFTPConf2Operation(puObj, opObj) | |
2163 |
|
2256 | addFTP = True | ||
|
2257 | ||||
|
2258 | localfolder = None | |||
|
2259 | if checkPath: | |||
|
2260 | localfolder = str(self.specGraphPath.text()) | |||
|
2261 | if localfolder == '': | |||
|
2262 | self.console.clear() | |||
|
2263 | self.console.append("Graphic path should be defined") | |||
|
2264 | return 0 | |||
|
2265 | ||||
|
2266 | if addFTP: | |||
|
2267 | if not localfolder: | |||
|
2268 | self.console.clear() | |||
|
2269 | self.console.append("You have to save the plots before sending them to FTP Server") | |||
|
2270 | return 0 | |||
|
2271 | ||||
|
2272 | server, remotefolder, username, password, ftp_wei, exp_code, sub_exp_code, plot_pos = self.temporalFTP.recover() | |||
|
2273 | self.createFTPProcUnitView(server, username, password, remotefolder, localfolder) | |||
|
2274 | else: | |||
|
2275 | self.removeFTPProcUnitView() | |||
|
2276 | ||||
2164 | # if something happened |
|
2277 | # if something happened | |
2165 | parms_ok, output_path, blocksperfile, metada = self.checkInputsPUSave(datatype='SpectraHeis') |
|
2278 | parms_ok, output_path, blocksperfile, metada = self.checkInputsPUSave(datatype='SpectraHeis') | |
2166 | name_operation = 'FitsWriter' |
|
|||
2167 | optype = 'other' |
|
|||
2168 | name_parameter1 = 'path' |
|
|||
2169 | name_parameter2 = 'dataBlocksPerFile' |
|
|||
2170 | name_parameter3 = 'metadatafile' |
|
|||
2171 | value1 = output_path |
|
|||
2172 | value2 = blocksperfile |
|
|||
2173 | value3 = metada |
|
|||
2174 | format2 = "int" |
|
|||
2175 | format3 = "str" |
|
|||
2176 | if parms_ok: |
|
2279 | if parms_ok: | |
|
2280 | name_operation = 'FitsWriter' | |||
|
2281 | optype = 'other' | |||
|
2282 | name_parameter1 = 'path' | |||
|
2283 | name_parameter2 = 'dataBlocksPerFile' | |||
|
2284 | name_parameter3 = 'metadatafile' | |||
|
2285 | value1 = output_path | |||
|
2286 | value2 = blocksperfile | |||
|
2287 | value3 = metada | |||
|
2288 | format2 = "int" | |||
|
2289 | format3 = "str" | |||
2177 | opObj = puObj.addOperation(name=name_operation, optype=optype) |
|
2290 | opObj = puObj.addOperation(name=name_operation, optype=optype) | |
2178 | opObj.addParameter(name=name_parameter1, value=value1) |
|
2291 | opObj.addParameter(name=name_parameter1, value=value1) | |
2179 | opObj.addParameter(name=name_parameter2, value=value2, format=format2) |
|
2292 | opObj.addParameter(name=name_parameter2, value=value2, format=format2) | |
@@ -2182,11 +2295,12 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2182 | self.showPUSpectraHeisProperties(puObj) |
|
2295 | self.showPUSpectraHeisProperties(puObj) | |
2183 |
|
2296 | |||
2184 | self.console.clear() |
|
2297 | self.console.clear() | |
2185 |
self.console.append(" |
|
2298 | self.console.append("Click on save icon ff you want to save your project") | |
2186 | self.console.append("click on your project name in the Tree Project Explorer") |
|
|||
2187 |
|
||||
2188 |
|
2299 | |||
2189 |
|
2300 | self.actionSaveToolbar.setEnabled(True) | ||
|
2301 | self.actionStarToolbar.setEnabled(True) | |||
|
2302 | ||||
|
2303 | return 1 | |||
2190 | @pyqtSignature("int") |
|
2304 | @pyqtSignature("int") | |
2191 | def on_specHeisGraphCebSpectraplot_stateChanged(self, p0): |
|
2305 | def on_specHeisGraphCebSpectraplot_stateChanged(self, p0): | |
2192 |
|
2306 | |||
@@ -2309,7 +2423,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2309 | if len(puObj.getOperationObjList()) == 1: |
|
2423 | if len(puObj.getOperationObjList()) == 1: | |
2310 | self.setInputsPU_View(datatype) |
|
2424 | self.setInputsPU_View(datatype) | |
2311 |
|
2425 | |||
2312 |
opObj = puObj.getOperationObj(name=" |
|
2426 | opObj = puObj.getOperationObj(name="run") | |
2313 | if opObj == None: |
|
2427 | if opObj == None: | |
2314 | self.specOpnFFTpoints.clear() |
|
2428 | self.specOpnFFTpoints.clear() | |
2315 | self.specOpProfiles.clear() |
|
2429 | self.specOpProfiles.clear() | |
@@ -2336,7 +2450,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2336 | value = opObj.getParameterValue(parameterName='ippFactor') |
|
2450 | value = opObj.getParameterValue(parameterName='ippFactor') | |
2337 | self.specOpippFactor.setText(str(value)) |
|
2451 | self.specOpippFactor.setText(str(value)) | |
2338 |
|
2452 | |||
2339 |
opObj = puObj.getOperationObj(name=" |
|
2453 | opObj = puObj.getOperationObj(name="run") | |
2340 | if opObj == None: |
|
2454 | if opObj == None: | |
2341 | self.specOppairsList.clear() |
|
2455 | self.specOppairsList.clear() | |
2342 | self.specOpCebCrossSpectra.setCheckState(0) |
|
2456 | self.specOpCebCrossSpectra.setCheckState(0) | |
@@ -2594,7 +2708,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2594 | self.volOpCohInt.setEnabled(True) |
|
2708 | self.volOpCohInt.setEnabled(True) | |
2595 | self.volOpCebCohInt.setCheckState(QtCore.Qt.Checked) |
|
2709 | self.volOpCebCohInt.setCheckState(QtCore.Qt.Checked) | |
2596 |
|
2710 | |||
2597 |
opObj = puObj.getOperationObj(name=' |
|
2711 | opObj = puObj.getOperationObj(name='Scope') | |
2598 | if opObj == None: |
|
2712 | if opObj == None: | |
2599 | self.volGraphCebshow.setCheckState(0) |
|
2713 | self.volGraphCebshow.setCheckState(0) | |
2600 | else: |
|
2714 | else: | |
@@ -2679,7 +2793,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2679 | self.specOpRadarfrequency.setEnabled(True) |
|
2793 | self.specOpRadarfrequency.setEnabled(True) | |
2680 | self.specOpCebRadarfrequency.setCheckState(QtCore.Qt.Checked) |
|
2794 | self.specOpCebRadarfrequency.setCheckState(QtCore.Qt.Checked) | |
2681 |
|
2795 | |||
2682 |
opObj = puObj.getOperationObj(name=" |
|
2796 | opObj = puObj.getOperationObj(name="run") | |
2683 | if opObj == None: |
|
2797 | if opObj == None: | |
2684 | self.specOpnFFTpoints.clear() |
|
2798 | self.specOpnFFTpoints.clear() | |
2685 | self.specOpProfiles.clear() |
|
2799 | self.specOpProfiles.clear() | |
@@ -2709,7 +2823,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2709 | value = opObj.getParameterValue(parameterName='ippFactor') |
|
2823 | value = opObj.getParameterValue(parameterName='ippFactor') | |
2710 | self.specOpippFactor.setText(str(value)) |
|
2824 | self.specOpippFactor.setText(str(value)) | |
2711 |
|
2825 | |||
2712 |
opObj = puObj.getOperationObj(name=" |
|
2826 | opObj = puObj.getOperationObj(name="run") | |
2713 | if opObj == None: |
|
2827 | if opObj == None: | |
2714 | self.specOppairsList.clear() |
|
2828 | self.specOppairsList.clear() | |
2715 | self.specOpCebCrossSpectra.setCheckState(0) |
|
2829 | self.specOpCebCrossSpectra.setCheckState(0) | |
@@ -2833,8 +2947,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2833 | self.specOpgetNoise.setText(value) |
|
2947 | self.specOpgetNoise.setText(value) | |
2834 | self.specOpgetNoise.setEnabled(True) |
|
2948 | self.specOpgetNoise.setEnabled(True) | |
2835 |
|
2949 | |||
2836 | opObj = puObj.getOperationObj(name='Plot') |
|
2950 | opObj = puObj.getOperationObj(name='SpectraPlot') | |
2837 | opObj = puObj.getOpObjfromParamValue(value="SpectraPlot") |
|
2951 | # opObj = puObj.getOpObjfromParamValue(value="SpectraPlot") | |
2838 | if opObj == None: |
|
2952 | if opObj == None: | |
2839 | self.specGraphCebSpectraplot.setCheckState(0) |
|
2953 | self.specGraphCebSpectraplot.setCheckState(0) | |
2840 | self.specGraphSaveSpectra.setCheckState(0) |
|
2954 | self.specGraphSaveSpectra.setCheckState(0) | |
@@ -2908,7 +3022,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2908 | value = " " |
|
3022 | value = " " | |
2909 | self.specGgraphftpratio.setText(str(value)) |
|
3023 | self.specGgraphftpratio.setText(str(value)) | |
2910 |
|
3024 | |||
2911 |
opObj = puObj.getOpObj |
|
3025 | opObj = puObj.getOperationObj(name='CrossSpectraPlot') | |
|
3026 | # opObj = puObj.getOpObjfromParamValue(value="CrossSpectraPlot") | |||
2912 | if opObj == None: |
|
3027 | if opObj == None: | |
2913 | self.specGraphCebCrossSpectraplot.setCheckState(0) |
|
3028 | self.specGraphCebCrossSpectraplot.setCheckState(0) | |
2914 | self.specGraphSaveCross.setCheckState(0) |
|
3029 | self.specGraphSaveCross.setCheckState(0) | |
@@ -2971,8 +3086,9 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
2971 | except: |
|
3086 | except: | |
2972 | value = " " |
|
3087 | value = " " | |
2973 | self.specGgraphftpratio.setText(str(value)) |
|
3088 | self.specGgraphftpratio.setText(str(value)) | |
2974 |
|
|
3089 | ||
2975 |
opObj = puObj.getOpObj |
|
3090 | opObj = puObj.getOperationObj(name='RTIPlot') | |
|
3091 | # opObj = puObj.getOpObjfromParamValue(value="RTIPlot") | |||
2976 | if opObj == None: |
|
3092 | if opObj == None: | |
2977 | self.specGraphCebRTIplot.setCheckState(0) |
|
3093 | self.specGraphCebRTIplot.setCheckState(0) | |
2978 | self.specGraphSaveRTIplot.setCheckState(0) |
|
3094 | self.specGraphSaveRTIplot.setCheckState(0) | |
@@ -3052,8 +3168,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
3052 | value = " " |
|
3168 | value = " " | |
3053 | self.specGgraphftpratio.setText(str(value)) |
|
3169 | self.specGgraphftpratio.setText(str(value)) | |
3054 |
|
3170 | |||
3055 |
|
3171 | opObj = puObj.getOperationObj(name='CoherenceMap') | ||
3056 | opObj = puObj.getOpObjfromParamValue(value="CoherenceMap") |
|
3172 | # opObj = puObj.getOpObjfromParamValue(value="CoherenceMap") | |
3057 | if opObj == None: |
|
3173 | if opObj == None: | |
3058 | self.specGraphCebCoherencmap.setCheckState(0) |
|
3174 | self.specGraphCebCoherencmap.setCheckState(0) | |
3059 | self.specGraphSaveCoherencemap.setCheckState(0) |
|
3175 | self.specGraphSaveCoherencemap.setCheckState(0) | |
@@ -3126,8 +3242,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
3126 | value = " " |
|
3242 | value = " " | |
3127 | self.specGgraphftpratio.setText(str(value)) |
|
3243 | self.specGgraphftpratio.setText(str(value)) | |
3128 |
|
3244 | |||
3129 |
|
3245 | opObj = puObj.getOperationObj(name='PowerProfilePlot') | ||
3130 | opObj = puObj.getOpObjfromParamValue(value="PowerProfilePlot") |
|
3246 | # opObj = puObj.getOpObjfromParamValue(value="PowerProfilePlot") | |
3131 | if opObj == None: |
|
3247 | if opObj == None: | |
3132 | self.specGraphPowerprofile.setCheckState(0) |
|
3248 | self.specGraphPowerprofile.setCheckState(0) | |
3133 | self.specGraphSavePowerprofile.setCheckState(0) |
|
3249 | self.specGraphSavePowerprofile.setCheckState(0) | |
@@ -3181,7 +3297,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
3181 | value = " " |
|
3297 | value = " " | |
3182 | self.specGgraphftpratio.setText(str(value)) |
|
3298 | self.specGgraphftpratio.setText(str(value)) | |
3183 | # -noise |
|
3299 | # -noise | |
3184 |
opObj = puObj.getOpObj |
|
3300 | opObj = puObj.getOperationObj(name='Noise') | |
|
3301 | # opObj = puObj.getOpObjfromParamValue(value="Noise") | |||
3185 | if opObj == None: |
|
3302 | if opObj == None: | |
3186 | self.specGraphCebRTInoise.setCheckState(0) |
|
3303 | self.specGraphCebRTInoise.setCheckState(0) | |
3187 | self.specGraphSaveRTInoise.setCheckState(0) |
|
3304 | self.specGraphSaveRTInoise.setCheckState(0) | |
@@ -3293,9 +3410,10 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
3293 | self.specHeisOpIncoherent.setEnabled(True) |
|
3410 | self.specHeisOpIncoherent.setEnabled(True) | |
3294 | self.specHeisOpCebIncoherent.setCheckState(QtCore.Qt.Checked) |
|
3411 | self.specHeisOpCebIncoherent.setCheckState(QtCore.Qt.Checked) | |
3295 | self.specHeisOpCobIncInt.setCurrentIndex(0) |
|
3412 | self.specHeisOpCobIncInt.setCurrentIndex(0) | |
3296 | # SpectraHeis Graph |
|
3413 | ||
3297 | opObj = puObj.getOperationObj(name='Plot') |
|
3414 | # SpectraHeis Graph | |
3298 |
opObj = puObj.getOpObj |
|
3415 | opObj = puObj.getOperationObj(name='SpectraHeisScope') | |
|
3416 | # opObj = puObj.getOpObjfromParamValue(value="SpectraHeisScope") | |||
3299 | if opObj == None: |
|
3417 | if opObj == None: | |
3300 | self.specHeisGraphCebSpectraplot.setCheckState(0) |
|
3418 | self.specHeisGraphCebSpectraplot.setCheckState(0) | |
3301 | self.specHeisGraphSaveSpectra.setCheckState(0) |
|
3419 | self.specHeisGraphSaveSpectra.setCheckState(0) | |
@@ -3356,8 +3474,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
3356 | value = " " |
|
3474 | value = " " | |
3357 | self.specHeisGgraphftpratio.setText(str(value)) |
|
3475 | self.specHeisGgraphftpratio.setText(str(value)) | |
3358 |
|
3476 | |||
3359 |
|
3477 | opObj = puObj.getOperationObj(name='RTIfromSpectraHeis') | ||
3360 | opObj = puObj.getOpObjfromParamValue(value="RTIfromSpectraHeis") |
|
3478 | # opObj = puObj.getOpObjfromParamValue(value="RTIfromSpectraHeis") | |
3361 | if opObj == None: |
|
3479 | if opObj == None: | |
3362 | self.specHeisGraphCebRTIplot.setCheckState(0) |
|
3480 | self.specHeisGraphCebRTIplot.setCheckState(0) | |
3363 | self.specHeisGraphSaveRTIplot.setCheckState(0) |
|
3481 | self.specHeisGraphSaveRTIplot.setCheckState(0) | |
@@ -3644,54 +3762,81 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
3644 |
|
3762 | |||
3645 | self.showPUinitView() |
|
3763 | self.showPUinitView() | |
3646 |
|
3764 | |||
3647 | def addFTPparmXML(self, obj, server, folder, username, password, ftp_wei, exp_code, sub_exp_code, plot_pos): |
|
3765 | def addFTPConf2Operation(self, puObj, opObj): | |
3648 | obj.addParameter(name='server', value=server, format='str') |
|
3766 | ||
3649 | obj.addParameter(name='folder', value=folder, format='str') |
|
|||
3650 | obj.addParameter(name='username', value=username, format='str') |
|
|||
3651 | obj.addParameter(name='password', value=password, format='str') |
|
|||
3652 | if ftp_wei == None: |
|
|||
3653 | pass |
|
|||
3654 | else: |
|
|||
3655 | obj.addParameter(name='ftp_wei', value=int(ftp_wei), format='int') |
|
|||
3656 | if exp_code == None: |
|
|||
3657 | pass |
|
|||
3658 | else: |
|
|||
3659 | obj.addParameter(name='exp_code', value=int(exp_code), format='int') |
|
|||
3660 | if sub_exp_code == None: |
|
|||
3661 | pass |
|
|||
3662 | else: |
|
|||
3663 | obj.addParameter(name='sub_exp_code', value=int(sub_exp_code), format='int') |
|
|||
3664 | if plot_pos == None: |
|
|||
3665 | pass |
|
|||
3666 | else: |
|
|||
3667 | obj.addParameter(name='plot_pos', value=int(plot_pos), format='int') |
|
|||
3668 |
|
||||
3669 | def addFTPConfiguration(self, puObj, opObj): |
|
|||
3670 | if self.temporalFTP.create: |
|
3767 | if self.temporalFTP.create: | |
3671 | server, folder, username, password, ftp_wei, exp_code, sub_exp_code, plot_pos = self.temporalFTP.recover() |
|
3768 | server, remotefolder, username, password, ftp_wei, exp_code, sub_exp_code, plot_pos = self.temporalFTP.recover() | |
3672 | self.addFTPparmXML(opObj, server, folder, username, password, ftp_wei, exp_code, sub_exp_code, plot_pos) |
|
|||
3673 | else: |
|
3769 | else: | |
3674 | self.temporalFTP.setwithoutconfiguration() |
|
3770 | self.temporalFTP.setwithoutconfiguration() | |
3675 | server, folder, username, password, ftp_wei, exp_code, sub_exp_code, plot_pos = self.temporalFTP.recover() |
|
3771 | server, remotefolder, username, password, ftp_wei, exp_code, sub_exp_code, plot_pos = self.temporalFTP.recover() | |
3676 | self.addFTPparmXML(opObj, server, folder, username, password, ftp_wei, exp_code, sub_exp_code, plot_pos) |
|
3772 | ||
3677 |
|
3773 | opObj.addParameter(name='server', value=server, format='str') | ||
|
3774 | opObj.addParameter(name='folder', value=remotefolder, format='str') | |||
|
3775 | opObj.addParameter(name='username', value=username, format='str') | |||
|
3776 | opObj.addParameter(name='password', value=password, format='str') | |||
|
3777 | ||||
|
3778 | if ftp_wei: | |||
|
3779 | opObj.addParameter(name='ftp_wei', value=int(ftp_wei), format='int') | |||
|
3780 | if exp_code: | |||
|
3781 | opObj.addParameter(name='exp_code', value=int(exp_code), format='int') | |||
|
3782 | if sub_exp_code: | |||
|
3783 | opObj.addParameter(name='sub_exp_code', value=int(sub_exp_code), format='int') | |||
|
3784 | if plot_pos: | |||
|
3785 | opObj.addParameter(name='plot_pos', value=int(plot_pos), format='int') | |||
|
3786 | ||||
3678 | if puObj.datatype == "Spectra": |
|
3787 | if puObj.datatype == "Spectra": | |
3679 | value = self.specGgraphftpratio.text() |
|
3788 | value = self.specGgraphftpratio.text() | |
3680 | if puObj.datatype == "SpectraHeis": |
|
3789 | if puObj.datatype == "SpectraHeis": | |
3681 | value = self.specHeisGgraphftpratio.text() |
|
3790 | value = self.specHeisGgraphftpratio.text() | |
|
3791 | ||||
3682 | if not value == "": |
|
3792 | if not value == "": | |
3683 | try: |
|
3793 | try: | |
3684 | if puObj.datatype == "Spectra": |
|
3794 | value = int(value) | |
3685 | value = int(self.specGgraphftpratio.text()) |
|
|||
3686 | if puObj.datatype == "SpectraHeis": |
|
|||
3687 | value = int(self.specHeisGgraphftpratio.text()) |
|
|||
3688 | except: |
|
3795 | except: | |
3689 |
|
|
3796 | self.console.clear() | |
3690 |
|
|
3797 | self.console.append("Please fill Ratio on the textbox") | |
3691 |
|
|
3798 | return 0 | |
|
3799 | ||||
3692 | opObj.addParameter(name='wr_period', value=value, format='int') |
|
3800 | opObj.addParameter(name='wr_period', value=value, format='int') | |
3693 |
|
3801 | |||
|
3802 | def createFTPProcUnitView(self, server, username, password, remotefolder, localfolder='./', extension='.png', period='60', protocol='ftp'): | |||
|
3803 | ||||
|
3804 | if self.__ftpProcUnitAdded: | |||
|
3805 | procUnitConfObj = self.__puObjDict[self.__ftpProcUnitId] | |||
|
3806 | procUnitConfObj.removeOperations() | |||
|
3807 | else: | |||
|
3808 | projectObj = self.getSelectedProjectObj() | |||
|
3809 | procUnitConfObj = projectObj.addProcUnit(name="SendToServer") | |||
|
3810 | ||||
|
3811 | procUnitConfObj.addParameter(name='server', value=server, format='str') | |||
|
3812 | procUnitConfObj.addParameter(name='username', value=username, format='str') | |||
|
3813 | procUnitConfObj.addParameter(name='password', value=password, format='str') | |||
|
3814 | procUnitConfObj.addParameter(name='localfolder', value=localfolder, format='str') | |||
|
3815 | procUnitConfObj.addParameter(name='remotefolder', value=remotefolder, format='str') | |||
|
3816 | procUnitConfObj.addParameter(name='ext', value=extension, format='str') | |||
|
3817 | procUnitConfObj.addParameter(name='period', value=period, format='int') | |||
|
3818 | procUnitConfObj.addParameter(name='protocol', value=protocol, format='str') | |||
|
3819 | ||||
|
3820 | self.__puObjDict[procUnitConfObj.getId()] = procUnitConfObj | |||
|
3821 | ||||
|
3822 | self.__ftpProcUnitAdded = True | |||
|
3823 | self.__ftpProcUnitId = procUnitConfObj.getId() | |||
|
3824 | ||||
|
3825 | def removeFTPProcUnitView(self): | |||
|
3826 | ||||
|
3827 | if not self.__ftpProcUnitAdded: | |||
|
3828 | return | |||
|
3829 | ||||
|
3830 | procUnitConfObj = self.__puObjDict[self.__ftpProcUnitId] | |||
|
3831 | procUnitConfObj.removeOperations() | |||
|
3832 | ||||
|
3833 | self.__puObjDict.pop(procUnitConfObj.getId()) | |||
|
3834 | ||||
|
3835 | self.__ftpProcUnitAdded = False | |||
|
3836 | self.__ftpProcUnitId = None | |||
|
3837 | ||||
3694 | def bufferProject(self, caracteristica, principal, description): |
|
3838 | def bufferProject(self, caracteristica, principal, description): | |
|
3839 | ||||
3695 | self.projectProperCaracteristica.append(caracteristica) |
|
3840 | self.projectProperCaracteristica.append(caracteristica) | |
3696 | self.projectProperPrincipal.append(principal) |
|
3841 | self.projectProperPrincipal.append(principal) | |
3697 | self.projectProperDescripcion.append(description) |
|
3842 | self.projectProperDescripcion.append(description) | |
@@ -3905,7 +4050,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
3905 | self.bufferVoltage("Decodification", "Mode", mode) |
|
4050 | self.bufferVoltage("Decodification", "Mode", mode) | |
3906 |
|
4051 | |||
3907 | # graph |
|
4052 | # graph | |
3908 | opObj = puObj.getOperationObj(name='Plot') |
|
4053 | # opObj = puObj.getOperationObj(name='Plot') | |
|
4054 | opObj = puObj.getOperationObj(name='Scope') | |||
3909 | if opObj == None: |
|
4055 | if opObj == None: | |
3910 | self.volGraphCebshow.setCheckState(0) |
|
4056 | self.volGraphCebshow.setCheckState(0) | |
3911 | operation = "Disabled" |
|
4057 | operation = "Disabled" | |
@@ -4030,7 +4176,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4030 | self.bufferSpectra("Processing Unit", "Radar Frequency", radarfrequency) |
|
4176 | self.bufferSpectra("Processing Unit", "Radar Frequency", radarfrequency) | |
4031 |
|
4177 | |||
4032 |
|
4178 | |||
4033 |
opObj = puObj.getOperationObj(name=" |
|
4179 | opObj = puObj.getOperationObj(name="run") | |
4034 | if opObj == None: |
|
4180 | if opObj == None: | |
4035 | self.specOpnFFTpoints.clear() |
|
4181 | self.specOpnFFTpoints.clear() | |
4036 | self.specOpProfiles.clear() |
|
4182 | self.specOpProfiles.clear() | |
@@ -4061,7 +4207,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4061 | self.bufferSpectra("Processing Unit", "Ipp Factor", ippFactor) |
|
4207 | self.bufferSpectra("Processing Unit", "Ipp Factor", ippFactor) | |
4062 |
|
4208 | |||
4063 |
|
4209 | |||
4064 |
opObj = puObj.getOperationObj(name=" |
|
4210 | opObj = puObj.getOperationObj(name="run") | |
4065 | if opObj == None: |
|
4211 | if opObj == None: | |
4066 | pairsList = None |
|
4212 | pairsList = None | |
4067 | else: |
|
4213 | else: | |
@@ -4167,8 +4313,9 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4167 | getNoise = value |
|
4313 | getNoise = value | |
4168 | self.bufferSpectra("Processing Unit", "Get Noise", getNoise) |
|
4314 | self.bufferSpectra("Processing Unit", "Get Noise", getNoise) | |
4169 |
|
4315 | |||
4170 |
|
4316 | opObj = puObj.getOperationObj(name='SpectraPlot') | ||
4171 | opObj = puObj.getOpObjfromParamValue(value="SpectraPlot") |
|
4317 | # opObj = puObj.getOpObjfromParamValue(value="SpectraPlot") | |
|
4318 | ||||
4172 | if opObj == None: |
|
4319 | if opObj == None: | |
4173 | operationSpectraPlot = "Disabled" |
|
4320 | operationSpectraPlot = "Disabled" | |
4174 | freq_vel = None |
|
4321 | freq_vel = None | |
@@ -4249,8 +4396,9 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4249 | self.bufferSpectra("Spectra Plot", "FTP", status) |
|
4396 | self.bufferSpectra("Spectra Plot", "FTP", status) | |
4250 | self.showWr_Period(puObj, opObj, nameplotop="Spectra Plot") |
|
4397 | self.showWr_Period(puObj, opObj, nameplotop="Spectra Plot") | |
4251 | self.saveFTPvalues(opObj) |
|
4398 | self.saveFTPvalues(opObj) | |
4252 |
|
|
4399 | ||
4253 |
opObj = puObj.getOpObj |
|
4400 | opObj = puObj.getOperationObj(name='CrossSpectraPlot') | |
|
4401 | # opObj = puObj.getOpObjfromParamValue(value="CrossSpectraPlot") | |||
4254 | if opObj == None: |
|
4402 | if opObj == None: | |
4255 | self.specGraphCebCrossSpectraplot.setCheckState(0) |
|
4403 | self.specGraphCebCrossSpectraplot.setCheckState(0) | |
4256 | operationCrossSpectraPlot = "Disabled" |
|
4404 | operationCrossSpectraPlot = "Disabled" | |
@@ -4326,8 +4474,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4326 | self.showWr_Period(puObj, opObj, nameplotop="Cross Spectra Plot") |
|
4474 | self.showWr_Period(puObj, opObj, nameplotop="Cross Spectra Plot") | |
4327 | self.saveFTPvalues(opObj) |
|
4475 | self.saveFTPvalues(opObj) | |
4328 |
|
4476 | |||
4329 |
|
4477 | opObj = puObj.getOperationObj(name='RTIPlot') | ||
4330 | opObj = puObj.getOpObjfromParamValue(value="RTIPlot") |
|
4478 | # opObj = puObj.getOpObjfromParamValue(value="RTIPlot") | |
4331 | if opObj == None: |
|
4479 | if opObj == None: | |
4332 | self.specGraphCebRTIplot.setCheckState(0) |
|
4480 | self.specGraphCebRTIplot.setCheckState(0) | |
4333 | operationRTIPlot = "Disabled" |
|
4481 | operationRTIPlot = "Disabled" | |
@@ -4419,8 +4567,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4419 | self.showWr_Period(puObj, opObj, nameplotop="RTI Plot") |
|
4567 | self.showWr_Period(puObj, opObj, nameplotop="RTI Plot") | |
4420 | self.saveFTPvalues(opObj) |
|
4568 | self.saveFTPvalues(opObj) | |
4421 |
|
4569 | |||
4422 |
|
4570 | opObj = puObj.getOperationObj(name='CoherenceMap') | ||
4423 | opObj = puObj.getOpObjfromParamValue(value="CoherenceMap") |
|
4571 | # opObj = puObj.getOpObjfromParamValue(value="CoherenceMap") | |
4424 | if opObj == None: |
|
4572 | if opObj == None: | |
4425 | self.specGraphCebCoherencmap.setCheckState(0) |
|
4573 | self.specGraphCebCoherencmap.setCheckState(0) | |
4426 | operationCoherenceMap = "Disabled" |
|
4574 | operationCoherenceMap = "Disabled" | |
@@ -4513,8 +4661,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4513 | self.saveFTPvalues(opObj) |
|
4661 | self.saveFTPvalues(opObj) | |
4514 |
|
4662 | |||
4515 |
|
4663 | |||
4516 |
|
4664 | opObj = puObj.getOperationObj(name='PowerProfilePlot') | ||
4517 | opObj = puObj.getOpObjfromParamValue(value="PowerProfilePlot") |
|
4665 | # opObj = puObj.getOpObjfromParamValue(value="PowerProfilePlot") | |
4518 | if opObj == None: |
|
4666 | if opObj == None: | |
4519 | self.specGraphPowerprofile.setCheckState(0) |
|
4667 | self.specGraphPowerprofile.setCheckState(0) | |
4520 | operationPowerProfilePlot = "Disabled" |
|
4668 | operationPowerProfilePlot = "Disabled" | |
@@ -4584,7 +4732,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4584 | self.saveFTPvalues(opObj) |
|
4732 | self.saveFTPvalues(opObj) | |
4585 |
|
4733 | |||
4586 | # noise |
|
4734 | # noise | |
4587 |
opObj = puObj.getOpObj |
|
4735 | opObj = puObj.getOperationObj(name='Noise') | |
|
4736 | # opObj = puObj.getOpObjfromParamValue(value="Noise") | |||
4588 | if opObj == None: |
|
4737 | if opObj == None: | |
4589 | self.specGraphCebRTInoise.setCheckState(0) |
|
4738 | self.specGraphCebRTInoise.setCheckState(0) | |
4590 | operationRTINoise = "Disabled" |
|
4739 | operationRTINoise = "Disabled" | |
@@ -4666,7 +4815,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4666 | self.bufferSpectra("FTP", "Server", self.temporalFTP.server) |
|
4815 | self.bufferSpectra("FTP", "Server", self.temporalFTP.server) | |
4667 | self.bufferSpectra("FTP", "Folder", self.temporalFTP.folder) |
|
4816 | self.bufferSpectra("FTP", "Folder", self.temporalFTP.folder) | |
4668 | self.bufferSpectra("FTP", "Username", self.temporalFTP.username) |
|
4817 | self.bufferSpectra("FTP", "Username", self.temporalFTP.username) | |
4669 | self.bufferSpectra("FTP", "Password", self.temporalFTP.password) |
|
4818 | self.bufferSpectra("FTP", "Password", '*'*len(self.temporalFTP.password)) | |
4670 | self.bufferSpectra("FTP", "Ftp_wei", self.temporalFTP.ftp_wei) |
|
4819 | self.bufferSpectra("FTP", "Ftp_wei", self.temporalFTP.ftp_wei) | |
4671 | self.bufferSpectra("FTP", "Exp_code", self.temporalFTP.exp_code) |
|
4820 | self.bufferSpectra("FTP", "Exp_code", self.temporalFTP.exp_code) | |
4672 | self.bufferSpectra("FTP", "Sub_exp_code", self.temporalFTP.sub_exp_code) |
|
4821 | self.bufferSpectra("FTP", "Sub_exp_code", self.temporalFTP.sub_exp_code) | |
@@ -4678,7 +4827,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4678 | self.bufferSpectra("FTP", "Server", self.temporalFTP.server) |
|
4827 | self.bufferSpectra("FTP", "Server", self.temporalFTP.server) | |
4679 | self.bufferSpectra("FTP", "Folder", self.temporalFTP.folder) |
|
4828 | self.bufferSpectra("FTP", "Folder", self.temporalFTP.folder) | |
4680 | self.bufferSpectra("FTP", "Username", self.temporalFTP.username) |
|
4829 | self.bufferSpectra("FTP", "Username", self.temporalFTP.username) | |
4681 | self.bufferSpectra("FTP", "Password", self.temporalFTP.password) |
|
4830 | self.bufferSpectra("FTP", "Password", '*'*len(self.temporalFTP.password)) | |
4682 | self.bufferSpectra("FTP", "Ftp_wei", self.temporalFTP.ftp_wei) |
|
4831 | self.bufferSpectra("FTP", "Ftp_wei", self.temporalFTP.ftp_wei) | |
4683 | self.bufferSpectra("FTP", "Exp_code", self.temporalFTP.exp_code) |
|
4832 | self.bufferSpectra("FTP", "Exp_code", self.temporalFTP.exp_code) | |
4684 | self.bufferSpectra("FTP", "Sub_exp_code", self.temporalFTP.sub_exp_code) |
|
4833 | self.bufferSpectra("FTP", "Sub_exp_code", self.temporalFTP.sub_exp_code) | |
@@ -4753,7 +4902,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4753 | incoherentintegration = str(value) |
|
4902 | incoherentintegration = str(value) | |
4754 | self.bufferSpectraHeis("Processing Unit", "Incoherent Integration", incoherentintegration) |
|
4903 | self.bufferSpectraHeis("Processing Unit", "Incoherent Integration", incoherentintegration) | |
4755 | # spectraheis graph |
|
4904 | # spectraheis graph | |
4756 |
opObj = puObj.getOpObj |
|
4905 | opObj = puObj.getOperationObj(name='SpectraHeisScope') | |
|
4906 | # opObj = puObj.getOpObjfromParamValue(value="SpectraHeisScope") | |||
4757 | if opObj == None: |
|
4907 | if opObj == None: | |
4758 | self.specHeisGraphCebSpectraplot.setCheckState(0) |
|
4908 | self.specHeisGraphCebSpectraplot.setCheckState(0) | |
4759 | operationSpectraHeisPlot = "Disabled" |
|
4909 | operationSpectraHeisPlot = "Disabled" | |
@@ -4821,7 +4971,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
4821 | self.showWr_Period(puObj, opObj, nameplotop="SpectraHeis Plot") |
|
4971 | self.showWr_Period(puObj, opObj, nameplotop="SpectraHeis Plot") | |
4822 | self.saveFTPvalues(opObj) |
|
4972 | self.saveFTPvalues(opObj) | |
4823 |
|
4973 | |||
4824 |
opObj = puObj.getOpObj |
|
4974 | opObj = puObj.getOperationObj(name='RTIfromSpectraHeis') | |
|
4975 | # opObj = puObj.getOpObjfromParamValue(value="RTIfromSpectraHeis") | |||
4825 | if opObj == None: |
|
4976 | if opObj == None: | |
4826 | self.specHeisGraphCebRTIplot.setCheckState(0) |
|
4977 | self.specHeisGraphCebRTIplot.setCheckState(0) | |
4827 | operationRTIPlot = "Disabled" |
|
4978 | operationRTIPlot = "Disabled" | |
@@ -5116,18 +5267,28 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
5116 | return None |
|
5267 | return None | |
5117 |
|
5268 | |||
5118 | def playProject(self, ext=".xml"): |
|
5269 | def playProject(self, ext=".xml"): | |
5119 |
|
||||
5120 | projectObj = self.getSelectedProjectObj() |
|
|||
5121 |
|
5270 | |||
5122 | filename = os.path.join(str(self.pathWorkSpace), |
|
|||
5123 | "%s_%s%s" %(str(projectObj.name), str(projectObj.id), ext) |
|
|||
5124 | ) |
|
|||
5125 |
|
5271 | |||
5126 | self.console.clear() |
|
5272 | self.actionStarToolbar.setEnabled(False) | |
5127 | projectObj.writeXml(filename) |
|
5273 | self.actionPauseToolbar.setEnabled(True) | |
5128 | self.console.append("Please Wait...") |
|
5274 | self.actionStopToolbar.setEnabled(True) | |
|
5275 | ||||
|
5276 | projectObj = self.getSelectedProjectObj() | |||
|
5277 | ||||
|
5278 | filename = os.path.join(str(self.pathWorkSpace), | |||
|
5279 | "%s%s%s" %(str(projectObj.name), str(projectObj.id), ext) | |||
|
5280 | ) | |||
|
5281 | ||||
|
5282 | self.console.clear() | |||
|
5283 | filename = self.saveProject() | |||
|
5284 | # projectObj.writeXml(filename) | |||
|
5285 | if filename == None: | |||
|
5286 | self.console.append("Process did not initialize.") | |||
|
5287 | return | |||
|
5288 | ||||
|
5289 | self.console.append("Please Wait...") | |||
5129 | # try: |
|
5290 | # try: | |
5130 |
|
|
5291 | self.commCtrlPThread.cmd_q.put(ProcessCommand(ProcessCommand.PROCESS, filename)) | |
5131 | # # |
|
5292 | # # | |
5132 | # except: |
|
5293 | # except: | |
5133 | # self.console.append("Error............................................!") |
|
5294 | # self.console.append("Error............................................!") | |
@@ -5141,21 +5302,35 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
5141 |
|
5302 | |||
5142 | def stopProject(self): |
|
5303 | def stopProject(self): | |
5143 | stop = True |
|
5304 | stop = True | |
|
5305 | self.actionStarToolbar.setEnabled(True) | |||
|
5306 | self.actionPauseToolbar.setEnabled(stop) | |||
|
5307 | self.actionStopToolbar.setEnabled(stop) | |||
|
5308 | ||||
5144 | self.commCtrlPThread.cmd_q.put(ProcessCommand(ProcessCommand.STOP, stop)) |
|
5309 | self.commCtrlPThread.cmd_q.put(ProcessCommand(ProcessCommand.STOP, stop)) | |
5145 |
|
5310 | |||
5146 | def pauseProject(self): |
|
5311 | def pauseProject(self): | |
|
5312 | ||||
|
5313 | self.actionStarToolbar.setEnabled(False) | |||
|
5314 | self.actionPauseToolbar.setEnabled(True) | |||
|
5315 | self.actionStopToolbar.setEnabled(True) | |||
|
5316 | ||||
5147 | self.commCtrlPThread.cmd_q.put(ProcessCommand(ProcessCommand.PAUSE, data=True)) |
|
5317 | self.commCtrlPThread.cmd_q.put(ProcessCommand(ProcessCommand.PAUSE, data=True)) | |
5148 |
|
5318 | |||
5149 |
|
5319 | |||
5150 | def saveProject(self): |
|
5320 | def saveProject(self): | |
5151 |
|
5321 | |||
|
5322 | sts = True | |||
5152 | puObj = self.getSelectedPUObj() |
|
5323 | puObj = self.getSelectedPUObj() | |
5153 | if puObj.name == 'VoltageProc': |
|
5324 | if puObj.name == 'VoltageProc': | |
5154 | self.on_volOpOk_clicked() |
|
5325 | sts = self.on_volOpOk_clicked() | |
5155 | if puObj.name == 'SpectraProc': |
|
5326 | if puObj.name == 'SpectraProc': | |
5156 | self.on_specOpOk_clicked() |
|
5327 | sts = self.on_specOpOk_clicked() | |
5157 | if puObj.name == 'SpectraHeisProc': |
|
5328 | if puObj.name == 'SpectraHeisProc': | |
5158 | self.on_specHeisOpOk_clicked() |
|
5329 | sts = self.on_specHeisOpOk_clicked() | |
|
5330 | ||||
|
5331 | if not sts: | |||
|
5332 | return None | |||
|
5333 | ||||
5159 | projectObj = self.getSelectedProjectObj() |
|
5334 | projectObj = self.getSelectedProjectObj() | |
5160 | puObjorderList = OrderedDict(sorted(projectObj.procUnitConfObjDict.items(), key=lambda x: x[0])) |
|
5335 | puObjorderList = OrderedDict(sorted(projectObj.procUnitConfObjDict.items(), key=lambda x: x[0])) | |
5161 |
|
5336 | |||
@@ -5163,17 +5338,19 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
5163 | # print puObj.datatype, puObj.inputId,puObj.getId(),puObj.parentId |
|
5338 | # print puObj.datatype, puObj.inputId,puObj.getId(),puObj.parentId | |
5164 |
|
5339 | |||
5165 | if puObj.name == "VoltageProc": |
|
5340 | if puObj.name == "VoltageProc": | |
5166 |
self.refreshID(puObj) |
|
5341 | self.refreshID(puObj) | |
5167 |
|
||||
5168 | if puObj.name == "SpectraProc": |
|
5342 | if puObj.name == "SpectraProc": | |
5169 | self.refreshID(puObj) |
|
5343 | self.refreshID(puObj) | |
5170 | if puObj.name == "SpectraHeisProc": |
|
5344 | if puObj.name == "SpectraHeisProc": | |
5171 | self.refreshID(puObj) |
|
5345 | self.refreshID(puObj) | |
5172 |
|
5346 | |||
5173 | filename = self.pathWorkSpace + "/" + str(projectObj.name) + str(projectObj.id) + ".xml" |
|
5347 | filename = os.path.join(str(self.pathWorkSpace), | |
|
5348 | "%s%s%s" %(str(projectObj.name), str(projectObj.id), '.xml') | |||
|
5349 | ) | |||
5174 | projectObj.writeXml(filename) |
|
5350 | projectObj.writeXml(filename) | |
5175 |
self.console.append("Now, you can p |
|
5351 | self.console.append("Now, you can press the Start Icon on the toolbar") | |
5176 |
|
5352 | |||
|
5353 | return filename | |||
5177 |
|
5354 | |||
5178 | def deleteProjectorPU(self): |
|
5355 | def deleteProjectorPU(self): | |
5179 | """ |
|
5356 | """ | |
@@ -5467,6 +5644,9 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
5467 | dateList = [] |
|
5644 | dateList = [] | |
5468 | fileList = [] |
|
5645 | fileList = [] | |
5469 |
|
5646 | |||
|
5647 | if not os.path.exists(data_path): | |||
|
5648 | return None | |||
|
5649 | ||||
5470 | if walk == 0: |
|
5650 | if walk == 0: | |
5471 | files = os.listdir(data_path) |
|
5651 | files = os.listdir(data_path) | |
5472 | for thisFile in files: |
|
5652 | for thisFile in files: | |
@@ -5765,8 +5945,8 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
5765 | self.tabCorrelation.setEnabled(False) |
|
5945 | self.tabCorrelation.setEnabled(False) | |
5766 | self.frame_2.setEnabled(False) |
|
5946 | self.frame_2.setEnabled(False) | |
5767 |
|
5947 | |||
5768 |
self.actionCreate.setShortcut('Ctrl+ |
|
5948 | self.actionCreate.setShortcut('Ctrl+N') | |
5769 |
self.actionStart.setShortcut('Ctrl+ |
|
5949 | self.actionStart.setShortcut('Ctrl+P') | |
5770 | self.actionSave.setShortcut('Ctrl+S') |
|
5950 | self.actionSave.setShortcut('Ctrl+S') | |
5771 | self.actionClose.setShortcut('Ctrl+Q') |
|
5951 | self.actionClose.setShortcut('Ctrl+Q') | |
5772 |
|
5952 | |||
@@ -5777,7 +5957,7 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
5777 | self.proName.clear() |
|
5957 | self.proName.clear() | |
5778 | self.proDataPath.setText('') |
|
5958 | self.proDataPath.setText('') | |
5779 | self.console.setReadOnly(True) |
|
5959 | self.console.setReadOnly(True) | |
5780 |
self.console.append("Welcome to Signal Chain |
|
5960 | self.console.append("Welcome to Signal Chain\nOpen a project or Create a new one") | |
5781 | self.proStartTime.setDisplayFormat("hh:mm:ss") |
|
5961 | self.proStartTime.setDisplayFormat("hh:mm:ss") | |
5782 | self.proDataType.setEnabled(False) |
|
5962 | self.proDataType.setEnabled(False) | |
5783 | self.time = QtCore.QTime() |
|
5963 | self.time = QtCore.QTime() | |
@@ -5892,31 +6072,36 class BasicWindow(QMainWindow, Ui_BasicWindow): | |||||
5892 | # tool tip gui volOp |
|
6072 | # tool tip gui volOp | |
5893 | self.volOpChannel.setToolTip('Example: 1,2,3,4,5') |
|
6073 | self.volOpChannel.setToolTip('Example: 1,2,3,4,5') | |
5894 | self.volOpHeights.setToolTip('Example: 90,180') |
|
6074 | self.volOpHeights.setToolTip('Example: 90,180') | |
5895 |
self.volOpFilter.setToolTip('Example: |
|
6075 | self.volOpFilter.setToolTip('Example: 2') | |
5896 |
self.volOpProfile.setToolTip('Example:0,12 |
|
6076 | self.volOpProfile.setToolTip('Example:0,127') | |
5897 |
self.volOpCohInt.setToolTip('Example: 1 |
|
6077 | self.volOpCohInt.setToolTip('Example: 128') | |
5898 | self.volOpOk.setToolTip('If you have finish, please Ok ') |
|
6078 | self.volOpFlip.setToolTip('ChannelList where flip will be applied. Example: 0,2,3') | |
|
6079 | self.volOpOk.setToolTip('If you have finished, please Ok ') | |||
5899 | # tool tip gui volGraph |
|
6080 | # tool tip gui volGraph | |
5900 |
self.volGraphfreqrange.setToolTip('Example: |
|
6081 | self.volGraphfreqrange.setToolTip('Example: -30,30') | |
5901 | self.volGraphHeightrange.setToolTip('Example: 20,180') |
|
6082 | self.volGraphHeightrange.setToolTip('Example: 20,180') | |
5902 | # tool tip gui specOp |
|
6083 | # tool tip gui specOp | |
5903 |
self.specOpnFFTpoints.setToolTip('Example: 1 |
|
6084 | self.specOpnFFTpoints.setToolTip('Example: 128') | |
5904 |
self.specOpProfiles.setToolTip('Example: 1 |
|
6085 | self.specOpProfiles.setToolTip('Example: 128') | |
5905 | self.specOpippFactor.setToolTip('Example:1') |
|
6086 | self.specOpippFactor.setToolTip('Example:1.0') | |
5906 |
self.specOpIncoherent.setToolTip('Example: 1 |
|
6087 | self.specOpIncoherent.setToolTip('Example: 10') | |
5907 | self.specOpgetNoise.setToolTip('Example:20,180,30,120 (minHei,maxHei,minVel,maxVel)') |
|
6088 | self.specOpgetNoise.setToolTip('Example:20,180,30,120 (minHei,maxHei,minVel,maxVel)') | |
5908 |
|
6089 | |||
5909 |
self.specOpChannel.setToolTip('Example: 1,2,3 |
|
6090 | self.specOpChannel.setToolTip('Example: 0,1,2,3') | |
5910 | self.specOpHeights.setToolTip('Example: 90,180') |
|
6091 | self.specOpHeights.setToolTip('Example: 90,180') | |
5911 | self.specOppairsList.setToolTip('Example: (0,1),(2,3)') |
|
6092 | self.specOppairsList.setToolTip('Example: (0,1),(2,3)') | |
5912 | # tool tip gui specGraph |
|
6093 | # tool tip gui specGraph | |
5913 |
|
6094 | |||
5914 |
self.specGgraphChannelList.setToolTip('Example: |
|
6095 | self.specGgraphChannelList.setToolTip('Example: 0,3,4') | |
5915 |
self.specGgraphFreq.setToolTip('Example: |
|
6096 | self.specGgraphFreq.setToolTip('Example: -20,20') | |
5916 |
self.specGgraphHeight.setToolTip('Example: |
|
6097 | self.specGgraphHeight.setToolTip('Example: 100,400') | |
5917 | self.specGgraphDbsrange.setToolTip('Example: 30,170') |
|
6098 | self.specGgraphDbsrange.setToolTip('Example: 30,170') | |
5918 |
|
6099 | |||
5919 |
self.specGraphPrefix.setToolTip('Example: |
|
6100 | self.specGraphPrefix.setToolTip('Example: EXPERIMENT_NAME') | |
|
6101 | ||||
|
6102 | def closeEvent(self, event): | |||
|
6103 | self.closed.emit() | |||
|
6104 | event.accept() | |||
5920 |
|
6105 | |||
5921 | class UnitProcessWindow(QMainWindow, Ui_UnitProcess): |
|
6106 | class UnitProcessWindow(QMainWindow, Ui_UnitProcess): | |
5922 | """ |
|
6107 | """ | |
@@ -6029,8 +6214,8 class Ftp(QMainWindow, Ui_Ftp): | |||||
6029 | self.setWindowTitle("ROJ-Signal Chain") |
|
6214 | self.setWindowTitle("ROJ-Signal Chain") | |
6030 | self.serverFTP.setToolTip('Example: jro-app.igp.gob.pe') |
|
6215 | self.serverFTP.setToolTip('Example: jro-app.igp.gob.pe') | |
6031 | self.folderFTP.setToolTip('Example: /home/wmaster/graficos') |
|
6216 | self.folderFTP.setToolTip('Example: /home/wmaster/graficos') | |
6032 |
self.usernameFTP.setToolTip('Example: |
|
6217 | self.usernameFTP.setToolTip('Example: myusername') | |
6033 |
self.passwordFTP.setToolTip('Example: m |
|
6218 | self.passwordFTP.setToolTip('Example: mypass ') | |
6034 | self.weightFTP.setToolTip('Example: 0') |
|
6219 | self.weightFTP.setToolTip('Example: 0') | |
6035 | self.expcodeFTP.setToolTip('Example: 0') |
|
6220 | self.expcodeFTP.setToolTip('Example: 0') | |
6036 | self.subexpFTP.setToolTip('Example: 0') |
|
6221 | self.subexpFTP.setToolTip('Example: 0') | |
@@ -6156,9 +6341,14 class ftpBuffer(): | |||||
6156 | create = False |
|
6341 | create = False | |
6157 | withoutconfig = False |
|
6342 | withoutconfig = False | |
6158 | createforView = False |
|
6343 | createforView = False | |
6159 |
|
6344 | localfolder = None | ||
|
6345 | extension = None | |||
|
6346 | period = None | |||
|
6347 | protocol = None | |||
6160 |
|
6348 | |||
6161 | def __init__(self): |
|
6349 | def __init__(self): | |
|
6350 | ||||
|
6351 | self.create = False | |||
6162 | self.server = None |
|
6352 | self.server = None | |
6163 | self.folder = None |
|
6353 | self.folder = None | |
6164 | self.username = None |
|
6354 | self.username = None | |
@@ -6168,19 +6358,30 class ftpBuffer(): | |||||
6168 | self.sub_exp_code = None |
|
6358 | self.sub_exp_code = None | |
6169 | self.plot_pos = None |
|
6359 | self.plot_pos = None | |
6170 | # self.create = False |
|
6360 | # self.create = False | |
|
6361 | self.localfolder = None | |||
|
6362 | self.extension = None | |||
|
6363 | self.period = None | |||
|
6364 | self.protocol = None | |||
6171 |
|
6365 | |||
6172 | def setwithoutconfiguration(self): |
|
6366 | def setwithoutconfiguration(self): | |
|
6367 | ||||
|
6368 | self.create = False | |||
6173 | self.server = "jro-app.igp.gob.pe" |
|
6369 | self.server = "jro-app.igp.gob.pe" | |
6174 | self.folder = "/home/wmaster/graficos" |
|
6370 | self.folder = "/home/wmaster/graficos" | |
6175 |
self.username = " |
|
6371 | self.username = "wmaster" | |
6176 | self.password = "mst2010vhf" |
|
6372 | self.password = "mst2010vhf" | |
6177 | self.ftp_wei = "0" |
|
6373 | self.ftp_wei = "0" | |
6178 | self.exp_code = "0" |
|
6374 | self.exp_code = "0" | |
6179 | self.sub_exp_code = "0" |
|
6375 | self.sub_exp_code = "0" | |
6180 | self.plot_pos = "0" |
|
6376 | self.plot_pos = "0" | |
6181 | self.withoutconfig = True |
|
6377 | self.withoutconfig = True | |
|
6378 | self.localfolder = './' | |||
|
6379 | self.extension = '.png' | |||
|
6380 | self.period = '60' | |||
|
6381 | self.protocol = 'ftp' | |||
|
6382 | ||||
|
6383 | def save(self, server, folder, username, password, ftp_wei, exp_code, sub_exp_code, plot_pos, localfolder='./', extension='.png', period='60', protocol='ftp'): | |||
6182 |
|
6384 | |||
6183 | def save(self, server, folder, username, password, ftp_wei, exp_code, sub_exp_code, plot_pos): |
|
|||
6184 | self.server = server |
|
6385 | self.server = server | |
6185 | self.folder = folder |
|
6386 | self.folder = folder | |
6186 | self.username = username |
|
6387 | self.username = username | |
@@ -6192,9 +6393,11 class ftpBuffer(): | |||||
6192 | self.create = True |
|
6393 | self.create = True | |
6193 | self.withoutconfig = False |
|
6394 | self.withoutconfig = False | |
6194 | self.createforView = True |
|
6395 | self.createforView = True | |
|
6396 | self.localfolder = localfolder | |||
6195 |
|
6397 | |||
6196 |
|
6398 | |||
6197 | def recover(self): |
|
6399 | def recover(self): | |
|
6400 | ||||
6198 | return self.server, self.folder, self.username, self.password, self.ftp_wei, self.exp_code, self.sub_exp_code, self.plot_pos |
|
6401 | return self.server, self.folder, self.username, self.password, self.ftp_wei, self.exp_code, self.sub_exp_code, self.plot_pos | |
6199 |
|
6402 | |||
6200 | class ShowMeConsole(QtCore.QObject): |
|
6403 | class ShowMeConsole(QtCore.QObject): |
@@ -7,7 +7,7 from schainpy.controller import Project | |||||
7 | from command import * |
|
7 | from command import * | |
8 |
|
8 | |||
9 | class ControllerThread(threading.Thread): |
|
9 | class ControllerThread(threading.Thread): | |
10 | def __init__(self, filename, data_q): |
|
10 | def __init__(self, filename, data_q=None): | |
11 | super(ControllerThread, self).__init__() |
|
11 | super(ControllerThread, self).__init__() | |
12 | self.filename = filename |
|
12 | self.filename = filename | |
13 | self.data_q = data_q |
|
13 | self.data_q = data_q | |
@@ -36,12 +36,14 class CommCtrlProcessThread(threading.Thread): | |||||
36 | def __init__(self, cmd_q=Queue.Queue(), reply_q=Queue.Queue()): |
|
36 | def __init__(self, cmd_q=Queue.Queue(), reply_q=Queue.Queue()): | |
37 | super(CommCtrlProcessThread, self).__init__() |
|
37 | super(CommCtrlProcessThread, self).__init__() | |
38 | self.cmd_q = cmd_q |
|
38 | self.cmd_q = cmd_q | |
39 | self.reply_q = reply_q |
|
39 | # self.reply_q = reply_q | |
40 |
|
40 | |||
41 | # self.print_q = Queue.Queue() |
|
41 | # self.print_q = Queue.Queue() | |
42 | self.data_q = Queue.Queue() |
|
42 | # self.data_q = Queue.Queue() | |
|
43 | ||||
43 |
|
44 | |||
44 | self.alive = threading.Event() |
|
45 | self.alive = threading.Event() | |
|
46 | self.setDaemon(True) | |||
45 | self.alive.set() |
|
47 | self.alive.set() | |
46 | self.socket = None |
|
48 | self.socket = None | |
47 |
|
49 | |||
@@ -58,6 +60,7 class CommCtrlProcessThread(threading.Thread): | |||||
58 | } |
|
60 | } | |
59 |
|
61 | |||
60 | def run(self): |
|
62 | def run(self): | |
|
63 | ||||
61 | while self.alive.isSet(): |
|
64 | while self.alive.isSet(): | |
62 | try: |
|
65 | try: | |
63 | cmd = self.cmd_q.get(True, 0.1) |
|
66 | cmd = self.cmd_q.get(True, 0.1) | |
@@ -68,7 +71,7 class CommCtrlProcessThread(threading.Thread): | |||||
68 |
|
71 | |||
69 | def _handle_ioPROCESSTHREAD(self, cmd): |
|
72 | def _handle_ioPROCESSTHREAD(self, cmd): | |
70 | filename = cmd.data |
|
73 | filename = cmd.data | |
71 |
self.controllerObj = ControllerThread(filename=filename |
|
74 | self.controllerObj = ControllerThread(filename=filename) | |
72 | self.controllerObj.start() |
|
75 | self.controllerObj.start() | |
73 |
|
76 | |||
74 | def _handle_ioPAUSE(self, cmd): |
|
77 | def _handle_ioPAUSE(self, cmd): |
@@ -67,6 +67,7 class Ui_Ftp(object): | |||||
67 | self.usernameFTP.setGeometry(QtCore.QRect(130, 130, 231, 27)) |
|
67 | self.usernameFTP.setGeometry(QtCore.QRect(130, 130, 231, 27)) | |
68 | self.usernameFTP.setObjectName(_fromUtf8("usernameFTP")) |
|
68 | self.usernameFTP.setObjectName(_fromUtf8("usernameFTP")) | |
69 | self.passwordFTP = QtGui.QLineEdit(self.centralWidget) |
|
69 | self.passwordFTP = QtGui.QLineEdit(self.centralWidget) | |
|
70 | self.passwordFTP.setEchoMode(QtGui.QLineEdit.Password) | |||
70 | self.passwordFTP.setGeometry(QtCore.QRect(130, 160, 231, 27)) |
|
71 | self.passwordFTP.setGeometry(QtCore.QRect(130, 160, 231, 27)) | |
71 | self.passwordFTP.setObjectName(_fromUtf8("passwordFTP")) |
|
72 | self.passwordFTP.setObjectName(_fromUtf8("passwordFTP")) | |
72 | self.ftpCancelButton = QtGui.QPushButton(self.centralWidget) |
|
73 | self.ftpCancelButton = QtGui.QPushButton(self.centralWidget) | |
@@ -118,10 +119,10 class Ui_Ftp(object): | |||||
118 | self.label_3.setText(_translate("MainWindow", "Password:", None)) |
|
119 | self.label_3.setText(_translate("MainWindow", "Password:", None)) | |
119 | self.label_4.setText(_translate("MainWindow", "Server Details", None)) |
|
120 | self.label_4.setText(_translate("MainWindow", "Server Details", None)) | |
120 | self.label_5.setText(_translate("MainWindow", "User Details", None)) |
|
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 | self.ftpCancelButton.setText(_translate("MainWindow", "Cancel", None)) |
|
123 | self.ftpCancelButton.setText(_translate("MainWindow", "Cancel", None)) | |
123 | self.ftpOkButton.setText(_translate("MainWindow", "Ok", None)) |
|
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 | self.label_8.setText(_translate("MainWindow", "Ftp_wei:", None)) |
|
126 | self.label_8.setText(_translate("MainWindow", "Ftp_wei:", None)) | |
126 | self.label_9.setText(_translate("MainWindow", "Exp_code:", None)) |
|
127 | self.label_9.setText(_translate("MainWindow", "Exp_code:", None)) | |
127 | self.label_10.setText(_translate("MainWindow", "Sub_exp:", None)) |
|
128 | self.label_10.setText(_translate("MainWindow", "Sub_exp:", None)) |
@@ -8,6 +8,7 | |||||
8 | # WARNING! All changes made in this file will be lost! |
|
8 | # WARNING! All changes made in this file will be lost! | |
9 |
|
9 | |||
10 | from PyQt4 import QtCore, QtGui |
|
10 | from PyQt4 import QtCore, QtGui | |
|
11 | from windows import * | |||
11 |
|
12 | |||
12 | try: |
|
13 | try: | |
13 | _fromUtf8 = QtCore.QString.fromUtf8 |
|
14 | _fromUtf8 = QtCore.QString.fromUtf8 | |
@@ -24,9 +25,12 except AttributeError: | |||||
24 | return QtGui.QApplication.translate(context, text, disambig) |
|
25 | return QtGui.QApplication.translate(context, text, disambig) | |
25 |
|
26 | |||
26 | class Ui_MainWindow(object): |
|
27 | class Ui_MainWindow(object): | |
|
28 | ||||
27 | def setupUi(self, MainWindow): |
|
29 | def setupUi(self, MainWindow): | |
|
30 | ||||
28 | MainWindow.setObjectName(_fromUtf8("MainWindow")) |
|
31 | MainWindow.setObjectName(_fromUtf8("MainWindow")) | |
29 | MainWindow.resize(1203, 711) |
|
32 | MainWindow.resize(1203, 711) | |
|
33 | ||||
30 | self.centralWidget = QtGui.QWidget(MainWindow) |
|
34 | self.centralWidget = QtGui.QWidget(MainWindow) | |
31 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) |
|
35 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) | |
32 | self.gridLayout_16 = QtGui.QGridLayout(self.centralWidget) |
|
36 | self.gridLayout_16 = QtGui.QGridLayout(self.centralWidget) | |
@@ -43,6 +47,8 class Ui_MainWindow(object): | |||||
43 | self.tabWidgetProject.setMinimumSize(QtCore.QSize(0, 278)) |
|
47 | self.tabWidgetProject.setMinimumSize(QtCore.QSize(0, 278)) | |
44 | self.tabWidgetProject.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
48 | self.tabWidgetProject.setMaximumSize(QtCore.QSize(16777215, 16777215)) | |
45 | self.tabWidgetProject.setObjectName(_fromUtf8("tabWidgetProject")) |
|
49 | self.tabWidgetProject.setObjectName(_fromUtf8("tabWidgetProject")) | |
|
50 | ||||
|
51 | ||||
46 | self.tabProject = QtGui.QWidget() |
|
52 | self.tabProject = QtGui.QWidget() | |
47 | self.tabProject.setObjectName(_fromUtf8("tabProject")) |
|
53 | self.tabProject.setObjectName(_fromUtf8("tabProject")) | |
48 | self.gridLayout_15 = QtGui.QGridLayout(self.tabProject) |
|
54 | self.gridLayout_15 = QtGui.QGridLayout(self.tabProject) | |
@@ -53,6 +59,7 class Ui_MainWindow(object): | |||||
53 | self.frame.setObjectName(_fromUtf8("frame")) |
|
59 | self.frame.setObjectName(_fromUtf8("frame")) | |
54 | self.gridLayout_2 = QtGui.QGridLayout(self.frame) |
|
60 | self.gridLayout_2 = QtGui.QGridLayout(self.frame) | |
55 | self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) |
|
61 | self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) | |
|
62 | ||||
56 | self.label = QtGui.QLabel(self.frame) |
|
63 | self.label = QtGui.QLabel(self.frame) | |
57 | self.label.setObjectName(_fromUtf8("label")) |
|
64 | self.label.setObjectName(_fromUtf8("label")) | |
58 | self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) |
|
65 | self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) | |
@@ -904,6 +911,8 class Ui_MainWindow(object): | |||||
904 | self.tabWidget_2.addTab(self.tabopCorrelation1, _fromUtf8("")) |
|
911 | self.tabWidget_2.addTab(self.tabopCorrelation1, _fromUtf8("")) | |
905 | self.gridLayout_13.addWidget(self.tabWidget_2, 0, 0, 1, 1) |
|
912 | self.gridLayout_13.addWidget(self.tabWidget_2, 0, 0, 1, 1) | |
906 | self.tabWidgetProject.addTab(self.tabCorrelation, _fromUtf8("")) |
|
913 | self.tabWidgetProject.addTab(self.tabCorrelation, _fromUtf8("")) | |
|
914 | ||||
|
915 | ||||
907 | self.tabConsole = QtGui.QTabWidget(self.splitter) |
|
916 | self.tabConsole = QtGui.QTabWidget(self.splitter) | |
908 | self.tabConsole.setMinimumSize(QtCore.QSize(0, 0)) |
|
917 | self.tabConsole.setMinimumSize(QtCore.QSize(0, 0)) | |
909 | self.tabConsole.setObjectName(_fromUtf8("tabConsole")) |
|
918 | self.tabConsole.setObjectName(_fromUtf8("tabConsole")) | |
@@ -943,58 +952,70 class Ui_MainWindow(object): | |||||
943 | self.menuHelp.setObjectName(_fromUtf8("menuHelp")) |
|
952 | self.menuHelp.setObjectName(_fromUtf8("menuHelp")) | |
944 | MainWindow.setMenuBar(self.menuBar) |
|
953 | MainWindow.setMenuBar(self.menuBar) | |
945 | self.actionOpen = QtGui.QAction(MainWindow) |
|
954 | self.actionOpen = QtGui.QAction(MainWindow) | |
946 | icon = QtGui.QIcon() |
|
955 | ||
947 | icon.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/open.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
956 | iconOpen = QtGui.QIcon() | |
948 | self.actionOpen.setIcon(icon) |
|
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 | self.actionOpen.setObjectName(_fromUtf8("actionOpen")) |
|
978 | self.actionOpen.setObjectName(_fromUtf8("actionOpen")) | |
950 | self.actionCreate = QtGui.QAction(MainWindow) |
|
979 | self.actionCreate = QtGui.QAction(MainWindow) | |
951 | icon1 = QtGui.QIcon() |
|
980 | self.actionCreate.setIcon(iconCreate) | |
952 | icon1.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/project.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
|||
953 | self.actionCreate.setIcon(icon1) |
|
|||
954 | self.actionCreate.setObjectName(_fromUtf8("actionCreate")) |
|
981 | self.actionCreate.setObjectName(_fromUtf8("actionCreate")) | |
955 | self.actionSave = QtGui.QAction(MainWindow) |
|
982 | self.actionSave = QtGui.QAction(MainWindow) | |
956 | icon2 = QtGui.QIcon() |
|
983 | self.actionSave.setIcon(iconSave) | |
957 | icon2.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/saveicon.jpeg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
|||
958 | self.actionSave.setIcon(icon2) |
|
|||
959 | self.actionSave.setObjectName(_fromUtf8("actionSave")) |
|
984 | self.actionSave.setObjectName(_fromUtf8("actionSave")) | |
960 | self.actionClose = QtGui.QAction(MainWindow) |
|
985 | self.actionClose = QtGui.QAction(MainWindow) | |
961 | self.actionClose.setObjectName(_fromUtf8("actionClose")) |
|
986 | self.actionClose.setObjectName(_fromUtf8("actionClose")) | |
962 | self.actionStart = QtGui.QAction(MainWindow) |
|
987 | self.actionStart = QtGui.QAction(MainWindow) | |
963 | icon3 = QtGui.QIcon() |
|
988 | self.actionStart.setIcon(iconStart) | |
964 | icon3.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/startServer.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
|||
965 | self.actionStart.setIcon(icon3) |
|
|||
966 | self.actionStart.setObjectName(_fromUtf8("actionStart")) |
|
989 | self.actionStart.setObjectName(_fromUtf8("actionStart")) | |
967 | self.actionPause = QtGui.QAction(MainWindow) |
|
990 | self.actionPause = QtGui.QAction(MainWindow) | |
|
991 | self.actionPause.setIcon(iconPause) | |||
968 | self.actionPause.setObjectName(_fromUtf8("actionPause")) |
|
992 | self.actionPause.setObjectName(_fromUtf8("actionPause")) | |
|
993 | self.actionStop = QtGui.QAction(MainWindow) | |||
|
994 | self.actionStop.setIcon(iconStop) | |||
|
995 | self.actionStop.setObjectName(_fromUtf8("actionStop")) | |||
969 | self.actionAbout = QtGui.QAction(MainWindow) |
|
996 | self.actionAbout = QtGui.QAction(MainWindow) | |
970 | self.actionAbout.setObjectName(_fromUtf8("actionAbout")) |
|
997 | self.actionAbout.setObjectName(_fromUtf8("actionAbout")) | |
971 | self.actionOpenToolbar = QtGui.QAction(MainWindow) |
|
998 | self.actionOpenToolbar = QtGui.QAction(MainWindow) | |
972 | self.actionOpenToolbar.setIcon(icon) |
|
999 | self.actionOpenToolbar.setIcon(iconOpen) | |
973 | self.actionOpenToolbar.setObjectName(_fromUtf8("actionOpenToolbar")) |
|
1000 | self.actionOpenToolbar.setObjectName(_fromUtf8("actionOpenToolbar")) | |
974 | self.actionCreateToolbar = QtGui.QAction(MainWindow) |
|
1001 | self.actionCreateToolbar = QtGui.QAction(MainWindow) | |
975 |
self.actionCreateToolbar.setIcon(icon |
|
1002 | self.actionCreateToolbar.setIcon(iconCreate) | |
976 | self.actionCreateToolbar.setObjectName(_fromUtf8("actionCreateToolbar")) |
|
1003 | self.actionCreateToolbar.setObjectName(_fromUtf8("actionCreateToolbar")) | |
977 | self.actionSaveToolbar = QtGui.QAction(MainWindow) |
|
1004 | self.actionSaveToolbar = QtGui.QAction(MainWindow) | |
978 |
self.actionSaveToolbar.setIcon(icon |
|
1005 | self.actionSaveToolbar.setIcon(iconSave) | |
979 | self.actionSaveToolbar.setObjectName(_fromUtf8("actionSaveToolbar")) |
|
1006 | self.actionSaveToolbar.setObjectName(_fromUtf8("actionSaveToolbar")) | |
980 | self.actionStarToolbar = QtGui.QAction(MainWindow) |
|
1007 | self.actionStarToolbar = QtGui.QAction(MainWindow) | |
981 |
self.actionStarToolbar.setIcon(icon |
|
1008 | self.actionStarToolbar.setIcon(iconStart) | |
982 | self.actionStarToolbar.setObjectName(_fromUtf8("actionStarToolbar")) |
|
1009 | self.actionStarToolbar.setObjectName(_fromUtf8("actionStarToolbar")) | |
983 | self.actionStopToolbar = QtGui.QAction(MainWindow) |
|
1010 | self.actionStopToolbar = QtGui.QAction(MainWindow) | |
984 | icon4 = QtGui.QIcon() |
|
1011 | self.actionStopToolbar.setIcon(iconStop) | |
985 | icon4.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/stopServer.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
|||
986 | self.actionStopToolbar.setIcon(icon4) |
|
|||
987 | self.actionStopToolbar.setObjectName(_fromUtf8("actionStopToolbar")) |
|
1012 | self.actionStopToolbar.setObjectName(_fromUtf8("actionStopToolbar")) | |
988 | self.actionPauseToolbar = QtGui.QAction(MainWindow) |
|
1013 | self.actionPauseToolbar = QtGui.QAction(MainWindow) | |
989 | icon5 = QtGui.QIcon() |
|
1014 | self.actionPause.setIcon(iconPause) | |
990 | icon5.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/pause.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
1015 | self.actionPauseToolbar.setIcon(iconPause) | |
991 | self.actionPause.setIcon(icon5) |
|
|||
992 | self.actionPauseToolbar.setIcon(icon5) |
|
|||
993 | self.actionPauseToolbar.setObjectName(_fromUtf8("actionPauseToolbar")) |
|
1016 | self.actionPauseToolbar.setObjectName(_fromUtf8("actionPauseToolbar")) | |
994 | self.actionAddPU = QtGui.QAction(MainWindow) |
|
1017 | self.actionAddPU = QtGui.QAction(MainWindow) | |
995 | icon6 = QtGui.QIcon() |
|
1018 | self.actionAddPU.setIcon(iconAddPU) | |
996 | icon6.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/add_PU.gif")), QtGui.QIcon.Normal, QtGui.QIcon.Off) |
|
|||
997 | self.actionAddPU.setIcon(icon6) |
|
|||
998 | self.actionAddPU.setObjectName(_fromUtf8("actionAddPU")) |
|
1019 | self.actionAddPU.setObjectName(_fromUtf8("actionAddPU")) | |
999 | self.actionFTP = QtGui.QAction(MainWindow) |
|
1020 | self.actionFTP = QtGui.QAction(MainWindow) | |
1000 | self.actionFTP.setObjectName(_fromUtf8("actionFTP")) |
|
1021 | self.actionFTP.setObjectName(_fromUtf8("actionFTP")) | |
@@ -1022,6 +1043,7 class Ui_MainWindow(object): | |||||
1022 | self.menuProject.addAction(self.actionClose) |
|
1043 | self.menuProject.addAction(self.actionClose) | |
1023 | self.menuRun.addAction(self.actionStart) |
|
1044 | self.menuRun.addAction(self.actionStart) | |
1024 | self.menuRun.addAction(self.actionPause) |
|
1045 | self.menuRun.addAction(self.actionPause) | |
|
1046 | self.menuRun.addAction(self.actionStop) | |||
1025 | self.menuOptions.addAction(self.actionFTP) |
|
1047 | self.menuOptions.addAction(self.actionFTP) | |
1026 | self.menuHelp.addAction(self.actionAbout) |
|
1048 | self.menuHelp.addAction(self.actionAbout) | |
1027 | self.menuBar.addAction(self.menuProject.menuAction()) |
|
1049 | self.menuBar.addAction(self.menuProject.menuAction()) | |
@@ -1040,20 +1062,22 class Ui_MainWindow(object): | |||||
1040 | QtCore.QMetaObject.connectSlotsByName(MainWindow) |
|
1062 | QtCore.QMetaObject.connectSlotsByName(MainWindow) | |
1041 |
|
1063 | |||
1042 | def changeIcon(self): |
|
1064 | def changeIcon(self): | |
|
1065 | ||||
1043 | if self.a==1: |
|
1066 | if self.a==1: | |
1044 |
icon |
|
1067 | iconPauseRed = QtGui.QIcon() | |
1045 |
icon |
|
1068 | iconPauseRed.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/pausered.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
1046 |
self.actionPauseToolbar.setIcon(icon |
|
1069 | self.actionPauseToolbar.setIcon(iconPauseRed) | |
1047 | self.a+=1 |
|
1070 | self.a+=1 | |
1048 | return 0 |
|
1071 | return 0 | |
1049 | if self.a==2: |
|
1072 | if self.a==2: | |
1050 |
icon |
|
1073 | iconPause = QtGui.QIcon() | |
1051 |
icon |
|
1074 | iconPause.addPixmap(QtGui.QPixmap(_fromUtf8("schainpy/gui/figure/pause.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
1052 |
self.actionPauseToolbar.setIcon(icon |
|
1075 | self.actionPauseToolbar.setIcon(iconPause) | |
1053 | self.a-=1 |
|
1076 | self.a-=1 | |
1054 | return 0 |
|
1077 | return 0 | |
1055 |
|
1078 | |||
1056 | def retranslateUi(self, MainWindow): |
|
1079 | def retranslateUi(self, MainWindow): | |
|
1080 | ||||
1057 | MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None)) |
|
1081 | MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None)) | |
1058 | self.label.setText(_translate("MainWindow", "Project Name :", None)) |
|
1082 | self.label.setText(_translate("MainWindow", "Project Name :", None)) | |
1059 | self.label_11.setText(_translate("MainWindow", "DataType :", None)) |
|
1083 | self.label_11.setText(_translate("MainWindow", "DataType :", None)) | |
@@ -1214,7 +1238,10 class Ui_MainWindow(object): | |||||
1214 | self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tabopCorrelation), _translate("MainWindow", "Operation", None)) |
|
1238 | self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tabopCorrelation), _translate("MainWindow", "Operation", None)) | |
1215 | self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tabopCorrelation1), _translate("MainWindow", "Graphics", None)) |
|
1239 | self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tabopCorrelation1), _translate("MainWindow", "Graphics", None)) | |
1216 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabCorrelation), _translate("MainWindow", "Correlation", None)) |
|
1240 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabCorrelation), _translate("MainWindow", "Correlation", None)) | |
|
1241 | ||||
|
1242 | ||||
1217 | self.tabConsole.setTabText(self.tabConsole.indexOf(self.tab_5), _translate("MainWindow", "Console", None)) |
|
1243 | self.tabConsole.setTabText(self.tabConsole.indexOf(self.tab_5), _translate("MainWindow", "Console", None)) | |
|
1244 | ||||
1218 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabProjectProperty), _translate("MainWindow", "Project Property", None)) |
|
1245 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabProjectProperty), _translate("MainWindow", "Project Property", None)) | |
1219 | self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None)) |
|
1246 | self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None)) | |
1220 | self.menuProject.setTitle(_translate("MainWindow", "Project", None)) |
|
1247 | self.menuProject.setTitle(_translate("MainWindow", "Project", None)) | |
@@ -1227,6 +1254,7 class Ui_MainWindow(object): | |||||
1227 | self.actionClose.setText(_translate("MainWindow", "Close", None)) |
|
1254 | self.actionClose.setText(_translate("MainWindow", "Close", None)) | |
1228 | self.actionStart.setText(_translate("MainWindow", "Start", None)) |
|
1255 | self.actionStart.setText(_translate("MainWindow", "Start", None)) | |
1229 | self.actionPause.setText(_translate("MainWindow", "Pause", None)) |
|
1256 | self.actionPause.setText(_translate("MainWindow", "Pause", None)) | |
|
1257 | self.actionStop.setText(_translate("MainWindow", "Stop", None)) | |||
1230 | self.actionAbout.setText(_translate("MainWindow", "About", None)) |
|
1258 | self.actionAbout.setText(_translate("MainWindow", "About", None)) | |
1231 | self.actionOpenToolbar.setText(_translate("MainWindow", "openToolbar", None)) |
|
1259 | self.actionOpenToolbar.setText(_translate("MainWindow", "openToolbar", None)) | |
1232 | self.actionOpenToolbar.setToolTip(_translate("MainWindow", "Open Project", None)) |
|
1260 | self.actionOpenToolbar.setToolTip(_translate("MainWindow", "Open Project", None)) | |
@@ -1244,17 +1272,242 class Ui_MainWindow(object): | |||||
1244 | self.actionFTP.setText(_translate("MainWindow", "FTP", None)) |
|
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 | class Ui_AdvancedWindow(Ui_MainWindow): |
|
1512 | class Ui_AdvancedWindow(Ui_MainWindow): | |
1260 |
|
1513 | |||
@@ -1272,7 +1525,7 if __name__ == "__main__": | |||||
1272 | import sys |
|
1525 | import sys | |
1273 | app = QtGui.QApplication(sys.argv) |
|
1526 | app = QtGui.QApplication(sys.argv) | |
1274 | MainWindow = QtGui.QMainWindow() |
|
1527 | MainWindow = QtGui.QMainWindow() | |
1275 |
ui = Ui_ |
|
1528 | ui = Ui_BasicWindow() | |
1276 | ui.setupUi(MainWindow) |
|
1529 | ui.setupUi(MainWindow) | |
1277 | MainWindow.show() |
|
1530 | MainWindow.show() | |
1278 | sys.exit(app.exec_()) |
|
1531 | sys.exit(app.exec_()) |
@@ -169,9 +169,15 class Remote(threading.Thread): | |||||
169 |
|
169 | |||
170 | def run(self): |
|
170 | def run(self): | |
171 |
|
171 | |||
|
172 | if not self.status: | |||
|
173 | print "Finishing FTP service" | |||
|
174 | return | |||
|
175 | ||||
172 | if not self.cd(self.remotefolder): |
|
176 | if not self.cd(self.remotefolder): | |
173 | raise ValueError, "Could not access to the new remote directory: %s" %self.remotefolder |
|
177 | raise ValueError, "Could not access to the new remote directory: %s" %self.remotefolder | |
174 |
|
178 | |||
|
179 | sts = True | |||
|
180 | ||||
175 | while True: |
|
181 | while True: | |
176 |
|
182 | |||
177 | sleep(self.period) |
|
183 | sleep(self.period) | |
@@ -179,8 +185,11 class Remote(threading.Thread): | |||||
179 | self.bussy = True |
|
185 | self.bussy = True | |
180 |
|
186 | |||
181 | for thisFile in self.fileList: |
|
187 | for thisFile in self.fileList: | |
182 | self.upload(thisFile, self.remotefolder) |
|
188 | sts = self.upload(thisFile, self.remotefolder) | |
|
189 | if not sts: break | |||
183 |
|
190 | |||
|
191 | if not sts: break | |||
|
192 | ||||
184 | self.bussy = False |
|
193 | self.bussy = False | |
185 |
|
194 | |||
186 | if self.stopFlag: |
|
195 | if self.stopFlag: |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
1 | NO CONTENT: file was removed |
|
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 |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now