@@ -0,0 +1,1 | |||||
|
1 | from viewcontroller import * No newline at end of file |
@@ -0,0 +1,25 | |||||
|
1 | #!/usr/bin/python | |||
|
2 | # -*- coding: utf-8 -*- | |||
|
3 | ||||
|
4 | #from PyQt4 import QtCore, QtGui | |||
|
5 | from PyQt4.QtGui import QApplication | |||
|
6 | #from PyQt4.QtCore import pyqtSignature | |||
|
7 | #from Controller.workspace import Workspace | |||
|
8 | #from Controller.mainwindow import InitWindow | |||
|
9 | #from Controller.initwindow import InitWindow | |||
|
10 | #from Controller.window import window | |||
|
11 | from viewcontroller.mainwindow import MainWindow | |||
|
12 | #import time | |||
|
13 | ||||
|
14 | def main(): | |||
|
15 | import sys | |||
|
16 | app = QApplication(sys.argv) | |||
|
17 | #wnd=InitWindow() | |||
|
18 | wnd=MainWindow() | |||
|
19 | #wnd=Workspace() | |||
|
20 | wnd.show() | |||
|
21 | sys.exit(app.exec_()) | |||
|
22 | ||||
|
23 | ||||
|
24 | if __name__ == "__main__": | |||
|
25 | main() |
@@ -0,0 +1,1 | |||||
|
1 | from viewcontroller import * No newline at end of file |
@@ -0,0 +1,358 | |||||
|
1 | ''' | |||
|
2 | Created on September , 2012 | |||
|
3 | @author: | |||
|
4 | ''' | |||
|
5 | from xml.etree.ElementTree import Element, SubElement, ElementTree | |||
|
6 | from xmlprint import prettify | |||
|
7 | from xml.etree import ElementTree as ET | |||
|
8 | import sys | |||
|
9 | ||||
|
10 | class Project(): | |||
|
11 | ||||
|
12 | id = None | |||
|
13 | name = None | |||
|
14 | description = None | |||
|
15 | readBranchObjList = None | |||
|
16 | procBranchObjList = None | |||
|
17 | ||||
|
18 | def __init__(self): | |||
|
19 | ||||
|
20 | # self.id = id | |||
|
21 | # self.name = name | |||
|
22 | # self.description = description | |||
|
23 | ||||
|
24 | self.readBranchObjList = [] | |||
|
25 | self.procBranchObjList = [] | |||
|
26 | ||||
|
27 | def setParms(self, id, name, description): | |||
|
28 | ||||
|
29 | self.id = id | |||
|
30 | self.name = name | |||
|
31 | self.description = description | |||
|
32 | ||||
|
33 | def addReadBranch(self,id, dpath, dataformat, opMode,readMode, startDate='', endDate='', startTime='', endTime=''): | |||
|
34 | ||||
|
35 | #id = len(self.readBranchObjList) + 1 | |||
|
36 | ||||
|
37 | readBranchObj = ReadBranch(id, dpath, dataformat, opMode , readMode, startDate, endDate, startTime, endTime) | |||
|
38 | ||||
|
39 | self.readBranchObjList.append(readBranchObj) | |||
|
40 | ||||
|
41 | return readBranchObj | |||
|
42 | ||||
|
43 | def addProcBranch(self, id,name): | |||
|
44 | ||||
|
45 | # id = len(self.procBranchObjList) + 1 | |||
|
46 | ||||
|
47 | procBranchObj = ProcBranch(id, name) | |||
|
48 | ||||
|
49 | self.procBranchObjList.append(procBranchObj) | |||
|
50 | ||||
|
51 | return procBranchObj | |||
|
52 | ||||
|
53 | def makeXml(self): | |||
|
54 | ||||
|
55 | projectElement = Element('Project') | |||
|
56 | projectElement.set('id', str(self.id)) | |||
|
57 | projectElement.set('name', self.name) | |||
|
58 | #projectElement.set('description', self.description) | |||
|
59 | ||||
|
60 | se = SubElement(projectElement, 'description',description=self.description)#ESTO ES LO ULTIMO QUE SE TRABAJO | |||
|
61 | #se.text = self.description #ULTIMA MODIFICACION PARA SACAR UN SUB ELEMENT | |||
|
62 | ||||
|
63 | for readBranchObj in self.readBranchObjList: | |||
|
64 | readBranchObj.makeXml(projectElement) | |||
|
65 | ||||
|
66 | for branchObj in self.procBranchObjList: | |||
|
67 | branchObj.makeXml(projectElement) | |||
|
68 | ||||
|
69 | self.projectElement = projectElement | |||
|
70 | ||||
|
71 | def writeXml(self, filename): | |||
|
72 | ||||
|
73 | self.makeXml() | |||
|
74 | ElementTree(self.projectElement).write(filename, method='xml') | |||
|
75 | #print prettify(self.projectElement) | |||
|
76 | ||||
|
77 | class ReadBranch(): | |||
|
78 | ||||
|
79 | id = None | |||
|
80 | dpath = None | |||
|
81 | dataformat = None | |||
|
82 | opMode =None | |||
|
83 | readMode = None | |||
|
84 | startDate = None | |||
|
85 | endDate = None | |||
|
86 | startTime = None | |||
|
87 | endTime = None | |||
|
88 | ||||
|
89 | def __init__(self, id, dpath, dataformat,opMode, readMode, startDate, endDate, startTime, endTime): | |||
|
90 | ||||
|
91 | self.id = id | |||
|
92 | self.dpath = dpath | |||
|
93 | self.dataformat = dataformat | |||
|
94 | self.opMode = opMode | |||
|
95 | self.readMode = readMode | |||
|
96 | self.startDate = startDate | |||
|
97 | self.endDate = endDate | |||
|
98 | self.startTime = startTime | |||
|
99 | self.endTime = endTime | |||
|
100 | ||||
|
101 | def makeXml(self, projectElement): | |||
|
102 | ||||
|
103 | readBranchElement = SubElement(projectElement, 'readBranch') | |||
|
104 | readBranchElement.set('id', str(self.id)) | |||
|
105 | ||||
|
106 | ########################################################################## | |||
|
107 | se = SubElement(readBranchElement, 'parameter', name='dpath' , value=self.dpath) | |||
|
108 | se = SubElement(readBranchElement, 'parameter', name='dataformat', value=self.dataformat) | |||
|
109 | se = SubElement(readBranchElement, 'parameter', name='opMode' , value=self.opMode) | |||
|
110 | se = SubElement(readBranchElement, 'parameter', name='startDate' , value=self.startDate) | |||
|
111 | se = SubElement(readBranchElement, 'parameter', name='endDate' , value=self.endDate) | |||
|
112 | se = SubElement(readBranchElement, 'parameter', name='startTime' , value=self.startTime) | |||
|
113 | se = SubElement(readBranchElement, 'parameter', name='endTime' , value=self.endTime) | |||
|
114 | se = SubElement(readBranchElement, 'parameter', name='readMode' , value=str(self.readMode)) | |||
|
115 | ||||
|
116 | class ProcBranch(): | |||
|
117 | ||||
|
118 | id = None | |||
|
119 | name = None | |||
|
120 | ||||
|
121 | upObjList = None | |||
|
122 | upsubObjList=None | |||
|
123 | ||||
|
124 | def __init__(self, id, name): | |||
|
125 | ||||
|
126 | self.id = id | |||
|
127 | self.name = name | |||
|
128 | ||||
|
129 | self.upObjList = [] | |||
|
130 | self.upsubObjList = [] | |||
|
131 | ||||
|
132 | def addUP(self,id, name, type): | |||
|
133 | ||||
|
134 | #id = len(self.upObjList) + 1 | |||
|
135 | ||||
|
136 | upObj = UP(id, name, type) | |||
|
137 | ||||
|
138 | self.upObjList.append(upObj) | |||
|
139 | ||||
|
140 | return upObj | |||
|
141 | ||||
|
142 | def addUPSUB(self,id, name, type): | |||
|
143 | ||||
|
144 | # id = len(self.upsubObjList) + 1 | |||
|
145 | ||||
|
146 | upsubObj = UPSUB(id, name, type) | |||
|
147 | ||||
|
148 | self.upsubObjList.append(upsubObj) | |||
|
149 | ||||
|
150 | return upsubObj | |||
|
151 | ||||
|
152 | def makeXml(self, projectElement): | |||
|
153 | ||||
|
154 | procBranchElement = SubElement(projectElement, 'procBranch') | |||
|
155 | procBranchElement.set('id', str(self.id)) | |||
|
156 | procBranchElement.set('name', self.name) | |||
|
157 | ||||
|
158 | for upObj in self.upObjList: | |||
|
159 | upObj.makeXml(procBranchElement) | |||
|
160 | ||||
|
161 | for upsubObj in self.upsubObjList: | |||
|
162 | upsubObj.makeXml(procBranchElement) | |||
|
163 | ||||
|
164 | class UP(): | |||
|
165 | ||||
|
166 | id = None | |||
|
167 | name = None | |||
|
168 | type = None | |||
|
169 | upsubObjList=None | |||
|
170 | opObjList = None | |||
|
171 | ||||
|
172 | def __init__(self, id, name, type): | |||
|
173 | ||||
|
174 | self.id = id | |||
|
175 | self.name = name | |||
|
176 | self.type = type | |||
|
177 | self.upsubObjList=[] | |||
|
178 | self.up2subObjList=[] | |||
|
179 | self.opObjList = [] | |||
|
180 | ||||
|
181 | def addOperation(self,id, name, priority): | |||
|
182 | ||||
|
183 | #id = len(self.opObjList) + 1 | |||
|
184 | ||||
|
185 | opObj = Operation(id, name, priority) | |||
|
186 | ||||
|
187 | self.opObjList.append(opObj) | |||
|
188 | ||||
|
189 | return opObj | |||
|
190 | ||||
|
191 | def addUPSUB(self,id, name, type): | |||
|
192 | ||||
|
193 | # id = len(self.upsubObjList) + 1 | |||
|
194 | ||||
|
195 | upsubObj = UPSUB(id, name, type) | |||
|
196 | ||||
|
197 | self.upsubObjList.append(upsubObj) | |||
|
198 | ||||
|
199 | return upsubObj | |||
|
200 | ||||
|
201 | def addUP2SUB(self,id, name, type): | |||
|
202 | ||||
|
203 | # id = len(self.upsubObjList) + 1 | |||
|
204 | ||||
|
205 | up2subObj = UP2SUB(id, name, type) | |||
|
206 | ||||
|
207 | self.up2subObjList.append(up2subObj) | |||
|
208 | ||||
|
209 | return up2subObj | |||
|
210 | ||||
|
211 | def makeXml(self, procBranchElement): | |||
|
212 | ||||
|
213 | upElement = SubElement(procBranchElement, 'UP') | |||
|
214 | upElement.set('id', str(self.id)) | |||
|
215 | upElement.set('name', self.name) | |||
|
216 | upElement.set('type', self.type) | |||
|
217 | ||||
|
218 | for opObj in self.opObjList: | |||
|
219 | opObj.makeXml(upElement) | |||
|
220 | ||||
|
221 | for upsubObj in self.upsubObjList: | |||
|
222 | upsubObj.makeXml(upElement) | |||
|
223 | ||||
|
224 | class UPSUB(): | |||
|
225 | ||||
|
226 | id = None | |||
|
227 | name = None | |||
|
228 | type = None | |||
|
229 | opObjList = None | |||
|
230 | up2subObjList=None | |||
|
231 | ||||
|
232 | ||||
|
233 | def __init__(self, id, name, type): | |||
|
234 | ||||
|
235 | self.id = id | |||
|
236 | self.name = name | |||
|
237 | self.type = type | |||
|
238 | self.up2subObjList = [] | |||
|
239 | self.opObjList = [] | |||
|
240 | ||||
|
241 | def addOperation(self, name, priority): | |||
|
242 | ||||
|
243 | id = len(self.opObjList) + 1 | |||
|
244 | ||||
|
245 | opObj = Operation(id, name, priority) | |||
|
246 | ||||
|
247 | self.opObjList.append(opObj) | |||
|
248 | ||||
|
249 | return opObj | |||
|
250 | ||||
|
251 | ||||
|
252 | def addUP2SUB(self,id, name, type): | |||
|
253 | # | |||
|
254 | # id = len(self.opObjList) + 1 | |||
|
255 | up2subObj = UP2SUB(id, name, type) | |||
|
256 | ||||
|
257 | self.up2subObjList.append(up2subObj) | |||
|
258 | ||||
|
259 | return up2subObj | |||
|
260 | ||||
|
261 | def makeXml(self, upElement): | |||
|
262 | ||||
|
263 | upsubElement = SubElement(upElement, 'UPSUB') | |||
|
264 | upsubElement.set('id', str(self.id)) | |||
|
265 | upsubElement.set('name', self.name) | |||
|
266 | upsubElement.set('type', self.type) | |||
|
267 | ||||
|
268 | for opObj in self.opObjList: | |||
|
269 | opObj.makeXml(upsubElement) | |||
|
270 | ||||
|
271 | for up2subObj in self.up2subObjList: | |||
|
272 | up2subObj.makeXml(upsubElement) | |||
|
273 | ||||
|
274 | class UP2SUB(): | |||
|
275 | ||||
|
276 | id = None | |||
|
277 | name = None | |||
|
278 | type = None | |||
|
279 | opObjList = None | |||
|
280 | ||||
|
281 | def __init__(self, id, name, type): | |||
|
282 | ||||
|
283 | self.id = id | |||
|
284 | self.name = name | |||
|
285 | self.type = type | |||
|
286 | self.opObjList = [] | |||
|
287 | ||||
|
288 | def addOperation(self, name, priority): | |||
|
289 | ||||
|
290 | id = len(self.opObjList) + 1 | |||
|
291 | ||||
|
292 | opObj = Operation(id, name, priority) | |||
|
293 | ||||
|
294 | self.opObjList.append(opObj) | |||
|
295 | ||||
|
296 | return opObj | |||
|
297 | ||||
|
298 | def makeXml(self,upsubElement): | |||
|
299 | up2subElement = SubElement(upsubElement, 'UPD2SUB') | |||
|
300 | up2subElement.set('id', str(self.id)) | |||
|
301 | up2subElement.set('name', self.name) | |||
|
302 | up2subElement.set('type', self.type) | |||
|
303 | ||||
|
304 | for opObj in self.opObjList: | |||
|
305 | opObj.makeXml(up2subElement) | |||
|
306 | ||||
|
307 | class Operation(): | |||
|
308 | ||||
|
309 | id = 0 | |||
|
310 | name = None | |||
|
311 | priority = None | |||
|
312 | parmObjList = [] | |||
|
313 | ||||
|
314 | def __init__(self, id, name, priority): | |||
|
315 | ||||
|
316 | self.id = id | |||
|
317 | self.name = name | |||
|
318 | self.priority = priority | |||
|
319 | ||||
|
320 | self.parmObjList = [] | |||
|
321 | ||||
|
322 | def addParameter(self, name, value): | |||
|
323 | ||||
|
324 | id = len(self.parmObjList) + 1 | |||
|
325 | ||||
|
326 | parmObj = Parameter(id, name, value) | |||
|
327 | ||||
|
328 | self.parmObjList.append(parmObj) | |||
|
329 | ||||
|
330 | return parmObj | |||
|
331 | ||||
|
332 | def makeXml(self, upElement): | |||
|
333 | ||||
|
334 | opElement = SubElement(upElement, 'Operation') | |||
|
335 | opElement.set('id', str(self.id)) | |||
|
336 | opElement.set('name', self.name) | |||
|
337 | opElement.set('priority', str(self.priority)) | |||
|
338 | ||||
|
339 | for parmObj in self.parmObjList: | |||
|
340 | parmObj.makeXml(opElement) | |||
|
341 | ||||
|
342 | class Parameter(): | |||
|
343 | ||||
|
344 | id = None | |||
|
345 | name = None | |||
|
346 | value = None | |||
|
347 | ||||
|
348 | def __init__(self, id, name, value): | |||
|
349 | ||||
|
350 | self.id = id | |||
|
351 | self.name = name | |||
|
352 | self.value = value | |||
|
353 | ||||
|
354 | def makeXml(self, opElement): | |||
|
355 | ||||
|
356 | parmElement = SubElement(opElement, 'Parameter') | |||
|
357 | parmElement.set('name', self.name) | |||
|
358 | parmElement.set('value', self.value) No newline at end of file |
@@ -0,0 +1,47 | |||||
|
1 | # -*- coding: utf-8 -*- | |||
|
2 | ||||
|
3 | """ | |||
|
4 | Module implementing Pantalla. | |||
|
5 | """ | |||
|
6 | from PyQt4.QtGui import QMainWindow | |||
|
7 | from PyQt4.QtCore import pyqtSignature | |||
|
8 | from workspace import Workspace | |||
|
9 | #from mainwindow import Workspace | |||
|
10 | from GUI.ui_initwindow import Ui_InitWindow | |||
|
11 | ||||
|
12 | class InitWindow(QMainWindow, Ui_InitWindow): | |||
|
13 | """ | |||
|
14 | Class documentation goes here. | |||
|
15 | """ | |||
|
16 | def __init__(self, parent = None): | |||
|
17 | """ | |||
|
18 | Constructor | |||
|
19 | """ | |||
|
20 | QMainWindow.__init__(self, parent) | |||
|
21 | ||||
|
22 | ||||
|
23 | @pyqtSignature("") | |||
|
24 | def on_pushButton_2_clicked(self): | |||
|
25 | """ | |||
|
26 | Close First Window | |||
|
27 | """ | |||
|
28 | self.close() | |||
|
29 | ||||
|
30 | @pyqtSignature("") | |||
|
31 | def on_pushButton_clicked(self): | |||
|
32 | """ | |||
|
33 | Show Workspace Window | |||
|
34 | """ | |||
|
35 | self.showmeconfig() | |||
|
36 | ||||
|
37 | def showmeconfig(self): | |||
|
38 | ''' | |||
|
39 | Method to call Workspace | |||
|
40 | ''' | |||
|
41 | self.config=Workspace() | |||
|
42 | self.config.closed.connect(self.show) | |||
|
43 | self.config.show() | |||
|
44 | self.hide() | |||
|
45 | ||||
|
46 | ||||
|
47 |
This diff has been collapsed as it changes many lines, (1034 lines changed) Show them Hide them | |||||
@@ -0,0 +1,1034 | |||||
|
1 | # -*- coding: utf-8 -*- | |||
|
2 | """ | |||
|
3 | Module implementing MainWindow. | |||
|
4 | #+ ######################INTERFAZ DE USUARIO V1.1################## | |||
|
5 | """ | |||
|
6 | from PyQt4.QtGui import QMainWindow | |||
|
7 | from PyQt4.QtCore import pyqtSignature | |||
|
8 | from PyQt4.QtCore import pyqtSignal | |||
|
9 | ||||
|
10 | from PyQt4 import QtCore | |||
|
11 | from PyQt4 import QtGui | |||
|
12 | ||||
|
13 | from timeconversions import Doy2Date | |||
|
14 | ||||
|
15 | from modelProperties import person_class | |||
|
16 | from modelProperties import TreeItem | |||
|
17 | ||||
|
18 | ||||
|
19 | from viewer.ui_window import Ui_window | |||
|
20 | from viewer.ui_mainwindow import Ui_MainWindow | |||
|
21 | from viewer.ui_workspace import Ui_Workspace | |||
|
22 | from viewer.ui_initwindow import Ui_InitWindow | |||
|
23 | ||||
|
24 | from controller1 import Project,ReadBranch,ProcBranch,UP,UPSUB,UP2SUB,Operation,Parameter | |||
|
25 | ||||
|
26 | import os | |||
|
27 | ||||
|
28 | HORIZONTAL_HEADERS = ("ITEM :"," DATOS : " ) | |||
|
29 | ||||
|
30 | HORIZONTAL = ("RAMA :",) | |||
|
31 | ||||
|
32 | class MainWindow(QMainWindow, Ui_MainWindow): | |||
|
33 | """ | |||
|
34 | Class documentation goes here. | |||
|
35 | #*##################VENTANA CUERPO DEL PROGRAMA#################### | |||
|
36 | """ | |||
|
37 | closed=pyqtSignal() | |||
|
38 | def __init__(self, parent = None): | |||
|
39 | """ | |||
|
40 | Constructor | |||
|
41 | 1-CARGA DE ARCHIVOS DE CONFIGURACION SI EXISTIERA.SI EXISTE EL ARCHIVO PROYECT.xml | |||
|
42 | 2- ESTABLECE CIERTOS PARAMETROS PARA PRUEBAS | |||
|
43 | 3- CARGA LAS VARIABLES DE LA CLASE CON LOS PARAMETROS SELECCIONADOS | |||
|
44 | 4-VALIDACION DE LA RUTA DE LOS DATOS Y DEL PROYECTO | |||
|
45 | 5-CARGA LOS DOYS ENCONTRADOS PARA SELECCIONAR EL RANGO | |||
|
46 | 6-CARGA UN PROYECTO | |||
|
47 | """ | |||
|
48 | ||||
|
49 | print "Inicio de Programa" | |||
|
50 | QMainWindow.__init__(self, parent) | |||
|
51 | ||||
|
52 | self.setupUi(self) | |||
|
53 | ||||
|
54 | QtGui.QToolTip.setFont(QtGui.QFont('SansSerif', 10)) | |||
|
55 | self.addoBtn.setToolTip('Add_Unit_Process') | |||
|
56 | self.addbBtn.setToolTip('Add_Branch') | |||
|
57 | self.addpBtn.setToolTip('Add_New_Project') | |||
|
58 | self.ventanaproject=0 | |||
|
59 | ||||
|
60 | self.var=0 | |||
|
61 | self.variableList=[] # Lista de DOYs | |||
|
62 | self.iniciodisplay=0 | |||
|
63 | self.year=0 | |||
|
64 | self.OpMode=0 | |||
|
65 | self.starTem=0 | |||
|
66 | self.endTem=0 | |||
|
67 | #*###################1######################## | |||
|
68 | if os.path.isfile("Proyect.xml"): | |||
|
69 | self.getParam() | |||
|
70 | self.textedit.append("Parameters were loaded from configuration file") | |||
|
71 | #*###################2######################## | |||
|
72 | else: | |||
|
73 | self.setParam() | |||
|
74 | #*###################3######################### | |||
|
75 | self.setVariables() | |||
|
76 | #*###################4######################### | |||
|
77 | self.statusDpath = self.existDir(self.dataPath) | |||
|
78 | #self.statusRpath = self.dir_exists(self.var_Rpath, self) | |||
|
79 | #*###################5 ######################## | |||
|
80 | self.loadYears() | |||
|
81 | self.loadDays() | |||
|
82 | #================================ | |||
|
83 | ||||
|
84 | self.model = QtGui.QStandardItemModel() | |||
|
85 | self.treeView.setModel(self.model) | |||
|
86 | self.treeView.clicked.connect(self.treefunction1) | |||
|
87 | #==========Project==========# | |||
|
88 | self.projectObjList= [] | |||
|
89 | self.ProjectObj=0 | |||
|
90 | self.Pro=0 | |||
|
91 | self.proObjList=[] | |||
|
92 | self.valuep=1 | |||
|
93 | self.namep=0 | |||
|
94 | self.idp=0 | |||
|
95 | self.refresh=0 | |||
|
96 | self.countBperPObjList= [] | |||
|
97 | #===========Branch==========# | |||
|
98 | self.branchObjList=[] | |||
|
99 | self.BranchObj=0 | |||
|
100 | self.braObjList=[] | |||
|
101 | self.Bra=0 | |||
|
102 | self.idb=0 | |||
|
103 | self.nameb=0 | |||
|
104 | self.countVperBObjList= [] | |||
|
105 | #===========Voltage==========# | |||
|
106 | self.voltageObjList=[] | |||
|
107 | self.VoltageObj=0 | |||
|
108 | self.Vol=0 | |||
|
109 | self.volObjList=[] | |||
|
110 | self.idv=0 | |||
|
111 | self.namev=0 | |||
|
112 | #===========Spectra==========# | |||
|
113 | self.spectraObjList=[] | |||
|
114 | self.SpectraObj=0 | |||
|
115 | self.Spec=0 | |||
|
116 | self.specObjList=[] | |||
|
117 | self.ids=0 | |||
|
118 | self.names=0 | |||
|
119 | #===========Correlation==========# | |||
|
120 | self.correlationObjList=[] | |||
|
121 | self.CorrelationObj=0 | |||
|
122 | self.Cor=0 | |||
|
123 | self.corObjList=[] | |||
|
124 | self.idc=0 | |||
|
125 | self.namec=0 | |||
|
126 | self.datatype=0 | |||
|
127 | ||||
|
128 | #================= | |||
|
129 | #self.window=Window() | |||
|
130 | self.Workspace=Workspace() | |||
|
131 | #self.DataType=0 | |||
|
132 | ||||
|
133 | ||||
|
134 | #*################### | |||
|
135 | ||||
|
136 | def treefunction1(self, index): | |||
|
137 | a= index.model().itemFromIndex(index).text() | |||
|
138 | print a | |||
|
139 | b=a[8:10] | |||
|
140 | self.valuep=b | |||
|
141 | c=a[0:7] | |||
|
142 | self.namep=c | |||
|
143 | ||||
|
144 | # def ventanaconfigura(self): | |||
|
145 | # ''' | |||
|
146 | # METODO QUE SE ENCARGA DE LLAMAR A LA CLASE | |||
|
147 | # VENTANA CONFIGURACION DE PROYECTO | |||
|
148 | # ''' | |||
|
149 | # self.Luna =Workspace(self) | |||
|
150 | # self.Luna.closed.connect(self.show) | |||
|
151 | # self.Luna.show() | |||
|
152 | # self.hide() | |||
|
153 | ||||
|
154 | # def closeEvent(self, event): | |||
|
155 | # self.closed.emit() | |||
|
156 | # event.accept() | |||
|
157 | ||||
|
158 | #+######################BARRA DE MENU################### | |||
|
159 | ||||
|
160 | # *####################MENU FILE ######################### | |||
|
161 | ||||
|
162 | @pyqtSignature("") | |||
|
163 | def on_actionabrirObj_triggered(self): | |||
|
164 | """ | |||
|
165 | Ubicado en la Barra de Menu, OPCION FILE, CARGA UN ARCHIVO DE CONFIGURACION ANTERIOR | |||
|
166 | """ | |||
|
167 | # TODO: not implemented yet | |||
|
168 | #raise NotImplementedError | |||
|
169 | ||||
|
170 | ||||
|
171 | @pyqtSignature("") | |||
|
172 | def on_actioncrearObj_triggered(self): | |||
|
173 | """ | |||
|
174 | CREACION DE UN NUEVO EXPERIMENTO | |||
|
175 | """ | |||
|
176 | self.on_addpBtn_clicked() | |||
|
177 | ||||
|
178 | @pyqtSignature("") | |||
|
179 | def on_actionguardarObj_triggered(self): | |||
|
180 | """ | |||
|
181 | GUARDAR EL ARCHIVO DE CONFIGURACION XML | |||
|
182 | """ | |||
|
183 | # TODO: not implemented yet | |||
|
184 | #raise NotImplementedError | |||
|
185 | self.SaveConfig() | |||
|
186 | ||||
|
187 | @pyqtSignature("") | |||
|
188 | def on_actionCerrarObj_triggered(self): | |||
|
189 | """ | |||
|
190 | CERRAR LA APLICACION GUI | |||
|
191 | """ | |||
|
192 | self.close() | |||
|
193 | ||||
|
194 | #*######################### MENU RUN ################## | |||
|
195 | ||||
|
196 | @pyqtSignature("") | |||
|
197 | def on_actionStartObj_triggered(self): | |||
|
198 | """ | |||
|
199 | EMPEZAR EL PROCESAMIENTO. | |||
|
200 | """ | |||
|
201 | # TODO: not implemented yet | |||
|
202 | #raise NotImplementedErr | |||
|
203 | ||||
|
204 | @pyqtSignature("") | |||
|
205 | def on_actionPausaObj_triggered(self): | |||
|
206 | """ | |||
|
207 | PAUSAR LAS OPERACIONES | |||
|
208 | """ | |||
|
209 | # TODO: not implemented yet | |||
|
210 | # raise NotImplemente | |||
|
211 | ||||
|
212 | #*###################MENU OPTIONS###################### | |||
|
213 | ||||
|
214 | @pyqtSignature("") | |||
|
215 | def on_actionconfigLogfileObj_triggered(self): | |||
|
216 | """ | |||
|
217 | Slot Documentation goes here | |||
|
218 | """ | |||
|
219 | self.Luna = Workspace(self) | |||
|
220 | #print self.Luna.dirCmbBox.currentText() | |||
|
221 | ||||
|
222 | @pyqtSignature("") | |||
|
223 | def on_actionconfigserverObj_triggered(self): | |||
|
224 | """ | |||
|
225 | CONFIGURACION DE SERVIDOR. | |||
|
226 | """ | |||
|
227 | # TODO: not implemented yet | |||
|
228 | #raise NotImplementedError | |||
|
229 | ||||
|
230 | #*################# MENU HELPS########################## | |||
|
231 | ||||
|
232 | @pyqtSignature("") | |||
|
233 | def on_actionAboutObj_triggered(self): | |||
|
234 | """ | |||
|
235 | Slot documentation goes here. | |||
|
236 | """ | |||
|
237 | # TODO: not implemented yet | |||
|
238 | #raise NotImplementedError | |||
|
239 | ||||
|
240 | @pyqtSignature("") | |||
|
241 | def on_actionPrfObj_triggered(self): | |||
|
242 | """ | |||
|
243 | Slot documentation goes here. | |||
|
244 | """ | |||
|
245 | # TODO: not implemented yet | |||
|
246 | #raise NotImplementedError | |||
|
247 | ||||
|
248 | #+################################################## | |||
|
249 | ||||
|
250 | @pyqtSignature("") | |||
|
251 | def on_actionOpenObj_triggered(self): | |||
|
252 | """ | |||
|
253 | Slot documentation goes here. | |||
|
254 | """ | |||
|
255 | # TODO: not implemented yet | |||
|
256 | #raise No | |||
|
257 | ||||
|
258 | @pyqtSignature("") | |||
|
259 | def on_actioncreateObj_triggered(self): | |||
|
260 | """ | |||
|
261 | Slot documentation goes here. | |||
|
262 | """ | |||
|
263 | self.on_addpBtn_clicked() | |||
|
264 | ||||
|
265 | @pyqtSignature("") | |||
|
266 | def on_actionstopObj_triggered(self): | |||
|
267 | """ | |||
|
268 | CARGA UN ARCHIVO DE CONFIGURACION ANTERIOR | |||
|
269 | """ | |||
|
270 | # TODO: not implemented yet | |||
|
271 | #raise NotImplementedError | |||
|
272 | ||||
|
273 | @pyqtSignature("") | |||
|
274 | def on_actionPlayObj_triggered(self): | |||
|
275 | """ | |||
|
276 | EMPEZAR EL PROCESAMIENTO. | |||
|
277 | """ | |||
|
278 | # TODO: not implemented yet | |||
|
279 | #raise NotImplementedError | |||
|
280 | ||||
|
281 | #*################VENTANA EXPLORADOR DE PROYECTOS###################### | |||
|
282 | ||||
|
283 | @pyqtSignature("") | |||
|
284 | def on_addpBtn_clicked(self): | |||
|
285 | """ | |||
|
286 | AADIR UN NUEVO PROYECTO | |||
|
287 | """ | |||
|
288 | self.windowshow() | |||
|
289 | self.idp += 1 | |||
|
290 | self.Pro=Project() | |||
|
291 | self.proObjList.append(self.Pro) | |||
|
292 | self.parentItem=self.model.invisibleRootItem() | |||
|
293 | self.ProjectObj = QtGui.QStandardItem(QtCore.QString("Project %0").arg(self.idp)) | |||
|
294 | self.parentItem.appendRow(self.ProjectObj) | |||
|
295 | self.projectObjList.append(self.ProjectObj) | |||
|
296 | self.parentItem=self.ProjectObj | |||
|
297 | ||||
|
298 | @pyqtSignature("") | |||
|
299 | def on_addbBtn_clicked(self): | |||
|
300 | """ | |||
|
301 | AÑADIR UNA RAMA DE PROCESAMIENTO | |||
|
302 | """ | |||
|
303 | #print self.valuep | |||
|
304 | #print self.namep | |||
|
305 | #print self.valueb | |||
|
306 | ||||
|
307 | #if self.namep ==str("Project"): | |||
|
308 | self.idb += 1 | |||
|
309 | self.Bra=self.proObjList[int(self.valuep)-1].addProcBranch(id=self.idb,name='Branch') | |||
|
310 | self.braObjList.append(self.Bra) | |||
|
311 | self.parentItem=self.projectObjList[int(self.valuep)-1] | |||
|
312 | #= | |||
|
313 | self.countBperPObjList.append(self.valuep) | |||
|
314 | # LisBperP=self.countBperPObjList | |||
|
315 | ||||
|
316 | self.BranchObj= QtGui.QStandardItem(QtCore.QString("Branch %1 ").arg(self.idb)) | |||
|
317 | self.parentItem.appendRow(self.BranchObj) | |||
|
318 | self.branchObjList.append(self.BranchObj) | |||
|
319 | self.parentItem=self.BranchObj | |||
|
320 | ||||
|
321 | @pyqtSignature("") | |||
|
322 | def on_addoBtn_clicked(self): | |||
|
323 | """ | |||
|
324 | AÑADIR UN TIPO DE PROCESAMIENTO. | |||
|
325 | """ | |||
|
326 | if self.namep ==str("Project"): | |||
|
327 | self.totalTree() | |||
|
328 | #===================== | |||
|
329 | if self.namep ==str("Voltage"): | |||
|
330 | self.ids += 1 | |||
|
331 | self.Spec=self.volObjList[int(self.valuep)-1].addUPSUB(id=self.ids, name='Spectra', type='Pri') | |||
|
332 | self.specObjList.append(self.Spec) | |||
|
333 | self.parentItem=self.voltageObjList[int(self.valuep)-1] | |||
|
334 | self.SpectraObj= QtGui.QStandardItem(QtCore.QString("Spectra %2").arg(self.ids)) | |||
|
335 | self.parentItem.appendRow(self.SpectraObj) | |||
|
336 | self.spectraObjList.append(self.SpectraObj) | |||
|
337 | self.parentItem=self.SpectraObj | |||
|
338 | ||||
|
339 | if self.namep ==str("Spectra"): | |||
|
340 | self.idc += 1 | |||
|
341 | self.Cor=self.specObjList[int(self.valuep)-1].addUP2SUB(id=self.idc, name='Correlation', type='Pri') | |||
|
342 | self.corObjList.append(self.Cor) | |||
|
343 | self.parentItem=self.spectraObjList[int(self.valuep)-1] | |||
|
344 | self.CorrelationObj= QtGui.QStandardItem(QtCore.QString("Correlation %3").arg(self.idc)) | |||
|
345 | self.parentItem.appendRow(self.CorrelationObj) | |||
|
346 | self.correlationObjList.append(self.CorrelationObj) | |||
|
347 | self.parentItem=self.CorrelationObj | |||
|
348 | ||||
|
349 | if self.namep == str("Branch "): | |||
|
350 | if self.DataType== str("r"): | |||
|
351 | self.idv += 1 | |||
|
352 | if len(self.valuep)==0: | |||
|
353 | print "construir rama" | |||
|
354 | else: | |||
|
355 | self.Vol=self.braObjList[int(self.valuep)-1].addUP(id=self.idv, name='Voltage', type='Pri') | |||
|
356 | self.volObjList.append(self.Vol) | |||
|
357 | self.parentItem=self.branchObjList[int(self.valuep)-1] | |||
|
358 | self.VoltageObj= QtGui.QStandardItem(QtCore.QString("Voltage %2").arg(self.idv)) | |||
|
359 | self.parentItem.appendRow(self.VoltageObj) | |||
|
360 | self.voltageObjList.append(self.VoltageObj) | |||
|
361 | self.parentItem=self.VoltageObj | |||
|
362 | ||||
|
363 | if self.DataType== str("pdata"): | |||
|
364 | self.ids += 1 | |||
|
365 | if len(self.valuep)==0: | |||
|
366 | print "construir rama" | |||
|
367 | else: | |||
|
368 | self.Spec=self.braObjList[int(self.valuep)-1].addUPSUB(id=self.ids, name='Spectra', type='Pri') | |||
|
369 | self.specObjList.append(self.Spec) | |||
|
370 | self.parentItem=self.branchObjList[int(self.valuep)-1] | |||
|
371 | self.SpectraObj= QtGui.QStandardItem(QtCore.QString("Spectra %2").arg(self.ids)) | |||
|
372 | self.parentItem.appendRow(self.SpectraObj) | |||
|
373 | self.spectraObjList.append(self.SpectraObj) | |||
|
374 | self.parentItem=self.SpectraObj | |||
|
375 | ||||
|
376 | def totalTree(self): | |||
|
377 | b= self.proObjList[int(self.valuep)-1] | |||
|
378 | b.procBranchObjList # Objetos de tipo Branch | |||
|
379 | print "Project"+str(self.valuep) +"Branch", | |||
|
380 | for i in range(0 , len(b.procBranchObjList)): | |||
|
381 | print b.procBranchObjList[i].id, #objetos de tipo branch 1,2,3 o 4,5 o 6 | |||
|
382 | print "" | |||
|
383 | for i in range(0 , len(b.procBranchObjList)): | |||
|
384 | print "Branch"+ str(b.procBranchObjList[i].id) | |||
|
385 | ||||
|
386 | for i in range(0 , len(b.procBranchObjList)): | |||
|
387 | print b.procBranchObjList[i].id | |||
|
388 | c= self.braObjList[(b.procBranchObjList[i].id)-1] | |||
|
389 | c.upsubObjList | |||
|
390 | for i in range(0,len(c.upsubObjList)): | |||
|
391 | print "Spectra"+str(c.upsubObjList[i].id), | |||
|
392 | #*********************VENTANA CONFIGURACION DE PROYECTOS************************************ | |||
|
393 | ||||
|
394 | #***********************PESTAÑA DE PROYECTOS************************ | |||
|
395 | ||||
|
396 | #*************************MODO BASICO O AVANZADO***************** | |||
|
397 | ||||
|
398 | @pyqtSignature("QString") | |||
|
399 | def on_operationModeCmbBox_activated(self, p0): | |||
|
400 | """ | |||
|
401 | Slot documentation goes here. | |||
|
402 | """ | |||
|
403 | pass | |||
|
404 | ||||
|
405 | #***********************TIPOS DE DATOS A GRABAR****************************** | |||
|
406 | ||||
|
407 | @pyqtSignature("int") | |||
|
408 | def on_dataFormatCmbBox_activated(self,index): | |||
|
409 | """ | |||
|
410 | SE EJECUTA CUANDO SE ELIGE UN ITEM DE LA LISTA | |||
|
411 | ADEMAS SE CARGA LA LISTA DE DIAS SEGUN EL TIPO DE ARCHIVO SELECCIONADO | |||
|
412 | """ | |||
|
413 | self.dataFormatTxt.setReadOnly(True) | |||
|
414 | if index == 0: | |||
|
415 | self.DataType ='r' | |||
|
416 | elif index == 1: | |||
|
417 | self.DataType ='pdata' | |||
|
418 | else : | |||
|
419 | self.DataType ='' | |||
|
420 | self.dataFormatTxt.setReadOnly(False) | |||
|
421 | self.dataFormatTxt.setText(self.DataType) | |||
|
422 | # self.loadDays(self) | |||
|
423 | ||||
|
424 | @pyqtSignature("") | |||
|
425 | def on_dataPathBrowse_clicked(self): | |||
|
426 | """ | |||
|
427 | OBTENCION DE LA RUTA DE DATOS | |||
|
428 | """ | |||
|
429 | self.dataPath = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) | |||
|
430 | self.dataPathTxt.setText(self.dataPath) | |||
|
431 | self.statusDpath=self.existDir(self.dataPath) | |||
|
432 | self.loadYears() | |||
|
433 | self.loadDays() | |||
|
434 | ||||
|
435 | @pyqtSignature("int") | |||
|
436 | def on_starDateCmbBox_activated(self, index): | |||
|
437 | """ | |||
|
438 | SELECCION DEL RANGO DE FECHAS -STAR DATE | |||
|
439 | """ | |||
|
440 | var_StopDay_index=self.endDateCmbBox.count() - self.endDateCmbBox.currentIndex() | |||
|
441 | self.endDateCmbBox.clear() | |||
|
442 | for i in self.variableList[index:]: | |||
|
443 | self.endDateCmbBox.addItem(i) | |||
|
444 | self.endDateCmbBox.setCurrentIndex(self.endDateCmbBox.count() - var_StopDay_index) | |||
|
445 | self.getsubList() | |||
|
446 | ||||
|
447 | @pyqtSignature("int") | |||
|
448 | def on_endDateCmbBox_activated(self, index): | |||
|
449 | """ | |||
|
450 | SELECCION DEL RANGO DE FECHAS-END DATE | |||
|
451 | """ | |||
|
452 | var_StartDay_index=self.starDateCmbBox.currentIndex() | |||
|
453 | var_end_index = self.endDateCmbBox.count() - index | |||
|
454 | self.starDateCmbBox.clear() | |||
|
455 | for i in self.variableList[:len(self.variableList) - var_end_index + 1]: | |||
|
456 | self.starDateCmbBox.addItem(i) | |||
|
457 | self.starDateCmbBox.setCurrentIndex(var_StartDay_index) | |||
|
458 | self.getsubList() #Se carga var_sublist[] con el rango de las fechas seleccionadas | |||
|
459 | ||||
|
460 | @pyqtSignature("QString") | |||
|
461 | def on_readModeCmBox_activated(self, p0): | |||
|
462 | """ | |||
|
463 | Slot documentation goes here. | |||
|
464 | """ | |||
|
465 | print self.readModeCmBox.currentText() | |||
|
466 | ||||
|
467 | @pyqtSignature("int") | |||
|
468 | def on_initialTimeSlider_valueChanged(self, initvalue): | |||
|
469 | """ | |||
|
470 | SELECCION DE LA HORA DEL EXPERIMENTO -INITIAL TIME | |||
|
471 | """ | |||
|
472 | self.iniciodisplay=initvalue | |||
|
473 | self.initialtimeLcd.display(initvalue) | |||
|
474 | self.starTem=initvalue | |||
|
475 | ||||
|
476 | @pyqtSignature("int") | |||
|
477 | def on_finalTimeSlider_valueChanged(self, finalvalue): | |||
|
478 | """ | |||
|
479 | SELECCION DE LA HORA DEL EXPERIMENTO -FINAL TIME | |||
|
480 | """ | |||
|
481 | finalvalue = self.iniciodisplay + finalvalue | |||
|
482 | if finalvalue >24: | |||
|
483 | finalvalue = 24 | |||
|
484 | self.finaltimeLcd.display(finalvalue) | |||
|
485 | self.endTem=finalvalue | |||
|
486 | ||||
|
487 | @pyqtSignature("QString") | |||
|
488 | def on_yearCmbBox_activated(self, year): | |||
|
489 | """ | |||
|
490 | SELECCION DEL AÑO | |||
|
491 | """ | |||
|
492 | self.year = year | |||
|
493 | #print self.year | |||
|
494 | ||||
|
495 | @pyqtSignature("") | |||
|
496 | def on_dataCancelBtn_clicked(self): | |||
|
497 | """ | |||
|
498 | SAVE- BUTTON CANCEL | |||
|
499 | """ | |||
|
500 | # TODO: not implemented yet | |||
|
501 | #raise NotImplementedError | |||
|
502 | ||||
|
503 | @pyqtSignature("") | |||
|
504 | def on_dataOkBtn_clicked(self): | |||
|
505 | """ | |||
|
506 | SAVE-BUTTON OK | |||
|
507 | """ | |||
|
508 | #print self.ventanaproject.almacena() | |||
|
509 | print "alex" | |||
|
510 | print self.Workspace.dirCmbBox.currentText() | |||
|
511 | self.model_2=treeModel() | |||
|
512 | #lines = unicode(self.textEdit_2.toPlainText()).split('\n') | |||
|
513 | #print lines | |||
|
514 | if self.ventanaproject.almacena()==None: | |||
|
515 | name=str(self.namep) | |||
|
516 | name=str(self.ventanaproject.almacena()) | |||
|
517 | ||||
|
518 | self.model_2.setParams(name=name, | |||
|
519 | directorio=str(self.dataPathTxt.text()), | |||
|
520 | workspace=str(self.Workspace.dirCmbBox.currentText()), | |||
|
521 | opmode=str(self.operationModeCmbBox.currentText()), | |||
|
522 | remode=str(self.readModeCmBox.currentText()), | |||
|
523 | dataformat=str(self.dataFormatTxt.text()), | |||
|
524 | date=str(self.starDateCmbBox.currentText())+"-"+str(self.endDateCmbBox.currentText()), | |||
|
525 | initTime=str( self.starTem), | |||
|
526 | endTime=str(self.endTem), | |||
|
527 | timezone="Local" ) | |||
|
528 | # Summary=str(self.textEdit_2.textCursor())) | |||
|
529 | self.model_2.arbol() | |||
|
530 | self.treeView_2.setModel(self.model_2) | |||
|
531 | self.treeView_2.expandAll() | |||
|
532 | ||||
|
533 | #*############METODOS PARA EL PATH-YEAR-DAYS########################### | |||
|
534 | ||||
|
535 | def existDir(self, var_dir): | |||
|
536 | """ | |||
|
537 | METODO PARA VERIFICAR SI LA RUTA EXISTE-VAR_DIR | |||
|
538 | VARIABLE DIRECCION | |||
|
539 | """ | |||
|
540 | if os.path.isdir(var_dir): | |||
|
541 | return True | |||
|
542 | else: | |||
|
543 | self.textEdit.append("Incorrect path:" + str(var_dir)) | |||
|
544 | return False | |||
|
545 | ||||
|
546 | def loadYears(self): | |||
|
547 | """ | |||
|
548 | METODO PARA SELECCIONAR EL AÑO | |||
|
549 | """ | |||
|
550 | self.variableList=[] | |||
|
551 | self.yearCmbBox.clear() | |||
|
552 | if self.statusDpath == False: | |||
|
553 | self.dataOkBtn.setEnabled(False) | |||
|
554 | return | |||
|
555 | if self.DataType == '': | |||
|
556 | return | |||
|
557 | ||||
|
558 | Dirlist = os.listdir(self.dataPath) | |||
|
559 | ||||
|
560 | for y in range(0, len(Dirlist)): | |||
|
561 | fyear= Dirlist[y] | |||
|
562 | fyear = fyear[1:5] | |||
|
563 | Dirlist[y]=fyear | |||
|
564 | ||||
|
565 | Dirlist=list(set(Dirlist)) | |||
|
566 | Dirlist.sort() | |||
|
567 | ||||
|
568 | if len(Dirlist) == 0: | |||
|
569 | self.textEdit.append("File not found") | |||
|
570 | self.dataOkBtn.setEnabled(False) | |||
|
571 | return | |||
|
572 | #Se cargan las listas para seleccionar StartDay y StopDay (QComboBox) | |||
|
573 | for i in range(0, (len(Dirlist))): | |||
|
574 | self.variableList.append(Dirlist[i]) | |||
|
575 | for i in self.variableList: | |||
|
576 | self.yearCmbBox.addItem(i) | |||
|
577 | ||||
|
578 | def loadDays(self): | |||
|
579 | """ | |||
|
580 | METODO PARA CARGAR LOS DIAS | |||
|
581 | """ | |||
|
582 | self.variableList=[] | |||
|
583 | self.starDateCmbBox.clear() | |||
|
584 | self.endDateCmbBox.clear() | |||
|
585 | ||||
|
586 | Dirlist = os.listdir(self.dataPath) | |||
|
587 | Dirlist.sort() | |||
|
588 | ||||
|
589 | for a in range(0, len(Dirlist)): | |||
|
590 | fname= Dirlist[a] | |||
|
591 | Doy=fname[5:8] | |||
|
592 | fname = fname[1:5] | |||
|
593 | print fname | |||
|
594 | fecha=Doy2Date(int(fname),int(Doy)) | |||
|
595 | fechaList=fecha.change2date() | |||
|
596 | #print fechaList[0] | |||
|
597 | Dirlist[a]=fname+"-"+str(fechaList[0])+"-"+str(fechaList[1]) | |||
|
598 | #+"-"+ fechaList[0]+"-"+fechaList[1] | |||
|
599 | ||||
|
600 | #---------------AQUI TIENE QUE SER MODIFICADO--------# | |||
|
601 | ||||
|
602 | ||||
|
603 | ||||
|
604 | ||||
|
605 | ||||
|
606 | #Se cargan las listas para seleccionar StartDay y StopDay (QComboBox) | |||
|
607 | for i in range(0, (len(Dirlist))): | |||
|
608 | self.variableList.append(Dirlist[i]) | |||
|
609 | ||||
|
610 | for i in self.variableList: | |||
|
611 | self.starDateCmbBox.addItem(i) | |||
|
612 | self.endDateCmbBox.addItem(i) | |||
|
613 | self.endDateCmbBox.setCurrentIndex(self.starDateCmbBox.count()-1) | |||
|
614 | ||||
|
615 | self.getsubList() | |||
|
616 | self.dataOkBtn.setEnabled(True) | |||
|
617 | ||||
|
618 | def getsubList(self): | |||
|
619 | """ | |||
|
620 | OBTIENE EL RANDO DE LAS FECHAS SELECCIONADAS | |||
|
621 | """ | |||
|
622 | self.subList=[] | |||
|
623 | for i in self.variableList[self.starDateCmbBox.currentIndex():self.starDateCmbBox.currentIndex() + self.endDateCmbBox.currentIndex()+1]: | |||
|
624 | self.subList.append(i) | |||
|
625 | ||||
|
626 | #*################ METODO PARA GUARDAR ARCHIVO DE CONFIGURACION ################# | |||
|
627 | # def SaveConfig(self): | |||
|
628 | # | |||
|
629 | # desc = "Este es un test" | |||
|
630 | # filename=str(self.workspace.dirCmbBox.currentText())+"\\"+"Config"+str(self.valuep)+".xml" | |||
|
631 | # projectObj=self.proObjList[int(self.valuep)-1] | |||
|
632 | # projectObj.setParms(id =int(self.valuep),name=str(self.namep),description=desc) | |||
|
633 | # print self.valuep | |||
|
634 | # print self.namep | |||
|
635 | # | |||
|
636 | # readBranchObj = projectObj.addReadBranch(id=str(self.valuep), | |||
|
637 | # dpath=str(self.dataPathTxt.text()), | |||
|
638 | # dataformat=str(self.dataFormatTxt.text()), | |||
|
639 | # opMode=str(self.operationModeCmbBox.currentText()), | |||
|
640 | # readMode=str(self.readModeCmBox.currentText()), | |||
|
641 | # startDate=str(self.starDateCmbBox.currentText()), | |||
|
642 | # endDate=str(self.endDateCmbBox.currentText()), | |||
|
643 | # startTime=str(self.starTem), | |||
|
644 | # endTime=str(self.endTem)) | |||
|
645 | # | |||
|
646 | # | |||
|
647 | # branchNumber= len(projectObj.procBranchObjList) #Numero de Ramas | |||
|
648 | # #=======================readBranchObj============== | |||
|
649 | # for i in range(0,branchNumber): | |||
|
650 | # projectObj.procBranchObjList[i] | |||
|
651 | # idb=projectObj.procBranchObjList[i].id | |||
|
652 | # # opObjTotal={} | |||
|
653 | # | |||
|
654 | # for j in range(0,branchNumber): | |||
|
655 | # idb=projectObj.procBranchObjList[j].id | |||
|
656 | # branch=self.braObjList[(idb)-1] | |||
|
657 | # branch.upObjList | |||
|
658 | # volNumber=len(branch.upObjList) | |||
|
659 | # for i in range(0,volNumber): | |||
|
660 | # unitProcess=branch.upObjList[i] | |||
|
661 | # idv=branch.upObjList[i].id | |||
|
662 | # | |||
|
663 | # opObj11 = unitProcess.addOperation(id=1,name='removeDC', priority=1) | |||
|
664 | # opObj11.addParameter(name='type', value='1') | |||
|
665 | # opObj2 = unitProcess.addOperation(id=2,name='removeInterference', priority=1) | |||
|
666 | # opObj3 = unitProcess.addOperation(id=3,name='removeSatelites', priority=1) | |||
|
667 | # opObj4 = unitProcess.addOperation(id=4,name='coherent Integration', priority=1) | |||
|
668 | # | |||
|
669 | # projectObj.writeXml(filename) | |||
|
670 | # | |||
|
671 | #*############METODOS PARA INICIALIZAR-CONFIGURAR-CARGAR ARCHIVO-CARGAR VARIABLES######################## | |||
|
672 | ||||
|
673 | def setParam(self): | |||
|
674 | """ | |||
|
675 | INICIALIZACION DE PARAMETROS PARA PRUEBAS | |||
|
676 | """ | |||
|
677 | #self.dataProyectTxt.setText('Test') | |||
|
678 | self.dataFormatTxt.setText('r') | |||
|
679 | self.dataPathTxt.setText('C:\\Users\\alex\\Documents\\ROJ\\ew_drifts') | |||
|
680 | self.dataWaitTxt.setText('0') | |||
|
681 | ||||
|
682 | def make_parameters_conf(self): | |||
|
683 | """ | |||
|
684 | ARCHIVO DE CONFIGURACION cCRA parameters.conf | |||
|
685 | """ | |||
|
686 | pass | |||
|
687 | ||||
|
688 | def getParam(self): | |||
|
689 | """ | |||
|
690 | CARGA Proyect.xml | |||
|
691 | """ | |||
|
692 | print "Archivo XML AUN No adjuntado" | |||
|
693 | ||||
|
694 | def setVariables(self): | |||
|
695 | """ | |||
|
696 | ACTUALIZACION DEL VALOR DE LAS VARIABLES CON LOS PARAMETROS SELECCIONADOS | |||
|
697 | """ | |||
|
698 | self.dataPath = str(self.dataPathTxt.text()) #0 | |||
|
699 | self.DataType= str(self.dataFormatTxt.text()) #3 | |||
|
700 | ||||
|
701 | def windowshow(self): | |||
|
702 | self.ventanaproject= Window(self) | |||
|
703 | self.ventanaproject.closed.connect(self.show) | |||
|
704 | self.ventanaproject.show() | |||
|
705 | # self.window() | |||
|
706 | # self.window.closed.connect(self.show) | |||
|
707 | # self.window.show() | |||
|
708 | #self.hide() | |||
|
709 | ||||
|
710 | def closeEvent(self, event): | |||
|
711 | self.closed.emit() | |||
|
712 | event.accept() | |||
|
713 | ||||
|
714 | ||||
|
715 | class treeModel(QtCore.QAbstractItemModel): | |||
|
716 | ''' | |||
|
717 | a model to display a few names, ordered by encabezado | |||
|
718 | ''' | |||
|
719 | name=None | |||
|
720 | directorio=None | |||
|
721 | workspace=None | |||
|
722 | opmode=None | |||
|
723 | remode=None | |||
|
724 | dataformat=None | |||
|
725 | date=None | |||
|
726 | initTime=None | |||
|
727 | endTime=None | |||
|
728 | timezone=None | |||
|
729 | #Summary=None | |||
|
730 | ||||
|
731 | def __init__(self ,parent=None): | |||
|
732 | super(treeModel, self).__init__(parent) | |||
|
733 | self.people = [] | |||
|
734 | ||||
|
735 | def arbol(self): | |||
|
736 | for caracteristica,principal, descripcion in (("Properties","Name",self.name), | |||
|
737 | ("Properties","Data Path",self.directorio), | |||
|
738 | ("Properties","Workspace",self.workspace), | |||
|
739 | ("Properties","Operation Mode ",self.opmode), | |||
|
740 | ("Parameters", "Read Mode ",self.remode), | |||
|
741 | ("Parameters", "DataFormat ",self.dataformat), | |||
|
742 | ("Parameters", "Date ",self.date), | |||
|
743 | ("Parameters", "Init Time ",self.initTime), | |||
|
744 | ("Parameters", "Final Time ",self.endTime), | |||
|
745 | ("Parameters", " Time zone ",self.timezone), | |||
|
746 | ("Parameters", "Profiles ","1"), | |||
|
747 | # ("Description", "Summary ", self.Summary), | |||
|
748 | ): | |||
|
749 | person = person_class(caracteristica, principal, descripcion) | |||
|
750 | self.people.append(person) | |||
|
751 | ||||
|
752 | self.rootItem = TreeItem(None, "ALL", None) | |||
|
753 | self.parents = {0 : self.rootItem} | |||
|
754 | self.setupModelData() | |||
|
755 | ||||
|
756 | #def veamos(self): | |||
|
757 | # self.update= MainWindow(self) | |||
|
758 | # self.update.dataProyectTxt.text() | |||
|
759 | # return self.update.dataProyectTxt.text() | |||
|
760 | def setParams(self,name,directorio,workspace,opmode,remode,dataformat,date,initTime,endTime,timezone): | |||
|
761 | self.name=name | |||
|
762 | self.workspace=workspace | |||
|
763 | self.directorio= directorio | |||
|
764 | self.opmode=opmode | |||
|
765 | self.remode=remode | |||
|
766 | self.dataformat=dataformat | |||
|
767 | self.date=date | |||
|
768 | self.initTime=initTime | |||
|
769 | self.endTime=endTime | |||
|
770 | self.timezone=timezone | |||
|
771 | #self.Summary=Summary | |||
|
772 | ||||
|
773 | ||||
|
774 | def columnCount(self, parent=None): | |||
|
775 | if parent and parent.isValid(): | |||
|
776 | return parent.internalPointer().columnCount() | |||
|
777 | else: | |||
|
778 | return len(HORIZONTAL_HEADERS) | |||
|
779 | ||||
|
780 | def data(self, index, role): | |||
|
781 | if not index.isValid(): | |||
|
782 | return QtCore.QVariant() | |||
|
783 | ||||
|
784 | item = index.internalPointer() | |||
|
785 | if role == QtCore.Qt.DisplayRole: | |||
|
786 | return item.data(index.column()) | |||
|
787 | if role == QtCore.Qt.UserRole: | |||
|
788 | if item: | |||
|
789 | return item.person | |||
|
790 | ||||
|
791 | return QtCore.QVariant() | |||
|
792 | ||||
|
793 | def headerData(self, column, orientation, role): | |||
|
794 | if (orientation == QtCore.Qt.Horizontal and | |||
|
795 | role == QtCore.Qt.DisplayRole): | |||
|
796 | try: | |||
|
797 | return QtCore.QVariant(HORIZONTAL_HEADERS[column]) | |||
|
798 | except IndexError: | |||
|
799 | pass | |||
|
800 | ||||
|
801 | return QtCore.QVariant() | |||
|
802 | ||||
|
803 | def index(self, row, column, parent): | |||
|
804 | if not self.hasIndex(row, column, parent): | |||
|
805 | return QtCore.QModelIndex() | |||
|
806 | ||||
|
807 | if not parent.isValid(): | |||
|
808 | parentItem = self.rootItem | |||
|
809 | else: | |||
|
810 | parentItem = parent.internalPointer() | |||
|
811 | ||||
|
812 | childItem = parentItem.child(row) | |||
|
813 | if childItem: | |||
|
814 | return self.createIndex(row, column, childItem) | |||
|
815 | else: | |||
|
816 | return QtCore.QModelIndex() | |||
|
817 | ||||
|
818 | def parent(self, index): | |||
|
819 | if not index.isValid(): | |||
|
820 | return QtCore.QModelIndex() | |||
|
821 | ||||
|
822 | childItem = index.internalPointer() | |||
|
823 | if not childItem: | |||
|
824 | return QtCore.QModelIndex() | |||
|
825 | ||||
|
826 | parentItem = childItem.parent() | |||
|
827 | ||||
|
828 | if parentItem == self.rootItem: | |||
|
829 | return QtCore.QModelIndex() | |||
|
830 | ||||
|
831 | return self.createIndex(parentItem.row(), 0, parentItem) | |||
|
832 | ||||
|
833 | def rowCount(self, parent=QtCore.QModelIndex()): | |||
|
834 | if parent.column() > 0: | |||
|
835 | return 0 | |||
|
836 | if not parent.isValid(): | |||
|
837 | p_Item = self.rootItem | |||
|
838 | else: | |||
|
839 | p_Item = parent.internalPointer() | |||
|
840 | return p_Item.childCount() | |||
|
841 | ||||
|
842 | def setupModelData(self): | |||
|
843 | for person in self.people: | |||
|
844 | if person.descripcion: | |||
|
845 | encabezado = person.caracteristica | |||
|
846 | ||||
|
847 | ||||
|
848 | if not self.parents.has_key(encabezado): | |||
|
849 | newparent = TreeItem(None, encabezado, self.rootItem) | |||
|
850 | self.rootItem.appendChild(newparent) | |||
|
851 | ||||
|
852 | self.parents[encabezado] = newparent | |||
|
853 | ||||
|
854 | parentItem = self.parents[encabezado] | |||
|
855 | newItem = TreeItem(person, "", parentItem) | |||
|
856 | parentItem.appendChild(newItem) | |||
|
857 | ||||
|
858 | def searchModel(self, person): | |||
|
859 | ''' | |||
|
860 | get the modelIndex for a given appointment | |||
|
861 | ''' | |||
|
862 | def searchNode(node): | |||
|
863 | ''' | |||
|
864 | a function called recursively, looking at all nodes beneath node | |||
|
865 | ''' | |||
|
866 | for child in node.childItems: | |||
|
867 | if person == child.person: | |||
|
868 | index = self.createIndex(child.row(), 0, child) | |||
|
869 | return index | |||
|
870 | ||||
|
871 | if child.childCount() > 0: | |||
|
872 | result = searchNode(child) | |||
|
873 | if result: | |||
|
874 | return result | |||
|
875 | ||||
|
876 | retarg = searchNode(self.parents[0]) | |||
|
877 | #print retarg | |||
|
878 | return retarg | |||
|
879 | ||||
|
880 | def find_GivenName(self, principal): | |||
|
881 | app = None | |||
|
882 | for person in self.people: | |||
|
883 | if person.principal == principal: | |||
|
884 | app = person | |||
|
885 | break | |||
|
886 | if app != None: | |||
|
887 | index = self.searchModel(app) | |||
|
888 | return (True, index) | |||
|
889 | return (False, None) | |||
|
890 | ||||
|
891 | ||||
|
892 | ||||
|
893 | class Workspace(QMainWindow, Ui_Workspace): | |||
|
894 | """ | |||
|
895 | Class documentation goes here. | |||
|
896 | """ | |||
|
897 | closed=pyqtSignal() | |||
|
898 | def __init__(self, parent = None): | |||
|
899 | """ | |||
|
900 | Constructor | |||
|
901 | """ | |||
|
902 | QMainWindow.__init__(self, parent) | |||
|
903 | self.setupUi(self) | |||
|
904 | #*####### DIRECTORIO DE TRABAJO #########*# | |||
|
905 | self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "C:\WorkSpaceGui", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
906 | self.dir=str("C:\WorkSpaceGui") | |||
|
907 | self.dirCmbBox.addItem(self.dir) | |||
|
908 | ||||
|
909 | @pyqtSignature("") | |||
|
910 | def on_dirBrowsebtn_clicked(self): | |||
|
911 | """ | |||
|
912 | Slot documentation goes here. | |||
|
913 | """ | |||
|
914 | self.dirBrowse = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) | |||
|
915 | self.dirCmbBox.addItem(self.dirBrowse) | |||
|
916 | ||||
|
917 | @pyqtSignature("") | |||
|
918 | def on_dirButton_clicked(self): | |||
|
919 | """ | |||
|
920 | Slot documentation goes here. | |||
|
921 | """ | |||
|
922 | ||||
|
923 | @pyqtSignature("") | |||
|
924 | def on_dirOkbtn_clicked(self): | |||
|
925 | """ | |||
|
926 | VISTA DE INTERFAZ GRÃFICA | |||
|
927 | """ | |||
|
928 | self.showmemainwindow() | |||
|
929 | ||||
|
930 | ||||
|
931 | @pyqtSignature("") | |||
|
932 | def on_dirCancelbtn_clicked(self): | |||
|
933 | """ | |||
|
934 | Cerrar | |||
|
935 | """ | |||
|
936 | self.close() | |||
|
937 | ||||
|
938 | def showmemainwindow(self): | |||
|
939 | self.Dialog= MainWindow(self) | |||
|
940 | self.Dialog.closed.connect(self.show) | |||
|
941 | self.Dialog.show() | |||
|
942 | self.hide() | |||
|
943 | ||||
|
944 | def closeEvent(self, event): | |||
|
945 | self.closed.emit() | |||
|
946 | event.accept() | |||
|
947 | ||||
|
948 | ||||
|
949 | class InitWindow(QMainWindow, Ui_InitWindow): | |||
|
950 | """ | |||
|
951 | Class documentation goes here. | |||
|
952 | """ | |||
|
953 | def __init__(self, parent = None): | |||
|
954 | """ | |||
|
955 | Constructor | |||
|
956 | """ | |||
|
957 | QMainWindow.__init__(self, parent) | |||
|
958 | self.setupUi(self) | |||
|
959 | ||||
|
960 | ||||
|
961 | @pyqtSignature("") | |||
|
962 | def on_pushButton_2_clicked(self): | |||
|
963 | """ | |||
|
964 | Close First Window | |||
|
965 | """ | |||
|
966 | self.close() | |||
|
967 | ||||
|
968 | @pyqtSignature("") | |||
|
969 | def on_pushButton_clicked(self): | |||
|
970 | """ | |||
|
971 | Show Workspace Window | |||
|
972 | """ | |||
|
973 | self.showmeconfig() | |||
|
974 | ||||
|
975 | def showmeconfig(self): | |||
|
976 | ''' | |||
|
977 | Method to call Workspace | |||
|
978 | ''' | |||
|
979 | ||||
|
980 | self.config=Workspace(self) | |||
|
981 | self.config.closed.connect(self.show) | |||
|
982 | self.config.show() | |||
|
983 | self.hide() | |||
|
984 | ||||
|
985 | ||||
|
986 | class Window(QMainWindow, Ui_window): | |||
|
987 | """ | |||
|
988 | Class documentation goes here. | |||
|
989 | """ | |||
|
990 | closed=pyqtSignal() | |||
|
991 | def __init__(self, parent = None): | |||
|
992 | """ | |||
|
993 | Constructor | |||
|
994 | """ | |||
|
995 | QMainWindow.__init__(self, parent) | |||
|
996 | self.setupUi(self) | |||
|
997 | self.name=0 | |||
|
998 | self.nameproject=None | |||
|
999 | ||||
|
1000 | @pyqtSignature("") | |||
|
1001 | def on_cancelButton_clicked(self): | |||
|
1002 | """ | |||
|
1003 | Slot documentation goes here. | |||
|
1004 | """ | |||
|
1005 | # TODO: not implemented yet | |||
|
1006 | #raise NotImplementedError | |||
|
1007 | self.hide() | |||
|
1008 | ||||
|
1009 | @pyqtSignature("") | |||
|
1010 | def on_okButton_clicked(self): | |||
|
1011 | """ | |||
|
1012 | Slot documentation goes here. | |||
|
1013 | """ | |||
|
1014 | # TODO: not implemented yet | |||
|
1015 | #raise NotImplementedError | |||
|
1016 | self.almacena() | |||
|
1017 | print self.nameproject | |||
|
1018 | self.close() | |||
|
1019 | ||||
|
1020 | ||||
|
1021 | def almacena(self): | |||
|
1022 | #print str(self.proyectNameLine.text()) | |||
|
1023 | self.nameproject=str(self.proyectNameLine.text()) | |||
|
1024 | return self.nameproject | |||
|
1025 | ||||
|
1026 | def closeEvent(self, event): | |||
|
1027 | self.closed.emit() | |||
|
1028 | event.accept() | |||
|
1029 | ||||
|
1030 | ||||
|
1031 | ||||
|
1032 | ||||
|
1033 | ||||
|
1034 | No newline at end of file |
@@ -0,0 +1,58 | |||||
|
1 | from PyQt4 import QtCore | |||
|
2 | ||||
|
3 | class person_class(object): | |||
|
4 | ''' | |||
|
5 | a trivial custom data object | |||
|
6 | ''' | |||
|
7 | def __init__(self, caracteristica, principal, descripcion): | |||
|
8 | self.caracteristica = caracteristica | |||
|
9 | self.principal = principal | |||
|
10 | self.descripcion = descripcion | |||
|
11 | ||||
|
12 | def __repr__(self): | |||
|
13 | return "PERSON - %s %s"% (self.principal, self.caracteristica) | |||
|
14 | ||||
|
15 | class TreeItem(object): | |||
|
16 | ''' | |||
|
17 | a python object used to return row/column data, and keep note of | |||
|
18 | it's parents and/or children | |||
|
19 | ''' | |||
|
20 | def __init__(self, person, header, parentItem): | |||
|
21 | self.person = person | |||
|
22 | self.parentItem = parentItem | |||
|
23 | self.header = header | |||
|
24 | self.childItems = [] | |||
|
25 | ||||
|
26 | def appendChild(self, item): | |||
|
27 | self.childItems.append(item) | |||
|
28 | ||||
|
29 | def child(self, row): | |||
|
30 | return self.childItems[row] | |||
|
31 | ||||
|
32 | def childCount(self): | |||
|
33 | return len(self.childItems) | |||
|
34 | ||||
|
35 | def columnCount(self): | |||
|
36 | return 2 | |||
|
37 | ||||
|
38 | def data(self, column): | |||
|
39 | if self.person == None: | |||
|
40 | if column == 0: | |||
|
41 | return QtCore.QVariant(self.header) | |||
|
42 | if column == 1: | |||
|
43 | return QtCore.QVariant("") | |||
|
44 | else: | |||
|
45 | if column == 0: | |||
|
46 | return QtCore.QVariant(self.person.principal) | |||
|
47 | if column == 1: | |||
|
48 | return QtCore.QVariant(self.person.descripcion) | |||
|
49 | return QtCore.QVariant() | |||
|
50 | ||||
|
51 | def parent(self): | |||
|
52 | return self.parentItem | |||
|
53 | ||||
|
54 | def row(self): | |||
|
55 | if self.parentItem: | |||
|
56 | return self.parentItem.childItems.index(self) | |||
|
57 | return 0 | |||
|
58 | No newline at end of file |
@@ -0,0 +1,427 | |||||
|
1 | """ | |||
|
2 | The TIME_CONVERSIONS.py module gathers classes and functions for time system transformations | |||
|
3 | (e.g. between seconds from 1970 to datetime format). | |||
|
4 | ||||
|
5 | MODULES CALLED: | |||
|
6 | NUMPY, TIME, DATETIME, CALENDAR | |||
|
7 | ||||
|
8 | MODIFICATION HISTORY: | |||
|
9 | Created by Ing. Freddy Galindo (frederickgalindo@gmail.com). ROJ Aug 13, 2009. | |||
|
10 | """ | |||
|
11 | ||||
|
12 | import numpy as np | |||
|
13 | import time as tm | |||
|
14 | import datetime as dt | |||
|
15 | import calendar as cr | |||
|
16 | ||||
|
17 | class Time: | |||
|
18 | """ | |||
|
19 | time(year,month,dom,hour,min,secs) | |||
|
20 | ||||
|
21 | An object represents a date and time of certain event.. | |||
|
22 | ||||
|
23 | Parameters | |||
|
24 | ---------- | |||
|
25 | YEAR = Number of the desired year. Year must be valid values from the civil calendar. | |||
|
26 | Years B.C.E must be represented as negative integers. Years in the common era are repre- | |||
|
27 | sented as positive integers. In particular, note that there is no year 0 in the civil | |||
|
28 | calendar. 1 B.C.E. (-1) is followed by 1 C.E. (1). | |||
|
29 | ||||
|
30 | MONTH = Number of desired month (1=Jan, ..., 12=December). | |||
|
31 | ||||
|
32 | DOM = Number of day of the month. | |||
|
33 | ||||
|
34 | HOUR = Number of the hour of the day. By default hour=0 | |||
|
35 | ||||
|
36 | MINS = Number of the minute of the hour. By default min=0 | |||
|
37 | ||||
|
38 | SECS = Number of the second of the minute. By default secs=0. | |||
|
39 | ||||
|
40 | Examples | |||
|
41 | -------- | |||
|
42 | time_info = time(2008,9,30,12,30,00) | |||
|
43 | ||||
|
44 | time_info = time(2008,9,30) | |||
|
45 | """ | |||
|
46 | ||||
|
47 | def __init__(self,year=None,month=None,dom=None,hour=0,mins=0,secs=0): | |||
|
48 | # If one the first three inputs are not defined, it takes the current date. | |||
|
49 | date = tm.localtime() | |||
|
50 | if year==None:year=date[0] | |||
|
51 | if month==None:month=date[1] | |||
|
52 | if dom==None:dom=date[2] | |||
|
53 | ||||
|
54 | # Converting to arrays | |||
|
55 | year = np.array([year]); month = np.array([month]); dom = np.array([dom]) | |||
|
56 | hour = np.array([hour]); mins = np.array([mins]); secs = np.array([secs]) | |||
|
57 | ||||
|
58 | # Defining time information object. | |||
|
59 | self.year = np.atleast_1d(year) | |||
|
60 | self.month = np.atleast_1d(month) | |||
|
61 | self.dom = np.atleast_1d(dom) | |||
|
62 | self.hour = np.atleast_1d(hour) | |||
|
63 | self.mins = np.atleast_1d(mins) | |||
|
64 | self.secs = np.atleast_1d(secs) | |||
|
65 | ||||
|
66 | def change2julday(self): | |||
|
67 | """ | |||
|
68 | Converts a datetime to Julian days. | |||
|
69 | """ | |||
|
70 | ||||
|
71 | # Defining constants | |||
|
72 | greg = 2299171 # incorrect Julian day for Oct, 25, 1582. | |||
|
73 | min_calendar = -4716 | |||
|
74 | max_calendar = 5000000 | |||
|
75 | ||||
|
76 | min_year = np.nanmin(self.year) | |||
|
77 | max_year = np.nanmax(self.year) | |||
|
78 | if (min_year<min_calendar) or (max_year>max_calendar): | |||
|
79 | print "Value of Julian date is out of allowed range" | |||
|
80 | return -1 | |||
|
81 | ||||
|
82 | noyear = np.sum(self.year==0) | |||
|
83 | if noyear>0: | |||
|
84 | print "There is no year zero in the civil calendar" | |||
|
85 | return -1 | |||
|
86 | ||||
|
87 | # Knowing if the year is less than 0. | |||
|
88 | bc = self.year<0 | |||
|
89 | ||||
|
90 | # Knowing if the month is less than March. | |||
|
91 | inJanFeb = self.month<=2 | |||
|
92 | ||||
|
93 | jy = self.year + bc - inJanFeb | |||
|
94 | jm = self.month + (1 + 12*inJanFeb) | |||
|
95 | ||||
|
96 | # Computing Julian days. | |||
|
97 | jul= np.floor(365.25*jy) + np.floor(30.6001*jm) + (self.dom+1720995.0) | |||
|
98 | ||||
|
99 | # Test whether to change to Gregorian Calendar | |||
|
100 | if np.min(jul) >= greg: | |||
|
101 | ja = np.int32(0.01*jy) | |||
|
102 | jul = jul + 2 - ja + np.int32(0.25*ja) | |||
|
103 | else: | |||
|
104 | gregchange = np.where(jul >= greg) | |||
|
105 | if gregchange[0].size>0: | |||
|
106 | ja = np.int32(0.01 + jy[gregchange]) | |||
|
107 | jy[grechange] = jy[gregchange] + 2 - ja + np.int32(0.25*ja) | |||
|
108 | ||||
|
109 | # Determining machine-specific parameters affecting floating-point. | |||
|
110 | eps = 0.0 # Replace this line for a function to get precision. | |||
|
111 | eps = abs(jul)*0.0 > eps | |||
|
112 | ||||
|
113 | jul = jul + (self.hour/24. -0.5) + (self.mins/1440.) + (self.secs/86400.) + eps | |||
|
114 | ||||
|
115 | return jul[0] | |||
|
116 | ||||
|
117 | def change2secs(self): | |||
|
118 | """ | |||
|
119 | Converts datetime to number of seconds respect to 1970. | |||
|
120 | """ | |||
|
121 | ||||
|
122 | year = self.year | |||
|
123 | if year.size>1: year = year[0] | |||
|
124 | ||||
|
125 | month = self.month | |||
|
126 | if month.size>1: month = month[0] | |||
|
127 | ||||
|
128 | dom = self.dom | |||
|
129 | if dom.size>1: dom = dom[0] | |||
|
130 | ||||
|
131 | # Resizing hour, mins and secs if it was necessary. | |||
|
132 | hour = self.hour | |||
|
133 | if hour.size>1:hour = hour[0] | |||
|
134 | if hour.size==1:hour = np.resize(hour,year.size) | |||
|
135 | ||||
|
136 | mins = self.mins | |||
|
137 | if mins.size>1:mins = mins[0] | |||
|
138 | if mins.size==1:mins = np.resize(mins,year.size) | |||
|
139 | ||||
|
140 | secs = self.secs | |||
|
141 | if secs.size>1:secs = secs[0] | |||
|
142 | if secs.size==1:secs = np.resize(secs,year.size) | |||
|
143 | ||||
|
144 | # Using time.mktime to compute seconds respect to 1970. | |||
|
145 | secs1970 = np.zeros(year.size) | |||
|
146 | for ii in np.arange(year.size): | |||
|
147 | secs1970[ii] = tm.mktime((int(year[ii]),int(month[ii]),int(dom[ii]),\ | |||
|
148 | int(hour[ii]),int(mins[ii]),int(secs[ii]),0,0,0)) | |||
|
149 | ||||
|
150 | secs1970 = np.int32(secs1970 - tm.timezone) | |||
|
151 | ||||
|
152 | return secs1970 | |||
|
153 | ||||
|
154 | def change2strdate(self,mode=1): | |||
|
155 | """ | |||
|
156 | change2strdate method converts a date and time of certain event to date string. The | |||
|
157 | string format is like localtime (e.g. Fri Oct 9 15:00:19 2009). | |||
|
158 | ||||
|
159 | Parameters | |||
|
160 | ---------- | |||
|
161 | None. | |||
|
162 | ||||
|
163 | Return | |||
|
164 | ------ | |||
|
165 | ||||
|
166 | Modification History | |||
|
167 | -------------------- | |||
|
168 | Created by Freddy R. Galindo, ROJ, 09 October 2009. | |||
|
169 | ||||
|
170 | """ | |||
|
171 | ||||
|
172 | secs = np.atleast_1d(self.change2secs()) | |||
|
173 | strdate = [] | |||
|
174 | for ii in np.arange(np.size(secs)): | |||
|
175 | secs_tmp = tm.localtime(secs[ii] + tm.timezone) | |||
|
176 | if mode==1: | |||
|
177 | strdate.append(tm.strftime("%d-%b-%Y (%j) %H:%M:%S",secs_tmp)) | |||
|
178 | elif mode==2: | |||
|
179 | strdate.append(tm.strftime("%d-%b-%Y (%j)",secs_tmp)) | |||
|
180 | ||||
|
181 | strdate = np.array(strdate) | |||
|
182 | ||||
|
183 | return strdate | |||
|
184 | ||||
|
185 | ||||
|
186 | class Secs: | |||
|
187 | """ | |||
|
188 | secs(secs): | |||
|
189 | ||||
|
190 | An object represents the number of seconds respect to 1970. | |||
|
191 | ||||
|
192 | Parameters | |||
|
193 | ---------- | |||
|
194 | ||||
|
195 | SECS = A scalar or array giving the number of seconds respect to 1970. | |||
|
196 | ||||
|
197 | Example: | |||
|
198 | -------- | |||
|
199 | secs_info = secs(1251241373) | |||
|
200 | ||||
|
201 | secs_info = secs([1251241373,1251241383,1251241393]) | |||
|
202 | """ | |||
|
203 | def __init__(self,secs): | |||
|
204 | self.secs = secs | |||
|
205 | ||||
|
206 | def change2julday(self): | |||
|
207 | """ | |||
|
208 | Convert seconds from 1970 to Julian days. | |||
|
209 | """ | |||
|
210 | ||||
|
211 | secs_1970 = time(1970,1,1,0,0,0).change2julday() | |||
|
212 | ||||
|
213 | julian = self.secs/86400.0 + secs_1970 | |||
|
214 | ||||
|
215 | return julian | |||
|
216 | ||||
|
217 | def change2time(self): | |||
|
218 | """ | |||
|
219 | Converts seconds from 1970 to datetime. | |||
|
220 | """ | |||
|
221 | ||||
|
222 | secs1970 = np.atleast_1d(self.secs) | |||
|
223 | ||||
|
224 | datetime = np.zeros((9,secs1970.size)) | |||
|
225 | for ii in np.arange(secs1970.size): | |||
|
226 | tuple = tm.gmtime(secs1970[ii]) | |||
|
227 | datetime[0,ii] = tuple[0] | |||
|
228 | datetime[1,ii] = tuple[1] | |||
|
229 | datetime[2,ii] = tuple[2] | |||
|
230 | datetime[3,ii] = tuple[3] | |||
|
231 | datetime[4,ii] = tuple[4] | |||
|
232 | datetime[5,ii] = tuple[5] | |||
|
233 | datetime[6,ii] = tuple[6] | |||
|
234 | datetime[7,ii] = tuple[7] | |||
|
235 | datetime[8,ii] = tuple[8] | |||
|
236 | ||||
|
237 | datetime = np.int32(datetime) | |||
|
238 | ||||
|
239 | return datetime | |||
|
240 | ||||
|
241 | ||||
|
242 | class Julian: | |||
|
243 | """ | |||
|
244 | julian(julian): | |||
|
245 | ||||
|
246 | An object represents julian days. | |||
|
247 | ||||
|
248 | Parameters | |||
|
249 | ---------- | |||
|
250 | ||||
|
251 | JULIAN = A scalar or array giving the julina days. | |||
|
252 | ||||
|
253 | Example: | |||
|
254 | -------- | |||
|
255 | julian_info = julian(2454740) | |||
|
256 | ||||
|
257 | julian_info = julian([2454740,2454760,2454780]) | |||
|
258 | """ | |||
|
259 | def __init__(self,julian): | |||
|
260 | self.julian = np.atleast_1d(julian) | |||
|
261 | ||||
|
262 | def change2time(self): | |||
|
263 | """ | |||
|
264 | change2time method converts from julian day to calendar date and time. | |||
|
265 | ||||
|
266 | Return | |||
|
267 | ------ | |||
|
268 | year = An array giving the year of the desired julian day. | |||
|
269 | month = An array giving the month of the desired julian day. | |||
|
270 | dom = An array giving the day of the desired julian day. | |||
|
271 | hour = An array giving the hour of the desired julian day. | |||
|
272 | mins = An array giving the minute of the desired julian day. | |||
|
273 | secs = An array giving the second of the desired julian day. | |||
|
274 | ||||
|
275 | Examples | |||
|
276 | -------- | |||
|
277 | >> jd = 2455119.0 | |||
|
278 | >> [yy,mo,dd,hh,mi,ss] = TimeTools.julian(jd).change2time() | |||
|
279 | >> print [yy,mo,dd,hh,mi,ss] | |||
|
280 | [2009] [10] [ 14.] [ 12.] [ 0.] [ 0.] | |||
|
281 | ||||
|
282 | Modification history | |||
|
283 | -------------------- | |||
|
284 | Translated from "Numerical Recipies in C", by William H. Press, Brian P. Flannery, | |||
|
285 | Saul A. Teukolsky, and William T. Vetterling. Cambridge University Press, 1988. | |||
|
286 | Converted to Python by Freddy R. Galindo, ROJ, 06 October 2009. | |||
|
287 | """ | |||
|
288 | ||||
|
289 | min_julian = -1095 | |||
|
290 | max_julian = 1827933925 | |||
|
291 | if (np.min(self.julian) < min_julian) or (np.max(self.julian) > max_julian): | |||
|
292 | print 'Value of Julian date is out of allowed range.' | |||
|
293 | return None | |||
|
294 | ||||
|
295 | # Beginning of Gregorian calendar | |||
|
296 | igreg = 2299161 | |||
|
297 | julLong = np.floor(self.julian + 0.5) | |||
|
298 | minJul = np.min(julLong) | |||
|
299 | ||||
|
300 | if (minJul >= igreg): | |||
|
301 | # All are Gregorian | |||
|
302 | jalpha = np.int32(((julLong - 1867216) - 0.25)/36524.25) | |||
|
303 | ja = julLong + 1 + jalpha - np.int32(0.25*jalpha) | |||
|
304 | else: | |||
|
305 | ja = julLong | |||
|
306 | gregChange = np.where(julLong >= igreg) | |||
|
307 | if gregChange[0].size>0: | |||
|
308 | jalpha = np.int32(((julLong[gregChange]-1867216) - 0.25)/36524.25) | |||
|
309 | ja[gregChange] = julLong[gregChange]+1+jalpha-np.int32(0.25*jalpha) | |||
|
310 | ||||
|
311 | # clear memory. | |||
|
312 | jalpha = -1 | |||
|
313 | ||||
|
314 | jb = ja + 1524 | |||
|
315 | jc = np.int32(6680. + ((jb-2439870)-122.1)/365.25) | |||
|
316 | jd = np.int32(365.*jc + (0.25*jc)) | |||
|
317 | je = np.int32((jb - jd)/30.6001) | |||
|
318 | ||||
|
319 | dom = jb - jd - np.int32(30.6001*je) | |||
|
320 | month = je - 1 | |||
|
321 | month = ((month - 1) % 12) + 1 | |||
|
322 | month = np.atleast_1d(month) | |||
|
323 | year = jc - 4715 | |||
|
324 | year = year - (month > 2)*1 | |||
|
325 | year = year - (year <= 0)*1 | |||
|
326 | year = np.atleast_1d(year) | |||
|
327 | ||||
|
328 | # Getting hours, minutes, seconds | |||
|
329 | fraction = self.julian + 0.5 - julLong | |||
|
330 | eps_0 = dom*0.0 + 1.0e-12 | |||
|
331 | eps_1 = 1.0e-12*np.abs(julLong) | |||
|
332 | eps = (eps_0>eps_1)*eps_0 + (eps_0<=eps_1)*eps_1 | |||
|
333 | ||||
|
334 | hour_0 = dom*0 + 23 | |||
|
335 | hour_2 = dom*0 + 0 | |||
|
336 | hour_1 = np.floor(fraction*24.0 + eps) | |||
|
337 | hour = ((hour_1>hour_0)*23) + ((hour_1<=hour_0)*hour_1) | |||
|
338 | hour = ((hour_1<hour_2)*0) + ((hour_1>=hour_2)*hour_1) | |||
|
339 | ||||
|
340 | fraction = fraction - (hour/24.0) | |||
|
341 | mins_0 = dom*0 + 59 | |||
|
342 | mins_2 = dom*0 + 0 | |||
|
343 | mins_1 = np.floor(fraction*1440.0 + eps) | |||
|
344 | mins = ((mins_1>mins_0)*59) + ((mins_1<=mins_0)*mins_1) | |||
|
345 | mins = ((mins_1<mins_2)*0) + ((mins_1>=mins_2)*mins_1) | |||
|
346 | ||||
|
347 | secs_2 = dom*0 + 0 | |||
|
348 | secs_1 = (fraction - mins/1440.0)*86400.0 | |||
|
349 | secs = ((secs_1<secs_2)*0) + ((secs_1>=secs_2)*secs_1) | |||
|
350 | ||||
|
351 | return year, month,dom, hour, mins, secs | |||
|
352 | ||||
|
353 | def change2secs(self): | |||
|
354 | """ | |||
|
355 | Converts from Julian days to seconds from 1970. | |||
|
356 | """ | |||
|
357 | ||||
|
358 | jul_1970 = Time(1970,1,1,0,0,0).change2julday() | |||
|
359 | ||||
|
360 | secs = np.int32((self.julian - jul_1970)*86400) | |||
|
361 | ||||
|
362 | return secs | |||
|
363 | ||||
|
364 | def change2lst(self,longitude=-76.8667): | |||
|
365 | """ | |||
|
366 | CT2LST converts from local civil time to local mean sideral time | |||
|
367 | ||||
|
368 | longitude = The longitude in degrees (east of Greenwich) of the place for which | |||
|
369 | the local sideral time is desired, scalar. The Greenwich mean sideral time (GMST) | |||
|
370 | can be found by setting longitude=0. | |||
|
371 | """ | |||
|
372 | ||||
|
373 | # Useful constants, see Meus, p. 84 | |||
|
374 | c = np.array([280.46061837, 360.98564736629, 0.000387933, 38710000.0]) | |||
|
375 | jd2000 = 2451545.0 | |||
|
376 | t0 = self.julian - jd2000 | |||
|
377 | t = t0/36525. | |||
|
378 | ||||
|
379 | # Computing GST in seconds | |||
|
380 | theta = c[0] + (c[1]*t0) + (t**2)*(c[2]-t/c[3]) | |||
|
381 | ||||
|
382 | # Computing LST in hours | |||
|
383 | lst = (theta + longitude)/15.0 | |||
|
384 | neg = np.where(lst < 0.0) | |||
|
385 | if neg[0].size>0:lst[neg] = 24.0 + (lst[neg] % 24) | |||
|
386 | lst = lst % 24.0 | |||
|
387 | ||||
|
388 | return lst | |||
|
389 | ||||
|
390 | ||||
|
391 | class date2doy: | |||
|
392 | def __init__(self,year,month,day): | |||
|
393 | self.year = year | |||
|
394 | self.month = month | |||
|
395 | self.day = day | |||
|
396 | ||||
|
397 | def change2doy(self): | |||
|
398 | if cr.isleap(self.year) == True: | |||
|
399 | tfactor = 1 | |||
|
400 | else: | |||
|
401 | tfactor = 2 | |||
|
402 | ||||
|
403 | day = self.day | |||
|
404 | month = self.month | |||
|
405 | ||||
|
406 | doy = np.floor((275*month)/9.0) - (tfactor*np.floor((month+9)/12.0)) + day - 30 | |||
|
407 | ||||
|
408 | return np.int32(doy) | |||
|
409 | ||||
|
410 | ||||
|
411 | class Doy2Date: | |||
|
412 | def __init__(self,year,doy): | |||
|
413 | self.year = year | |||
|
414 | self.doy = doy | |||
|
415 | ||||
|
416 | def change2date(self): | |||
|
417 | months = np.arange(12) + 1 | |||
|
418 | ||||
|
419 | first_dem = date2doy(self.year,months,1) | |||
|
420 | first_dem = first_dem.change2doy() | |||
|
421 | ||||
|
422 | imm = np.where((self.doy - first_dem) > 0) | |||
|
423 | ||||
|
424 | month = imm[0].size | |||
|
425 | dom = self.doy -first_dem[month - 1] + 1 | |||
|
426 | ||||
|
427 | return month, dom |
@@ -0,0 +1,54 | |||||
|
1 | # -*- coding: utf-8 -*- | |||
|
2 | ||||
|
3 | """ | |||
|
4 | Module implementing Window. | |||
|
5 | """ | |||
|
6 | from PyQt4.QtCore import pyqtSignal | |||
|
7 | from PyQt4.QtGui import QMainWindow | |||
|
8 | from PyQt4.QtCore import pyqtSignature | |||
|
9 | from GUI.ui_window import Ui_window | |||
|
10 | ||||
|
11 | #closed=pyqtSignal() | |||
|
12 | ||||
|
13 | class Window(QMainWindow, Ui_window): | |||
|
14 | """ | |||
|
15 | Class documentation goes here. | |||
|
16 | """ | |||
|
17 | closed=pyqtSignal() | |||
|
18 | def __init__(self, parent = None): | |||
|
19 | """ | |||
|
20 | Constructor | |||
|
21 | """ | |||
|
22 | QMainWindow.__init__(self, parent) | |||
|
23 | self.setupUi(self) | |||
|
24 | self.name=0 | |||
|
25 | ||||
|
26 | ||||
|
27 | @pyqtSignature("") | |||
|
28 | def on_cancelButton_clicked(self): | |||
|
29 | """ | |||
|
30 | Slot documentation goes here. | |||
|
31 | """ | |||
|
32 | # TODO: not implemented yet | |||
|
33 | #raise NotImplementedError | |||
|
34 | self.close() | |||
|
35 | ||||
|
36 | @pyqtSignature("") | |||
|
37 | def on_okButton_clicked(self): | |||
|
38 | """ | |||
|
39 | Slot documentation goes here. | |||
|
40 | """ | |||
|
41 | # TODO: not implemented yet | |||
|
42 | #raise NotImplementedError | |||
|
43 | # self.almacena() | |||
|
44 | self.close() | |||
|
45 | ||||
|
46 | ||||
|
47 | def almacena(self): | |||
|
48 | #print str(self.proyectNameLine.text()) | |||
|
49 | return str(self.proyectNameLine.text()) | |||
|
50 | ||||
|
51 | def closeEvent(self, event): | |||
|
52 | self.closed.emit() | |||
|
53 | event.accept() | |||
|
54 | No newline at end of file |
@@ -0,0 +1,66 | |||||
|
1 | # -*- coding: utf-8 -*- | |||
|
2 | ||||
|
3 | from PyQt4.QtGui import QMainWindow | |||
|
4 | from PyQt4.QtCore import pyqtSignature | |||
|
5 | from PyQt4.QtCore import pyqtSignal | |||
|
6 | from PyQt4 import QtGui | |||
|
7 | from mainwindow import MainWindow | |||
|
8 | from GUI.ui_workspace import Ui_Workspace | |||
|
9 | ||||
|
10 | class Workspace(QMainWindow, Ui_Workspace): | |||
|
11 | """ | |||
|
12 | Class documentation goes here. | |||
|
13 | """ | |||
|
14 | closed=pyqtSignal() | |||
|
15 | def __init__(self, parent = None): | |||
|
16 | """ | |||
|
17 | Constructor | |||
|
18 | """ | |||
|
19 | QMainWindow.__init__(self, parent) | |||
|
20 | self.setupUi(self) | |||
|
21 | #*####### DIRECTORIO DE TRABAJO #########*# | |||
|
22 | self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "C:\WorkSpaceGui", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
23 | self.dir=str("C:\WorkSpaceGui") | |||
|
24 | self.dirCmbBox.addItem(self.dir) | |||
|
25 | ||||
|
26 | @pyqtSignature("") | |||
|
27 | def on_dirBrowsebtn_clicked(self): | |||
|
28 | """ | |||
|
29 | Slot documentation goes here. | |||
|
30 | """ | |||
|
31 | self.dirBrowse = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) | |||
|
32 | self.dirCmbBox.addItem(self.dirBrowse) | |||
|
33 | ||||
|
34 | @pyqtSignature("") | |||
|
35 | def on_dirButton_clicked(self): | |||
|
36 | """ | |||
|
37 | Slot documentation goes here. | |||
|
38 | """ | |||
|
39 | ||||
|
40 | @pyqtSignature("") | |||
|
41 | def on_dirOkbtn_clicked(self): | |||
|
42 | """ | |||
|
43 | VISTA DE INTERFAZ GRÃFICA | |||
|
44 | """ | |||
|
45 | self.showmemainwindow() | |||
|
46 | ||||
|
47 | ||||
|
48 | @pyqtSignature("") | |||
|
49 | def on_dirCancelbtn_clicked(self): | |||
|
50 | """ | |||
|
51 | Cerrar | |||
|
52 | """ | |||
|
53 | self.close() | |||
|
54 | ||||
|
55 | def showmemainwindow(self): | |||
|
56 | self.Dialog= MainWindow(self) | |||
|
57 | self.Dialog.show() | |||
|
58 | self.hide() | |||
|
59 | ||||
|
60 | def closeEvent(self, event): | |||
|
61 | self.closed.emit() | |||
|
62 | event.accept() | |||
|
63 | ||||
|
64 | ||||
|
65 | ||||
|
66 | No newline at end of file |
@@ -0,0 +1,14 | |||||
|
1 | ''' | |||
|
2 | Created on Septembre, 2012 | |||
|
3 | ||||
|
4 | @author: roj-idl71 | |||
|
5 | ''' | |||
|
6 | from xml.etree import ElementTree | |||
|
7 | from xml.dom import minidom | |||
|
8 | ||||
|
9 | def prettify(elem): | |||
|
10 | """Return a pretty-printed XML string for the Element. | |||
|
11 | """ | |||
|
12 | rough_string = ElementTree.tostring(elem, 'utf-8') | |||
|
13 | reparsed = minidom.parseString(rough_string) | |||
|
14 | return reparsed.toprettyxml(indent=" ") No newline at end of file |
@@ -0,0 +1,4 | |||||
|
1 | import ui_initwindow | |||
|
2 | import ui_workspace | |||
|
3 | import ui_mainwindow | |||
|
4 | import ui_window No newline at end of file |
@@ -0,0 +1,104 | |||||
|
1 | # -*- coding: utf-8 -*- | |||
|
2 | ||||
|
3 | # Form implementation generated from reading ui file 'C:\Users\alex\ericworkspace\GUIV1\Pantalla.ui' | |||
|
4 | # | |||
|
5 | # Created: Tue Aug 28 15:10:06 2012 | |||
|
6 | # by: PyQt4 UI code generator 4.9.4 | |||
|
7 | # | |||
|
8 | # WARNING! All changes made in this file will be lost! | |||
|
9 | ||||
|
10 | from PyQt4 import QtCore, QtGui | |||
|
11 | ||||
|
12 | try: | |||
|
13 | _fromUtf8 = QtCore.QString.fromUtf8 | |||
|
14 | except AttributeError: | |||
|
15 | _fromUtf8 = lambda s: s | |||
|
16 | ||||
|
17 | class Ui_InitWindow(object): | |||
|
18 | def setupUi(self, form): | |||
|
19 | form.setObjectName(_fromUtf8("form")) | |||
|
20 | form.resize(622, 516) | |||
|
21 | self.centralWidget = QtGui.QWidget(form) | |||
|
22 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) | |||
|
23 | self.gridLayout = QtGui.QGridLayout(self.centralWidget) | |||
|
24 | self.gridLayout.setObjectName(_fromUtf8("gridLayout")) | |||
|
25 | self.verticalLayout_2 = QtGui.QVBoxLayout() | |||
|
26 | self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) | |||
|
27 | self.verticalLayout = QtGui.QVBoxLayout() | |||
|
28 | self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) | |||
|
29 | self.label = QtGui.QLabel(self.centralWidget) | |||
|
30 | font = QtGui.QFont() | |||
|
31 | font.setPointSize(21) | |||
|
32 | self.label.setFont(font) | |||
|
33 | self.label.setObjectName(_fromUtf8("label")) | |||
|
34 | self.verticalLayout.addWidget(self.label) | |||
|
35 | self.line = QtGui.QFrame(self.centralWidget) | |||
|
36 | self.line.setFrameShape(QtGui.QFrame.HLine) | |||
|
37 | self.line.setFrameShadow(QtGui.QFrame.Sunken) | |||
|
38 | self.line.setObjectName(_fromUtf8("line")) | |||
|
39 | self.verticalLayout.addWidget(self.line) | |||
|
40 | self.label_2 = QtGui.QLabel(self.centralWidget) | |||
|
41 | self.label_2.setText(_fromUtf8("")) | |||
|
42 | self.label_2.setPixmap(QtGui.QPixmap(_fromUtf8("../../Downloads/IMAGENES/w.jpg"))) | |||
|
43 | self.label_2.setScaledContents(True) | |||
|
44 | self.label_2.setObjectName(_fromUtf8("label_2")) | |||
|
45 | self.verticalLayout.addWidget(self.label_2) | |||
|
46 | self.verticalLayout_2.addLayout(self.verticalLayout) | |||
|
47 | self.horizontalLayout_2 = QtGui.QHBoxLayout() | |||
|
48 | self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) | |||
|
49 | self.horizontalLayout = QtGui.QHBoxLayout() | |||
|
50 | self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) | |||
|
51 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
52 | self.horizontalLayout.addItem(spacerItem) | |||
|
53 | self.pushButton_2 = QtGui.QPushButton(self.centralWidget) | |||
|
54 | self.pushButton_2.setObjectName(_fromUtf8("pushButton_2")) | |||
|
55 | self.horizontalLayout.addWidget(self.pushButton_2) | |||
|
56 | self.pushButton = QtGui.QPushButton(self.centralWidget) | |||
|
57 | self.pushButton.setObjectName(_fromUtf8("pushButton")) | |||
|
58 | self.horizontalLayout.addWidget(self.pushButton) | |||
|
59 | spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
60 | self.horizontalLayout.addItem(spacerItem1) | |||
|
61 | self.horizontalLayout_2.addLayout(self.horizontalLayout) | |||
|
62 | self.verticalLayout_2.addLayout(self.horizontalLayout_2) | |||
|
63 | self.gridLayout.addLayout(self.verticalLayout_2, 0, 0, 1, 1) | |||
|
64 | form.setCentralWidget(self.centralWidget) | |||
|
65 | self.statusBar = QtGui.QStatusBar(form) | |||
|
66 | self.statusBar.setObjectName(_fromUtf8("statusBar")) | |||
|
67 | form.setStatusBar(self.statusBar) | |||
|
68 | self.actionImage = QtGui.QAction(form) | |||
|
69 | icon = QtGui.QIcon() | |||
|
70 | icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/newPrefix/Imagui/ROJ.jpg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |||
|
71 | self.actionImage.setIcon(icon) | |||
|
72 | self.actionImage.setObjectName(_fromUtf8("actionImage")) | |||
|
73 | self.actionOpen = QtGui.QAction(form) | |||
|
74 | self.actionOpen.setObjectName(_fromUtf8("actionOpen")) | |||
|
75 | self.actionClose = QtGui.QAction(form) | |||
|
76 | self.actionClose.setObjectName(_fromUtf8("actionClose")) | |||
|
77 | self.actionOpen_2 = QtGui.QAction(form) | |||
|
78 | self.actionOpen_2.setObjectName(_fromUtf8("actionOpen_2")) | |||
|
79 | ||||
|
80 | self.retranslateUi(form) | |||
|
81 | QtCore.QObject.connect(self.pushButton_2, QtCore.SIGNAL(_fromUtf8("clicked()")), form.close) | |||
|
82 | QtCore.QObject.connect(self.pushButton, QtCore.SIGNAL(_fromUtf8("clicked()")), form.show) | |||
|
83 | QtCore.QMetaObject.connectSlotsByName(form) | |||
|
84 | ||||
|
85 | def retranslateUi(self, form): | |||
|
86 | form.setWindowTitle(QtGui.QApplication.translate("form", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
87 | self.label.setText(QtGui.QApplication.translate("form", "Interfaz Grafica -REV. 1.0", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
88 | self.pushButton_2.setText(QtGui.QApplication.translate("form", "Exit", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
89 | self.pushButton.setText(QtGui.QApplication.translate("form", "Continue", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
90 | self.actionImage.setText(QtGui.QApplication.translate("form", "image", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
91 | self.actionImage.setToolTip(QtGui.QApplication.translate("form", "show Image", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
92 | self.actionOpen.setText(QtGui.QApplication.translate("form", "Open", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
93 | self.actionClose.setText(QtGui.QApplication.translate("form", "Close", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
94 | self.actionOpen_2.setText(QtGui.QApplication.translate("form", "Open", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
95 | ||||
|
96 | if __name__ == "__main__": | |||
|
97 | import sys | |||
|
98 | app = QtGui.QApplication(sys.argv) | |||
|
99 | form = QtGui.QMainWindow() | |||
|
100 | ui = Ui_InitWindow() | |||
|
101 | ui.setupUi(form) | |||
|
102 | form.show() | |||
|
103 | sys.exit(app.exec_()) | |||
|
104 |
This diff has been collapsed as it changes many lines, (1438 lines changed) Show them Hide them | |||||
@@ -0,0 +1,1438 | |||||
|
1 | # -*- coding: utf-8 -*- | |||
|
2 | ||||
|
3 | # Form implementation generated from reading ui file 'C:\Users\alex\ericworkspace\UIDOS\MainWindow28nov.ui' | |||
|
4 | # | |||
|
5 | # Created: Mon Dec 03 15:13:49 2012 | |||
|
6 | # by: PyQt4 UI code generator 4.9.4 | |||
|
7 | # | |||
|
8 | # WARNING! All changes made in this file will be lost! | |||
|
9 | ||||
|
10 | from PyQt4 import QtCore, QtGui | |||
|
11 | ||||
|
12 | try: | |||
|
13 | _fromUtf8 = QtCore.QString.fromUtf8 | |||
|
14 | except AttributeError: | |||
|
15 | _fromUtf8 = lambda s: s | |||
|
16 | ||||
|
17 | class Ui_MainWindow(object): | |||
|
18 | def setupUi(self, MainWindow): | |||
|
19 | MainWindow.setObjectName(_fromUtf8("MainWindow")) | |||
|
20 | MainWindow.resize(852, 569) | |||
|
21 | self.centralWidget = QtGui.QWidget(MainWindow) | |||
|
22 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) | |||
|
23 | self.frame_2 = QtGui.QFrame(self.centralWidget) | |||
|
24 | self.frame_2.setGeometry(QtCore.QRect(570, 0, 281, 511)) | |||
|
25 | self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
26 | self.frame_2.setFrameShadow(QtGui.QFrame.Plain) | |||
|
27 | self.frame_2.setObjectName(_fromUtf8("frame_2")) | |||
|
28 | self.frame_6 = QtGui.QFrame(self.frame_2) | |||
|
29 | self.frame_6.setGeometry(QtCore.QRect(10, 10, 261, 31)) | |||
|
30 | self.frame_6.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
31 | self.frame_6.setFrameShadow(QtGui.QFrame.Plain) | |||
|
32 | self.frame_6.setObjectName(_fromUtf8("frame_6")) | |||
|
33 | self.label_46 = QtGui.QLabel(self.frame_6) | |||
|
34 | self.label_46.setGeometry(QtCore.QRect(70, 0, 125, 21)) | |||
|
35 | font = QtGui.QFont() | |||
|
36 | font.setPointSize(11) | |||
|
37 | self.label_46.setFont(font) | |||
|
38 | self.label_46.setObjectName(_fromUtf8("label_46")) | |||
|
39 | self.frame_7 = QtGui.QFrame(self.frame_2) | |||
|
40 | self.frame_7.setGeometry(QtCore.QRect(10, 50, 261, 451)) | |||
|
41 | self.frame_7.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
42 | self.frame_7.setFrameShadow(QtGui.QFrame.Plain) | |||
|
43 | self.frame_7.setObjectName(_fromUtf8("frame_7")) | |||
|
44 | self.treeView_2 = QtGui.QTreeView(self.frame_7) | |||
|
45 | self.treeView_2.setGeometry(QtCore.QRect(10, 10, 241, 431)) | |||
|
46 | self.treeView_2.setObjectName(_fromUtf8("treeView_2")) | |||
|
47 | self.frame = QtGui.QFrame(self.centralWidget) | |||
|
48 | self.frame.setGeometry(QtCore.QRect(0, 0, 251, 511)) | |||
|
49 | self.frame.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
50 | self.frame.setFrameShadow(QtGui.QFrame.Plain) | |||
|
51 | self.frame.setObjectName(_fromUtf8("frame")) | |||
|
52 | self.frame_9 = QtGui.QFrame(self.frame) | |||
|
53 | self.frame_9.setGeometry(QtCore.QRect(10, 10, 231, 61)) | |||
|
54 | self.frame_9.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
55 | self.frame_9.setFrameShadow(QtGui.QFrame.Plain) | |||
|
56 | self.frame_9.setObjectName(_fromUtf8("frame_9")) | |||
|
57 | self.label = QtGui.QLabel(self.frame_9) | |||
|
58 | self.label.setGeometry(QtCore.QRect(50, 0, 141, 31)) | |||
|
59 | font = QtGui.QFont() | |||
|
60 | font.setPointSize(11) | |||
|
61 | self.label.setFont(font) | |||
|
62 | self.label.setObjectName(_fromUtf8("label")) | |||
|
63 | self.addpBtn = QtGui.QPushButton(self.frame_9) | |||
|
64 | self.addpBtn.setGeometry(QtCore.QRect(10, 30, 61, 23)) | |||
|
65 | self.addpBtn.setObjectName(_fromUtf8("addpBtn")) | |||
|
66 | self.addbBtn = QtGui.QPushButton(self.frame_9) | |||
|
67 | self.addbBtn.setGeometry(QtCore.QRect(80, 30, 71, 23)) | |||
|
68 | self.addbBtn.setObjectName(_fromUtf8("addbBtn")) | |||
|
69 | self.addoBtn = QtGui.QPushButton(self.frame_9) | |||
|
70 | self.addoBtn.setGeometry(QtCore.QRect(160, 30, 61, 23)) | |||
|
71 | self.addoBtn.setObjectName(_fromUtf8("addoBtn")) | |||
|
72 | self.scrollArea = QtGui.QScrollArea(self.frame) | |||
|
73 | self.scrollArea.setGeometry(QtCore.QRect(10, 80, 231, 421)) | |||
|
74 | self.scrollArea.setWidgetResizable(True) | |||
|
75 | self.scrollArea.setObjectName(_fromUtf8("scrollArea")) | |||
|
76 | self.scrollAreaWidgetContents = QtGui.QWidget() | |||
|
77 | self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 229, 419)) | |||
|
78 | self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) | |||
|
79 | self.verticalLayout_4 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) | |||
|
80 | self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) | |||
|
81 | self.treeView = QtGui.QTreeView(self.scrollAreaWidgetContents) | |||
|
82 | self.treeView.setObjectName(_fromUtf8("treeView")) | |||
|
83 | self.verticalLayout_4.addWidget(self.treeView) | |||
|
84 | self.scrollArea.setWidget(self.scrollAreaWidgetContents) | |||
|
85 | self.frame_11 = QtGui.QFrame(self.centralWidget) | |||
|
86 | self.frame_11.setGeometry(QtCore.QRect(260, 0, 301, 391)) | |||
|
87 | self.frame_11.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
88 | self.frame_11.setFrameShadow(QtGui.QFrame.Plain) | |||
|
89 | self.frame_11.setObjectName(_fromUtf8("frame_11")) | |||
|
90 | self.tabWidget = QtGui.QTabWidget(self.frame_11) | |||
|
91 | self.tabWidget.setGeometry(QtCore.QRect(10, 10, 281, 371)) | |||
|
92 | font = QtGui.QFont() | |||
|
93 | font.setPointSize(10) | |||
|
94 | self.tabWidget.setFont(font) | |||
|
95 | self.tabWidget.setObjectName(_fromUtf8("tabWidget")) | |||
|
96 | self.tab_5 = QtGui.QWidget() | |||
|
97 | self.tab_5.setObjectName(_fromUtf8("tab_5")) | |||
|
98 | self.frame_5 = QtGui.QFrame(self.tab_5) | |||
|
99 | self.frame_5.setGeometry(QtCore.QRect(10, 120, 261, 31)) | |||
|
100 | font = QtGui.QFont() | |||
|
101 | font.setPointSize(10) | |||
|
102 | self.frame_5.setFont(font) | |||
|
103 | self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
104 | self.frame_5.setFrameShadow(QtGui.QFrame.Plain) | |||
|
105 | self.frame_5.setObjectName(_fromUtf8("frame_5")) | |||
|
106 | self.label_55 = QtGui.QLabel(self.frame_5) | |||
|
107 | self.label_55.setGeometry(QtCore.QRect(10, 10, 72, 16)) | |||
|
108 | font = QtGui.QFont() | |||
|
109 | font.setPointSize(10) | |||
|
110 | self.label_55.setFont(font) | |||
|
111 | self.label_55.setObjectName(_fromUtf8("label_55")) | |||
|
112 | self.readModeCmBox = QtGui.QComboBox(self.frame_5) | |||
|
113 | self.readModeCmBox.setGeometry(QtCore.QRect(90, 10, 71, 16)) | |||
|
114 | font = QtGui.QFont() | |||
|
115 | font.setPointSize(10) | |||
|
116 | self.readModeCmBox.setFont(font) | |||
|
117 | self.readModeCmBox.setObjectName(_fromUtf8("readModeCmBox")) | |||
|
118 | self.readModeCmBox.addItem(_fromUtf8("")) | |||
|
119 | self.readModeCmBox.addItem(_fromUtf8("")) | |||
|
120 | self.dataWaitLine = QtGui.QLabel(self.frame_5) | |||
|
121 | self.dataWaitLine.setGeometry(QtCore.QRect(167, 10, 61, 20)) | |||
|
122 | font = QtGui.QFont() | |||
|
123 | font.setPointSize(10) | |||
|
124 | self.dataWaitLine.setFont(font) | |||
|
125 | self.dataWaitLine.setObjectName(_fromUtf8("dataWaitLine")) | |||
|
126 | self.dataWaitTxt = QtGui.QLineEdit(self.frame_5) | |||
|
127 | self.dataWaitTxt.setGeometry(QtCore.QRect(230, 10, 21, 20)) | |||
|
128 | self.dataWaitTxt.setObjectName(_fromUtf8("dataWaitTxt")) | |||
|
129 | self.frame_4 = QtGui.QFrame(self.tab_5) | |||
|
130 | self.frame_4.setGeometry(QtCore.QRect(10, 60, 261, 51)) | |||
|
131 | self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
132 | self.frame_4.setFrameShadow(QtGui.QFrame.Plain) | |||
|
133 | self.frame_4.setObjectName(_fromUtf8("frame_4")) | |||
|
134 | self.dataFormatLine = QtGui.QLabel(self.frame_4) | |||
|
135 | self.dataFormatLine.setGeometry(QtCore.QRect(10, 10, 81, 16)) | |||
|
136 | font = QtGui.QFont() | |||
|
137 | font.setPointSize(10) | |||
|
138 | self.dataFormatLine.setFont(font) | |||
|
139 | self.dataFormatLine.setObjectName(_fromUtf8("dataFormatLine")) | |||
|
140 | self.dataPathline = QtGui.QLabel(self.frame_4) | |||
|
141 | self.dataPathline.setGeometry(QtCore.QRect(10, 30, 81, 19)) | |||
|
142 | font = QtGui.QFont() | |||
|
143 | font.setPointSize(10) | |||
|
144 | self.dataPathline.setFont(font) | |||
|
145 | self.dataPathline.setObjectName(_fromUtf8("dataPathline")) | |||
|
146 | self.dataFormatCmbBox = QtGui.QComboBox(self.frame_4) | |||
|
147 | self.dataFormatCmbBox.setGeometry(QtCore.QRect(90, 10, 101, 16)) | |||
|
148 | font = QtGui.QFont() | |||
|
149 | font.setPointSize(10) | |||
|
150 | self.dataFormatCmbBox.setFont(font) | |||
|
151 | self.dataFormatCmbBox.setObjectName(_fromUtf8("dataFormatCmbBox")) | |||
|
152 | self.dataFormatCmbBox.addItem(_fromUtf8("")) | |||
|
153 | self.dataFormatCmbBox.addItem(_fromUtf8("")) | |||
|
154 | self.dataPathTxt = QtGui.QLineEdit(self.frame_4) | |||
|
155 | self.dataPathTxt.setGeometry(QtCore.QRect(90, 30, 131, 16)) | |||
|
156 | self.dataPathTxt.setObjectName(_fromUtf8("dataPathTxt")) | |||
|
157 | self.dataPathBrowse = QtGui.QPushButton(self.frame_4) | |||
|
158 | self.dataPathBrowse.setGeometry(QtCore.QRect(230, 30, 20, 16)) | |||
|
159 | self.dataPathBrowse.setObjectName(_fromUtf8("dataPathBrowse")) | |||
|
160 | self.dataFormatTxt = QtGui.QLineEdit(self.frame_4) | |||
|
161 | self.dataFormatTxt.setGeometry(QtCore.QRect(200, 10, 51, 16)) | |||
|
162 | self.dataFormatTxt.setObjectName(_fromUtf8("dataFormatTxt")) | |||
|
163 | self.frame_3 = QtGui.QFrame(self.tab_5) | |||
|
164 | self.frame_3.setGeometry(QtCore.QRect(10, 10, 261, 41)) | |||
|
165 | self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
166 | self.frame_3.setFrameShadow(QtGui.QFrame.Plain) | |||
|
167 | self.frame_3.setObjectName(_fromUtf8("frame_3")) | |||
|
168 | self.dataOperationModeline = QtGui.QLabel(self.frame_3) | |||
|
169 | self.dataOperationModeline.setGeometry(QtCore.QRect(10, 10, 101, 19)) | |||
|
170 | font = QtGui.QFont() | |||
|
171 | font.setPointSize(10) | |||
|
172 | self.dataOperationModeline.setFont(font) | |||
|
173 | self.dataOperationModeline.setObjectName(_fromUtf8("dataOperationModeline")) | |||
|
174 | self.operationModeCmbBox = QtGui.QComboBox(self.frame_3) | |||
|
175 | self.operationModeCmbBox.setGeometry(QtCore.QRect(120, 10, 131, 20)) | |||
|
176 | font = QtGui.QFont() | |||
|
177 | font.setPointSize(10) | |||
|
178 | self.operationModeCmbBox.setFont(font) | |||
|
179 | self.operationModeCmbBox.setObjectName(_fromUtf8("operationModeCmbBox")) | |||
|
180 | self.operationModeCmbBox.addItem(_fromUtf8("")) | |||
|
181 | self.operationModeCmbBox.addItem(_fromUtf8("")) | |||
|
182 | self.frame_8 = QtGui.QFrame(self.tab_5) | |||
|
183 | self.frame_8.setGeometry(QtCore.QRect(10, 160, 261, 71)) | |||
|
184 | self.frame_8.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
185 | self.frame_8.setFrameShadow(QtGui.QFrame.Plain) | |||
|
186 | self.frame_8.setObjectName(_fromUtf8("frame_8")) | |||
|
187 | self.dataYearLine = QtGui.QLabel(self.frame_8) | |||
|
188 | self.dataYearLine.setGeometry(QtCore.QRect(10, 10, 41, 16)) | |||
|
189 | font = QtGui.QFont() | |||
|
190 | font.setPointSize(10) | |||
|
191 | self.dataYearLine.setFont(font) | |||
|
192 | self.dataYearLine.setObjectName(_fromUtf8("dataYearLine")) | |||
|
193 | self.dataStartLine = QtGui.QLabel(self.frame_8) | |||
|
194 | self.dataStartLine.setGeometry(QtCore.QRect(80, 10, 69, 16)) | |||
|
195 | font = QtGui.QFont() | |||
|
196 | font.setPointSize(10) | |||
|
197 | self.dataStartLine.setFont(font) | |||
|
198 | self.dataStartLine.setObjectName(_fromUtf8("dataStartLine")) | |||
|
199 | self.dataEndline = QtGui.QLabel(self.frame_8) | |||
|
200 | self.dataEndline.setGeometry(QtCore.QRect(170, 10, 61, 16)) | |||
|
201 | font = QtGui.QFont() | |||
|
202 | font.setPointSize(10) | |||
|
203 | self.dataEndline.setFont(font) | |||
|
204 | self.dataEndline.setObjectName(_fromUtf8("dataEndline")) | |||
|
205 | self.yearCmbBox = QtGui.QComboBox(self.frame_8) | |||
|
206 | self.yearCmbBox.setGeometry(QtCore.QRect(10, 30, 61, 16)) | |||
|
207 | font = QtGui.QFont() | |||
|
208 | font.setPointSize(10) | |||
|
209 | self.yearCmbBox.setFont(font) | |||
|
210 | self.yearCmbBox.setObjectName(_fromUtf8("yearCmbBox")) | |||
|
211 | self.starDateCmbBox = QtGui.QComboBox(self.frame_8) | |||
|
212 | self.starDateCmbBox.setGeometry(QtCore.QRect(80, 30, 81, 16)) | |||
|
213 | self.starDateCmbBox.setObjectName(_fromUtf8("starDateCmbBox")) | |||
|
214 | self.endDateCmbBox = QtGui.QComboBox(self.frame_8) | |||
|
215 | self.endDateCmbBox.setGeometry(QtCore.QRect(170, 30, 81, 16)) | |||
|
216 | self.endDateCmbBox.setObjectName(_fromUtf8("endDateCmbBox")) | |||
|
217 | self.LTReferenceRdBtn = QtGui.QRadioButton(self.frame_8) | |||
|
218 | self.LTReferenceRdBtn.setGeometry(QtCore.QRect(90, 50, 161, 16)) | |||
|
219 | font = QtGui.QFont() | |||
|
220 | font.setPointSize(8) | |||
|
221 | self.LTReferenceRdBtn.setFont(font) | |||
|
222 | self.LTReferenceRdBtn.setObjectName(_fromUtf8("LTReferenceRdBtn")) | |||
|
223 | self.frame_10 = QtGui.QFrame(self.tab_5) | |||
|
224 | self.frame_10.setGeometry(QtCore.QRect(10, 240, 261, 51)) | |||
|
225 | self.frame_10.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
226 | self.frame_10.setFrameShadow(QtGui.QFrame.Plain) | |||
|
227 | self.frame_10.setObjectName(_fromUtf8("frame_10")) | |||
|
228 | self.initialTimeSlider = QtGui.QSlider(self.frame_10) | |||
|
229 | self.initialTimeSlider.setGeometry(QtCore.QRect(70, 10, 141, 20)) | |||
|
230 | self.initialTimeSlider.setMaximum(24) | |||
|
231 | self.initialTimeSlider.setOrientation(QtCore.Qt.Horizontal) | |||
|
232 | self.initialTimeSlider.setObjectName(_fromUtf8("initialTimeSlider")) | |||
|
233 | self.dataInitialTimeLine = QtGui.QLabel(self.frame_10) | |||
|
234 | self.dataInitialTimeLine.setGeometry(QtCore.QRect(10, 10, 61, 16)) | |||
|
235 | font = QtGui.QFont() | |||
|
236 | font.setPointSize(9) | |||
|
237 | self.dataInitialTimeLine.setFont(font) | |||
|
238 | self.dataInitialTimeLine.setObjectName(_fromUtf8("dataInitialTimeLine")) | |||
|
239 | self.dataFinelTimeLine = QtGui.QLabel(self.frame_10) | |||
|
240 | self.dataFinelTimeLine.setGeometry(QtCore.QRect(10, 30, 61, 16)) | |||
|
241 | font = QtGui.QFont() | |||
|
242 | font.setPointSize(9) | |||
|
243 | self.dataFinelTimeLine.setFont(font) | |||
|
244 | self.dataFinelTimeLine.setObjectName(_fromUtf8("dataFinelTimeLine")) | |||
|
245 | self.finalTimeSlider = QtGui.QSlider(self.frame_10) | |||
|
246 | self.finalTimeSlider.setGeometry(QtCore.QRect(70, 30, 141, 20)) | |||
|
247 | self.finalTimeSlider.setMaximum(24) | |||
|
248 | self.finalTimeSlider.setOrientation(QtCore.Qt.Horizontal) | |||
|
249 | self.finalTimeSlider.setObjectName(_fromUtf8("finalTimeSlider")) | |||
|
250 | self.initialtimeLcd = QtGui.QLCDNumber(self.frame_10) | |||
|
251 | self.initialtimeLcd.setGeometry(QtCore.QRect(210, 10, 41, 16)) | |||
|
252 | palette = QtGui.QPalette() | |||
|
253 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
254 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
255 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) | |||
|
256 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
257 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
258 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) | |||
|
259 | brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) | |||
|
260 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
261 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush) | |||
|
262 | brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) | |||
|
263 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
264 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush) | |||
|
265 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
266 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
267 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush) | |||
|
268 | brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) | |||
|
269 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
270 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush) | |||
|
271 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
272 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
273 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) | |||
|
274 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
275 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
276 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush) | |||
|
277 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
278 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
279 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) | |||
|
280 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
281 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
282 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) | |||
|
283 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
284 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
285 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) | |||
|
286 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
287 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
288 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush) | |||
|
289 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
290 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
291 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush) | |||
|
292 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) | |||
|
293 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
294 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush) | |||
|
295 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
296 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
297 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush) | |||
|
298 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
299 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
300 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) | |||
|
301 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
302 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
303 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) | |||
|
304 | brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) | |||
|
305 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
306 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush) | |||
|
307 | brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) | |||
|
308 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
309 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush) | |||
|
310 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
311 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
312 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush) | |||
|
313 | brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) | |||
|
314 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
315 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush) | |||
|
316 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
317 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
318 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) | |||
|
319 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
320 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
321 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush) | |||
|
322 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
323 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
324 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) | |||
|
325 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
326 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
327 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) | |||
|
328 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
329 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
330 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) | |||
|
331 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
332 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
333 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush) | |||
|
334 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
335 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
336 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush) | |||
|
337 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) | |||
|
338 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
339 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush) | |||
|
340 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
341 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
342 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush) | |||
|
343 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
344 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
345 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) | |||
|
346 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
347 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
348 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) | |||
|
349 | brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) | |||
|
350 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
351 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush) | |||
|
352 | brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) | |||
|
353 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
354 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush) | |||
|
355 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
356 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
357 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush) | |||
|
358 | brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) | |||
|
359 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
360 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush) | |||
|
361 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
362 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
363 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) | |||
|
364 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
365 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
366 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush) | |||
|
367 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
368 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
369 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) | |||
|
370 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
371 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
372 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) | |||
|
373 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
374 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
375 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) | |||
|
376 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
377 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
378 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush) | |||
|
379 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
380 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
381 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush) | |||
|
382 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) | |||
|
383 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
384 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush) | |||
|
385 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
386 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
387 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush) | |||
|
388 | self.initialtimeLcd.setPalette(palette) | |||
|
389 | font = QtGui.QFont() | |||
|
390 | font.setPointSize(14) | |||
|
391 | font.setBold(True) | |||
|
392 | font.setWeight(75) | |||
|
393 | self.initialtimeLcd.setFont(font) | |||
|
394 | self.initialtimeLcd.setObjectName(_fromUtf8("initialtimeLcd")) | |||
|
395 | self.finaltimeLcd = QtGui.QLCDNumber(self.frame_10) | |||
|
396 | self.finaltimeLcd.setGeometry(QtCore.QRect(210, 30, 41, 16)) | |||
|
397 | palette = QtGui.QPalette() | |||
|
398 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
399 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
400 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) | |||
|
401 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
402 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
403 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) | |||
|
404 | brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) | |||
|
405 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
406 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush) | |||
|
407 | brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) | |||
|
408 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
409 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush) | |||
|
410 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
411 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
412 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush) | |||
|
413 | brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) | |||
|
414 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
415 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush) | |||
|
416 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
417 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
418 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) | |||
|
419 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
420 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
421 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush) | |||
|
422 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
423 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
424 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) | |||
|
425 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
426 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
427 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) | |||
|
428 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
429 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
430 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) | |||
|
431 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
432 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
433 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush) | |||
|
434 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
435 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
436 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush) | |||
|
437 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) | |||
|
438 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
439 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush) | |||
|
440 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
441 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
442 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush) | |||
|
443 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
444 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
445 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) | |||
|
446 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
447 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
448 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) | |||
|
449 | brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) | |||
|
450 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
451 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush) | |||
|
452 | brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) | |||
|
453 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
454 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush) | |||
|
455 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
456 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
457 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush) | |||
|
458 | brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) | |||
|
459 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
460 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush) | |||
|
461 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
462 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
463 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) | |||
|
464 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
465 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
466 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush) | |||
|
467 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
468 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
469 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) | |||
|
470 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
471 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
472 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) | |||
|
473 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
474 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
475 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) | |||
|
476 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
477 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
478 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush) | |||
|
479 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
480 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
481 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush) | |||
|
482 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) | |||
|
483 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
484 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush) | |||
|
485 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
486 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
487 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush) | |||
|
488 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
489 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
490 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) | |||
|
491 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
492 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
493 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) | |||
|
494 | brush = QtGui.QBrush(QtGui.QColor(161, 161, 161)) | |||
|
495 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
496 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush) | |||
|
497 | brush = QtGui.QBrush(QtGui.QColor(134, 134, 134)) | |||
|
498 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
499 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush) | |||
|
500 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
501 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
502 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush) | |||
|
503 | brush = QtGui.QBrush(QtGui.QColor(71, 71, 71)) | |||
|
504 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
505 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush) | |||
|
506 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
507 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
508 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) | |||
|
509 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
510 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
511 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush) | |||
|
512 | brush = QtGui.QBrush(QtGui.QColor(53, 53, 53)) | |||
|
513 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
514 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) | |||
|
515 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
516 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
517 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) | |||
|
518 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
519 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
520 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) | |||
|
521 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
522 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
523 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush) | |||
|
524 | brush = QtGui.QBrush(QtGui.QColor(107, 107, 107)) | |||
|
525 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
526 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush) | |||
|
527 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) | |||
|
528 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
529 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush) | |||
|
530 | brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) | |||
|
531 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
532 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush) | |||
|
533 | self.finaltimeLcd.setPalette(palette) | |||
|
534 | self.finaltimeLcd.setObjectName(_fromUtf8("finaltimeLcd")) | |||
|
535 | self.dataOkBtn = QtGui.QPushButton(self.tab_5) | |||
|
536 | self.dataOkBtn.setGeometry(QtCore.QRect(80, 300, 61, 21)) | |||
|
537 | self.dataOkBtn.setObjectName(_fromUtf8("dataOkBtn")) | |||
|
538 | self.dataCancelBtn = QtGui.QPushButton(self.tab_5) | |||
|
539 | self.dataCancelBtn.setGeometry(QtCore.QRect(160, 300, 61, 21)) | |||
|
540 | self.dataCancelBtn.setObjectName(_fromUtf8("dataCancelBtn")) | |||
|
541 | self.tabWidget.addTab(self.tab_5, _fromUtf8("")) | |||
|
542 | self.tab_7 = QtGui.QWidget() | |||
|
543 | self.tab_7.setObjectName(_fromUtf8("tab_7")) | |||
|
544 | self.gridLayout_10 = QtGui.QGridLayout(self.tab_7) | |||
|
545 | self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10")) | |||
|
546 | self.tabWidget_3 = QtGui.QTabWidget(self.tab_7) | |||
|
547 | self.tabWidget_3.setObjectName(_fromUtf8("tabWidget_3")) | |||
|
548 | self.tab_3 = QtGui.QWidget() | |||
|
549 | self.tab_3.setObjectName(_fromUtf8("tab_3")) | |||
|
550 | self.frame_13 = QtGui.QFrame(self.tab_3) | |||
|
551 | self.frame_13.setGeometry(QtCore.QRect(10, 20, 231, 191)) | |||
|
552 | self.frame_13.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
553 | self.frame_13.setFrameShadow(QtGui.QFrame.Plain) | |||
|
554 | self.frame_13.setObjectName(_fromUtf8("frame_13")) | |||
|
555 | self.removeDCCEB = QtGui.QCheckBox(self.frame_13) | |||
|
556 | self.removeDCCEB.setGeometry(QtCore.QRect(10, 30, 91, 17)) | |||
|
557 | font = QtGui.QFont() | |||
|
558 | font.setPointSize(10) | |||
|
559 | self.removeDCCEB.setFont(font) | |||
|
560 | self.removeDCCEB.setObjectName(_fromUtf8("removeDCCEB")) | |||
|
561 | self.coherentIntegrationCEB = QtGui.QCheckBox(self.frame_13) | |||
|
562 | self.coherentIntegrationCEB.setGeometry(QtCore.QRect(10, 110, 141, 17)) | |||
|
563 | font = QtGui.QFont() | |||
|
564 | font.setPointSize(10) | |||
|
565 | self.coherentIntegrationCEB.setFont(font) | |||
|
566 | self.coherentIntegrationCEB.setObjectName(_fromUtf8("coherentIntegrationCEB")) | |||
|
567 | self.removeDCcob = QtGui.QComboBox(self.frame_13) | |||
|
568 | self.removeDCcob.setGeometry(QtCore.QRect(150, 30, 71, 20)) | |||
|
569 | self.removeDCcob.setObjectName(_fromUtf8("removeDCcob")) | |||
|
570 | self.numberIntegration = QtGui.QLineEdit(self.frame_13) | |||
|
571 | self.numberIntegration.setGeometry(QtCore.QRect(150, 110, 71, 20)) | |||
|
572 | self.numberIntegration.setObjectName(_fromUtf8("numberIntegration")) | |||
|
573 | self.decodeCEB = QtGui.QCheckBox(self.frame_13) | |||
|
574 | self.decodeCEB.setGeometry(QtCore.QRect(10, 70, 101, 17)) | |||
|
575 | font = QtGui.QFont() | |||
|
576 | font.setPointSize(10) | |||
|
577 | self.decodeCEB.setFont(font) | |||
|
578 | self.decodeCEB.setObjectName(_fromUtf8("decodeCEB")) | |||
|
579 | self.decodeCcob = QtGui.QComboBox(self.frame_13) | |||
|
580 | self.decodeCcob.setGeometry(QtCore.QRect(150, 70, 71, 20)) | |||
|
581 | self.decodeCcob.setObjectName(_fromUtf8("decodeCcob")) | |||
|
582 | self.frame_14 = QtGui.QFrame(self.tab_3) | |||
|
583 | self.frame_14.setGeometry(QtCore.QRect(10, 230, 231, 41)) | |||
|
584 | self.frame_14.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
585 | self.frame_14.setFrameShadow(QtGui.QFrame.Plain) | |||
|
586 | self.frame_14.setObjectName(_fromUtf8("frame_14")) | |||
|
587 | self.dataopVolOkBtn = QtGui.QPushButton(self.frame_14) | |||
|
588 | self.dataopVolOkBtn.setGeometry(QtCore.QRect(30, 10, 71, 21)) | |||
|
589 | self.dataopVolOkBtn.setObjectName(_fromUtf8("dataopVolOkBtn")) | |||
|
590 | self.dataopVolCancelBtn = QtGui.QPushButton(self.frame_14) | |||
|
591 | self.dataopVolCancelBtn.setGeometry(QtCore.QRect(130, 10, 71, 21)) | |||
|
592 | self.dataopVolCancelBtn.setObjectName(_fromUtf8("dataopVolCancelBtn")) | |||
|
593 | self.tabWidget_3.addTab(self.tab_3, _fromUtf8("")) | |||
|
594 | self.tab_2 = QtGui.QWidget() | |||
|
595 | self.tab_2.setObjectName(_fromUtf8("tab_2")) | |||
|
596 | self.frame_17 = QtGui.QFrame(self.tab_2) | |||
|
597 | self.frame_17.setGeometry(QtCore.QRect(10, 120, 231, 61)) | |||
|
598 | self.frame_17.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
599 | self.frame_17.setFrameShadow(QtGui.QFrame.Plain) | |||
|
600 | self.frame_17.setObjectName(_fromUtf8("frame_17")) | |||
|
601 | self.datalabelGraphicsVol = QtGui.QLabel(self.frame_17) | |||
|
602 | self.datalabelGraphicsVol.setGeometry(QtCore.QRect(10, 10, 66, 21)) | |||
|
603 | font = QtGui.QFont() | |||
|
604 | font.setPointSize(10) | |||
|
605 | self.datalabelGraphicsVol.setFont(font) | |||
|
606 | self.datalabelGraphicsVol.setObjectName(_fromUtf8("datalabelGraphicsVol")) | |||
|
607 | self.dataPotlabelGraphicsVol = QtGui.QLabel(self.frame_17) | |||
|
608 | self.dataPotlabelGraphicsVol.setGeometry(QtCore.QRect(10, 30, 66, 21)) | |||
|
609 | font = QtGui.QFont() | |||
|
610 | font.setPointSize(10) | |||
|
611 | self.dataPotlabelGraphicsVol.setFont(font) | |||
|
612 | self.dataPotlabelGraphicsVol.setObjectName(_fromUtf8("dataPotlabelGraphicsVol")) | |||
|
613 | self.showdataGraphicsVol = QtGui.QCheckBox(self.frame_17) | |||
|
614 | self.showdataGraphicsVol.setGeometry(QtCore.QRect(140, 10, 31, 26)) | |||
|
615 | self.showdataGraphicsVol.setText(_fromUtf8("")) | |||
|
616 | self.showdataGraphicsVol.setObjectName(_fromUtf8("showdataGraphicsVol")) | |||
|
617 | self.savedataCEBGraphicsVol = QtGui.QCheckBox(self.frame_17) | |||
|
618 | self.savedataCEBGraphicsVol.setGeometry(QtCore.QRect(190, 10, 31, 26)) | |||
|
619 | self.savedataCEBGraphicsVol.setText(_fromUtf8("")) | |||
|
620 | self.savedataCEBGraphicsVol.setObjectName(_fromUtf8("savedataCEBGraphicsVol")) | |||
|
621 | self.showPotCEBGraphicsVol = QtGui.QCheckBox(self.frame_17) | |||
|
622 | self.showPotCEBGraphicsVol.setGeometry(QtCore.QRect(140, 30, 31, 26)) | |||
|
623 | self.showPotCEBGraphicsVol.setText(_fromUtf8("")) | |||
|
624 | self.showPotCEBGraphicsVol.setObjectName(_fromUtf8("showPotCEBGraphicsVol")) | |||
|
625 | self.checkBox_18 = QtGui.QCheckBox(self.frame_17) | |||
|
626 | self.checkBox_18.setGeometry(QtCore.QRect(190, 30, 31, 26)) | |||
|
627 | self.checkBox_18.setText(_fromUtf8("")) | |||
|
628 | self.checkBox_18.setObjectName(_fromUtf8("checkBox_18")) | |||
|
629 | self.frame_16 = QtGui.QFrame(self.tab_2) | |||
|
630 | self.frame_16.setGeometry(QtCore.QRect(10, 10, 231, 71)) | |||
|
631 | self.frame_16.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
632 | self.frame_16.setFrameShadow(QtGui.QFrame.Plain) | |||
|
633 | self.frame_16.setObjectName(_fromUtf8("frame_16")) | |||
|
634 | self.dataPathlabelGraphicsVol = QtGui.QLabel(self.frame_16) | |||
|
635 | self.dataPathlabelGraphicsVol.setGeometry(QtCore.QRect(10, 10, 66, 16)) | |||
|
636 | font = QtGui.QFont() | |||
|
637 | font.setPointSize(10) | |||
|
638 | self.dataPathlabelGraphicsVol.setFont(font) | |||
|
639 | self.dataPathlabelGraphicsVol.setObjectName(_fromUtf8("dataPathlabelGraphicsVol")) | |||
|
640 | self.dataPrefixlabelGraphicsVol = QtGui.QLabel(self.frame_16) | |||
|
641 | self.dataPrefixlabelGraphicsVol.setGeometry(QtCore.QRect(10, 40, 41, 16)) | |||
|
642 | font = QtGui.QFont() | |||
|
643 | font.setPointSize(10) | |||
|
644 | self.dataPrefixlabelGraphicsVol.setFont(font) | |||
|
645 | self.dataPrefixlabelGraphicsVol.setObjectName(_fromUtf8("dataPrefixlabelGraphicsVol")) | |||
|
646 | self.dataPathtxtGraphicsVol = QtGui.QLineEdit(self.frame_16) | |||
|
647 | self.dataPathtxtGraphicsVol.setGeometry(QtCore.QRect(50, 10, 141, 21)) | |||
|
648 | self.dataPathtxtGraphicsVol.setObjectName(_fromUtf8("dataPathtxtGraphicsVol")) | |||
|
649 | self.dataGraphicsVolPathBrowse = QtGui.QToolButton(self.frame_16) | |||
|
650 | self.dataGraphicsVolPathBrowse.setGeometry(QtCore.QRect(200, 10, 21, 21)) | |||
|
651 | self.dataGraphicsVolPathBrowse.setObjectName(_fromUtf8("dataGraphicsVolPathBrowse")) | |||
|
652 | self.dataPrefixtxtGraphicsVol = QtGui.QLineEdit(self.frame_16) | |||
|
653 | self.dataPrefixtxtGraphicsVol.setGeometry(QtCore.QRect(50, 40, 171, 21)) | |||
|
654 | self.dataPrefixtxtGraphicsVol.setObjectName(_fromUtf8("dataPrefixtxtGraphicsVol")) | |||
|
655 | self.frame_18 = QtGui.QFrame(self.tab_2) | |||
|
656 | self.frame_18.setGeometry(QtCore.QRect(10, 90, 231, 21)) | |||
|
657 | self.frame_18.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
658 | self.frame_18.setFrameShadow(QtGui.QFrame.Plain) | |||
|
659 | self.frame_18.setObjectName(_fromUtf8("frame_18")) | |||
|
660 | self.label_6 = QtGui.QLabel(self.frame_18) | |||
|
661 | self.label_6.setGeometry(QtCore.QRect(10, 0, 31, 16)) | |||
|
662 | font = QtGui.QFont() | |||
|
663 | font.setPointSize(10) | |||
|
664 | self.label_6.setFont(font) | |||
|
665 | self.label_6.setObjectName(_fromUtf8("label_6")) | |||
|
666 | self.label_7 = QtGui.QLabel(self.frame_18) | |||
|
667 | self.label_7.setGeometry(QtCore.QRect(130, 0, 41, 16)) | |||
|
668 | font = QtGui.QFont() | |||
|
669 | font.setPointSize(10) | |||
|
670 | self.label_7.setFont(font) | |||
|
671 | self.label_7.setObjectName(_fromUtf8("label_7")) | |||
|
672 | self.label_8 = QtGui.QLabel(self.frame_18) | |||
|
673 | self.label_8.setGeometry(QtCore.QRect(190, 0, 41, 16)) | |||
|
674 | font = QtGui.QFont() | |||
|
675 | font.setPointSize(10) | |||
|
676 | self.label_8.setFont(font) | |||
|
677 | self.label_8.setObjectName(_fromUtf8("label_8")) | |||
|
678 | self.frame_19 = QtGui.QFrame(self.tab_2) | |||
|
679 | self.frame_19.setGeometry(QtCore.QRect(10, 180, 231, 61)) | |||
|
680 | self.frame_19.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
681 | self.frame_19.setFrameShadow(QtGui.QFrame.Plain) | |||
|
682 | self.frame_19.setObjectName(_fromUtf8("frame_19")) | |||
|
683 | self.label_13 = QtGui.QLabel(self.frame_19) | |||
|
684 | self.label_13.setGeometry(QtCore.QRect(10, 10, 61, 16)) | |||
|
685 | font = QtGui.QFont() | |||
|
686 | font.setPointSize(10) | |||
|
687 | self.label_13.setFont(font) | |||
|
688 | self.label_13.setObjectName(_fromUtf8("label_13")) | |||
|
689 | self.label_14 = QtGui.QLabel(self.frame_19) | |||
|
690 | self.label_14.setGeometry(QtCore.QRect(10, 30, 51, 21)) | |||
|
691 | font = QtGui.QFont() | |||
|
692 | font.setPointSize(10) | |||
|
693 | self.label_14.setFont(font) | |||
|
694 | self.label_14.setObjectName(_fromUtf8("label_14")) | |||
|
695 | self.lineEdit_4 = QtGui.QLineEdit(self.frame_19) | |||
|
696 | self.lineEdit_4.setGeometry(QtCore.QRect(90, 30, 101, 16)) | |||
|
697 | self.lineEdit_4.setObjectName(_fromUtf8("lineEdit_4")) | |||
|
698 | self.toolButton_2 = QtGui.QToolButton(self.frame_19) | |||
|
699 | self.toolButton_2.setGeometry(QtCore.QRect(200, 30, 21, 16)) | |||
|
700 | self.toolButton_2.setObjectName(_fromUtf8("toolButton_2")) | |||
|
701 | self.comboBox_10 = QtGui.QComboBox(self.frame_19) | |||
|
702 | self.comboBox_10.setGeometry(QtCore.QRect(90, 10, 131, 16)) | |||
|
703 | self.comboBox_10.setObjectName(_fromUtf8("comboBox_10")) | |||
|
704 | self.dataOkBtn_3 = QtGui.QPushButton(self.tab_2) | |||
|
705 | self.dataOkBtn_3.setGeometry(QtCore.QRect(60, 250, 71, 21)) | |||
|
706 | self.dataOkBtn_3.setObjectName(_fromUtf8("dataOkBtn_3")) | |||
|
707 | self.dataCancelBtn_3 = QtGui.QPushButton(self.tab_2) | |||
|
708 | self.dataCancelBtn_3.setGeometry(QtCore.QRect(140, 250, 71, 21)) | |||
|
709 | self.dataCancelBtn_3.setObjectName(_fromUtf8("dataCancelBtn_3")) | |||
|
710 | self.tabWidget_3.addTab(self.tab_2, _fromUtf8("")) | |||
|
711 | self.tab_4 = QtGui.QWidget() | |||
|
712 | self.tab_4.setObjectName(_fromUtf8("tab_4")) | |||
|
713 | self.frame_15 = QtGui.QFrame(self.tab_4) | |||
|
714 | self.frame_15.setGeometry(QtCore.QRect(10, 20, 231, 71)) | |||
|
715 | self.frame_15.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
716 | self.frame_15.setFrameShadow(QtGui.QFrame.Plain) | |||
|
717 | self.frame_15.setObjectName(_fromUtf8("frame_15")) | |||
|
718 | self.dataPathlabelOutVol = QtGui.QLabel(self.frame_15) | |||
|
719 | self.dataPathlabelOutVol.setGeometry(QtCore.QRect(20, 10, 31, 16)) | |||
|
720 | self.dataPathlabelOutVol.setObjectName(_fromUtf8("dataPathlabelOutVol")) | |||
|
721 | self.dataPathtxtOutVol = QtGui.QLineEdit(self.frame_15) | |||
|
722 | self.dataPathtxtOutVol.setGeometry(QtCore.QRect(62, 10, 121, 20)) | |||
|
723 | self.dataPathtxtOutVol.setObjectName(_fromUtf8("dataPathtxtOutVol")) | |||
|
724 | self.dataOutVolPathBrowse = QtGui.QToolButton(self.frame_15) | |||
|
725 | self.dataOutVolPathBrowse.setGeometry(QtCore.QRect(190, 10, 25, 19)) | |||
|
726 | self.dataOutVolPathBrowse.setObjectName(_fromUtf8("dataOutVolPathBrowse")) | |||
|
727 | self.dataSufixlabelOutVol = QtGui.QLabel(self.frame_15) | |||
|
728 | self.dataSufixlabelOutVol.setGeometry(QtCore.QRect(20, 40, 41, 16)) | |||
|
729 | self.dataSufixlabelOutVol.setObjectName(_fromUtf8("dataSufixlabelOutVol")) | |||
|
730 | self.dataSufixtxtOutVol = QtGui.QLineEdit(self.frame_15) | |||
|
731 | self.dataSufixtxtOutVol.setGeometry(QtCore.QRect(60, 40, 161, 20)) | |||
|
732 | self.dataSufixtxtOutVol.setObjectName(_fromUtf8("dataSufixtxtOutVol")) | |||
|
733 | self.frame_48 = QtGui.QFrame(self.tab_4) | |||
|
734 | self.frame_48.setGeometry(QtCore.QRect(10, 140, 231, 41)) | |||
|
735 | self.frame_48.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
736 | self.frame_48.setFrameShadow(QtGui.QFrame.Plain) | |||
|
737 | self.frame_48.setObjectName(_fromUtf8("frame_48")) | |||
|
738 | self.dataoutVolOkBtn = QtGui.QPushButton(self.frame_48) | |||
|
739 | self.dataoutVolOkBtn.setGeometry(QtCore.QRect(30, 10, 71, 21)) | |||
|
740 | self.dataoutVolOkBtn.setObjectName(_fromUtf8("dataoutVolOkBtn")) | |||
|
741 | self.dataCancelBtn_13 = QtGui.QPushButton(self.frame_48) | |||
|
742 | self.dataCancelBtn_13.setGeometry(QtCore.QRect(130, 10, 71, 21)) | |||
|
743 | self.dataCancelBtn_13.setObjectName(_fromUtf8("dataCancelBtn_13")) | |||
|
744 | self.tabWidget_3.addTab(self.tab_4, _fromUtf8("")) | |||
|
745 | self.gridLayout_10.addWidget(self.tabWidget_3, 0, 0, 1, 1) | |||
|
746 | self.tabWidget.addTab(self.tab_7, _fromUtf8("")) | |||
|
747 | self.tab_6 = QtGui.QWidget() | |||
|
748 | self.tab_6.setObjectName(_fromUtf8("tab_6")) | |||
|
749 | self.gridLayout_11 = QtGui.QGridLayout(self.tab_6) | |||
|
750 | self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11")) | |||
|
751 | self.tabWidget_4 = QtGui.QTabWidget(self.tab_6) | |||
|
752 | self.tabWidget_4.setObjectName(_fromUtf8("tabWidget_4")) | |||
|
753 | self.tab_8 = QtGui.QWidget() | |||
|
754 | self.tab_8.setObjectName(_fromUtf8("tab_8")) | |||
|
755 | self.frame_34 = QtGui.QFrame(self.tab_8) | |||
|
756 | self.frame_34.setGeometry(QtCore.QRect(20, 20, 231, 191)) | |||
|
757 | self.frame_34.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
758 | self.frame_34.setFrameShadow(QtGui.QFrame.Plain) | |||
|
759 | self.frame_34.setObjectName(_fromUtf8("frame_34")) | |||
|
760 | self.checkBox_49 = QtGui.QCheckBox(self.frame_34) | |||
|
761 | self.checkBox_49.setGeometry(QtCore.QRect(10, 30, 91, 17)) | |||
|
762 | font = QtGui.QFont() | |||
|
763 | font.setPointSize(10) | |||
|
764 | self.checkBox_49.setFont(font) | |||
|
765 | self.checkBox_49.setObjectName(_fromUtf8("checkBox_49")) | |||
|
766 | self.checkBox_50 = QtGui.QCheckBox(self.frame_34) | |||
|
767 | self.checkBox_50.setGeometry(QtCore.QRect(10, 70, 141, 17)) | |||
|
768 | font = QtGui.QFont() | |||
|
769 | font.setPointSize(10) | |||
|
770 | self.checkBox_50.setFont(font) | |||
|
771 | self.checkBox_50.setObjectName(_fromUtf8("checkBox_50")) | |||
|
772 | self.checkBox_51 = QtGui.QCheckBox(self.frame_34) | |||
|
773 | self.checkBox_51.setGeometry(QtCore.QRect(10, 110, 161, 17)) | |||
|
774 | font = QtGui.QFont() | |||
|
775 | font.setPointSize(10) | |||
|
776 | self.checkBox_51.setFont(font) | |||
|
777 | self.checkBox_51.setObjectName(_fromUtf8("checkBox_51")) | |||
|
778 | self.checkBox_52 = QtGui.QCheckBox(self.frame_34) | |||
|
779 | self.checkBox_52.setGeometry(QtCore.QRect(10, 160, 141, 17)) | |||
|
780 | font = QtGui.QFont() | |||
|
781 | font.setPointSize(10) | |||
|
782 | self.checkBox_52.setFont(font) | |||
|
783 | self.checkBox_52.setObjectName(_fromUtf8("checkBox_52")) | |||
|
784 | self.comboBox_21 = QtGui.QComboBox(self.frame_34) | |||
|
785 | self.comboBox_21.setGeometry(QtCore.QRect(150, 30, 71, 20)) | |||
|
786 | self.comboBox_21.setObjectName(_fromUtf8("comboBox_21")) | |||
|
787 | self.comboBox_22 = QtGui.QComboBox(self.frame_34) | |||
|
788 | self.comboBox_22.setGeometry(QtCore.QRect(150, 70, 71, 20)) | |||
|
789 | self.comboBox_22.setObjectName(_fromUtf8("comboBox_22")) | |||
|
790 | self.comboBox_23 = QtGui.QComboBox(self.frame_34) | |||
|
791 | self.comboBox_23.setGeometry(QtCore.QRect(150, 130, 71, 20)) | |||
|
792 | self.comboBox_23.setObjectName(_fromUtf8("comboBox_23")) | |||
|
793 | self.lineEdit_33 = QtGui.QLineEdit(self.frame_34) | |||
|
794 | self.lineEdit_33.setGeometry(QtCore.QRect(150, 160, 71, 20)) | |||
|
795 | self.lineEdit_33.setObjectName(_fromUtf8("lineEdit_33")) | |||
|
796 | self.frame_35 = QtGui.QFrame(self.tab_8) | |||
|
797 | self.frame_35.setGeometry(QtCore.QRect(10, 220, 231, 41)) | |||
|
798 | self.frame_35.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
799 | self.frame_35.setFrameShadow(QtGui.QFrame.Plain) | |||
|
800 | self.frame_35.setObjectName(_fromUtf8("frame_35")) | |||
|
801 | self.dataOkBtn_9 = QtGui.QPushButton(self.frame_35) | |||
|
802 | self.dataOkBtn_9.setGeometry(QtCore.QRect(30, 10, 71, 21)) | |||
|
803 | self.dataOkBtn_9.setObjectName(_fromUtf8("dataOkBtn_9")) | |||
|
804 | self.dataCancelBtn_9 = QtGui.QPushButton(self.frame_35) | |||
|
805 | self.dataCancelBtn_9.setGeometry(QtCore.QRect(130, 10, 71, 21)) | |||
|
806 | self.dataCancelBtn_9.setObjectName(_fromUtf8("dataCancelBtn_9")) | |||
|
807 | self.tabWidget_4.addTab(self.tab_8, _fromUtf8("")) | |||
|
808 | self.tab_10 = QtGui.QWidget() | |||
|
809 | self.tab_10.setObjectName(_fromUtf8("tab_10")) | |||
|
810 | self.dataCancelBtn_11 = QtGui.QPushButton(self.tab_10) | |||
|
811 | self.dataCancelBtn_11.setGeometry(QtCore.QRect(140, 270, 71, 21)) | |||
|
812 | self.dataCancelBtn_11.setObjectName(_fromUtf8("dataCancelBtn_11")) | |||
|
813 | self.frame_39 = QtGui.QFrame(self.tab_10) | |||
|
814 | self.frame_39.setGeometry(QtCore.QRect(10, 90, 231, 21)) | |||
|
815 | self.frame_39.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
816 | self.frame_39.setFrameShadow(QtGui.QFrame.Plain) | |||
|
817 | self.frame_39.setObjectName(_fromUtf8("frame_39")) | |||
|
818 | self.label_80 = QtGui.QLabel(self.frame_39) | |||
|
819 | self.label_80.setGeometry(QtCore.QRect(10, 0, 31, 16)) | |||
|
820 | font = QtGui.QFont() | |||
|
821 | font.setPointSize(10) | |||
|
822 | self.label_80.setFont(font) | |||
|
823 | self.label_80.setObjectName(_fromUtf8("label_80")) | |||
|
824 | self.label_81 = QtGui.QLabel(self.frame_39) | |||
|
825 | self.label_81.setGeometry(QtCore.QRect(130, 0, 41, 16)) | |||
|
826 | font = QtGui.QFont() | |||
|
827 | font.setPointSize(10) | |||
|
828 | self.label_81.setFont(font) | |||
|
829 | self.label_81.setObjectName(_fromUtf8("label_81")) | |||
|
830 | self.label_82 = QtGui.QLabel(self.frame_39) | |||
|
831 | self.label_82.setGeometry(QtCore.QRect(190, 0, 41, 16)) | |||
|
832 | font = QtGui.QFont() | |||
|
833 | font.setPointSize(10) | |||
|
834 | self.label_82.setFont(font) | |||
|
835 | self.label_82.setObjectName(_fromUtf8("label_82")) | |||
|
836 | self.frame_40 = QtGui.QFrame(self.tab_10) | |||
|
837 | self.frame_40.setGeometry(QtCore.QRect(10, 120, 231, 101)) | |||
|
838 | self.frame_40.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
839 | self.frame_40.setFrameShadow(QtGui.QFrame.Plain) | |||
|
840 | self.frame_40.setObjectName(_fromUtf8("frame_40")) | |||
|
841 | self.label_83 = QtGui.QLabel(self.frame_40) | |||
|
842 | self.label_83.setGeometry(QtCore.QRect(10, 0, 66, 16)) | |||
|
843 | font = QtGui.QFont() | |||
|
844 | font.setPointSize(10) | |||
|
845 | self.label_83.setFont(font) | |||
|
846 | self.label_83.setObjectName(_fromUtf8("label_83")) | |||
|
847 | self.label_84 = QtGui.QLabel(self.frame_40) | |||
|
848 | self.label_84.setGeometry(QtCore.QRect(10, 20, 111, 21)) | |||
|
849 | self.label_84.setObjectName(_fromUtf8("label_84")) | |||
|
850 | self.label_85 = QtGui.QLabel(self.frame_40) | |||
|
851 | self.label_85.setGeometry(QtCore.QRect(10, 40, 91, 16)) | |||
|
852 | self.label_85.setObjectName(_fromUtf8("label_85")) | |||
|
853 | self.label_86 = QtGui.QLabel(self.frame_40) | |||
|
854 | self.label_86.setGeometry(QtCore.QRect(10, 60, 66, 21)) | |||
|
855 | self.label_86.setObjectName(_fromUtf8("label_86")) | |||
|
856 | self.checkBox_57 = QtGui.QCheckBox(self.frame_40) | |||
|
857 | self.checkBox_57.setGeometry(QtCore.QRect(150, 0, 31, 26)) | |||
|
858 | self.checkBox_57.setText(_fromUtf8("")) | |||
|
859 | self.checkBox_57.setObjectName(_fromUtf8("checkBox_57")) | |||
|
860 | self.checkBox_58 = QtGui.QCheckBox(self.frame_40) | |||
|
861 | self.checkBox_58.setGeometry(QtCore.QRect(190, 0, 31, 26)) | |||
|
862 | self.checkBox_58.setText(_fromUtf8("")) | |||
|
863 | self.checkBox_58.setObjectName(_fromUtf8("checkBox_58")) | |||
|
864 | self.checkBox_59 = QtGui.QCheckBox(self.frame_40) | |||
|
865 | self.checkBox_59.setGeometry(QtCore.QRect(150, 20, 31, 26)) | |||
|
866 | self.checkBox_59.setText(_fromUtf8("")) | |||
|
867 | self.checkBox_59.setObjectName(_fromUtf8("checkBox_59")) | |||
|
868 | self.checkBox_60 = QtGui.QCheckBox(self.frame_40) | |||
|
869 | self.checkBox_60.setGeometry(QtCore.QRect(190, 20, 31, 26)) | |||
|
870 | self.checkBox_60.setText(_fromUtf8("")) | |||
|
871 | self.checkBox_60.setObjectName(_fromUtf8("checkBox_60")) | |||
|
872 | self.checkBox_61 = QtGui.QCheckBox(self.frame_40) | |||
|
873 | self.checkBox_61.setGeometry(QtCore.QRect(150, 40, 31, 21)) | |||
|
874 | self.checkBox_61.setText(_fromUtf8("")) | |||
|
875 | self.checkBox_61.setObjectName(_fromUtf8("checkBox_61")) | |||
|
876 | self.checkBox_62 = QtGui.QCheckBox(self.frame_40) | |||
|
877 | self.checkBox_62.setGeometry(QtCore.QRect(190, 40, 31, 26)) | |||
|
878 | self.checkBox_62.setText(_fromUtf8("")) | |||
|
879 | self.checkBox_62.setObjectName(_fromUtf8("checkBox_62")) | |||
|
880 | self.checkBox_63 = QtGui.QCheckBox(self.frame_40) | |||
|
881 | self.checkBox_63.setGeometry(QtCore.QRect(150, 60, 20, 26)) | |||
|
882 | self.checkBox_63.setText(_fromUtf8("")) | |||
|
883 | self.checkBox_63.setObjectName(_fromUtf8("checkBox_63")) | |||
|
884 | self.label_100 = QtGui.QLabel(self.frame_40) | |||
|
885 | self.label_100.setGeometry(QtCore.QRect(10, 80, 66, 21)) | |||
|
886 | self.label_100.setObjectName(_fromUtf8("label_100")) | |||
|
887 | self.checkBox_64 = QtGui.QCheckBox(self.frame_40) | |||
|
888 | self.checkBox_64.setGeometry(QtCore.QRect(190, 60, 31, 26)) | |||
|
889 | self.checkBox_64.setText(_fromUtf8("")) | |||
|
890 | self.checkBox_64.setObjectName(_fromUtf8("checkBox_64")) | |||
|
891 | self.checkBox_73 = QtGui.QCheckBox(self.frame_40) | |||
|
892 | self.checkBox_73.setGeometry(QtCore.QRect(150, 80, 20, 26)) | |||
|
893 | self.checkBox_73.setText(_fromUtf8("")) | |||
|
894 | self.checkBox_73.setObjectName(_fromUtf8("checkBox_73")) | |||
|
895 | self.checkBox_74 = QtGui.QCheckBox(self.frame_40) | |||
|
896 | self.checkBox_74.setGeometry(QtCore.QRect(190, 80, 20, 26)) | |||
|
897 | self.checkBox_74.setText(_fromUtf8("")) | |||
|
898 | self.checkBox_74.setObjectName(_fromUtf8("checkBox_74")) | |||
|
899 | self.dataOkBtn_11 = QtGui.QPushButton(self.tab_10) | |||
|
900 | self.dataOkBtn_11.setGeometry(QtCore.QRect(60, 270, 71, 21)) | |||
|
901 | self.dataOkBtn_11.setObjectName(_fromUtf8("dataOkBtn_11")) | |||
|
902 | self.frame_38 = QtGui.QFrame(self.tab_10) | |||
|
903 | self.frame_38.setGeometry(QtCore.QRect(10, 10, 231, 71)) | |||
|
904 | self.frame_38.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
905 | self.frame_38.setFrameShadow(QtGui.QFrame.Plain) | |||
|
906 | self.frame_38.setObjectName(_fromUtf8("frame_38")) | |||
|
907 | self.label_78 = QtGui.QLabel(self.frame_38) | |||
|
908 | self.label_78.setGeometry(QtCore.QRect(10, 10, 66, 16)) | |||
|
909 | font = QtGui.QFont() | |||
|
910 | font.setPointSize(10) | |||
|
911 | self.label_78.setFont(font) | |||
|
912 | self.label_78.setObjectName(_fromUtf8("label_78")) | |||
|
913 | self.label_79 = QtGui.QLabel(self.frame_38) | |||
|
914 | self.label_79.setGeometry(QtCore.QRect(10, 40, 41, 16)) | |||
|
915 | font = QtGui.QFont() | |||
|
916 | font.setPointSize(10) | |||
|
917 | self.label_79.setFont(font) | |||
|
918 | self.label_79.setObjectName(_fromUtf8("label_79")) | |||
|
919 | self.lineEdit_35 = QtGui.QLineEdit(self.frame_38) | |||
|
920 | self.lineEdit_35.setGeometry(QtCore.QRect(50, 10, 141, 21)) | |||
|
921 | self.lineEdit_35.setObjectName(_fromUtf8("lineEdit_35")) | |||
|
922 | self.toolButton_17 = QtGui.QToolButton(self.frame_38) | |||
|
923 | self.toolButton_17.setGeometry(QtCore.QRect(200, 10, 21, 21)) | |||
|
924 | self.toolButton_17.setObjectName(_fromUtf8("toolButton_17")) | |||
|
925 | self.lineEdit_36 = QtGui.QLineEdit(self.frame_38) | |||
|
926 | self.lineEdit_36.setGeometry(QtCore.QRect(50, 40, 171, 21)) | |||
|
927 | self.lineEdit_36.setObjectName(_fromUtf8("lineEdit_36")) | |||
|
928 | self.frame_41 = QtGui.QFrame(self.tab_10) | |||
|
929 | self.frame_41.setGeometry(QtCore.QRect(10, 220, 231, 51)) | |||
|
930 | self.frame_41.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
931 | self.frame_41.setFrameShadow(QtGui.QFrame.Plain) | |||
|
932 | self.frame_41.setObjectName(_fromUtf8("frame_41")) | |||
|
933 | self.label_87 = QtGui.QLabel(self.frame_41) | |||
|
934 | self.label_87.setGeometry(QtCore.QRect(10, 10, 61, 16)) | |||
|
935 | font = QtGui.QFont() | |||
|
936 | font.setPointSize(10) | |||
|
937 | self.label_87.setFont(font) | |||
|
938 | self.label_87.setObjectName(_fromUtf8("label_87")) | |||
|
939 | self.label_88 = QtGui.QLabel(self.frame_41) | |||
|
940 | self.label_88.setGeometry(QtCore.QRect(10, 30, 51, 21)) | |||
|
941 | font = QtGui.QFont() | |||
|
942 | font.setPointSize(10) | |||
|
943 | self.label_88.setFont(font) | |||
|
944 | self.label_88.setObjectName(_fromUtf8("label_88")) | |||
|
945 | self.lineEdit_37 = QtGui.QLineEdit(self.frame_41) | |||
|
946 | self.lineEdit_37.setGeometry(QtCore.QRect(90, 30, 101, 16)) | |||
|
947 | self.lineEdit_37.setObjectName(_fromUtf8("lineEdit_37")) | |||
|
948 | self.toolButton_18 = QtGui.QToolButton(self.frame_41) | |||
|
949 | self.toolButton_18.setGeometry(QtCore.QRect(200, 30, 21, 16)) | |||
|
950 | self.toolButton_18.setObjectName(_fromUtf8("toolButton_18")) | |||
|
951 | self.comboBox_27 = QtGui.QComboBox(self.frame_41) | |||
|
952 | self.comboBox_27.setGeometry(QtCore.QRect(90, 10, 131, 16)) | |||
|
953 | self.comboBox_27.setObjectName(_fromUtf8("comboBox_27")) | |||
|
954 | self.tabWidget_4.addTab(self.tab_10, _fromUtf8("")) | |||
|
955 | self.tab_11 = QtGui.QWidget() | |||
|
956 | self.tab_11.setObjectName(_fromUtf8("tab_11")) | |||
|
957 | self.label_22 = QtGui.QLabel(self.tab_11) | |||
|
958 | self.label_22.setGeometry(QtCore.QRect(140, 100, 58, 16)) | |||
|
959 | self.label_22.setObjectName(_fromUtf8("label_22")) | |||
|
960 | self.frame_47 = QtGui.QFrame(self.tab_11) | |||
|
961 | self.frame_47.setGeometry(QtCore.QRect(10, 20, 231, 71)) | |||
|
962 | self.frame_47.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
963 | self.frame_47.setFrameShadow(QtGui.QFrame.Plain) | |||
|
964 | self.frame_47.setObjectName(_fromUtf8("frame_47")) | |||
|
965 | self.label_20 = QtGui.QLabel(self.frame_47) | |||
|
966 | self.label_20.setGeometry(QtCore.QRect(20, 10, 22, 16)) | |||
|
967 | self.label_20.setObjectName(_fromUtf8("label_20")) | |||
|
968 | self.lineEdit_11 = QtGui.QLineEdit(self.frame_47) | |||
|
969 | self.lineEdit_11.setGeometry(QtCore.QRect(50, 10, 133, 20)) | |||
|
970 | self.lineEdit_11.setObjectName(_fromUtf8("lineEdit_11")) | |||
|
971 | self.toolButton_5 = QtGui.QToolButton(self.frame_47) | |||
|
972 | self.toolButton_5.setGeometry(QtCore.QRect(190, 10, 25, 19)) | |||
|
973 | self.toolButton_5.setObjectName(_fromUtf8("toolButton_5")) | |||
|
974 | self.label_21 = QtGui.QLabel(self.frame_47) | |||
|
975 | self.label_21.setGeometry(QtCore.QRect(20, 40, 24, 16)) | |||
|
976 | self.label_21.setObjectName(_fromUtf8("label_21")) | |||
|
977 | self.lineEdit_12 = QtGui.QLineEdit(self.frame_47) | |||
|
978 | self.lineEdit_12.setGeometry(QtCore.QRect(50, 40, 171, 20)) | |||
|
979 | self.lineEdit_12.setObjectName(_fromUtf8("lineEdit_12")) | |||
|
980 | self.frame_49 = QtGui.QFrame(self.tab_11) | |||
|
981 | self.frame_49.setGeometry(QtCore.QRect(10, 130, 231, 41)) | |||
|
982 | self.frame_49.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
983 | self.frame_49.setFrameShadow(QtGui.QFrame.Plain) | |||
|
984 | self.frame_49.setObjectName(_fromUtf8("frame_49")) | |||
|
985 | self.dataOkBtn_14 = QtGui.QPushButton(self.frame_49) | |||
|
986 | self.dataOkBtn_14.setGeometry(QtCore.QRect(30, 10, 71, 21)) | |||
|
987 | self.dataOkBtn_14.setObjectName(_fromUtf8("dataOkBtn_14")) | |||
|
988 | self.dataCancelBtn_14 = QtGui.QPushButton(self.frame_49) | |||
|
989 | self.dataCancelBtn_14.setGeometry(QtCore.QRect(130, 10, 71, 21)) | |||
|
990 | self.dataCancelBtn_14.setObjectName(_fromUtf8("dataCancelBtn_14")) | |||
|
991 | self.tabWidget_4.addTab(self.tab_11, _fromUtf8("")) | |||
|
992 | self.gridLayout_11.addWidget(self.tabWidget_4, 0, 0, 1, 1) | |||
|
993 | self.tabWidget.addTab(self.tab_6, _fromUtf8("")) | |||
|
994 | self.tab_9 = QtGui.QWidget() | |||
|
995 | self.tab_9.setObjectName(_fromUtf8("tab_9")) | |||
|
996 | self.gridLayout_12 = QtGui.QGridLayout(self.tab_9) | |||
|
997 | self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12")) | |||
|
998 | self.tabWidget_5 = QtGui.QTabWidget(self.tab_9) | |||
|
999 | self.tabWidget_5.setObjectName(_fromUtf8("tabWidget_5")) | |||
|
1000 | self.tab_12 = QtGui.QWidget() | |||
|
1001 | self.tab_12.setObjectName(_fromUtf8("tab_12")) | |||
|
1002 | self.frame_37 = QtGui.QFrame(self.tab_12) | |||
|
1003 | self.frame_37.setGeometry(QtCore.QRect(0, 10, 231, 191)) | |||
|
1004 | self.frame_37.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
1005 | self.frame_37.setFrameShadow(QtGui.QFrame.Plain) | |||
|
1006 | self.frame_37.setObjectName(_fromUtf8("frame_37")) | |||
|
1007 | self.checkBox_53 = QtGui.QCheckBox(self.frame_37) | |||
|
1008 | self.checkBox_53.setGeometry(QtCore.QRect(10, 30, 91, 17)) | |||
|
1009 | font = QtGui.QFont() | |||
|
1010 | font.setPointSize(10) | |||
|
1011 | self.checkBox_53.setFont(font) | |||
|
1012 | self.checkBox_53.setObjectName(_fromUtf8("checkBox_53")) | |||
|
1013 | self.comboBox_24 = QtGui.QComboBox(self.frame_37) | |||
|
1014 | self.comboBox_24.setGeometry(QtCore.QRect(150, 30, 71, 20)) | |||
|
1015 | self.comboBox_24.setObjectName(_fromUtf8("comboBox_24")) | |||
|
1016 | self.frame_36 = QtGui.QFrame(self.tab_12) | |||
|
1017 | self.frame_36.setGeometry(QtCore.QRect(10, 230, 231, 41)) | |||
|
1018 | self.frame_36.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
1019 | self.frame_36.setFrameShadow(QtGui.QFrame.Plain) | |||
|
1020 | self.frame_36.setObjectName(_fromUtf8("frame_36")) | |||
|
1021 | self.dataOkBtn_10 = QtGui.QPushButton(self.frame_36) | |||
|
1022 | self.dataOkBtn_10.setGeometry(QtCore.QRect(30, 10, 71, 21)) | |||
|
1023 | self.dataOkBtn_10.setObjectName(_fromUtf8("dataOkBtn_10")) | |||
|
1024 | self.dataCancelBtn_10 = QtGui.QPushButton(self.frame_36) | |||
|
1025 | self.dataCancelBtn_10.setGeometry(QtCore.QRect(130, 10, 71, 21)) | |||
|
1026 | self.dataCancelBtn_10.setObjectName(_fromUtf8("dataCancelBtn_10")) | |||
|
1027 | self.tabWidget_5.addTab(self.tab_12, _fromUtf8("")) | |||
|
1028 | self.tab_13 = QtGui.QWidget() | |||
|
1029 | self.tab_13.setObjectName(_fromUtf8("tab_13")) | |||
|
1030 | self.frame_44 = QtGui.QFrame(self.tab_13) | |||
|
1031 | self.frame_44.setGeometry(QtCore.QRect(10, 90, 231, 21)) | |||
|
1032 | self.frame_44.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
1033 | self.frame_44.setFrameShadow(QtGui.QFrame.Plain) | |||
|
1034 | self.frame_44.setObjectName(_fromUtf8("frame_44")) | |||
|
1035 | self.label_95 = QtGui.QLabel(self.frame_44) | |||
|
1036 | self.label_95.setGeometry(QtCore.QRect(10, 0, 31, 16)) | |||
|
1037 | font = QtGui.QFont() | |||
|
1038 | font.setPointSize(10) | |||
|
1039 | self.label_95.setFont(font) | |||
|
1040 | self.label_95.setObjectName(_fromUtf8("label_95")) | |||
|
1041 | self.label_96 = QtGui.QLabel(self.frame_44) | |||
|
1042 | self.label_96.setGeometry(QtCore.QRect(130, 0, 41, 16)) | |||
|
1043 | font = QtGui.QFont() | |||
|
1044 | font.setPointSize(10) | |||
|
1045 | self.label_96.setFont(font) | |||
|
1046 | self.label_96.setObjectName(_fromUtf8("label_96")) | |||
|
1047 | self.label_97 = QtGui.QLabel(self.frame_44) | |||
|
1048 | self.label_97.setGeometry(QtCore.QRect(190, 0, 41, 16)) | |||
|
1049 | font = QtGui.QFont() | |||
|
1050 | font.setPointSize(10) | |||
|
1051 | self.label_97.setFont(font) | |||
|
1052 | self.label_97.setObjectName(_fromUtf8("label_97")) | |||
|
1053 | self.frame_42 = QtGui.QFrame(self.tab_13) | |||
|
1054 | self.frame_42.setGeometry(QtCore.QRect(10, 210, 231, 51)) | |||
|
1055 | self.frame_42.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
1056 | self.frame_42.setFrameShadow(QtGui.QFrame.Plain) | |||
|
1057 | self.frame_42.setObjectName(_fromUtf8("frame_42")) | |||
|
1058 | self.label_89 = QtGui.QLabel(self.frame_42) | |||
|
1059 | self.label_89.setGeometry(QtCore.QRect(10, 10, 61, 16)) | |||
|
1060 | font = QtGui.QFont() | |||
|
1061 | font.setPointSize(10) | |||
|
1062 | self.label_89.setFont(font) | |||
|
1063 | self.label_89.setObjectName(_fromUtf8("label_89")) | |||
|
1064 | self.label_90 = QtGui.QLabel(self.frame_42) | |||
|
1065 | self.label_90.setGeometry(QtCore.QRect(10, 30, 51, 21)) | |||
|
1066 | font = QtGui.QFont() | |||
|
1067 | font.setPointSize(10) | |||
|
1068 | self.label_90.setFont(font) | |||
|
1069 | self.label_90.setObjectName(_fromUtf8("label_90")) | |||
|
1070 | self.lineEdit_38 = QtGui.QLineEdit(self.frame_42) | |||
|
1071 | self.lineEdit_38.setGeometry(QtCore.QRect(90, 30, 101, 16)) | |||
|
1072 | self.lineEdit_38.setObjectName(_fromUtf8("lineEdit_38")) | |||
|
1073 | self.toolButton_19 = QtGui.QToolButton(self.frame_42) | |||
|
1074 | self.toolButton_19.setGeometry(QtCore.QRect(200, 30, 21, 16)) | |||
|
1075 | self.toolButton_19.setObjectName(_fromUtf8("toolButton_19")) | |||
|
1076 | self.comboBox_28 = QtGui.QComboBox(self.frame_42) | |||
|
1077 | self.comboBox_28.setGeometry(QtCore.QRect(90, 10, 131, 16)) | |||
|
1078 | self.comboBox_28.setObjectName(_fromUtf8("comboBox_28")) | |||
|
1079 | self.frame_45 = QtGui.QFrame(self.tab_13) | |||
|
1080 | self.frame_45.setGeometry(QtCore.QRect(10, 10, 231, 71)) | |||
|
1081 | self.frame_45.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
1082 | self.frame_45.setFrameShadow(QtGui.QFrame.Plain) | |||
|
1083 | self.frame_45.setObjectName(_fromUtf8("frame_45")) | |||
|
1084 | self.label_98 = QtGui.QLabel(self.frame_45) | |||
|
1085 | self.label_98.setGeometry(QtCore.QRect(10, 10, 66, 16)) | |||
|
1086 | font = QtGui.QFont() | |||
|
1087 | font.setPointSize(10) | |||
|
1088 | self.label_98.setFont(font) | |||
|
1089 | self.label_98.setObjectName(_fromUtf8("label_98")) | |||
|
1090 | self.label_99 = QtGui.QLabel(self.frame_45) | |||
|
1091 | self.label_99.setGeometry(QtCore.QRect(10, 40, 41, 16)) | |||
|
1092 | font = QtGui.QFont() | |||
|
1093 | font.setPointSize(10) | |||
|
1094 | self.label_99.setFont(font) | |||
|
1095 | self.label_99.setObjectName(_fromUtf8("label_99")) | |||
|
1096 | self.lineEdit_39 = QtGui.QLineEdit(self.frame_45) | |||
|
1097 | self.lineEdit_39.setGeometry(QtCore.QRect(50, 10, 141, 21)) | |||
|
1098 | self.lineEdit_39.setObjectName(_fromUtf8("lineEdit_39")) | |||
|
1099 | self.toolButton_20 = QtGui.QToolButton(self.frame_45) | |||
|
1100 | self.toolButton_20.setGeometry(QtCore.QRect(200, 10, 21, 21)) | |||
|
1101 | self.toolButton_20.setObjectName(_fromUtf8("toolButton_20")) | |||
|
1102 | self.lineEdit_40 = QtGui.QLineEdit(self.frame_45) | |||
|
1103 | self.lineEdit_40.setGeometry(QtCore.QRect(50, 40, 171, 21)) | |||
|
1104 | self.lineEdit_40.setObjectName(_fromUtf8("lineEdit_40")) | |||
|
1105 | self.frame_43 = QtGui.QFrame(self.tab_13) | |||
|
1106 | self.frame_43.setGeometry(QtCore.QRect(10, 120, 231, 81)) | |||
|
1107 | self.frame_43.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
1108 | self.frame_43.setFrameShadow(QtGui.QFrame.Plain) | |||
|
1109 | self.frame_43.setObjectName(_fromUtf8("frame_43")) | |||
|
1110 | self.label_91 = QtGui.QLabel(self.frame_43) | |||
|
1111 | self.label_91.setGeometry(QtCore.QRect(10, 30, 66, 21)) | |||
|
1112 | font = QtGui.QFont() | |||
|
1113 | font.setPointSize(10) | |||
|
1114 | self.label_91.setFont(font) | |||
|
1115 | self.label_91.setObjectName(_fromUtf8("label_91")) | |||
|
1116 | self.checkBox_67 = QtGui.QCheckBox(self.frame_43) | |||
|
1117 | self.checkBox_67.setGeometry(QtCore.QRect(140, 30, 31, 26)) | |||
|
1118 | self.checkBox_67.setText(_fromUtf8("")) | |||
|
1119 | self.checkBox_67.setObjectName(_fromUtf8("checkBox_67")) | |||
|
1120 | self.checkBox_68 = QtGui.QCheckBox(self.frame_43) | |||
|
1121 | self.checkBox_68.setGeometry(QtCore.QRect(190, 30, 31, 26)) | |||
|
1122 | self.checkBox_68.setText(_fromUtf8("")) | |||
|
1123 | self.checkBox_68.setObjectName(_fromUtf8("checkBox_68")) | |||
|
1124 | self.dataOkBtn_12 = QtGui.QPushButton(self.tab_13) | |||
|
1125 | self.dataOkBtn_12.setGeometry(QtCore.QRect(60, 270, 71, 21)) | |||
|
1126 | self.dataOkBtn_12.setObjectName(_fromUtf8("dataOkBtn_12")) | |||
|
1127 | self.dataCancelBtn_12 = QtGui.QPushButton(self.tab_13) | |||
|
1128 | self.dataCancelBtn_12.setGeometry(QtCore.QRect(140, 270, 71, 21)) | |||
|
1129 | self.dataCancelBtn_12.setObjectName(_fromUtf8("dataCancelBtn_12")) | |||
|
1130 | self.tabWidget_5.addTab(self.tab_13, _fromUtf8("")) | |||
|
1131 | self.tab_14 = QtGui.QWidget() | |||
|
1132 | self.tab_14.setObjectName(_fromUtf8("tab_14")) | |||
|
1133 | self.label_17 = QtGui.QLabel(self.tab_14) | |||
|
1134 | self.label_17.setGeometry(QtCore.QRect(140, 100, 58, 16)) | |||
|
1135 | self.label_17.setObjectName(_fromUtf8("label_17")) | |||
|
1136 | self.frame_46 = QtGui.QFrame(self.tab_14) | |||
|
1137 | self.frame_46.setGeometry(QtCore.QRect(10, 20, 231, 71)) | |||
|
1138 | self.frame_46.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
1139 | self.frame_46.setFrameShadow(QtGui.QFrame.Plain) | |||
|
1140 | self.frame_46.setObjectName(_fromUtf8("frame_46")) | |||
|
1141 | self.label_18 = QtGui.QLabel(self.frame_46) | |||
|
1142 | self.label_18.setGeometry(QtCore.QRect(20, 10, 22, 16)) | |||
|
1143 | self.label_18.setObjectName(_fromUtf8("label_18")) | |||
|
1144 | self.lineEdit_9 = QtGui.QLineEdit(self.frame_46) | |||
|
1145 | self.lineEdit_9.setGeometry(QtCore.QRect(50, 10, 133, 20)) | |||
|
1146 | self.lineEdit_9.setObjectName(_fromUtf8("lineEdit_9")) | |||
|
1147 | self.toolButton_4 = QtGui.QToolButton(self.frame_46) | |||
|
1148 | self.toolButton_4.setGeometry(QtCore.QRect(190, 10, 25, 19)) | |||
|
1149 | self.toolButton_4.setObjectName(_fromUtf8("toolButton_4")) | |||
|
1150 | self.label_19 = QtGui.QLabel(self.frame_46) | |||
|
1151 | self.label_19.setGeometry(QtCore.QRect(20, 40, 24, 16)) | |||
|
1152 | self.label_19.setObjectName(_fromUtf8("label_19")) | |||
|
1153 | self.lineEdit_10 = QtGui.QLineEdit(self.frame_46) | |||
|
1154 | self.lineEdit_10.setGeometry(QtCore.QRect(50, 40, 171, 20)) | |||
|
1155 | self.lineEdit_10.setObjectName(_fromUtf8("lineEdit_10")) | |||
|
1156 | self.frame_50 = QtGui.QFrame(self.tab_14) | |||
|
1157 | self.frame_50.setGeometry(QtCore.QRect(10, 140, 231, 41)) | |||
|
1158 | self.frame_50.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
1159 | self.frame_50.setFrameShadow(QtGui.QFrame.Plain) | |||
|
1160 | self.frame_50.setObjectName(_fromUtf8("frame_50")) | |||
|
1161 | self.dataOkBtn_15 = QtGui.QPushButton(self.frame_50) | |||
|
1162 | self.dataOkBtn_15.setGeometry(QtCore.QRect(30, 10, 71, 21)) | |||
|
1163 | self.dataOkBtn_15.setObjectName(_fromUtf8("dataOkBtn_15")) | |||
|
1164 | self.dataCancelBtn_15 = QtGui.QPushButton(self.frame_50) | |||
|
1165 | self.dataCancelBtn_15.setGeometry(QtCore.QRect(130, 10, 71, 21)) | |||
|
1166 | self.dataCancelBtn_15.setObjectName(_fromUtf8("dataCancelBtn_15")) | |||
|
1167 | self.tabWidget_5.addTab(self.tab_14, _fromUtf8("")) | |||
|
1168 | self.gridLayout_12.addWidget(self.tabWidget_5, 0, 0, 1, 1) | |||
|
1169 | self.tabWidget.addTab(self.tab_9, _fromUtf8("")) | |||
|
1170 | self.frame_12 = QtGui.QFrame(self.centralWidget) | |||
|
1171 | self.frame_12.setGeometry(QtCore.QRect(260, 380, 301, 131)) | |||
|
1172 | self.frame_12.setFrameShape(QtGui.QFrame.StyledPanel) | |||
|
1173 | self.frame_12.setFrameShadow(QtGui.QFrame.Plain) | |||
|
1174 | self.frame_12.setObjectName(_fromUtf8("frame_12")) | |||
|
1175 | self.tabWidget_2 = QtGui.QTabWidget(self.frame_12) | |||
|
1176 | self.tabWidget_2.setGeometry(QtCore.QRect(10, 10, 281, 111)) | |||
|
1177 | self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2")) | |||
|
1178 | self.tab = QtGui.QWidget() | |||
|
1179 | self.tab.setObjectName(_fromUtf8("tab")) | |||
|
1180 | self.textEdit = Qsci.QsciScintilla(self.tab) | |||
|
1181 | self.textEdit.setGeometry(QtCore.QRect(10, 0, 261, 81)) | |||
|
1182 | self.textEdit.setToolTip(_fromUtf8("")) | |||
|
1183 | self.textEdit.setWhatsThis(_fromUtf8("")) | |||
|
1184 | self.textEdit.setObjectName(_fromUtf8("textEdit")) | |||
|
1185 | self.tabWidget_2.addTab(self.tab, _fromUtf8("")) | |||
|
1186 | MainWindow.setCentralWidget(self.centralWidget) | |||
|
1187 | self.menuBar = QtGui.QMenuBar(MainWindow) | |||
|
1188 | self.menuBar.setGeometry(QtCore.QRect(0, 0, 852, 21)) | |||
|
1189 | self.menuBar.setObjectName(_fromUtf8("menuBar")) | |||
|
1190 | self.menuFILE = QtGui.QMenu(self.menuBar) | |||
|
1191 | self.menuFILE.setObjectName(_fromUtf8("menuFILE")) | |||
|
1192 | self.menuRUN = QtGui.QMenu(self.menuBar) | |||
|
1193 | self.menuRUN.setObjectName(_fromUtf8("menuRUN")) | |||
|
1194 | self.menuOPTIONS = QtGui.QMenu(self.menuBar) | |||
|
1195 | self.menuOPTIONS.setObjectName(_fromUtf8("menuOPTIONS")) | |||
|
1196 | self.menuHELP = QtGui.QMenu(self.menuBar) | |||
|
1197 | self.menuHELP.setObjectName(_fromUtf8("menuHELP")) | |||
|
1198 | MainWindow.setMenuBar(self.menuBar) | |||
|
1199 | self.toolBar_2 = QtGui.QToolBar(MainWindow) | |||
|
1200 | self.toolBar_2.setObjectName(_fromUtf8("toolBar_2")) | |||
|
1201 | MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar_2) | |||
|
1202 | self.toolBar = QtGui.QToolBar(MainWindow) | |||
|
1203 | self.toolBar.setObjectName(_fromUtf8("toolBar")) | |||
|
1204 | MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) | |||
|
1205 | self.actionabrirObj = QtGui.QAction(MainWindow) | |||
|
1206 | self.actionabrirObj.setObjectName(_fromUtf8("actionabrirObj")) | |||
|
1207 | self.actioncrearObj = QtGui.QAction(MainWindow) | |||
|
1208 | self.actioncrearObj.setObjectName(_fromUtf8("actioncrearObj")) | |||
|
1209 | self.actionguardarObj = QtGui.QAction(MainWindow) | |||
|
1210 | self.actionguardarObj.setObjectName(_fromUtf8("actionguardarObj")) | |||
|
1211 | self.actionStartObj = QtGui.QAction(MainWindow) | |||
|
1212 | self.actionStartObj.setObjectName(_fromUtf8("actionStartObj")) | |||
|
1213 | self.actionPausaObj = QtGui.QAction(MainWindow) | |||
|
1214 | self.actionPausaObj.setObjectName(_fromUtf8("actionPausaObj")) | |||
|
1215 | self.actionconfigLogfileObj = QtGui.QAction(MainWindow) | |||
|
1216 | self.actionconfigLogfileObj.setObjectName(_fromUtf8("actionconfigLogfileObj")) | |||
|
1217 | self.actionconfigserverObj = QtGui.QAction(MainWindow) | |||
|
1218 | self.actionconfigserverObj.setObjectName(_fromUtf8("actionconfigserverObj")) | |||
|
1219 | self.actionAboutObj = QtGui.QAction(MainWindow) | |||
|
1220 | self.actionAboutObj.setObjectName(_fromUtf8("actionAboutObj")) | |||
|
1221 | self.actionPrfObj = QtGui.QAction(MainWindow) | |||
|
1222 | self.actionPrfObj.setObjectName(_fromUtf8("actionPrfObj")) | |||
|
1223 | self.actionOpenObj = QtGui.QAction(MainWindow) | |||
|
1224 | icon = QtGui.QIcon() | |||
|
1225 | icon.addPixmap(QtGui.QPixmap(_fromUtf8("../../../Downloads/IMAGENES/Open Sign.jpg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |||
|
1226 | self.actionOpenObj.setIcon(icon) | |||
|
1227 | self.actionOpenObj.setObjectName(_fromUtf8("actionOpenObj")) | |||
|
1228 | self.actionsaveObj = QtGui.QAction(MainWindow) | |||
|
1229 | icon1 = QtGui.QIcon() | |||
|
1230 | icon1.addPixmap(QtGui.QPixmap(_fromUtf8("../../../Downloads/IMAGENES/guardar.jpg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |||
|
1231 | self.actionsaveObj.setIcon(icon1) | |||
|
1232 | self.actionsaveObj.setObjectName(_fromUtf8("actionsaveObj")) | |||
|
1233 | self.actionPlayObj = QtGui.QAction(MainWindow) | |||
|
1234 | icon2 = QtGui.QIcon() | |||
|
1235 | icon2.addPixmap(QtGui.QPixmap(_fromUtf8("../../../Downloads/IMAGENES/play.jpg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |||
|
1236 | self.actionPlayObj.setIcon(icon2) | |||
|
1237 | self.actionPlayObj.setObjectName(_fromUtf8("actionPlayObj")) | |||
|
1238 | self.actionstopObj = QtGui.QAction(MainWindow) | |||
|
1239 | icon3 = QtGui.QIcon() | |||
|
1240 | icon3.addPixmap(QtGui.QPixmap(_fromUtf8("../../../Downloads/IMAGENES/stop.jpg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |||
|
1241 | self.actionstopObj.setIcon(icon3) | |||
|
1242 | self.actionstopObj.setObjectName(_fromUtf8("actionstopObj")) | |||
|
1243 | self.actioncreateObj = QtGui.QAction(MainWindow) | |||
|
1244 | icon4 = QtGui.QIcon() | |||
|
1245 | icon4.addPixmap(QtGui.QPixmap(_fromUtf8("../../../Downloads/IMAGENES/Crear.jpg")), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |||
|
1246 | self.actioncreateObj.setIcon(icon4) | |||
|
1247 | self.actioncreateObj.setObjectName(_fromUtf8("actioncreateObj")) | |||
|
1248 | self.actionCerrarObj = QtGui.QAction(MainWindow) | |||
|
1249 | self.actionCerrarObj.setObjectName(_fromUtf8("actionCerrarObj")) | |||
|
1250 | self.menuFILE.addAction(self.actionabrirObj) | |||
|
1251 | self.menuFILE.addAction(self.actioncrearObj) | |||
|
1252 | self.menuFILE.addAction(self.actionguardarObj) | |||
|
1253 | self.menuFILE.addAction(self.actionCerrarObj) | |||
|
1254 | self.menuRUN.addAction(self.actionStartObj) | |||
|
1255 | self.menuRUN.addAction(self.actionPausaObj) | |||
|
1256 | self.menuOPTIONS.addAction(self.actionconfigLogfileObj) | |||
|
1257 | self.menuOPTIONS.addAction(self.actionconfigserverObj) | |||
|
1258 | self.menuHELP.addAction(self.actionAboutObj) | |||
|
1259 | self.menuHELP.addAction(self.actionPrfObj) | |||
|
1260 | self.menuBar.addAction(self.menuFILE.menuAction()) | |||
|
1261 | self.menuBar.addAction(self.menuRUN.menuAction()) | |||
|
1262 | self.menuBar.addAction(self.menuOPTIONS.menuAction()) | |||
|
1263 | self.menuBar.addAction(self.menuHELP.menuAction()) | |||
|
1264 | self.toolBar.addSeparator() | |||
|
1265 | self.toolBar.addSeparator() | |||
|
1266 | self.toolBar.addAction(self.actionOpenObj) | |||
|
1267 | self.toolBar.addSeparator() | |||
|
1268 | self.toolBar.addAction(self.actioncreateObj) | |||
|
1269 | self.toolBar.addSeparator() | |||
|
1270 | self.toolBar.addSeparator() | |||
|
1271 | self.toolBar.addAction(self.actionsaveObj) | |||
|
1272 | self.toolBar.addSeparator() | |||
|
1273 | self.toolBar.addSeparator() | |||
|
1274 | self.toolBar.addAction(self.actionPlayObj) | |||
|
1275 | self.toolBar.addSeparator() | |||
|
1276 | self.toolBar.addSeparator() | |||
|
1277 | self.toolBar.addAction(self.actionstopObj) | |||
|
1278 | self.toolBar.addSeparator() | |||
|
1279 | ||||
|
1280 | self.retranslateUi(MainWindow) | |||
|
1281 | self.tabWidget.setCurrentIndex(0) | |||
|
1282 | self.tabWidget_3.setCurrentIndex(0) | |||
|
1283 | self.tabWidget_4.setCurrentIndex(0) | |||
|
1284 | self.tabWidget_5.setCurrentIndex(0) | |||
|
1285 | self.tabWidget_2.setCurrentIndex(0) | |||
|
1286 | QtCore.QMetaObject.connectSlotsByName(MainWindow) | |||
|
1287 | ||||
|
1288 | def retranslateUi(self, MainWindow): | |||
|
1289 | MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1290 | self.label_46.setText(QtGui.QApplication.translate("MainWindow", "Project Properties", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1291 | self.label.setText(QtGui.QApplication.translate("MainWindow", "Project Explorer", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1292 | self.addpBtn.setText(QtGui.QApplication.translate("MainWindow", "Project", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1293 | self.addbBtn.setText(QtGui.QApplication.translate("MainWindow", "Branch", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1294 | self.addoBtn.setText(QtGui.QApplication.translate("MainWindow", "Object", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1295 | self.label_55.setText(QtGui.QApplication.translate("MainWindow", "Read Mode:", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1296 | self.readModeCmBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "OffLine", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1297 | self.readModeCmBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "OnLine", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1298 | self.dataWaitLine.setText(QtGui.QApplication.translate("MainWindow", "Wait(sec):", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1299 | self.dataFormatLine.setText(QtGui.QApplication.translate("MainWindow", "Data format :", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1300 | self.dataPathline.setText(QtGui.QApplication.translate("MainWindow", "Data Path :", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1301 | self.dataFormatCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "Raw Data", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1302 | self.dataFormatCmbBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "Process Data", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1303 | self.dataPathBrowse.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1304 | self.dataOperationModeline.setText(QtGui.QApplication.translate("MainWindow", "Operation Mode:", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1305 | self.operationModeCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "Basico", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1306 | self.operationModeCmbBox.setItemText(1, QtGui.QApplication.translate("MainWindow", "Avanzado", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1307 | self.dataYearLine.setText(QtGui.QApplication.translate("MainWindow", "Year:", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1308 | self.dataStartLine.setText(QtGui.QApplication.translate("MainWindow", "Start date :", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1309 | self.dataEndline.setText(QtGui.QApplication.translate("MainWindow", "End date :", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1310 | self.LTReferenceRdBtn.setText(QtGui.QApplication.translate("MainWindow", "Local time frame of reference", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1311 | self.dataInitialTimeLine.setText(QtGui.QApplication.translate("MainWindow", "Start Time", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1312 | self.dataFinelTimeLine.setText(QtGui.QApplication.translate("MainWindow", "Final Time", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1313 | self.dataOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1314 | self.dataCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1315 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), QtGui.QApplication.translate("MainWindow", "Project", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1316 | self.removeDCCEB.setText(QtGui.QApplication.translate("MainWindow", "Remove DC", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1317 | self.coherentIntegrationCEB.setText(QtGui.QApplication.translate("MainWindow", "Coherent Integration", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1318 | self.decodeCEB.setText(QtGui.QApplication.translate("MainWindow", "Decodification", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1319 | self.dataopVolOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1320 | self.dataopVolCancelBtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1321 | self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_3), QtGui.QApplication.translate("MainWindow", "Operations", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1322 | self.datalabelGraphicsVol.setText(QtGui.QApplication.translate("MainWindow", "Voltage", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1323 | self.dataPotlabelGraphicsVol.setText(QtGui.QApplication.translate("MainWindow", "Potencia", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1324 | self.dataPathlabelGraphicsVol.setText(QtGui.QApplication.translate("MainWindow", "Path", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1325 | self.dataPrefixlabelGraphicsVol.setText(QtGui.QApplication.translate("MainWindow", "Prefix", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1326 | self.dataGraphicsVolPathBrowse.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1327 | self.label_6.setText(QtGui.QApplication.translate("MainWindow", "Type", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1328 | self.label_7.setText(QtGui.QApplication.translate("MainWindow", "Show", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1329 | self.label_8.setText(QtGui.QApplication.translate("MainWindow", "Save", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1330 | self.label_13.setText(QtGui.QApplication.translate("MainWindow", "FTP server", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1331 | self.label_14.setText(QtGui.QApplication.translate("MainWindow", "FTP path", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1332 | self.toolButton_2.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1333 | self.dataOkBtn_3.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1334 | self.dataCancelBtn_3.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1335 | self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_2), QtGui.QApplication.translate("MainWindow", "Graphics", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1336 | self.dataPathlabelOutVol.setText(QtGui.QApplication.translate("MainWindow", "Path", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1337 | self.dataOutVolPathBrowse.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1338 | self.dataSufixlabelOutVol.setText(QtGui.QApplication.translate("MainWindow", "Sufix", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1339 | self.dataoutVolOkBtn.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1340 | self.dataCancelBtn_13.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1341 | self.tabWidget_3.setTabText(self.tabWidget_3.indexOf(self.tab_4), QtGui.QApplication.translate("MainWindow", "Save Data", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1342 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_7), QtGui.QApplication.translate("MainWindow", "Voltage", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1343 | self.checkBox_49.setText(QtGui.QApplication.translate("MainWindow", "Remove DC", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1344 | self.checkBox_50.setText(QtGui.QApplication.translate("MainWindow", "Remove Interference", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1345 | self.checkBox_51.setText(QtGui.QApplication.translate("MainWindow", "Integration Incoherent", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1346 | self.checkBox_52.setText(QtGui.QApplication.translate("MainWindow", "Operation 4", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1347 | self.dataOkBtn_9.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1348 | self.dataCancelBtn_9.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1349 | self.tabWidget_4.setTabText(self.tabWidget_4.indexOf(self.tab_8), QtGui.QApplication.translate("MainWindow", "Operations", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1350 | self.dataCancelBtn_11.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1351 | self.label_80.setText(QtGui.QApplication.translate("MainWindow", "Type", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1352 | self.label_81.setText(QtGui.QApplication.translate("MainWindow", "Show", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1353 | self.label_82.setText(QtGui.QApplication.translate("MainWindow", "Save", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1354 | self.label_83.setText(QtGui.QApplication.translate("MainWindow", "RTI", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1355 | self.label_84.setText(QtGui.QApplication.translate("MainWindow", "CROSS-CORRELATION+", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1356 | self.label_85.setText(QtGui.QApplication.translate("MainWindow", "CROSS-SPECTRA", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1357 | self.label_86.setText(QtGui.QApplication.translate("MainWindow", "NOISE", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1358 | self.label_100.setText(QtGui.QApplication.translate("MainWindow", "PHASE", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1359 | self.dataOkBtn_11.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1360 | self.label_78.setText(QtGui.QApplication.translate("MainWindow", "Path", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1361 | self.label_79.setText(QtGui.QApplication.translate("MainWindow", "Prefix", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1362 | self.toolButton_17.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1363 | self.label_87.setText(QtGui.QApplication.translate("MainWindow", "FTP server", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1364 | self.label_88.setText(QtGui.QApplication.translate("MainWindow", "FTP path", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1365 | self.toolButton_18.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1366 | self.tabWidget_4.setTabText(self.tabWidget_4.indexOf(self.tab_10), QtGui.QApplication.translate("MainWindow", "Graphics", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1367 | self.label_22.setText(QtGui.QApplication.translate("MainWindow", "Data format", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1368 | self.label_20.setText(QtGui.QApplication.translate("MainWindow", "Path", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1369 | self.toolButton_5.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1370 | self.label_21.setText(QtGui.QApplication.translate("MainWindow", "Sufix", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1371 | self.dataOkBtn_14.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1372 | self.dataCancelBtn_14.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1373 | self.tabWidget_4.setTabText(self.tabWidget_4.indexOf(self.tab_11), QtGui.QApplication.translate("MainWindow", "Save Data", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1374 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_6), QtGui.QApplication.translate("MainWindow", "Spectra", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1375 | self.checkBox_53.setText(QtGui.QApplication.translate("MainWindow", "Integration", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1376 | self.dataOkBtn_10.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1377 | self.dataCancelBtn_10.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1378 | self.tabWidget_5.setTabText(self.tabWidget_5.indexOf(self.tab_12), QtGui.QApplication.translate("MainWindow", "Operations", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1379 | self.label_95.setText(QtGui.QApplication.translate("MainWindow", "Type", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1380 | self.label_96.setText(QtGui.QApplication.translate("MainWindow", "Show", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1381 | self.label_97.setText(QtGui.QApplication.translate("MainWindow", "Save", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1382 | self.label_89.setText(QtGui.QApplication.translate("MainWindow", "FTP server", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1383 | self.label_90.setText(QtGui.QApplication.translate("MainWindow", "FTP path", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1384 | self.toolButton_19.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1385 | self.label_98.setText(QtGui.QApplication.translate("MainWindow", "Path", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1386 | self.label_99.setText(QtGui.QApplication.translate("MainWindow", "Prefix", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1387 | self.toolButton_20.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1388 | self.label_91.setText(QtGui.QApplication.translate("MainWindow", "POTENCIA", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1389 | self.dataOkBtn_12.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1390 | self.dataCancelBtn_12.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1391 | self.tabWidget_5.setTabText(self.tabWidget_5.indexOf(self.tab_13), QtGui.QApplication.translate("MainWindow", "Graphics", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1392 | self.label_17.setText(QtGui.QApplication.translate("MainWindow", "Data format", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1393 | self.label_18.setText(QtGui.QApplication.translate("MainWindow", "Path", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1394 | self.toolButton_4.setText(QtGui.QApplication.translate("MainWindow", "...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1395 | self.label_19.setText(QtGui.QApplication.translate("MainWindow", "Sufix", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1396 | self.dataOkBtn_15.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1397 | self.dataCancelBtn_15.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1398 | self.tabWidget_5.setTabText(self.tabWidget_5.indexOf(self.tab_14), QtGui.QApplication.translate("MainWindow", "Save Data", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1399 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_9), QtGui.QApplication.translate("MainWindow", "Correlation", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1400 | self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab), QtGui.QApplication.translate("MainWindow", "Ouput Branch", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1401 | self.menuFILE.setTitle(QtGui.QApplication.translate("MainWindow", "Project", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1402 | self.menuRUN.setTitle(QtGui.QApplication.translate("MainWindow", "Run", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1403 | self.menuOPTIONS.setTitle(QtGui.QApplication.translate("MainWindow", "Options", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1404 | self.menuHELP.setTitle(QtGui.QApplication.translate("MainWindow", "Help", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1405 | self.toolBar_2.setWindowTitle(QtGui.QApplication.translate("MainWindow", "toolBar_2", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1406 | self.toolBar.setWindowTitle(QtGui.QApplication.translate("MainWindow", "toolBar", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1407 | self.actionabrirObj.setText(QtGui.QApplication.translate("MainWindow", "Abrir", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1408 | self.actioncrearObj.setText(QtGui.QApplication.translate("MainWindow", "Crear", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1409 | self.actionguardarObj.setText(QtGui.QApplication.translate("MainWindow", "Guardar", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1410 | self.actionStartObj.setText(QtGui.QApplication.translate("MainWindow", "start", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1411 | self.actionPausaObj.setText(QtGui.QApplication.translate("MainWindow", "pausa", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1412 | self.actionconfigLogfileObj.setText(QtGui.QApplication.translate("MainWindow", "configLogfileObj", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1413 | self.actionconfigserverObj.setText(QtGui.QApplication.translate("MainWindow", "configServerFTP", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1414 | self.actionAboutObj.setText(QtGui.QApplication.translate("MainWindow", "aboutObj", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1415 | self.actionPrfObj.setText(QtGui.QApplication.translate("MainWindow", "prfObj", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1416 | self.actionOpenObj.setText(QtGui.QApplication.translate("MainWindow", "openObj", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1417 | self.actionOpenObj.setToolTip(QtGui.QApplication.translate("MainWindow", "open file", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1418 | self.actionsaveObj.setText(QtGui.QApplication.translate("MainWindow", "saveObj", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1419 | self.actionsaveObj.setToolTip(QtGui.QApplication.translate("MainWindow", "Manage Save", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1420 | self.actionPlayObj.setText(QtGui.QApplication.translate("MainWindow", "playObj", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1421 | self.actionPlayObj.setToolTip(QtGui.QApplication.translate("MainWindow", "Manage Play", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1422 | self.actionstopObj.setText(QtGui.QApplication.translate("MainWindow", "stopObj", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1423 | self.actionstopObj.setToolTip(QtGui.QApplication.translate("MainWindow", "Manage Stop", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1424 | self.actioncreateObj.setText(QtGui.QApplication.translate("MainWindow", "createObj", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1425 | self.actioncreateObj.setToolTip(QtGui.QApplication.translate("MainWindow", "Manage Create", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1426 | self.actionCerrarObj.setText(QtGui.QApplication.translate("MainWindow", "Cerrar", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
1427 | ||||
|
1428 | from PyQt4 import Qsci | |||
|
1429 | ||||
|
1430 | if __name__ == "__main__": | |||
|
1431 | import sys | |||
|
1432 | app = QtGui.QApplication(sys.argv) | |||
|
1433 | MainWindow = QtGui.QMainWindow() | |||
|
1434 | ui = Ui_MainWindow() | |||
|
1435 | ui.setupUi(MainWindow) | |||
|
1436 | MainWindow.show() | |||
|
1437 | sys.exit(app.exec_()) | |||
|
1438 |
@@ -0,0 +1,68 | |||||
|
1 | # -*- coding: utf-8 -*- | |||
|
2 | ||||
|
3 | # Form implementation generated from reading ui file 'C:\Users\alex\ericworkspace\UIDOS\window.ui' | |||
|
4 | # | |||
|
5 | # Created: Mon Oct 15 16:44:32 2012 | |||
|
6 | # by: PyQt4 UI code generator 4.9.4 | |||
|
7 | # | |||
|
8 | # WARNING! All changes made in this file will be lost! | |||
|
9 | ||||
|
10 | from PyQt4 import QtCore, QtGui | |||
|
11 | ||||
|
12 | try: | |||
|
13 | _fromUtf8 = QtCore.QString.fromUtf8 | |||
|
14 | except AttributeError: | |||
|
15 | _fromUtf8 = lambda s: s | |||
|
16 | ||||
|
17 | class Ui_window(object): | |||
|
18 | def setupUi(self, MainWindow): | |||
|
19 | MainWindow.setObjectName(_fromUtf8("MainWindow")) | |||
|
20 | MainWindow.resize(220, 198) | |||
|
21 | self.centralWidget = QtGui.QWidget(MainWindow) | |||
|
22 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) | |||
|
23 | self.label = QtGui.QLabel(self.centralWidget) | |||
|
24 | self.label.setGeometry(QtCore.QRect(20, 10, 131, 20)) | |||
|
25 | font = QtGui.QFont() | |||
|
26 | font.setPointSize(12) | |||
|
27 | self.label.setFont(font) | |||
|
28 | self.label.setObjectName(_fromUtf8("label")) | |||
|
29 | self.label_2 = QtGui.QLabel(self.centralWidget) | |||
|
30 | self.label_2.setGeometry(QtCore.QRect(20, 60, 131, 20)) | |||
|
31 | font = QtGui.QFont() | |||
|
32 | font.setPointSize(12) | |||
|
33 | self.label_2.setFont(font) | |||
|
34 | self.label_2.setObjectName(_fromUtf8("label_2")) | |||
|
35 | self.cancelButton = QtGui.QPushButton(self.centralWidget) | |||
|
36 | self.cancelButton.setGeometry(QtCore.QRect(110, 160, 51, 23)) | |||
|
37 | self.cancelButton.setObjectName(_fromUtf8("cancelButton")) | |||
|
38 | self.okButton = QtGui.QPushButton(self.centralWidget) | |||
|
39 | self.okButton.setGeometry(QtCore.QRect(50, 160, 51, 23)) | |||
|
40 | self.okButton.setObjectName(_fromUtf8("okButton")) | |||
|
41 | self.proyectNameLine = QtGui.QLineEdit(self.centralWidget) | |||
|
42 | self.proyectNameLine.setGeometry(QtCore.QRect(20, 30, 181, 20)) | |||
|
43 | self.proyectNameLine.setObjectName(_fromUtf8("proyectNameLine")) | |||
|
44 | self.descriptionTextEdit = QtGui.QTextEdit(self.centralWidget) | |||
|
45 | self.descriptionTextEdit.setGeometry(QtCore.QRect(20, 80, 181, 71)) | |||
|
46 | self.descriptionTextEdit.setObjectName(_fromUtf8("descriptionTextEdit")) | |||
|
47 | MainWindow.setCentralWidget(self.centralWidget) | |||
|
48 | ||||
|
49 | self.retranslateUi(MainWindow) | |||
|
50 | QtCore.QMetaObject.connectSlotsByName(MainWindow) | |||
|
51 | ||||
|
52 | def retranslateUi(self, MainWindow): | |||
|
53 | MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
54 | self.label.setText(QtGui.QApplication.translate("MainWindow", "Project Name:", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
55 | self.label_2.setText(QtGui.QApplication.translate("MainWindow", "Description :", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
56 | self.cancelButton.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
57 | self.okButton.setText(QtGui.QApplication.translate("MainWindow", "Ok", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
58 | ||||
|
59 | ||||
|
60 | if __name__ == "__main__": | |||
|
61 | import sys | |||
|
62 | app = QtGui.QApplication(sys.argv) | |||
|
63 | MainWindow = QtGui.QMainWindow() | |||
|
64 | ui = Ui_window() | |||
|
65 | ui.setupUi(MainWindow) | |||
|
66 | MainWindow.show() | |||
|
67 | sys.exit(app.exec_()) | |||
|
68 |
@@ -0,0 +1,101 | |||||
|
1 | # -*- coding: utf-8 -*- | |||
|
2 | ||||
|
3 | # Form implementation generated from reading ui file '/home/roj-idl71/SignalChain/signal/configuraproyect.ui' | |||
|
4 | # | |||
|
5 | # Created: Wed Sep 5 11:53:34 2012 | |||
|
6 | # by: PyQt4 UI code generator 4.8.6 | |||
|
7 | # | |||
|
8 | # WARNING! All changes made in this file will be lost! | |||
|
9 | ||||
|
10 | from PyQt4 import QtCore, QtGui | |||
|
11 | ||||
|
12 | try: | |||
|
13 | _fromUtf8 = QtCore.QString.fromUtf8 | |||
|
14 | except AttributeError: | |||
|
15 | _fromUtf8 = lambda s: s | |||
|
16 | ||||
|
17 | class Ui_Workspace(object): | |||
|
18 | def setupUi(self, MainWindow): | |||
|
19 | MainWindow.setObjectName(_fromUtf8("MainWindow")) | |||
|
20 | MainWindow.resize(728, 272) | |||
|
21 | MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
22 | self.centralWidget = QtGui.QWidget(MainWindow) | |||
|
23 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) | |||
|
24 | self.line = QtGui.QFrame(self.centralWidget) | |||
|
25 | self.line.setGeometry(QtCore.QRect(0, 60, 731, 20)) | |||
|
26 | self.line.setFrameShape(QtGui.QFrame.HLine) | |||
|
27 | self.line.setFrameShadow(QtGui.QFrame.Sunken) | |||
|
28 | self.line.setObjectName(_fromUtf8("line")) | |||
|
29 | self.dirLabel = QtGui.QTextEdit(self.centralWidget) | |||
|
30 | self.dirLabel.setGeometry(QtCore.QRect(0, 0, 731, 81)) | |||
|
31 | self.dirLabel.setReadOnly(True) | |||
|
32 | self.dirLabel.setHtml(QtGui.QApplication.translate("MainWindow", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" | |||
|
33 | "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" | |||
|
34 | "p, li { white-space: pre-wrap; }\n" | |||
|
35 | "</style></head><body style=\" font-family:\'Cantarell\'; font-size:11pt; font-weight:400; font-style:normal;\">\n" | |||
|
36 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:12pt; font-weight:600;\">Select a workspace</span></p>\n" | |||
|
37 | "<p align=\"justify\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">SignalChain stores your projects in a folder called a workspace.</p>\n" | |||
|
38 | "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Choose a workspace folder to use for this session.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
39 | self.dirLabel.setObjectName(_fromUtf8("dirLabel")) | |||
|
40 | self.dirWork = QtGui.QLabel(self.centralWidget) | |||
|
41 | self.dirWork.setGeometry(QtCore.QRect(10, 90, 87, 22)) | |||
|
42 | font = QtGui.QFont() | |||
|
43 | font.setPointSize(12) | |||
|
44 | self.dirWork.setFont(font) | |||
|
45 | self.dirWork.setText(QtGui.QApplication.translate("MainWindow", "Workspace :", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
46 | self.dirWork.setObjectName(_fromUtf8("dirWork")) | |||
|
47 | self.dirButton = QtGui.QRadioButton(self.centralWidget) | |||
|
48 | self.dirButton.setGeometry(QtCore.QRect(10, 200, 310, 26)) | |||
|
49 | self.dirButton.setText(QtGui.QApplication.translate("MainWindow", "Use this as the default and do not ask again", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
50 | self.dirButton.setObjectName(_fromUtf8("dirButton")) | |||
|
51 | self.layoutWidget = QtGui.QWidget(self.centralWidget) | |||
|
52 | self.layoutWidget.setGeometry(QtCore.QRect(20, 230, 701, 33)) | |||
|
53 | self.layoutWidget.setObjectName(_fromUtf8("layoutWidget")) | |||
|
54 | self.horizontalLayout_2 = QtGui.QHBoxLayout(self.layoutWidget) | |||
|
55 | self.horizontalLayout_2.setMargin(0) | |||
|
56 | self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) | |||
|
57 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) | |||
|
58 | self.horizontalLayout_2.addItem(spacerItem) | |||
|
59 | self.dirCancelbtn = QtGui.QPushButton(self.layoutWidget) | |||
|
60 | self.dirCancelbtn.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
61 | self.dirCancelbtn.setObjectName(_fromUtf8("dirCancelbtn")) | |||
|
62 | self.horizontalLayout_2.addWidget(self.dirCancelbtn) | |||
|
63 | self.dirOkbtn = QtGui.QPushButton(self.layoutWidget) | |||
|
64 | self.dirOkbtn.setText(QtGui.QApplication.translate("MainWindow", "OK", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
65 | self.dirOkbtn.setObjectName(_fromUtf8("dirOkbtn")) | |||
|
66 | self.horizontalLayout_2.addWidget(self.dirOkbtn) | |||
|
67 | self.dirCmbBox = QtGui.QComboBox(self.centralWidget) | |||
|
68 | self.dirCmbBox.setGeometry(QtCore.QRect(10, 120, 621, 21)) | |||
|
69 | palette = QtGui.QPalette() | |||
|
70 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
71 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
72 | palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) | |||
|
73 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
74 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
75 | palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) | |||
|
76 | brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) | |||
|
77 | brush.setStyle(QtCore.Qt.SolidPattern) | |||
|
78 | palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) | |||
|
79 | self.dirCmbBox.setPalette(palette) | |||
|
80 | self.dirCmbBox.setObjectName(_fromUtf8("dirCmbBox")) | |||
|
81 | self.dirBrowsebtn = QtGui.QToolButton(self.centralWidget) | |||
|
82 | self.dirBrowsebtn.setGeometry(QtCore.QRect(640, 120, 76, 21)) | |||
|
83 | self.dirBrowsebtn.setText(QtGui.QApplication.translate("MainWindow", "Browse...", None, QtGui.QApplication.UnicodeUTF8)) | |||
|
84 | self.dirBrowsebtn.setObjectName(_fromUtf8("dirBrowsebtn")) | |||
|
85 | MainWindow.setCentralWidget(self.centralWidget) | |||
|
86 | ||||
|
87 | self.retranslateUi(MainWindow) | |||
|
88 | QtCore.QMetaObject.connectSlotsByName(MainWindow) | |||
|
89 | ||||
|
90 | def retranslateUi(self, MainWindow): | |||
|
91 | pass | |||
|
92 | ||||
|
93 | ||||
|
94 | if __name__ == "__main__": | |||
|
95 | import sys | |||
|
96 | app = QtGui.QApplication(sys.argv) | |||
|
97 | MainWindow = QtGui.QMainWindow() | |||
|
98 | ui = Ui_Workspace() | |||
|
99 | ui.setupUi(MainWindow) | |||
|
100 | MainWindow.show() | |||
|
101 | sys.exit(app.exec_()) No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now