##// END OF EJS Templates
#parace todo ok_falta pruebas
ralonso -
r91:92
parent child
Show More
@@ -1,290 +1,294
1 1 # -*- coding: utf-8 -*-
2 2
3 3
4 4 from subprocess import *
5 5 import sys
6 6 import os
7 7 import subprocess
8 8 import commands
9 9
10 10 #----------------------------------------------------- Deteccion de los dispositivos de grabacion ---------------------------------------------------------------
11 11
12 12 def detect_devices(self):
13 13 """
14 14 Deteccion de los dispositvos de grabacion
15 15 """
16 16 #var_cmd="wodim --devices | grep /dev/ | awk -F\' '{print $2}'" #Funciona en consola pero no en python ¿?
17 17 var_cmd="wodim --devices | grep /dev/ | awk '{print $2}' | awk -F= '{print $2}'"
18 18
19 19 var_output = commands.getstatusoutput(var_cmd)
20 20 if var_output[0] != 0:
21 21 self.txtInfo.append("No recording devices")
22 22 else:
23 23 var_devices = var_output[1].split('\n')
24 24
25 25 var_tmp=[]
26 26 for i in range(0, 4):
27 27 if i < len(var_devices):
28 28 var_len = len(var_devices[i])
29 29 var_tmp.append(var_devices[i][1:var_len - 1])
30 30 else:
31 31 var_tmp.append('')
32 32
33 33 #Se escriben los dispostivos correspodientes, si existen
34 34 self.txtDeviceA.setText(str(var_tmp[0]))
35 35 self.txtDeviceB.setText(str(var_tmp[1]))
36 36 self.txtDeviceC.setText(str(var_tmp[2]))
37 37 self.txtDeviceD.setText(str(var_tmp[3]))
38 38 #Se desactivan los que no existen
39 39 if len(var_tmp[0]) == 0 :
40 40 self.chkDevA.setChecked(False)
41 41 self.chkDevA.setEnabled(False)
42 42 if len(var_tmp[1]) == 0 :
43 43 self.chkDevB.setChecked(False)
44 44 self.chkDevB.setEnabled(False)
45 45 if len(var_tmp[2]) == 0 :
46 46 self.chkDevC.setChecked(False)
47 47 self.chkDevC.setEnabled(False)
48 48 if len(var_tmp[3]) == 0 :
49 49 self.chkDevD.setChecked(False)
50 50 self.chkDevD.setEnabled(False)
51 51
52 52 #----------------------------------- expulsa los dispositivos de grabacion --------------------------------------------
53 53
54 54 def eject_devices(self):
55 55 for var_dev in self.var_devices:
56 56 var_cmd = 'eject ' + var_dev
57 57 commands.getstatusoutput(var_cmd)
58 58
59 59 #Expulsa el dispositivo de grabacion actual
60 60 def eject_one_device(self):
61 61 var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices)
62 62 var_dev = self.var_devices[var_index]
63 63 var_cmd = 'eject ' + var_dev
64 64 commands.getstatusoutput(var_cmd)
65 65
66 66 def eject_t_one_device(self):
67 67 var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices)
68 68 var_dev = self.var_devices[var_index]
69 69 var_cmd = 'eject -t ' + var_dev
70 70 commands.getstatusoutput(var_cmd)
71 71
72 72 def get_dev_sr(self):
73 73 var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices)
74 74 var_dev = self.var_devices[var_index]
75 75 var_output=commands.getstatusoutput('ls -lh '+var_dev)
76 76 if var_output[0] != 0:
77 77 return "FATAL ERROR"
78 78 else:
79 79 var_dev_sr = "/dev/"+var_output[1] .split()[-1]
80 80 return var_dev_sr
81 81
82 82
83 83 #----------------------------------- devuelve una lista con las carpetas en las cuales estan montados los dispositivos --------------------------------------------
84 84 def mounted_devices():
85 85
86 86 var_type = "iso9660"
87 87 var_output=commands.getstatusoutput('df -hT | grep '+ var_type)
88 88
89 89 if var_output[0] != 0:
90 90 return "FATAL ERROR"
91 91
92 92 else:
93 93 if len(var_output[1]) == 0:
94 94 return "FATAL ERROR"
95 95
96 96 list_dirs = []
97 97 for var_dir in var_output[1].split('\n'):
98 98 list_dirs.append(var_dir.split()[-1])
99 99
100 100 return list_dirs
101 101
102 102
103 103 #----------------------------------- listado de los dispositivos de grabacion seleccionados --------------------------------------------
104 104
105 105 def selected_devices(self):
106 106 self.var_devices=[]
107 107 if self.chkDevA.isChecked():
108 108 self.var_devices.append(str(self.txtDeviceA.text()))
109 109 if self.chkDevB.isChecked():
110 110 self.var_devices.append(str(self.txtDeviceB.text()))
111 111 if self.chkDevC.isChecked():
112 112 self.var_devices.append(str(self.txtDeviceC.text()))
113 113 if self.chkDevD.isChecked():
114 114 self.var_devices.append(str(self.txtDeviceD.text()))
115 115
116 116 if len(self.var_devices) == 0:
117 117 return False
118 118 else:
119 119 return True
120 120
121 121
122 122 #----------------------------------------------------- Inicializacion para pruebas---------------------------------------------------------------
123 123
124 124 def set_parameters_test(self):
125 125 """
126 126 Se usa para inicializar ciertos parametros para pruebas
127 127 """
128 128 self.txtDpath.setText('/home/ricardoar/optional/STORAGE/EW_DRIFTS')
129 129 self.txtRpath.setText('/home/ricardoar/optional/prueba1_jro_backup_manager')
130 130 self.txtElabel.setText('EW_DRIFTS_pruebas')
131 131 self.lstDcapacity.setCurrentIndex(4)
132 132 self.txtDcapacity.setValue(100.0)
133 133 self.txtDcapacity.setReadOnly(False)
134 134
135 135 def set_devices_test(self):
136 136 self.txtDeviceA.setText("/dev/scd0")
137 137 self.txtDeviceB.setText("/dev/scd1")
138 138 self.txtDeviceC.setText("/dev/scd2")
139 139 self.txtDeviceD.setText("/dev/scd3")
140 140
141 141
142 142
143 143 #----------------------------------------------------- crea parameters.conf ---------------------------------------------------------------
144 144
145 145 def make_parameters_conf(self):
146 146 var_file = open("parameters.conf","w")
147 147 var_file.write(self.var_Dpath+"\n") #0 Ruta de los datos
148 148 var_file.write(self.var_Rpath+"\n") #1 Ruta del proyecto
149 149 var_file.write(str(self.var_lstDtype)+"\n") #2 opcion Data Type
150 150 var_file.write(self.var_Dtype+"\n") #3 extension Data Type
151 151 var_file.write(self.var_Elabel+"\n") #4 etiqueta
152 152 var_file.write(str(self.var_Copys)+"\n") #5 Numero de copias
153 153 var_file.write(str(self.var_lstDcapacity)+"\n") #6 opcion Device Capacity
154 154 var_file.write(str(self.var_Dcapacity)+"\n") #7 tamaño Device Capacity
155 155 var_file.write(str(self.var_Discs)+"\n") #8 Numero de discos a grabar
156 156 # var_file.write(str(self.lstStartDay.currentIndex())+"\n") #9 Indice fecha inicial
157 157 # var_file.write(str(self.lstStopDay.currentIndex())+"\n") #10 Indice fecha final
158 158 var_file.close()
159 159
160 160 #----------------------------------------------------- carga parameters.conf ---------------------------------------------------------------
161 161
162 162 def get_parameters_conf(self):
163 163 var_file = open("parameters.conf","r")
164 164 lines = var_file.readlines()
165 165 self.txtDpath.setText(lines[0][:-1]) #0
166 166 self.txtRpath.setText(lines[1][:-1]) #1
167 167 self.lstDtype.setCurrentIndex(int(lines[2])) #2
168 168 self.txtDtype.setText(lines[3][:-1]) #3
169 169 self.txtElabel.setText(lines[4][:-1]) #4
170 170 self.txtCopys.setValue(int(lines[5][:-1])) #5
171 171 self.lstDcapacity.setCurrentIndex(int(lines[6])) #6
172 172 self.txtDcapacity.setValue(float(lines[7])) #7
173 173 self.var_Discs = int(lines[8]) #8
174 174 # var_StartDay = int(lines[6]) #9
175 175 # var_StopDay = int(lines[7]) #10
176 176 ################################
177 177 self.var_Copys = self.txtCopys.value() #5
178 178 ################################
179 179
180 180 var_file.close()
181 181
182 182
183 183 #-------------------------- actualiza el valor de las variables con los parametros seleccionados -----------------------------
184 184
185 185 def set_vars(self):
186 186 self.var_Dpath = str(self.txtDpath.text()) #0
187 187 self.var_Rpath = str(self.txtRpath.text()) #1
188 188 self.var_lstDtype = self.lstDtype.currentIndex() #2
189 189 self.var_Dtype = str(self.txtDtype.text()) #3
190 190 self.var_Elabel = str(self.txtElabel.text()) #4
191 191 self.var_Copys = self.txtCopys.value() #5
192 192 self.var_lstDcapacity = self.lstDcapacity.currentIndex() #6
193 193 self.var_Dcapacity = self.txtDcapacity.value() #7
194 194 self.var_Discs = self.var_Discs #8
195 195
196 196
197 197 #-------------------------- crea burning.conf -----------------------------
198 198
199 199 def make_burning_conf(self):
200 200 var_file = open("burning.conf","w")
201 201 var_n_burned_discs = ( ( (self.var_disc_n - 1) * self.var_Copys) + self.var_copy_n - 1 )
202 202 var_file.write(str(var_n_burned_discs)+"\n") #0 Numero de discos ya grabados
203 203 var_file.write(str(self.var_disc_n)+"\n") #1 Disco actual para grabar
204 204 var_file.write(str(self.var_copy_n)+"\n") #2 Numero de copia actual para grabar
205 205 var_file.close()
206 206
207 207 #----------------------------------------------------- carga burning.conf ---------------------------------------------------------------
208 208
209 209 def get_burning_conf(self):
210 210 var_file = open("burning.conf","r")
211 211 lines = var_file.readlines()
212 212 self.var_burned_discs = int(lines[0]) #0
213 213 self.var_disc_n = int(lines[1])
214 214 self.var_copy_n = int(lines[2])
215 215 var_file.close()
216 216
217 217 #---------------------------------------------- Habilitacion y deshabilitacion de items -------------------------------------------------------
218 218
219 219 def enabled_items1(var_bool, self):
220 220 self.tabParameters.setEnabled(not(var_bool))
221 221 self.lstDcapacity.setEnabled(not(var_bool))
222 222 self.txtDcapacity.setEnabled(not(var_bool))
223 223 self.actionChange_Parameters.setEnabled(var_bool)
224 224 self.btnGbkp.setEnabled(not(var_bool))
225 225 self.btnRestart.setEnabled(var_bool)
226 226 self.btnStartburn.setEnabled(var_bool)
227
227
228 self.txtTDpath.setEnabled(not(var_bool))
229 self.txtTDpath.clear()
230 self.btnTDpath.setEnabled(not(var_bool))
231 self.btnCHstart.setEnabled(False)
228 232
229 233 def enabled_items2(var_bool, self):
230 234 self.btnRestart.setEnabled(not(var_bool))
231 235 self.btnStartburn.setEnabled(not(var_bool))
232 236 self.btnStopburn.setEnabled(var_bool)
233 237 self.chkCheck.setEnabled(not(var_bool))
234 238 self.chkCheck.setChecked(False)
235 239
236 240 self.actionChange_Parameters.setEnabled(False)
237 241
238 242
239 243 #---------------------------------------------- Actualiza estado en los labels -------------------------------------------------------
240 244
241 245 def update_message(type, message, self, index=-1):
242 246 if index == -1:
243 247 var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices)
244 248 else:
245 249 var_index = index
246 250
247 251 var_message = message
248 252 # var_message = "BURNING"
249 253 # var_message = "COMPLETED"
250 254 # var_message = "ERROR"
251 255 # var_message = "CHECKING"
252 256 # var_message = "CHECKED"
253 257
254 258 if type == 1:
255 259
256 260 if var_index == 0:
257 261 self.txtBstatusA.setText(var_message)
258 262 self.txtBdiscA.setText(str(self.var_disc_n))
259 263 self.txtBcopyA.setText(str(self.var_copy_n))
260 264
261 265 if var_index == 1:
262 266 self.txtBstatusB.setText(var_message)
263 267 self.txtBdiscB.setText(str(self.var_disc_n))
264 268 self.txtBcopyB.setText(str(self.var_copy_n))
265 269
266 270 if var_index == 2:
267 271 self.txtBstatusC.setText(var_message)
268 272 self.txtBdiscC.setText(str(self.var_disc_n))
269 273 self.txtBcopyC.setText(str(self.var_copy_n))
270 274
271 275 if var_index == 3:
272 276 self.txtBstatusD.setText(var_message)
273 277 self.txtBdiscD.setText(str(self.var_disc_n))
274 278 self.txtBcopyD.setText(str(self.var_copy_n))
275 279
276 280 if type == 2:
277 281
278 282 if var_index == 0:
279 283 self.txtCHstatusA.setText(var_message)
280 284
281 285 if var_index == 1:
282 286 self.txtCHstatusB.setText(var_message)
283 287
284 288 if var_index == 2:
285 289 self.txtCHstatusC.setText(var_message)
286 290
287 291 if var_index == 3:
288 292 self.txtCHstatusD.setText(var_message)
289 293
290 294
@@ -1,789 +1,794
1 1 # -*- coding: utf-8 -*-
2 2
3 3 """
4 4 Module implementing MainWindow.
5 5 """
6 6
7 7 from PyQt4.QtGui import QMainWindow
8 8 from PyQt4.QtCore import pyqtSignature
9 9 from PyQt4 import QtCore
10 10 from Ui_MainWindow import Ui_MainWindow
11 11 from Ui_Parameters import Ui_Parameters
12 12 from Ui_About import Ui_About
13 13 from PyQt4 import QtGui
14 14 from subprocess import *
15 15 import sys
16 16 import os
17 17 #import subprocess
18 18 import time
19 19 import commands
20 20 from functions import functions
21 21 from functions import functions2
22 22
23 23 class MainWindow(QMainWindow, Ui_MainWindow):
24 24 """
25 25 Class documentation goes here.
26 26 """
27 27
28 28 def __init__(self, parent = None):
29 29 QMainWindow.__init__(self, parent)
30 30 self.setupUi(self)
31 31 self.setupUi2()
32 32
33 33 def setupUi2(self):
34 34
35 35 self.txtInfo.append("cambio 1")
36 36
37 37 self.allTrue = False
38 38
39 39 if self.allTrue == True:
40 40 self.var_real_principal = True
41 41 self.var_real_detect_devices = True
42 42 self.var_real_iso = True
43 43 self.var_real_burn = True
44 44 self.var_real_check = True
45 45 self.var_real_eject = True
46 46 self.var_real_manual_check = True
47 47 self.var_real_show_cmd = True
48 48
49 49 else:
50 50 self.var_real_principal = False
51 51 self.var_real_detect_devices = False
52 52 self.var_real_iso = False
53 53 self.var_real_burn = False
54 54 self.var_real_check = False
55 55 self.var_real_eject = False
56 56 self.var_real_manual_check = True
57 57 self.var_real_show_cmd = True
58 58
59 59 if self.var_real_detect_devices == True:
60 60 # Reconocimiento de los dispositivos de grabacion
61 61 functions2.detect_devices(self)
62 62 else:
63 63 functions2.set_devices_test(self)
64 64
65 65 #Inicialiazacion de variables
66 66 self.var_Discs = 0 #Numero de discos del proyecto
67 67 self.var_Copys = 0 #Numero de copias
68 68 self.var_disc_n = 0 # disco actual
69 69 self.var_copy_n = 0 # copia actual
70 70 self.var_burned_discs = 0 #numero de discos ya grabados
71 71
72 72 self.bool_first_iso = False
73 73 self.var_step = 0 # numero de paso en el proceso
74 74 self.bool_state_burning = False #si es True se puede grabar
75 75 self.blank_discs = False # Si es true significa que se acaban de ingresar discos en blanco
76 76
77 77 self.var_list=[] # Lista de DOYs
78 78 self.var_sublist=[] # Sub-lista de DOYs seleccionados
79 79 self.var_devices=[] #Lista de dispositivos seleccionados
80 80
81 81 #Revisa si existe el archivo de confirguracion y lo carga
82 82 if os.path.isfile("parameters.conf"):
83 83 functions2.get_parameters_conf(self)
84 84 self.bool_first_iso = True
85 85 self.txtInfo.append("Parameters were loaded from configuration file")
86 86 self.txtInfo.append("Total number of discs for recording: "+str(self.var_Discs * self.var_Copys))
87 87
88 88 elif self.var_real_principal == False:
89 89 functions2.set_parameters_test(self) #Establece ciertos parametros, para pruebas
90 90
91 91 functions2.set_vars(self) #Carga las variables de la clase con los parametros seleccionados
92 92
93 93 self.statusDpath = functions.dir_exists(self.var_Dpath, self)
94 94 self.statusRpath = functions.dir_exists(self.var_Rpath, self)
95 95 functions.load_days(self)
96 96
97 97 if os.path.isfile("parameters.conf"):
98 98 functions2.enabled_items1(True, self) #Se bloquean los parametros de configuracion
99 99
100 100 if os.path.isfile("burning.conf"):
101 101 functions2.get_burning_conf(self)
102 102 self.txtInfo.append("Current disc: "+str(self.var_disc_n))
103 103 self.txtInfo.append("Current copy: "+str(self.var_copy_n))
104 104 self.txtInfo.append("Burned discs: "+str(self.var_burned_discs))
105 105 self.btnStartburn.setText("Continue")
106 106 self.actionChange_Parameters.setEnabled(False)
107 107
108 108 self.connect(self.actionChange_Parameters, QtCore.SIGNAL("triggered()"), self.changeParameters)
109 109 self.connect(self.actionAbout, QtCore.SIGNAL("triggered()"), self.about)
110 110
111 111 self.process_iso = QtCore.QProcess()
112 112 self.connect(self.process_iso, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_iso)
113 113 self.connect(self.process_iso, QtCore.SIGNAL('readyReadStandardError()'), self.readError_iso)
114 114 self.connect(self.process_iso, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_iso)
115 115
116 116 self.process_burn = QtCore.QProcess()
117 117 self.connect(self.process_burn, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_burn)
118 118 self.connect(self.process_burn, QtCore.SIGNAL('readyReadStandardError()'), self.readError_burn)
119 119 self.connect(self.process_burn, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_burn)
120 120
121 121 self.process_check = QtCore.QProcess()
122 122 self.connect(self.process_check, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_check)
123 123 self.connect(self.process_check, QtCore.SIGNAL('readyReadStandardError()'), self.readError_check)
124 124 self.connect(self.process_check, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_check)
125 125
126 126 self.process_manual_check = QtCore.QProcess()
127 127 self.connect(self.process_manual_check, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_manual_check)
128 128 self.connect(self.process_manual_check, QtCore.SIGNAL('readyReadStandardError()'), self.readError_manual_check)
129 129 self.connect(self.process_manual_check, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_manual_check)
130 130
131 131 def changeParameters(self):
132 132 dlg=QtGui.QDialog()
133 133 dlgui=Ui_Parameters()
134 134 dlgui.setupUi(dlg)
135 135 if (dlg.exec_() == QtGui.QDialog.Accepted):
136 136 if dlgui.txtDisc.value() > self.var_Discs or dlgui.txtCopy.value() > dlgui.txtNcopys.value():
137 137 self.txtInfo.append("Wrong parameters")
138 138 else:
139 139 self.var_Copys = dlgui.txtNcopys.value()
140 140 self.var_disc_n = dlgui.txtDisc.value()
141 141 self.var_copy_n = dlgui.txtCopy.value()
142 142 self.txtInfo.append("Changed parameters")
143 143 self.var_burned_discs = ( ( (self.var_disc_n - 1) * self.var_Copys) + self.var_copy_n -1 )
144 144 self.bool_first_iso = True
145 145 self.txtInfo.append("Current disc: "+str(self.var_disc_n))
146 146 self.txtInfo.append("Current copy: "+str(self.var_copy_n))
147 147 self.txtInfo.append("Nro Copys: "+str(self.var_Copys))
148 148 functions2.make_parameters_conf(self)
149 149 self.txtCopys.setValue(self.var_Copys) #Actualizo mananualmente el valor Copys
150 150
151 151
152 152
153 153 def about(self):
154 154 dlg_about=QtGui.QDialog()
155 155 dlgui_about=Ui_About()
156 156 dlgui_about.setupUi(dlg_about)
157 157 dlg_about.exec_()
158 158
159 159
160 160 #==============================================================================
161 161 # Manejo de los eventos
162 162 #==============================================================================
163 163
164 164 #----------------------------------------------------- Obtencion de la ruta de los datos ---------------------------------------------------------------
165 165
166 166 @pyqtSignature("")
167 167 def on_btnDpath_clicked(self):
168 168 """
169 169 Permite seleccionar graficamente el direcorio de los datos a grabar
170 170 """
171 171 self.var_Dpath= str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly))
172 172 self.txtDpath.setText(self.var_Dpath)
173 173 self.statusDpath = functions.dir_exists(self.var_Dpath, self)
174 174 functions.load_days(self)
175 175
176 176
177 177 @pyqtSignature("")
178 178 def on_txtDpath_editingFinished(self):
179 179 """
180 180 Carga la ruta editada y verifica que sea correcta y carga la lista de dias
181 181 """
182 182 self.var_Dpath=str(self.txtDpath.text()) #Se carga la variable con la ruta recien editada
183 183 self.statusDpath = functions.dir_exists(self.var_Dpath, self)
184 184 functions.load_days(self)
185 185
186 186
187 187 #----------------------------------------------------- Obtencion de las ruta del proyecto ---------------------------------------------------------------
188 188
189 189 @pyqtSignature("")
190 190 def on_btnRpath_clicked(self):
191 191 """
192 192 Permite seleccionar graficamente el direcorio del proyecto
193 193 """
194 194 self.var_Rpath = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly))
195 195 self.txtRpath.setText(self.var_Rpath)
196 196 self.statusRpath = functions.dir_exists(self.var_Rpath, self)
197 197
198 198
199 199 @pyqtSignature("")
200 200 def on_txtRpath_editingFinished(self):
201 201 """
202 202 Valida la ruta del proyecto
203 203 """
204 204 self.var_Rpath = str(self.txtRpath.text()) #Se carga la variable con la ruta recien editada
205 205 self.statusRpath = functions.dir_exists(self.var_Rpath, self)
206 206
207 207
208 208 #----------------------------------------------------- Tipo de datos ---------------------------------------------------------------
209 209
210 210 @pyqtSignature("int")
211 211 def on_lstDtype_activated(self, index):
212 212 """
213 213 Permite elegir entre los tipos de archivos
214 214 """
215 215 self.txtDtype.setReadOnly(True)
216 216 if index == 0:
217 217 self.var_Dtype ='r'
218 218 elif index == 1:
219 219 self.var_Dtype ='pdata'
220 220 elif index == 2:
221 221 self.var_Dtype ='sswma'
222 222 else :
223 223 self.var_Dtype =''
224 224 self.txtDtype.setReadOnly(False)
225 225
226 226 self.txtDtype.setText(self.var_Dtype)
227 227 functions.load_days(self) #llamada a funcion
228 228
229 229 @pyqtSignature("")
230 230 def on_txtDtype_editingFinished(self):
231 231 self.var_Dtype=str(self.txtDtype.text())
232 232 functions.load_days(self) #llamada a funcion
233 233
234 234
235 235 #----------------------------------------------------- Etiqueta ---------------------------------------------------------------
236 236
237 237 @pyqtSignature("")
238 238 def on_txtElabel_editingFinished(self):
239 239 self.var_Elabel = str(self.txtElabel.text())
240 240
241 241 #----------------------------------------------------- Numero de copias ---------------------------------------------------------------
242 242 @pyqtSignature("")
243 243 def on_txtCopys_editingFinished(self):
244 244 self.var_Copys = self.txtCopys.value()
245 245
246 246 #----------------------------------------------------- Seleccion del rango de fechas ---------------------------------------------------------------
247 247
248 248 @pyqtSignature("int") #CLOSED
249 249 def on_lstStartDay_activated(self, index):
250 250 """
251 251 Cambia la lista de opciones en lstStopDay
252 252 """
253 253 var_StopDay_index=self.lstStopDay.count() - self.lstStopDay.currentIndex()
254 254 self.lstStopDay.clear()
255 255
256 256 for i in self.var_list[index:]:
257 257 self.lstStopDay.addItem(i)
258 258
259 259 self.lstStopDay.setCurrentIndex(self.lstStopDay.count() - var_StopDay_index)
260 260
261 261 functions.get_sub_list(self)
262 262
263 263
264 264 @pyqtSignature("int") #CLOSED
265 265 def on_lstStopDay_activated(self, index):
266 266 """
267 267 Cambia la lista de opciones en lstStartDay
268 268 """
269 269 var_StartDay_index=self.lstStartDay.currentIndex()
270 270 var_end_index = self.lstStopDay.count() - index
271 271 self.lstStartDay.clear()
272 272
273 273 for i in self.var_list[:len(self.var_list) - var_end_index + 1]:
274 274 self.lstStartDay.addItem(i)
275 275
276 276 self.lstStartDay.setCurrentIndex(var_StartDay_index)
277 277
278 278 functions.get_sub_list(self)
279 279
280 280
281 281 #----------------------------------------------------- Capacidad del dispositivo de grabacion ---------------------------------------------------------------
282 282
283 283 @pyqtSignature("")
284 284 def on_txtDcapacity_editingFinished(self):
285 285 self.var_Dcapacity = self.txtDcapacity.value()
286 286
287 287
288 288 @pyqtSignature("int") #CLOSED
289 289 def on_lstDcapacity_activated(self, index):
290 290 """
291 291 Permite elegir el tamaño del disco
292 292 """
293 293 if index == 0:
294 294 var_size=25.0
295 295 elif index == 1:
296 296 var_size=8.5
297 297 elif index == 2:
298 298 var_size=4.7
299 299 elif index == 3:
300 300 var_size=0.7
301 301
302 302 if index != 4:
303 303 self.txtDcapacity.setValue(var_size*10**9/1024**2)
304 304 self.txtDcapacity.setReadOnly(True)
305 305 else:
306 306 self.txtDcapacity.setValue(100.0)
307 307 self.txtDcapacity.setReadOnly(False)
308 308
309 309 self.var_lstDcapacity = self.lstDcapacity.currentIndex()
310 310 self.var_Dcapacity = self.txtDcapacity.value()
311 311
312 312 #----------------------------------------------------- Testeo de las unidades de grabacion ---------------------------------------------------------------
313 313
314 314 @pyqtSignature("")
315 315 def on_btnTdevA_clicked(self):
316 316 var_dev = str(self.txtDeviceA.text())
317 317 var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev
318 318 commands.getstatusoutput(var_cmd)
319 319
320 320 @pyqtSignature("")
321 321 def on_btnTdevB_clicked(self):
322 322 var_dev = str(self.txtDeviceB.text())
323 323 var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev
324 324 commands.getstatusoutput(var_cmd)
325 325
326 326 @pyqtSignature("")
327 327 def on_btnTdevC_clicked(self):
328 328 var_dev = str(self.txtDeviceC.text())
329 329 var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev
330 330 commands.getstatusoutput(var_cmd)
331 331
332 332 @pyqtSignature("")
333 333 def on_btnTdevD_clicked(self):
334 334 var_dev = str(self.txtDeviceD.text())
335 335 var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev
336 336 commands.getstatusoutput(var_cmd)
337 337
338 338
339 339 #==============================================================================
340 340 # Botones para la generacion de los archivos de configuracion
341 341 #==============================================================================
342 342
343 343 #----------------------------------------------------- Generacion de la configuracion usando los parametros ---------------------------------------------------------------
344 344
345 345 @pyqtSignature("")
346 346 def on_btnGbkp_clicked(self):
347 347 """
348 348 Generacion de archivos de configuracion usando los parametros
349 349 """
350 350
351 if self.bool_state_manual_check == True:
352 self.txtInfo.append("First stop the manual check process")
353 return
354
355
351 356 if functions.validate_parameters(self) == False:
352 357 return
353 358
354 359 #Crea las carpetas en la ruta del proyecto y verifica que se crearon correctamente
355 360 list_dirs=['gpath','iso','ppath', 'tmpdata']
356 361 bool_make_dirs = functions.make_dirs(list_dirs, self)
357 362 if bool_make_dirs == False:
358 363 return
359 364
360 365 var_files_list = functions.list_files(self) #Se obtiene la lista de archivos a grabar
361 366
362 367 self.var_Discs = functions.make_files_dat(var_files_list, self) #Se crean los archivos .dat
363 368
364 369 functions.make_files_print(self) # Se crean los archivos .print
365 370
366 371 functions2.make_parameters_conf(self) # se crea el archivo parameters.conf
367 372
368 373 self.txtInfo.append("Total number of discs for recording: "+str(self.var_Discs * self.var_Copys))
369 374
370 375 #Se bloquean los parametros de configuracion
371 376 functions2.enabled_items1(True, self)
372 377 self.var_disc_n = 1
373 378 self.var_copy_n = 1
374 379 self.bool_first_iso = True
375 380 self.var_burned_discs = 0 #numero de discos grabados
376 381
377 382
378 383 #----------------------------------------------------- Permite reiniciar la configuracion ---------------------------------------------------------------
379 384
380 385 @pyqtSignature("")
381 386 def on_btnRestart_clicked(self):
382 387 """
383 388 Permite que se puedan cambiar los parametros
384 389 """
385 390 if os.path.isfile("parameters.conf"):
386 391 os.remove("parameters.conf")
387 392 if os.path.isfile("burning.conf"):
388 393 os.remove("burning.conf")
389 394
390 395 functions2.enabled_items1(False, self)
391 396 self.btnStartburn.setText("Start Burn")
392 397 self.txtInfo.clear()
393 398
394 399
395 400
396 401 #==============================================================================
397 402 # Acciones de los procesos
398 403 #==============================================================================
399 404
400 405 #------------------------------------------------ Funciones del proceso de creacion del iso ------------------------------------------------------
401 406
402 407 def readOuput_iso(self):
403 408 self.txtProgress.setText("stdout iso: " + QtCore.QString(self.process_iso.readAllStandardOutput()))
404 409
405 410 def readError_iso(self):
406 411 self.txtProgress.setText("stderr iso: " + QtCore.QString(self.process_iso.readAllStandardError()))
407 412
408 413 def finished_iso(self):
409 414 self.txtProgress.clear()
410 415
411 416 if not(self.bool_state_burning):
412 417 return
413 418
414 419 if self.process_iso.exitCode() == 0:
415 420 self.txtInfo.append("------Iso file: "+functions.i2s(self.var_disc_n)+" created successfully\n")
416 421 self.var_step = 1
417 422 self.function_burn()
418 423
419 424 else:
420 425 self.txtInfo.append("#####Error creating iso file "+functions.i2s(self.var_disc_n)
421 426 +" , code "+QtCore.QString(self.process_iso.exitCode()))
422 427 self.txtInfo.append("Please check the data")
423 428 self.txtInfo.append("FATAL ERROR")
424 429
425 430 #----------------------------------------------------- Funciones del proceso de grabado ---------------------------------------------------------------
426 431
427 432 def readOuput_burn(self):
428 433 self.txtProgress.setText("stdout burn: " + QtCore.QString(self.process_burn.readAllStandardOutput()))
429 434
430 435 def readError_burn(self):
431 436 self.txtProgress.setText("stderr burn: " + QtCore.QString(self.process_burn.readAllStandardError()))
432 437
433 438 def finished_burn(self):
434 439 self.txtProgress.clear()
435 440
436 441 #Si se paro el proceso manualmente se termina
437 442 if not(self.bool_state_burning):
438 443 return
439 444
440 445 if self.process_burn.exitCode() == 0:
441 446 self.txtInfo.append("-----Complete recording, disc: "+str(self.var_disc_n)+" copy: "+str(self.var_copy_n))
442 447 functions2.update_message(1, "COMPLETED", self)
443 448 self.var_step = 2
444 449 self.function_check()
445 450
446 451 else:
447 452 self.txtInfo.append("#######Error recording, disc: "+functions.i2s(self.var_disc_n)+" copy: "
448 453 +functions.i2s(self.var_copy_n)+", code "+QtCore.QString(self.process_burn.exitCode()))
449 454 functions2.update_message(1, "ERROR", self)
450 455
451 456 functions.is_last_disc_and_copy(self)
452 457
453 458
454 459 #----------------------------------------------------- Funciones del proceso de verificacion ---------------------------------------------------------------
455 460
456 461 def readOuput_check(self):
457 462 self.txtProgress.setText("stdout check: " + QtCore.QString(self.process_check.readAllStandardOutput()))
458 463
459 464 def readError_check(self):
460 465 self.txtProgress.setText("stderr check: " + QtCore.QString(self.process_check.readAllStandardError()))
461 466
462 467 def finished_check(self):
463 468 self.txtProgress.clear()
464 469
465 470 if not(self.bool_state_burning):
466 471 return
467 472
468 473 if self.process_check.exitCode() == 0:
469 474 self.txtInfo.append("--------Complete checking, disc: "+str(self.var_disc_n)+" copy: "+str(self.var_copy_n))
470 475 functions2.update_message(2, "CHECKED", self)
471 476
472 477 else:
473 478 self.txtInfo.append("#######Error checking, disc: "+functions.i2s(self.var_disc_n)+" copy: "
474 479 +functions.i2s(self.var_copy_n)+", code "+QtCore.QString(self.process_check.exitCode()))
475 480 functions2.update_message(2, "ERROR", self)
476 481
477 482 #borrar el contenido de tmpdata
478 483 var_tmpdata=self.var_Rpath+"/tmpdata"
479 484
480 485 bool_return = functions.remove_dir(var_tmpdata, self)
481 486 if not(bool_return):
482 487 self.txtInfo.append("Error deleting directory: "+var_tmpdata)
483 488 self.bool_state_burning = False
484 489 return
485 490
486 491 bool_return = functions.make_dir(var_tmpdata, self)
487 492 if not(bool_return):
488 493 self.txtInfo.append("Error creating directory:"+ var_tmpdata)
489 494 self.bool_state_burning = False
490 495 return
491 496
492 497 functions.is_last_disc_and_copy(self)
493 498
494 499 #----------------------------------------------------- Funciones del proceso de verificacion manual ---------------------------------------------------------------
495 500
496 501 def readOuput_manual_check(self):
497 502 self.txtProgress.setText("stdout check: " + QtCore.QString(self.process_manual_check.readAllStandardOutput()))
498 503
499 504 def readError_manual_check(self):
500 505 self.txtProgress.setText("stderr check: " + QtCore.QString(self.process_manual_check.readAllStandardError()))
501 506
502 507 def finished_manual_check(self):
503 508 self.txtProgress.clear()
504 509
505 510 if not(self.bool_state_manual_check):
506 511 return
507 512
508 513 if self.process_manual_check.exitCode() == 0:
509 514 self.txtInfo.append("--------Complete checking, disc: "+str(self.var_n_check_dirs + 1))
510 515 functions2.update_message(2, "CHECKED", self, index=self.var_n_check_dirs)
511 516
512 517 else:
513 518 self.txtInfo.append("#######Error checking, disc: "+str(self.var_n_check_dirs + 1)
514 519 +", code "+QtCore.QString(self.process_manual_check.exitCode()))
515 520 functions2.update_message(2, "ERROR", self, index=self.var_n_check_dirs)
516 521
517 522 #borrar el contenido de tmpdata
518 523 var_tmpdata=self.var_TDpath+"/tmpdata"
519 524
520 525 bool_return = functions.remove_dir(var_tmpdata, self)
521 526 if not(bool_return):
522 527 self.txtInfo.append("Error deleting directory: "+var_tmpdata)
523 528 self.bool_state_manual_check = False
524 529 return
525 530
526 531 self.var_n_check_dirs +=1
527 532
528 533 if self.var_n_check_dirs >= len(self.list_check_dirs) :
529 534 self.bool_state_manual_check = False
530 535 self.function_manual_check_final()
531 536 return
532 537
533 538 self.function_manual_check()
534 539
535 540
536 541 #==============================================================================
537 542 # Botones para el proceso de grabacion
538 543 #==============================================================================
539 544
540 545 #----------------------------------------------------- Iniciar proceso de grabacion ---------------------------------------------------------------
541 546
542 547 @pyqtSignature("")
543 548 def on_btnStartburn_clicked(self):
544 549 """
545 550 Se inicia el proceso de grabacion
546 551 """
547 552 #Verifica que exista algun dispositivo de grabacion seleccionado
548 553 if not(functions2.selected_devices(self)):
549 554 self.txtInfo.append("There is no recording device selected")
550 555 return
551 556
552 557 # #Lista los dispositivos de grabacion a usar
553 558 # for dev in self.var_devices:
554 559 # self.txtInfo.append("recording device :"+dev)
555 560
556 561 self.bool_state_burning = True
557 562 functions2.enabled_items2(True, self)
558 563
559 564 if self.bool_first_iso == True:
560 565 self.txtInfo.append("BUTTON: on_btnStartburn_clicked")
561 566 self.var_step = 4
562 567 self.function_eject()
563 568 return
564 569
565 570 if self.var_step == 0:
566 571 self.function_iso()
567 572 return
568 573
569 574 if self.var_step == 1:
570 575 self.function_burn()
571 576 return
572 577
573 578 #----------------------------------------------------- Funcion para el grabado ---------------------------------------------------------------
574 579
575 580 def function_iso(self):
576 581 #Creacion del archivo.iso para la grabacion
577 582 if self.var_step == 0:
578 583 self.txtInfo.append("########## Disc number: "+str(self.var_disc_n)+"##########")
579 584 self.txtInfo.append("------Creating iso file number: "+str(self.var_disc_n))
580 585
581 586 var_cmd = functions.cmd_iso(self)
582 587
583 588 if self.var_real_show_cmd == True:
584 589 self.txtInfo.append("CMD: "+var_cmd)
585 590
586 591 if self.var_real_iso == False:
587 592 self.txtInfo.append('**function_iso')
588 593 var_cmd="echo 'function_iso'"
589 594
590 595 self.process_iso.start(var_cmd)
591 596
592 597 def function_burn(self):
593 598 #Grabacion de los DVDs
594 599
595 600 if self.var_step == 1:
596 601 self.txtInfo.append("------Recording disc: "+str(self.var_disc_n)+", copy:"+str(self.var_copy_n))
597 602 functions2.update_message(1, "BURNING", self)
598 603
599 604 var_cmd = functions.cmd_burn(self)
600 605
601 606 if self.var_real_show_cmd == True:
602 607 self.txtInfo.append("CMD: "+var_cmd)
603 608
604 609 if self.var_real_burn == False:
605 610 self.txtInfo.append('**function_burn')
606 611 var_cmd="echo 'function_burn'"
607 612
608 613 self.process_burn.start(var_cmd)
609 614
610 615 def function_check(self):
611 616 #Verificacion de los discos
612 617 if self.var_step == 2:
613 618 self.txtInfo.append("-----------checking disc:"+str(self.var_disc_n)+", copy:"+str(self.var_copy_n))
614 619
615 620 functions2.eject_one_device(self)
616 621 functions2.eject_t_one_device(self)
617 622 self.txtInfo.append("Waiting ...")
618 623 time .sleep(20)
619 624
620 625 functions2.update_message(2, "CHECKING", self)
621 626
622 627 dev_sr = functions2.get_dev_sr(self)
623 628 var_cmd = functions.cmd_check(dev_sr, self)
624 629
625 630 if self.var_real_show_cmd == True:
626 631 self.txtInfo.append("CMD: "+var_cmd)
627 632
628 633 if self.var_real_check == False:
629 634 self.txtInfo.append('**function_check')
630 635 var_cmd="echo 'function_check'"
631 636
632 637 self.process_check.start(var_cmd)
633 638
634 639 #OK
635 640 def function_eject(self):
636 641 self.txtInfo.append("Ejecting recording devices")
637 642 self.txtInfo.append("Please insert blank discs")
638 643
639 644 if self.var_real_eject == True:
640 645 functions2.eject_devices(self) # Expulsa las bandejas de los dispostivos de grabacion
641 646 else:
642 647 self.txtInfo.append("**functions2.eject_devices")
643 648
644 649 self.btnStartburn.setText("Continue")
645 650 self.btnStartburn.setEnabled(True)
646 651
647 652 if self.bool_first_iso == True:
648 653 self.bool_first_iso = False
649 654 self.var_step = 0
650 655
651 656 elif self.var_copy_n == 1:
652 657 self.var_step = 0
653 658
654 659 else:
655 660 self.var_step = 1
656 661
657 662 def function_final(self):
658 663 self.txtInfo.append("Recording process is complete")
659 664 if os.path.isfile("parameters.conf"):
660 665 os.remove("parameters.conf")
661 666 if os.path.isfile("burning.conf"):
662 667 os.remove("burning.conf")
663 668
664 669 functions2.eject_devices(self) # Expulsa las bandejas de los dispostivos de grabacion
665 670
666 671
667 672
668 673
669 674 #----------------------------------------------------- Detener proceso de grabacion ---------------------------------------------------------------
670 675
671 676 @pyqtSignature("")
672 677 def on_btnStopburn_clicked(self):
673 678 """
674 679 Slot documentation goes here.
675 680 """
676 681 self.bool_state_burning = False
677 682
678 683 if self.var_step == 0:
679 684 self.process_iso.terminate() #Termina el proceso, si puede
680 685 # self.process_iso.kill() #Mata el proceso, no es la forma adecuada, solo usar si terminate() no funciona
681 686 elif self.var_step == 1:
682 687 self.process_burn.terminate()
683 688 elif self.var_step == 2:
684 689 self.process_check.terminate()
685 690
686 691 self.txtInfo.append("Stopped recording")
687 692 functions2.enabled_items2(False, self)
688 693 self.bool_first_iso = True
689 694
690 695
691 696
692 697 #==============================================================================
693 698 # Proceso verificacion manual
694 699 #==============================================================================
695 700
696 701
697 702 #----------------------------------------------------- Proceso de verificaion manual ---------------------------------------------------------------
698 703
699 704
700 705 @pyqtSignature("")
701 706 def on_btnTDpath_clicked(self):
702 707 """
703 708 Slot documentation goes here.
704 709 """
705 710 self.var_TDpath= str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly))
706 711 self.txtTDpath.setText(self.var_TDpath)
707 712 self.statusTDpath = functions.dir_exists(self.var_TDpath, self)
708 713 if self.statusTDpath:
709 714 self.btnCHstart.setEnabled(True)
710 715
711 716
712 717 @pyqtSignature("")
713 718 def on_btnCHstart_clicked(self):
714 719 """
715 720 Slot documentation goes here.
716 721 """
717 722
718 723 if self.btnCHstart.text() == "STOP":
719 724 self.btnCHstart.setText("START") #Cambio el texto del boton
720 725 self.bool_state_manual_check = False
721 726 self.process_manual_check.terminate()
722 727
723 728 #borrar el contenido de tmpdata
724 729 var_tmpdata=self.var_TDpath+"/tmpdata"
725 730 bool_return = functions.remove_dir(var_tmpdata, self)
726 731 if not(bool_return):
727 732 self.txtInfo.append("Error deleting directory: "+var_tmpdata)
728 733
729 734 return
730 735
731 736
732 737 list_dirs = functions2.mounted_devices()
733 738 if list_dirs == "FATAL ERROR":
734 739 self.txtInfo.append("ERROR")
735 740 return
736 741
737 742 for i in list_dirs:
738 743 self.txtInfo.append(i)
739 744
740 745 self.list_check_dirs = list_dirs #contiene los directorios donde estan montados los discos a verificar
741 746 self.var_n_check_dirs = 0
742 747 self.bool_state_manual_check = True
743 748
744 749 self.btnTDpath.setEnabled(False) #Deshabilito el boton que permite cambiar la ruta de verificacion
745 750 self.btnCHstart.setText("STOP") #Cambio el texto del boton
746 751
747 752 self.function_manual_check()
748 753
749 754
750 755 def function_manual_check(self):
751 756
752 757 #Verificacion de los discos
753 758 if self.bool_state_manual_check == True:
754 759
755 760 self.txtInfo.append("-----------manually checking disc: "+str(self.var_n_check_dirs + 1)
756 761 +" directory: "+self.list_check_dirs[self.var_n_check_dirs])
757 762
758 763 functions2.update_message(2, "CHECKING", self, index=self.var_n_check_dirs)
759 764
760 765 #Crea la carpeta tmpdata dentro de la ruta elegida
761 766 var_tmpdata=self.var_TDpath+"/tmpdata"
762 767 bool_return = functions.make_dir(var_tmpdata, self)
763 768 if not(bool_return):
764 769 self.txtInfo.append("Error creating directory:"+ var_tmpdata)
765 770 self.bool_state_burning = False
766 771 return
767 772
768 773 var_data_dir = self.list_check_dirs[self.var_n_check_dirs] #Carpeta donde esta montado el disco actual
769 774
770 775 var_cmd = functions.cmd_manual_check(var_data_dir, var_tmpdata)
771 776
772 777 if self.var_real_show_cmd == True:
773 778 self.txtInfo.append("CMD: "+var_cmd)
774 779
775 780 if self.var_real_manual_check == False:
776 781 self.txtInfo.append('**function_manual_check')
777 782 var_cmd="echo 'function_manual_check'"
778 783
779 784 self.process_manual_check.start(var_cmd)
780 785
781 786
782 787 def function_manual_check_final(self):
783 788 self.txtInfo.append("Manual check process is complete")
784 789 self.btnCHstart.setText("START") #Cambio el texto del boton
785 790 for var_mount_point in self.list_check_dirs:
786 791 var_cmd = 'eject ' + var_mount_point
787 792 commands.getstatusoutput(var_cmd)
788 793
789 794
@@ -1,1466 +1,1408
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <ui version="4.0">
3 3 <class>MainWindow</class>
4 4 <widget class="QMainWindow" name="MainWindow">
5 5 <property name="geometry">
6 6 <rect>
7 7 <x>0</x>
8 8 <y>0</y>
9 9 <width>824</width>
10 10 <height>717</height>
11 11 </rect>
12 12 </property>
13 13 <property name="windowTitle">
14 14 <string>JRO BACKUP MANAGER</string>
15 15 </property>
16 16 <widget class="QWidget" name="centralwidget">
17 17 <layout class="QVBoxLayout" name="verticalLayout">
18 18 <item>
19 19 <widget class="QTabWidget" name="tabWidget">
20 20 <property name="enabled">
21 21 <bool>true</bool>
22 22 </property>
23 23 <property name="sizePolicy">
24 24 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
25 25 <horstretch>0</horstretch>
26 26 <verstretch>0</verstretch>
27 27 </sizepolicy>
28 28 </property>
29 29 <property name="currentIndex">
30 30 <number>2</number>
31 31 </property>
32 32 <widget class="QWidget" name="tabParameters">
33 33 <property name="enabled">
34 34 <bool>true</bool>
35 35 </property>
36 36 <attribute name="title">
37 37 <string>Parameters</string>
38 38 </attribute>
39 39 <layout class="QVBoxLayout" name="verticalLayout_2">
40 40 <item>
41 41 <layout class="QHBoxLayout" name="horizontalLayout">
42 42 <property name="sizeConstraint">
43 43 <enum>QLayout::SetDefaultConstraint</enum>
44 44 </property>
45 45 <item>
46 46 <widget class="QLineEdit" name="txtDpath">
47 47 <property name="sizePolicy">
48 48 <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
49 49 <horstretch>0</horstretch>
50 50 <verstretch>0</verstretch>
51 51 </sizepolicy>
52 52 </property>
53 53 </widget>
54 54 </item>
55 55 <item>
56 56 <widget class="QPushButton" name="btnDpath">
57 57 <property name="sizePolicy">
58 58 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
59 59 <horstretch>0</horstretch>
60 60 <verstretch>0</verstretch>
61 61 </sizepolicy>
62 62 </property>
63 63 <property name="text">
64 64 <string>Data Path</string>
65 65 </property>
66 66 <property name="checkable">
67 67 <bool>false</bool>
68 68 </property>
69 69 </widget>
70 70 </item>
71 71 </layout>
72 72 </item>
73 73 <item>
74 74 <layout class="QHBoxLayout" name="horizontalLayout_3">
75 75 <item>
76 76 <widget class="QLineEdit" name="txtRpath"/>
77 77 </item>
78 78 <item>
79 79 <widget class="QPushButton" name="btnRpath">
80 80 <property name="text">
81 81 <string>Resource Path</string>
82 82 </property>
83 83 </widget>
84 84 </item>
85 85 </layout>
86 86 </item>
87 87 <item>
88 88 <widget class="QLabel" name="lblDtype">
89 89 <property name="text">
90 90 <string>Data Type</string>
91 91 </property>
92 92 </widget>
93 93 </item>
94 94 <item>
95 95 <layout class="QHBoxLayout" name="horizontalLayout_4">
96 96 <item>
97 97 <widget class="QComboBox" name="lstDtype">
98 98 <item>
99 99 <property name="text">
100 100 <string>Raw Data</string>
101 101 </property>
102 102 </item>
103 103 <item>
104 104 <property name="text">
105 105 <string>Process Data</string>
106 106 </property>
107 107 </item>
108 108 <item>
109 109 <property name="text">
110 110 <string>BLTR Data</string>
111 111 </property>
112 112 </item>
113 113 <item>
114 114 <property name="text">
115 115 <string>Other</string>
116 116 </property>
117 117 </item>
118 118 </widget>
119 119 </item>
120 120 <item>
121 121 <widget class="QLineEdit" name="txtDtype">
122 122 <property name="sizePolicy">
123 123 <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
124 124 <horstretch>0</horstretch>
125 125 <verstretch>0</verstretch>
126 126 </sizepolicy>
127 127 </property>
128 128 <property name="text">
129 129 <string>r</string>
130 130 </property>
131 131 <property name="readOnly">
132 132 <bool>true</bool>
133 133 </property>
134 134 </widget>
135 135 </item>
136 136 <item>
137 137 <spacer name="horizontalSpacer">
138 138 <property name="orientation">
139 139 <enum>Qt::Horizontal</enum>
140 140 </property>
141 141 <property name="sizeType">
142 142 <enum>QSizePolicy::Expanding</enum>
143 143 </property>
144 144 <property name="sizeHint" stdset="0">
145 145 <size>
146 146 <width>40</width>
147 147 <height>20</height>
148 148 </size>
149 149 </property>
150 150 </spacer>
151 151 </item>
152 152 </layout>
153 153 </item>
154 154 <item>
155 155 <layout class="QHBoxLayout" name="horizontalLayout_6">
156 156 <item>
157 157 <widget class="QLabel" name="lblElabel">
158 158 <property name="text">
159 159 <string>Exp. Label at device</string>
160 160 </property>
161 161 </widget>
162 162 </item>
163 163 <item>
164 164 <widget class="QLabel" name="lblCopys">
165 165 <property name="text">
166 166 <string>Copys</string>
167 167 </property>
168 168 </widget>
169 169 </item>
170 170 </layout>
171 171 </item>
172 172 <item>
173 173 <layout class="QHBoxLayout" name="horizontalLayout_5">
174 174 <item>
175 175 <widget class="QLineEdit" name="txtElabel"/>
176 176 </item>
177 177 <item>
178 178 <widget class="QSpinBox" name="txtCopys">
179 179 <property name="sizePolicy">
180 180 <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
181 181 <horstretch>0</horstretch>
182 182 <verstretch>0</verstretch>
183 183 </sizepolicy>
184 184 </property>
185 185 <property name="minimum">
186 186 <number>1</number>
187 187 </property>
188 188 </widget>
189 189 </item>
190 190 </layout>
191 191 </item>
192 192 <item>
193 193 <layout class="QHBoxLayout" name="horizontalLayout_7">
194 194 <item>
195 195 <widget class="QLabel" name="lblStartDay">
196 196 <property name="text">
197 197 <string>Start Day:</string>
198 198 </property>
199 199 </widget>
200 200 </item>
201 201 <item>
202 202 <widget class="QLabel" name="lblStopDay">
203 203 <property name="text">
204 204 <string>Stop Day:</string>
205 205 </property>
206 206 </widget>
207 207 </item>
208 208 </layout>
209 209 </item>
210 210 <item>
211 211 <layout class="QHBoxLayout" name="horizontalLayout_8">
212 212 <item>
213 213 <widget class="QComboBox" name="lstStartDay"/>
214 214 </item>
215 215 <item>
216 216 <widget class="QComboBox" name="lstStopDay"/>
217 217 </item>
218 218 </layout>
219 219 </item>
220 220 </layout>
221 221 </widget>
222 222 <widget class="QWidget" name="tabDconfig">
223 223 <property name="enabled">
224 224 <bool>true</bool>
225 225 </property>
226 226 <property name="sizePolicy">
227 227 <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
228 228 <horstretch>0</horstretch>
229 229 <verstretch>0</verstretch>
230 230 </sizepolicy>
231 231 </property>
232 232 <attribute name="title">
233 233 <string>Device Config.</string>
234 234 </attribute>
235 235 <layout class="QVBoxLayout" name="verticalLayout_3">
236 236 <item>
237 237 <layout class="QHBoxLayout" name="horizontalLayout_12">
238 238 <item>
239 239 <layout class="QVBoxLayout" name="verticalLayout_15">
240 240 <item>
241 241 <widget class="QCheckBox" name="chkDevA">
242 242 <property name="text">
243 243 <string>Dev A</string>
244 244 </property>
245 245 <property name="checked">
246 246 <bool>true</bool>
247 247 </property>
248 248 </widget>
249 249 </item>
250 250 <item>
251 251 <widget class="QWidget" name="grpDevA" native="true">
252 252 <layout class="QVBoxLayout" name="verticalLayout_11">
253 253 <item>
254 254 <widget class="QLineEdit" name="txtDeviceA">
255 255 <property name="readOnly">
256 256 <bool>true</bool>
257 257 </property>
258 258 </widget>
259 259 </item>
260 260 <item>
261 261 <widget class="QSpinBox" name="txtBspeedA">
262 262 <property name="readOnly">
263 263 <bool>true</bool>
264 264 </property>
265 265 <property name="minimum">
266 266 <number>1</number>
267 267 </property>
268 268 <property name="value">
269 269 <number>16</number>
270 270 </property>
271 271 </widget>
272 272 </item>
273 273 <item>
274 274 <widget class="QLineEdit" name="txtBmodeA">
275 275 <property name="text">
276 276 <string>-sao</string>
277 277 </property>
278 278 <property name="readOnly">
279 279 <bool>true</bool>
280 280 </property>
281 281 </widget>
282 282 </item>
283 283 <item>
284 284 <widget class="QPushButton" name="btnTdevA">
285 285 <property name="text">
286 286 <string>Test DevA</string>
287 287 </property>
288 288 </widget>
289 289 </item>
290 290 </layout>
291 291 </widget>
292 292 </item>
293 293 </layout>
294 294 </item>
295 295 <item>
296 296 <layout class="QVBoxLayout" name="verticalLayout_16">
297 297 <item>
298 298 <widget class="QCheckBox" name="chkDevB">
299 299 <property name="text">
300 300 <string>Dev B</string>
301 301 </property>
302 302 <property name="checked">
303 303 <bool>true</bool>
304 304 </property>
305 305 </widget>
306 306 </item>
307 307 <item>
308 308 <widget class="QWidget" name="grpDevB" native="true">
309 309 <layout class="QVBoxLayout" name="verticalLayout_12">
310 310 <item>
311 311 <widget class="QLineEdit" name="txtDeviceB">
312 312 <property name="readOnly">
313 313 <bool>true</bool>
314 314 </property>
315 315 </widget>
316 316 </item>
317 317 <item>
318 318 <widget class="QSpinBox" name="txtBspeedB">
319 319 <property name="readOnly">
320 320 <bool>true</bool>
321 321 </property>
322 322 <property name="minimum">
323 323 <number>1</number>
324 324 </property>
325 325 <property name="value">
326 326 <number>16</number>
327 327 </property>
328 328 </widget>
329 329 </item>
330 330 <item>
331 331 <widget class="QLineEdit" name="txtBmodeB">
332 332 <property name="text">
333 333 <string>-sao</string>
334 334 </property>
335 335 <property name="readOnly">
336 336 <bool>true</bool>
337 337 </property>
338 338 </widget>
339 339 </item>
340 340 <item>
341 341 <widget class="QPushButton" name="btnTdevB">
342 342 <property name="text">
343 343 <string>Test DevB</string>
344 344 </property>
345 345 </widget>
346 346 </item>
347 347 </layout>
348 348 </widget>
349 349 </item>
350 350 </layout>
351 351 </item>
352 352 <item>
353 353 <layout class="QVBoxLayout" name="verticalLayout_17">
354 354 <item>
355 355 <widget class="QCheckBox" name="chkDevC">
356 356 <property name="text">
357 357 <string>Dev C</string>
358 358 </property>
359 359 <property name="checked">
360 360 <bool>true</bool>
361 361 </property>
362 362 </widget>
363 363 </item>
364 364 <item>
365 365 <widget class="QWidget" name="grpDevC" native="true">
366 366 <layout class="QVBoxLayout" name="verticalLayout_13">
367 367 <item>
368 368 <widget class="QLineEdit" name="txtDeviceC">
369 369 <property name="readOnly">
370 370 <bool>true</bool>
371 371 </property>
372 372 </widget>
373 373 </item>
374 374 <item>
375 375 <widget class="QSpinBox" name="txtBspeedC">
376 376 <property name="readOnly">
377 377 <bool>true</bool>
378 378 </property>
379 379 <property name="minimum">
380 380 <number>1</number>
381 381 </property>
382 382 <property name="value">
383 383 <number>16</number>
384 384 </property>
385 385 </widget>
386 386 </item>
387 387 <item>
388 388 <widget class="QLineEdit" name="txtBmodeC">
389 389 <property name="text">
390 390 <string>-sao</string>
391 391 </property>
392 392 <property name="readOnly">
393 393 <bool>true</bool>
394 394 </property>
395 395 </widget>
396 396 </item>
397 397 <item>
398 398 <widget class="QPushButton" name="btnTdevC">
399 399 <property name="text">
400 400 <string>Test DevC</string>
401 401 </property>
402 402 </widget>
403 403 </item>
404 404 </layout>
405 405 </widget>
406 406 </item>
407 407 </layout>
408 408 </item>
409 409 <item>
410 410 <layout class="QVBoxLayout" name="verticalLayout_18">
411 411 <item>
412 412 <widget class="QCheckBox" name="chkDevD">
413 413 <property name="text">
414 414 <string>Dev D</string>
415 415 </property>
416 416 <property name="checked">
417 417 <bool>true</bool>
418 418 </property>
419 419 </widget>
420 420 </item>
421 421 <item>
422 422 <widget class="QWidget" name="grpDevD" native="true">
423 423 <layout class="QVBoxLayout" name="verticalLayout_14">
424 424 <item>
425 425 <widget class="QLineEdit" name="txtDeviceD">
426 426 <property name="readOnly">
427 427 <bool>true</bool>
428 428 </property>
429 429 </widget>
430 430 </item>
431 431 <item>
432 432 <widget class="QSpinBox" name="txtBspeedD">
433 433 <property name="readOnly">
434 434 <bool>true</bool>
435 435 </property>
436 436 <property name="minimum">
437 437 <number>1</number>
438 438 </property>
439 439 <property name="value">
440 440 <number>16</number>
441 441 </property>
442 442 </widget>
443 443 </item>
444 444 <item>
445 445 <widget class="QLineEdit" name="txtBmodeD">
446 446 <property name="text">
447 447 <string>-sao</string>
448 448 </property>
449 449 <property name="readOnly">
450 450 <bool>true</bool>
451 451 </property>
452 452 </widget>
453 453 </item>
454 454 <item>
455 455 <widget class="QPushButton" name="btnTdevD">
456 456 <property name="text">
457 457 <string>Test DevD</string>
458 458 </property>
459 459 </widget>
460 460 </item>
461 461 </layout>
462 462 </widget>
463 463 </item>
464 464 </layout>
465 465 </item>
466 466 <item>
467 467 <layout class="QVBoxLayout" name="verticalLayout_19">
468 468 <item>
469 469 <spacer name="verticalSpacer_3">
470 470 <property name="orientation">
471 471 <enum>Qt::Vertical</enum>
472 472 </property>
473 473 <property name="sizeType">
474 474 <enum>QSizePolicy::Minimum</enum>
475 475 </property>
476 476 <property name="sizeHint" stdset="0">
477 477 <size>
478 478 <width>20</width>
479 479 <height>40</height>
480 480 </size>
481 481 </property>
482 482 </spacer>
483 483 </item>
484 484 <item>
485 485 <widget class="QWidget" name="grpDevD_2" native="true">
486 486 <layout class="QVBoxLayout" name="verticalLayout_20">
487 487 <item>
488 488 <widget class="QLabel" name="lblDevice">
489 489 <property name="text">
490 490 <string>Device</string>
491 491 </property>
492 492 </widget>
493 493 </item>
494 494 <item>
495 495 <widget class="QLabel" name="lblBspeed">
496 496 <property name="text">
497 497 <string>Burn Speed</string>
498 498 </property>
499 499 </widget>
500 500 </item>
501 501 <item>
502 502 <widget class="QLabel" name="lblBmode">
503 503 <property name="text">
504 504 <string>Burn Mode</string>
505 505 </property>
506 506 </widget>
507 507 </item>
508 508 <item>
509 509 <spacer name="verticalSpacer_4">
510 510 <property name="orientation">
511 511 <enum>Qt::Vertical</enum>
512 512 </property>
513 513 <property name="sizeType">
514 514 <enum>QSizePolicy::Fixed</enum>
515 515 </property>
516 516 <property name="sizeHint" stdset="0">
517 517 <size>
518 518 <width>20</width>
519 519 <height>40</height>
520 520 </size>
521 521 </property>
522 522 </spacer>
523 523 </item>
524 524 </layout>
525 525 </widget>
526 526 </item>
527 527 </layout>
528 528 </item>
529 529 </layout>
530 530 </item>
531 531 <item>
532 532 <spacer name="verticalSpacer_2">
533 533 <property name="orientation">
534 534 <enum>Qt::Vertical</enum>
535 535 </property>
536 536 <property name="sizeType">
537 537 <enum>QSizePolicy::Minimum</enum>
538 538 </property>
539 539 <property name="sizeHint" stdset="0">
540 540 <size>
541 541 <width>20</width>
542 542 <height>40</height>
543 543 </size>
544 544 </property>
545 545 </spacer>
546 546 </item>
547 547 <item>
548 548 <layout class="QHBoxLayout" name="horizontalLayout_11">
549 549 <property name="spacing">
550 550 <number>6</number>
551 551 </property>
552 552 <property name="sizeConstraint">
553 553 <enum>QLayout::SetDefaultConstraint</enum>
554 554 </property>
555 555 <item>
556 556 <widget class="QLabel" name="lblDcapacity">
557 557 <property name="sizePolicy">
558 558 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
559 559 <horstretch>0</horstretch>
560 560 <verstretch>0</verstretch>
561 561 </sizepolicy>
562 562 </property>
563 563 <property name="text">
564 564 <string>Device Capacity</string>
565 565 </property>
566 566 </widget>
567 567 </item>
568 568 <item>
569 569 <spacer name="horizontalSpacer_2">
570 570 <property name="orientation">
571 571 <enum>Qt::Horizontal</enum>
572 572 </property>
573 573 <property name="sizeHint" stdset="0">
574 574 <size>
575 575 <width>40</width>
576 576 <height>20</height>
577 577 </size>
578 578 </property>
579 579 </spacer>
580 580 </item>
581 581 </layout>
582 582 </item>
583 583 <item>
584 584 <layout class="QHBoxLayout" name="horizontalLayout_10">
585 585 <property name="sizeConstraint">
586 586 <enum>QLayout::SetFixedSize</enum>
587 587 </property>
588 588 <item>
589 589 <widget class="QComboBox" name="lstDcapacity">
590 590 <property name="currentIndex">
591 591 <number>2</number>
592 592 </property>
593 593 <item>
594 594 <property name="text">
595 595 <string>BluRay [25.0 GB]</string>
596 596 </property>
597 597 </item>
598 598 <item>
599 599 <property name="text">
600 600 <string>DVD2 [8.5 GB]</string>
601 601 </property>
602 602 </item>
603 603 <item>
604 604 <property name="text">
605 605 <string>DVD1 [4.7 GB]</string>
606 606 </property>
607 607 </item>
608 608 <item>
609 609 <property name="text">
610 610 <string>CD [0.7 GB]</string>
611 611 </property>
612 612 </item>
613 613 <item>
614 614 <property name="text">
615 615 <string>Other [? MB]</string>
616 616 </property>
617 617 </item>
618 618 </widget>
619 619 </item>
620 620 <item>
621 621 <widget class="QDoubleSpinBox" name="txtDcapacity">
622 622 <property name="sizePolicy">
623 623 <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
624 624 <horstretch>0</horstretch>
625 625 <verstretch>0</verstretch>
626 626 </sizepolicy>
627 627 </property>
628 628 <property name="readOnly">
629 629 <bool>true</bool>
630 630 </property>
631 631 <property name="minimum">
632 632 <double>100.000000000000000</double>
633 633 </property>
634 634 <property name="maximum">
635 635 <double>99999.990000000005239</double>
636 636 </property>
637 637 <property name="value">
638 638 <double>4482.270000000000437</double>
639 639 </property>
640 640 </widget>
641 641 </item>
642 642 <item>
643 643 <spacer name="horizontalSpacer_3">
644 644 <property name="orientation">
645 645 <enum>Qt::Horizontal</enum>
646 646 </property>
647 647 <property name="sizeHint" stdset="0">
648 648 <size>
649 649 <width>40</width>
650 650 <height>20</height>
651 651 </size>
652 652 </property>
653 653 </spacer>
654 654 </item>
655 655 <item>
656 656 <widget class="QLabel" name="lblPSgraphic">
657 657 <property name="text">
658 658 <string>PS Graphic</string>
659 659 </property>
660 660 </widget>
661 661 </item>
662 662 <item>
663 663 <widget class="QSpinBox" name="txtPSgraphic">
664 664 <property name="minimum">
665 665 <number>1</number>
666 666 </property>
667 667 <property name="maximum">
668 668 <number>33</number>
669 669 </property>
670 670 </widget>
671 671 </item>
672 672 </layout>
673 673 </item>
674 674 </layout>
675 675 </widget>
676 676 <widget class="QWidget" name="tabStatus">
677 677 <attribute name="title">
678 678 <string>Status Burn</string>
679 679 </attribute>
680 680 <layout class="QVBoxLayout" name="verticalLayout_4">
681 681 <item>
682 682 <layout class="QHBoxLayout" name="horizontalLayout_18">
683 683 <item>
684 684 <layout class="QVBoxLayout" name="verticalLayout_21">
685 685 <item>
686 686 <widget class="QLabel" name="label_4">
687 687 <property name="text">
688 688 <string>BURN</string>
689 689 </property>
690 690 </widget>
691 691 </item>
692 692 <item>
693 693 <spacer name="horizontalSpacer_9">
694 694 <property name="orientation">
695 695 <enum>Qt::Horizontal</enum>
696 696 </property>
697 697 <property name="sizeType">
698 698 <enum>QSizePolicy::Minimum</enum>
699 699 </property>
700 700 <property name="sizeHint" stdset="0">
701 701 <size>
702 702 <width>40</width>
703 703 <height>20</height>
704 704 </size>
705 705 </property>
706 706 </spacer>
707 707 </item>
708 708 <item>
709 709 <widget class="QLabel" name="lblSTATUS">
710 710 <property name="sizePolicy">
711 711 <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
712 712 <horstretch>0</horstretch>
713 713 <verstretch>0</verstretch>
714 714 </sizepolicy>
715 715 </property>
716 716 <property name="text">
717 717 <string>STATUS</string>
718 718 </property>
719 719 </widget>
720 720 </item>
721 721 <item>
722 722 <widget class="QLabel" name="lblINFO">
723 723 <property name="text">
724 724 <string>DISC</string>
725 725 </property>
726 726 </widget>
727 727 </item>
728 728 <item>
729 729 <widget class="QLabel" name="lblSET">
730 730 <property name="text">
731 731 <string>COPY</string>
732 732 </property>
733 733 </widget>
734 734 </item>
735 735 </layout>
736 736 </item>
737 737 <item>
738 738 <layout class="QVBoxLayout" name="verticalLayout_22">
739 739 <item>
740 740 <spacer name="horizontalSpacer_5">
741 741 <property name="orientation">
742 742 <enum>Qt::Horizontal</enum>
743 743 </property>
744 744 <property name="sizeType">
745 745 <enum>QSizePolicy::Minimum</enum>
746 746 </property>
747 747 <property name="sizeHint" stdset="0">
748 748 <size>
749 749 <width>40</width>
750 750 <height>20</height>
751 751 </size>
752 752 </property>
753 753 </spacer>
754 754 </item>
755 755 <item>
756 756 <widget class="QLabel" name="lblDevA">
757 757 <property name="text">
758 758 <string>DEV A</string>
759 759 </property>
760 760 <property name="alignment">
761 761 <set>Qt::AlignCenter</set>
762 762 </property>
763 763 </widget>
764 764 </item>
765 765 <item>
766 766 <widget class="QLineEdit" name="txtBstatusA">
767 767 <property name="readOnly">
768 768 <bool>true</bool>
769 769 </property>
770 770 </widget>
771 771 </item>
772 772 <item>
773 773 <widget class="QLineEdit" name="txtBdiscA">
774 774 <property name="readOnly">
775 775 <bool>true</bool>
776 776 </property>
777 777 </widget>
778 778 </item>
779 779 <item>
780 780 <widget class="QLineEdit" name="txtBcopyA">
781 781 <property name="readOnly">
782 782 <bool>true</bool>
783 783 </property>
784 784 </widget>
785 785 </item>
786 786 </layout>
787 787 </item>
788 788 <item>
789 789 <layout class="QVBoxLayout" name="verticalLayout_23">
790 790 <item>
791 791 <spacer name="horizontalSpacer_6">
792 792 <property name="orientation">
793 793 <enum>Qt::Horizontal</enum>
794 794 </property>
795 795 <property name="sizeType">
796 796 <enum>QSizePolicy::Minimum</enum>
797 797 </property>
798 798 <property name="sizeHint" stdset="0">
799 799 <size>
800 800 <width>40</width>
801 801 <height>20</height>
802 802 </size>
803 803 </property>
804 804 </spacer>
805 805 </item>
806 806 <item>
807 807 <widget class="QLabel" name="lblDevB">
808 808 <property name="text">
809 809 <string>DEV B</string>
810 810 </property>
811 811 <property name="alignment">
812 812 <set>Qt::AlignCenter</set>
813 813 </property>
814 814 </widget>
815 815 </item>
816 816 <item>
817 817 <widget class="QLineEdit" name="txtBstatusB">
818 818 <property name="readOnly">
819 819 <bool>true</bool>
820 820 </property>
821 821 </widget>
822 822 </item>
823 823 <item>
824 824 <widget class="QLineEdit" name="txtBdiscB">
825 825 <property name="readOnly">
826 826 <bool>true</bool>
827 827 </property>
828 828 </widget>
829 829 </item>
830 830 <item>
831 831 <widget class="QLineEdit" name="txtBcopyB">
832 832 <property name="readOnly">
833 833 <bool>true</bool>
834 834 </property>
835 835 </widget>
836 836 </item>
837 837 </layout>
838 838 </item>
839 839 <item>
840 840 <layout class="QVBoxLayout" name="verticalLayout_24">
841 841 <item>
842 842 <spacer name="horizontalSpacer_7">
843 843 <property name="orientation">
844 844 <enum>Qt::Horizontal</enum>
845 845 </property>
846 846 <property name="sizeType">
847 847 <enum>QSizePolicy::Minimum</enum>
848 848 </property>
849 849 <property name="sizeHint" stdset="0">
850 850 <size>
851 851 <width>40</width>
852 852 <height>20</height>
853 853 </size>
854 854 </property>
855 855 </spacer>
856 856 </item>
857 857 <item>
858 858 <widget class="QLabel" name="lblDevC">
859 859 <property name="text">
860 860 <string>DEV C</string>
861 861 </property>
862 862 <property name="alignment">
863 863 <set>Qt::AlignCenter</set>
864 864 </property>
865 865 </widget>
866 866 </item>
867 867 <item>
868 868 <widget class="QLineEdit" name="txtBstatusC">
869 869 <property name="readOnly">
870 870 <bool>true</bool>
871 871 </property>
872 872 </widget>
873 873 </item>
874 874 <item>
875 875 <widget class="QLineEdit" name="txtBdiscC">
876 876 <property name="readOnly">
877 877 <bool>true</bool>
878 878 </property>
879 879 </widget>
880 880 </item>
881 881 <item>
882 882 <widget class="QLineEdit" name="txtBcopyC">
883 883 <property name="readOnly">
884 884 <bool>true</bool>
885 885 </property>
886 886 </widget>
887 887 </item>
888 888 </layout>
889 889 </item>
890 890 <item>
891 891 <layout class="QVBoxLayout" name="verticalLayout_25">
892 892 <item>
893 893 <spacer name="horizontalSpacer_8">
894 894 <property name="orientation">
895 895 <enum>Qt::Horizontal</enum>
896 896 </property>
897 897 <property name="sizeType">
898 898 <enum>QSizePolicy::Minimum</enum>
899 899 </property>
900 900 <property name="sizeHint" stdset="0">
901 901 <size>
902 902 <width>40</width>
903 903 <height>20</height>
904 904 </size>
905 905 </property>
906 906 </spacer>
907 907 </item>
908 908 <item>
909 909 <widget class="QLabel" name="lblDevD">
910 910 <property name="text">
911 911 <string>DEV D</string>
912 912 </property>
913 913 <property name="alignment">
914 914 <set>Qt::AlignCenter</set>
915 915 </property>
916 916 </widget>
917 917 </item>
918 918 <item>
919 919 <widget class="QLineEdit" name="txtBstatusD">
920 920 <property name="readOnly">
921 921 <bool>true</bool>
922 922 </property>
923 923 </widget>
924 924 </item>
925 925 <item>
926 926 <widget class="QLineEdit" name="txtBdiscD">
927 927 <property name="readOnly">
928 928 <bool>true</bool>
929 929 </property>
930 930 </widget>
931 931 </item>
932 932 <item>
933 933 <widget class="QLineEdit" name="txtBcopyD">
934 934 <property name="readOnly">
935 935 <bool>true</bool>
936 936 </property>
937 937 </widget>
938 938 </item>
939 939 </layout>
940 940 </item>
941 941 </layout>
942 942 </item>
943 943 <item>
944 944 <spacer name="verticalSpacer">
945 945 <property name="orientation">
946 946 <enum>Qt::Vertical</enum>
947 947 </property>
948 948 <property name="sizeType">
949 949 <enum>QSizePolicy::Fixed</enum>
950 950 </property>
951 951 <property name="sizeHint" stdset="0">
952 952 <size>
953 953 <width>20</width>
954 954 <height>20</height>
955 955 </size>
956 956 </property>
957 957 </spacer>
958 958 </item>
959 959 <item>
960 960 <layout class="QHBoxLayout" name="horizontalLayout_16">
961 961 <item>
962 962 <widget class="QLabel" name="label">
963 963 <property name="text">
964 964 <string>CHECK</string>
965 965 </property>
966 966 </widget>
967 967 </item>
968 968 <item>
969 969 <spacer name="horizontalSpacer_14">
970 970 <property name="orientation">
971 971 <enum>Qt::Horizontal</enum>
972 972 </property>
973 973 <property name="sizeHint" stdset="0">
974 974 <size>
975 975 <width>40</width>
976 976 <height>20</height>
977 977 </size>
978 978 </property>
979 979 </spacer>
980 980 </item>
981 981 </layout>
982 982 </item>
983 983 <item>
984 984 <layout class="QHBoxLayout" name="horizontalLayout_17">
985 985 <item>
986 986 <spacer name="horizontalSpacer_13">
987 987 <property name="orientation">
988 988 <enum>Qt::Horizontal</enum>
989 989 </property>
990 990 <property name="sizeType">
991 991 <enum>QSizePolicy::Fixed</enum>
992 992 </property>
993 993 <property name="sizeHint" stdset="0">
994 994 <size>
995 995 <width>50</width>
996 996 <height>20</height>
997 997 </size>
998 998 </property>
999 999 </spacer>
1000 1000 </item>
1001 1001 <item>
1002 1002 <widget class="QLineEdit" name="txtTDpath">
1003 1003 <property name="enabled">
1004 <bool>false</bool>
1004 <bool>true</bool>
1005 1005 </property>
1006 1006 <property name="readOnly">
1007 1007 <bool>true</bool>
1008 1008 </property>
1009 1009 </widget>
1010 1010 </item>
1011 1011 <item>
1012 1012 <widget class="QPushButton" name="btnTDpath">
1013 1013 <property name="enabled">
1014 <bool>false</bool>
1014 <bool>true</bool>
1015 1015 </property>
1016 1016 <property name="text">
1017 1017 <string>Temp Data Path</string>
1018 1018 </property>
1019 1019 </widget>
1020 1020 </item>
1021 1021 </layout>
1022 1022 </item>
1023 1023 <item>
1024 1024 <layout class="QHBoxLayout" name="horizontalLayout_19">
1025 1025 <item>
1026 1026 <layout class="QVBoxLayout" name="verticalLayout_26">
1027 1027 <item>
1028 1028 <spacer name="horizontalSpacer_10">
1029 1029 <property name="orientation">
1030 1030 <enum>Qt::Horizontal</enum>
1031 1031 </property>
1032 1032 <property name="sizeType">
1033 1033 <enum>QSizePolicy::Minimum</enum>
1034 1034 </property>
1035 1035 <property name="sizeHint" stdset="0">
1036 1036 <size>
1037 1037 <width>40</width>
1038 1038 <height>20</height>
1039 1039 </size>
1040 1040 </property>
1041 1041 </spacer>
1042 1042 </item>
1043 1043 <item>
1044 1044 <widget class="QLabel" name="lblSTATUS_2">
1045 1045 <property name="sizePolicy">
1046 1046 <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
1047 1047 <horstretch>0</horstretch>
1048 1048 <verstretch>0</verstretch>
1049 1049 </sizepolicy>
1050 1050 </property>
1051 1051 <property name="text">
1052 1052 <string>STATUS</string>
1053 1053 </property>
1054 1054 </widget>
1055 1055 </item>
1056 1056 </layout>
1057 1057 </item>
1058 1058 <item>
1059 1059 <layout class="QVBoxLayout" name="verticalLayout_27">
1060 1060 <item>
1061 1061 <widget class="QLabel" name="lblDevA_2">
1062 1062 <property name="text">
1063 1063 <string>DEV A</string>
1064 1064 </property>
1065 1065 <property name="alignment">
1066 1066 <set>Qt::AlignCenter</set>
1067 1067 </property>
1068 1068 </widget>
1069 1069 </item>
1070 1070 <item>
1071 1071 <widget class="QLineEdit" name="txtCHstatusA">
1072 1072 <property name="readOnly">
1073 1073 <bool>true</bool>
1074 1074 </property>
1075 1075 </widget>
1076 1076 </item>
1077 1077 </layout>
1078 1078 </item>
1079 1079 <item>
1080 1080 <layout class="QVBoxLayout" name="verticalLayout_28">
1081 1081 <item>
1082 1082 <widget class="QLabel" name="lblDevB_2">
1083 1083 <property name="text">
1084 1084 <string>DEV B</string>
1085 1085 </property>
1086 1086 <property name="alignment">
1087 1087 <set>Qt::AlignCenter</set>
1088 1088 </property>
1089 1089 </widget>
1090 1090 </item>
1091 1091 <item>
1092 1092 <widget class="QLineEdit" name="txtCHstatusB">
1093 1093 <property name="readOnly">
1094 1094 <bool>true</bool>
1095 1095 </property>
1096 1096 </widget>
1097 1097 </item>
1098 1098 </layout>
1099 1099 </item>
1100 1100 <item>
1101 1101 <layout class="QVBoxLayout" name="verticalLayout_29">
1102 1102 <item>
1103 1103 <widget class="QLabel" name="lblDevC_2">
1104 1104 <property name="text">
1105 1105 <string>DEV C</string>
1106 1106 </property>
1107 1107 <property name="alignment">
1108 1108 <set>Qt::AlignCenter</set>
1109 1109 </property>
1110 1110 </widget>
1111 1111 </item>
1112 1112 <item>
1113 1113 <widget class="QLineEdit" name="txtCHstatusC">
1114 1114 <property name="readOnly">
1115 1115 <bool>true</bool>
1116 1116 </property>
1117 1117 </widget>
1118 1118 </item>
1119 1119 </layout>
1120 1120 </item>
1121 1121 <item>
1122 1122 <layout class="QVBoxLayout" name="verticalLayout_30">
1123 1123 <item>
1124 1124 <widget class="QLabel" name="lblDevD_2">
1125 1125 <property name="text">
1126 1126 <string>DEV D</string>
1127 1127 </property>
1128 1128 <property name="alignment">
1129 1129 <set>Qt::AlignCenter</set>
1130 1130 </property>
1131 1131 </widget>
1132 1132 </item>
1133 1133 <item>
1134 1134 <widget class="QLineEdit" name="txtCHstatusD">
1135 1135 <property name="readOnly">
1136 1136 <bool>true</bool>
1137 1137 </property>
1138 1138 </widget>
1139 1139 </item>
1140 1140 </layout>
1141 1141 </item>
1142 1142 </layout>
1143 1143 </item>
1144 1144 <item>
1145 1145 <layout class="QHBoxLayout" name="horizontalLayout_20">
1146 1146 <item>
1147 1147 <spacer name="horizontalSpacer_12">
1148 1148 <property name="orientation">
1149 1149 <enum>Qt::Horizontal</enum>
1150 1150 </property>
1151 1151 <property name="sizeType">
1152 1152 <enum>QSizePolicy::Minimum</enum>
1153 1153 </property>
1154 1154 <property name="sizeHint" stdset="0">
1155 1155 <size>
1156 1156 <width>50</width>
1157 1157 <height>20</height>
1158 1158 </size>
1159 1159 </property>
1160 1160 </spacer>
1161 </item>
1162 <item>
1163 <widget class="QCheckBox" name="chkCheck">
1164 <property name="enabled">
1165 <bool>true</bool>
1166 </property>
1167 <property name="text">
1168 <string>MANUAL</string>
1169 </property>
1170 </widget>
1171 1161 </item>
1172 1162 <item>
1173 1163 <spacer name="horizontalSpacer_15">
1174 1164 <property name="orientation">
1175 1165 <enum>Qt::Horizontal</enum>
1176 1166 </property>
1177 1167 <property name="sizeHint" stdset="0">
1178 1168 <size>
1179 1169 <width>40</width>
1180 1170 <height>20</height>
1181 1171 </size>
1182 1172 </property>
1183 1173 </spacer>
1184 1174 </item>
1185 1175 <item>
1186 1176 <widget class="QPushButton" name="btnCHstart">
1187 1177 <property name="enabled">
1188 1178 <bool>false</bool>
1189 1179 </property>
1190 1180 <property name="text">
1191 1181 <string>START</string>
1192 1182 </property>
1193 1183 </widget>
1194 1184 </item>
1195 1185 </layout>
1196 1186 </item>
1197 1187 </layout>
1198 1188 </widget>
1199 1189 </widget>
1200 1190 </item>
1201 1191 <item>
1202 1192 <widget class="QTextEdit" name="txtInfo">
1203 1193 <property name="readOnly">
1204 1194 <bool>true</bool>
1205 1195 </property>
1206 1196 </widget>
1207 1197 </item>
1208 1198 <item>
1209 1199 <widget class="QLineEdit" name="txtProgress">
1210 1200 <property name="sizePolicy">
1211 1201 <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
1212 1202 <horstretch>0</horstretch>
1213 1203 <verstretch>0</verstretch>
1214 1204 </sizepolicy>
1215 1205 </property>
1216 1206 </widget>
1217 1207 </item>
1218 1208 <item>
1219 1209 <layout class="QHBoxLayout" name="horizontalLayout_2">
1220 1210 <property name="sizeConstraint">
1221 1211 <enum>QLayout::SetDefaultConstraint</enum>
1222 1212 </property>
1223 1213 <item>
1224 1214 <widget class="QPushButton" name="btnGbkp">
1225 1215 <property name="enabled">
1226 1216 <bool>false</bool>
1227 1217 </property>
1228 1218 <property name="text">
1229 1219 <string>Generate Bkp</string>
1230 1220 </property>
1231 1221 </widget>
1232 1222 </item>
1233 1223 <item>
1234 1224 <widget class="QPushButton" name="btnRestart">
1235 1225 <property name="enabled">
1236 1226 <bool>false</bool>
1237 1227 </property>
1238 1228 <property name="text">
1239 1229 <string>Restart</string>
1240 1230 </property>
1241 1231 </widget>
1242 1232 </item>
1243 1233 <item>
1244 1234 <widget class="QPushButton" name="btnStartburn">
1245 1235 <property name="enabled">
1246 1236 <bool>false</bool>
1247 1237 </property>
1248 1238 <property name="text">
1249 1239 <string>Start Burn</string>
1250 1240 </property>
1251 1241 </widget>
1252 1242 </item>
1253 1243 <item>
1254 1244 <widget class="QPushButton" name="btnStopburn">
1255 1245 <property name="enabled">
1256 1246 <bool>false</bool>
1257 1247 </property>
1258 1248 <property name="text">
1259 1249 <string>Stop Burn</string>
1260 1250 </property>
1261 1251 </widget>
1262 1252 </item>
1263 1253 </layout>
1264 1254 </item>
1265 1255 </layout>
1266 1256 </widget>
1267 1257 <widget class="QMenuBar" name="menubar">
1268 1258 <property name="geometry">
1269 1259 <rect>
1270 1260 <x>0</x>
1271 1261 <y>0</y>
1272 1262 <width>824</width>
1273 1263 <height>25</height>
1274 1264 </rect>
1275 1265 </property>
1276 1266 <widget class="QMenu" name="menuFile">
1277 1267 <property name="title">
1278 1268 <string>File</string>
1279 1269 </property>
1280 1270 <addaction name="actionQuit"/>
1281 1271 </widget>
1282 1272 <widget class="QMenu" name="menuHelp">
1283 1273 <property name="title">
1284 1274 <string>Help</string>
1285 1275 </property>
1286 1276 <addaction name="actionAbout"/>
1287 1277 </widget>
1288 1278 <widget class="QMenu" name="menuParameters">
1289 1279 <property name="title">
1290 1280 <string>Parameters</string>
1291 1281 </property>
1292 1282 <addaction name="actionChange_Parameters"/>
1293 1283 </widget>
1294 1284 <addaction name="menuFile"/>
1295 1285 <addaction name="menuParameters"/>
1296 1286 <addaction name="menuHelp"/>
1297 1287 </widget>
1298 1288 <widget class="QStatusBar" name="statusbar"/>
1299 1289 <action name="actionChange_Parameters">
1300 1290 <property name="enabled">
1301 1291 <bool>false</bool>
1302 1292 </property>
1303 1293 <property name="text">
1304 1294 <string>Change Parameters</string>
1305 1295 </property>
1306 1296 </action>
1307 1297 <action name="actionQuit">
1308 1298 <property name="text">
1309 1299 <string>Quit</string>
1310 1300 </property>
1311 1301 </action>
1312 1302 <action name="actionAbout">
1313 1303 <property name="text">
1314 1304 <string>About</string>
1315 1305 </property>
1316 1306 </action>
1317 1307 </widget>
1318 1308 <tabstops>
1319 1309 <tabstop>txtDpath</tabstop>
1320 1310 <tabstop>btnDpath</tabstop>
1321 1311 <tabstop>txtRpath</tabstop>
1322 1312 <tabstop>btnRpath</tabstop>
1323 1313 <tabstop>lstDtype</tabstop>
1324 1314 <tabstop>txtDtype</tabstop>
1325 1315 <tabstop>txtElabel</tabstop>
1326 1316 <tabstop>lstStartDay</tabstop>
1327 1317 <tabstop>lstStopDay</tabstop>
1328 1318 <tabstop>lstDcapacity</tabstop>
1329 1319 <tabstop>tabWidget</tabstop>
1330 1320 <tabstop>btnGbkp</tabstop>
1331 1321 <tabstop>btnRestart</tabstop>
1332 1322 <tabstop>btnStartburn</tabstop>
1333 1323 <tabstop>btnStopburn</tabstop>
1334 1324 </tabstops>
1335 1325 <resources/>
1336 1326 <connections>
1337 1327 <connection>
1338 1328 <sender>actionQuit</sender>
1339 1329 <signal>triggered()</signal>
1340 1330 <receiver>MainWindow</receiver>
1341 1331 <slot>close()</slot>
1342 1332 <hints>
1343 1333 <hint type="sourcelabel">
1344 1334 <x>-1</x>
1345 1335 <y>-1</y>
1346 1336 </hint>
1347 1337 <hint type="destinationlabel">
1348 1338 <x>306</x>
1349 1339 <y>358</y>
1350 1340 </hint>
1351 1341 </hints>
1352 1342 </connection>
1353 1343 <connection>
1354 1344 <sender>chkDevD</sender>
1355 1345 <signal>toggled(bool)</signal>
1356 1346 <receiver>grpDevD</receiver>
1357 1347 <slot>setEnabled(bool)</slot>
1358 1348 <hints>
1359 1349 <hint type="sourcelabel">
1360 <x>701</x>
1361 <y>98</y>
1350 <x>119</x>
1351 <y>103</y>
1362 1352 </hint>
1363 1353 <hint type="destinationlabel">
1364 <x>701</x>
1365 <y>251</y>
1354 <x>119</x>
1355 <y>103</y>
1366 1356 </hint>
1367 1357 </hints>
1368 1358 </connection>
1369 1359 <connection>
1370 1360 <sender>chkDevB</sender>
1371 1361 <signal>toggled(bool)</signal>
1372 1362 <receiver>grpDevB</receiver>
1373 1363 <slot>setEnabled(bool)</slot>
1374 1364 <hints>
1375 1365 <hint type="sourcelabel">
1376 <x>263</x>
1377 <y>79</y>
1366 <x>119</x>
1367 <y>103</y>
1378 1368 </hint>
1379 1369 <hint type="destinationlabel">
1380 <x>251</x>
1381 <y>167</y>
1370 <x>119</x>
1371 <y>103</y>
1382 1372 </hint>
1383 1373 </hints>
1384 1374 </connection>
1385 1375 <connection>
1386 1376 <sender>chkDevC</sender>
1387 1377 <signal>toggled(bool)</signal>
1388 1378 <receiver>grpDevC</receiver>
1389 1379 <slot>setEnabled(bool)</slot>
1390 1380 <hints>
1391 1381 <hint type="sourcelabel">
1392 <x>391</x>
1393 <y>79</y>
1382 <x>119</x>
1383 <y>103</y>
1394 1384 </hint>
1395 1385 <hint type="destinationlabel">
1396 <x>391</x>
1397 <y>202</y>
1386 <x>119</x>
1387 <y>103</y>
1398 1388 </hint>
1399 1389 </hints>
1400 1390 </connection>
1401 1391 <connection>
1402 1392 <sender>chkDevA</sender>
1403 1393 <signal>toggled(bool)</signal>
1404 1394 <receiver>grpDevA</receiver>
1405 1395 <slot>setEnabled(bool)</slot>
1406 1396 <hints>
1407 1397 <hint type="sourcelabel">
1408 1398 <x>105</x>
1409 1399 <y>79</y>
1410 1400 </hint>
1411 1401 <hint type="destinationlabel">
1412 <x>95</x>
1413 <y>167</y>
1414 </hint>
1415 </hints>
1416 </connection>
1417 <connection>
1418 <sender>chkCheck</sender>
1419 <signal>toggled(bool)</signal>
1420 <receiver>txtTDpath</receiver>
1421 <slot>setEnabled(bool)</slot>
1422 <hints>
1423 <hint type="sourcelabel">
1424 <x>160</x>
1425 <y>378</y>
1426 </hint>
1427 <hint type="destinationlabel">
1428 <x>231</x>
1429 <y>306</y>
1430 </hint>
1431 </hints>
1432 </connection>
1433 <connection>
1434 <sender>chkCheck</sender>
1435 <signal>toggled(bool)</signal>
1436 <receiver>btnTDpath</receiver>
1437 <slot>setEnabled(bool)</slot>
1438 <hints>
1439 <hint type="sourcelabel">
1440 <x>160</x>
1441 <y>387</y>
1442 </hint>
1443 <hint type="destinationlabel">
1444 <x>802</x>
1445 <y>305</y>
1446 </hint>
1447 </hints>
1448 </connection>
1449 <connection>
1450 <sender>chkCheck</sender>
1451 <signal>toggled(bool)</signal>
1452 <receiver>txtTDpath</receiver>
1453 <slot>clear()</slot>
1454 <hints>
1455 <hint type="sourcelabel">
1456 <x>145</x>
1457 <y>388</y>
1458 </hint>
1459 <hint type="destinationlabel">
1460 <x>377</x>
1461 <y>303</y>
1402 <x>106</x>
1403 <y>103</y>
1462 1404 </hint>
1463 1405 </hints>
1464 1406 </connection>
1465 1407 </connections>
1466 1408 </ui>
@@ -1,58 +1,58
1 1 # -*- coding: utf-8 -*-
2 2
3 3 # Form implementation generated from reading ui file '/home/ricardoar/JRO_SVN/eric4/jro_backup_manager/ui/About.ui'
4 4 #
5 # Created: Thu May 27 12:04:54 2010
5 # Created: Thu May 27 12:18:45 2010
6 6 # by: PyQt4 UI code generator 4.6
7 7 #
8 8 # WARNING! All changes made in this file will be lost!
9 9
10 10 from PyQt4 import QtCore, QtGui
11 11
12 12 class Ui_About(object):
13 13 def setupUi(self, About):
14 14 About.setObjectName("About")
15 15 About.resize(250, 230)
16 16 About.setMinimumSize(QtCore.QSize(250, 230))
17 17 About.setMaximumSize(QtCore.QSize(250, 230))
18 18 self.verticalLayout = QtGui.QVBoxLayout(About)
19 19 self.verticalLayout.setObjectName("verticalLayout")
20 20 self.textEdit = QtGui.QTextEdit(About)
21 21 self.textEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
22 22 self.textEdit.setReadOnly(True)
23 23 self.textEdit.setObjectName("textEdit")
24 24 self.verticalLayout.addWidget(self.textEdit)
25 25 self.btnOK = QtGui.QPushButton(About)
26 26 self.btnOK.setObjectName("btnOK")
27 27 self.verticalLayout.addWidget(self.btnOK)
28 28
29 29 self.retranslateUi(About)
30 30 QtCore.QObject.connect(self.btnOK, QtCore.SIGNAL("clicked()"), About.close)
31 31 QtCore.QMetaObject.connectSlotsByName(About)
32 32
33 33 def retranslateUi(self, About):
34 34 About.setWindowTitle(QtGui.QApplication.translate("About", "About", None, QtGui.QApplication.UnicodeUTF8))
35 35 self.textEdit.setHtml(QtGui.QApplication.translate("About", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
36 36 "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
37 37 "p, li { white-space: pre-wrap; }\n"
38 38 "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
39 39 "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">JRO BACKUP MANAGER</span></p>\n"
40 40 "<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"></p>\n"
41 41 "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Author:</span></p>\n"
42 42 "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Ricardo Farino Alonso Rondón</span></p>\n"
43 43 "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">ricardo.alonso@jro.igp.gob.pe</span></p>\n"
44 44 "<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-style:italic;\"></p>\n"
45 45 "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Jicamarca Radio Observatory</span></p>\n"
46 46 "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Jicamarca - May 2010</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
47 47 self.btnOK.setText(QtGui.QApplication.translate("About", "OK", None, QtGui.QApplication.UnicodeUTF8))
48 48
49 49
50 50 if __name__ == "__main__":
51 51 import sys
52 52 app = QtGui.QApplication(sys.argv)
53 53 About = QtGui.QDialog()
54 54 ui = Ui_About()
55 55 ui.setupUi(About)
56 56 About.show()
57 57 sys.exit(app.exec_())
58 58
@@ -1,709 +1,701
1 1 # -*- coding: utf-8 -*-
2 2
3 3 # Form implementation generated from reading ui file '/home/ricardoar/JRO_SVN/eric4/jro_backup_manager/ui/MainWindow.ui'
4 4 #
5 # Created: Thu May 27 12:04:54 2010
5 # Created: Thu May 27 12:18:44 2010
6 6 # by: PyQt4 UI code generator 4.6
7 7 #
8 8 # WARNING! All changes made in this file will be lost!
9 9
10 10 from PyQt4 import QtCore, QtGui
11 11
12 12 class Ui_MainWindow(object):
13 13 def setupUi(self, MainWindow):
14 14 MainWindow.setObjectName("MainWindow")
15 15 MainWindow.resize(824, 717)
16 16 self.centralwidget = QtGui.QWidget(MainWindow)
17 17 self.centralwidget.setObjectName("centralwidget")
18 18 self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
19 19 self.verticalLayout.setObjectName("verticalLayout")
20 20 self.tabWidget = QtGui.QTabWidget(self.centralwidget)
21 21 self.tabWidget.setEnabled(True)
22 22 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
23 23 sizePolicy.setHorizontalStretch(0)
24 24 sizePolicy.setVerticalStretch(0)
25 25 sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
26 26 self.tabWidget.setSizePolicy(sizePolicy)
27 27 self.tabWidget.setObjectName("tabWidget")
28 28 self.tabParameters = QtGui.QWidget()
29 29 self.tabParameters.setEnabled(True)
30 30 self.tabParameters.setObjectName("tabParameters")
31 31 self.verticalLayout_2 = QtGui.QVBoxLayout(self.tabParameters)
32 32 self.verticalLayout_2.setObjectName("verticalLayout_2")
33 33 self.horizontalLayout = QtGui.QHBoxLayout()
34 34 self.horizontalLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
35 35 self.horizontalLayout.setObjectName("horizontalLayout")
36 36 self.txtDpath = QtGui.QLineEdit(self.tabParameters)
37 37 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
38 38 sizePolicy.setHorizontalStretch(0)
39 39 sizePolicy.setVerticalStretch(0)
40 40 sizePolicy.setHeightForWidth(self.txtDpath.sizePolicy().hasHeightForWidth())
41 41 self.txtDpath.setSizePolicy(sizePolicy)
42 42 self.txtDpath.setObjectName("txtDpath")
43 43 self.horizontalLayout.addWidget(self.txtDpath)
44 44 self.btnDpath = QtGui.QPushButton(self.tabParameters)
45 45 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
46 46 sizePolicy.setHorizontalStretch(0)
47 47 sizePolicy.setVerticalStretch(0)
48 48 sizePolicy.setHeightForWidth(self.btnDpath.sizePolicy().hasHeightForWidth())
49 49 self.btnDpath.setSizePolicy(sizePolicy)
50 50 self.btnDpath.setCheckable(False)
51 51 self.btnDpath.setObjectName("btnDpath")
52 52 self.horizontalLayout.addWidget(self.btnDpath)
53 53 self.verticalLayout_2.addLayout(self.horizontalLayout)
54 54 self.horizontalLayout_3 = QtGui.QHBoxLayout()
55 55 self.horizontalLayout_3.setObjectName("horizontalLayout_3")
56 56 self.txtRpath = QtGui.QLineEdit(self.tabParameters)
57 57 self.txtRpath.setObjectName("txtRpath")
58 58 self.horizontalLayout_3.addWidget(self.txtRpath)
59 59 self.btnRpath = QtGui.QPushButton(self.tabParameters)
60 60 self.btnRpath.setObjectName("btnRpath")
61 61 self.horizontalLayout_3.addWidget(self.btnRpath)
62 62 self.verticalLayout_2.addLayout(self.horizontalLayout_3)
63 63 self.lblDtype = QtGui.QLabel(self.tabParameters)
64 64 self.lblDtype.setObjectName("lblDtype")
65 65 self.verticalLayout_2.addWidget(self.lblDtype)
66 66 self.horizontalLayout_4 = QtGui.QHBoxLayout()
67 67 self.horizontalLayout_4.setObjectName("horizontalLayout_4")
68 68 self.lstDtype = QtGui.QComboBox(self.tabParameters)
69 69 self.lstDtype.setObjectName("lstDtype")
70 70 self.lstDtype.addItem("")
71 71 self.lstDtype.addItem("")
72 72 self.lstDtype.addItem("")
73 73 self.lstDtype.addItem("")
74 74 self.horizontalLayout_4.addWidget(self.lstDtype)
75 75 self.txtDtype = QtGui.QLineEdit(self.tabParameters)
76 76 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
77 77 sizePolicy.setHorizontalStretch(0)
78 78 sizePolicy.setVerticalStretch(0)
79 79 sizePolicy.setHeightForWidth(self.txtDtype.sizePolicy().hasHeightForWidth())
80 80 self.txtDtype.setSizePolicy(sizePolicy)
81 81 self.txtDtype.setReadOnly(True)
82 82 self.txtDtype.setObjectName("txtDtype")
83 83 self.horizontalLayout_4.addWidget(self.txtDtype)
84 84 spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
85 85 self.horizontalLayout_4.addItem(spacerItem)
86 86 self.verticalLayout_2.addLayout(self.horizontalLayout_4)
87 87 self.horizontalLayout_6 = QtGui.QHBoxLayout()
88 88 self.horizontalLayout_6.setObjectName("horizontalLayout_6")
89 89 self.lblElabel = QtGui.QLabel(self.tabParameters)
90 90 self.lblElabel.setObjectName("lblElabel")
91 91 self.horizontalLayout_6.addWidget(self.lblElabel)
92 92 self.lblCopys = QtGui.QLabel(self.tabParameters)
93 93 self.lblCopys.setObjectName("lblCopys")
94 94 self.horizontalLayout_6.addWidget(self.lblCopys)
95 95 self.verticalLayout_2.addLayout(self.horizontalLayout_6)
96 96 self.horizontalLayout_5 = QtGui.QHBoxLayout()
97 97 self.horizontalLayout_5.setObjectName("horizontalLayout_5")
98 98 self.txtElabel = QtGui.QLineEdit(self.tabParameters)
99 99 self.txtElabel.setObjectName("txtElabel")
100 100 self.horizontalLayout_5.addWidget(self.txtElabel)
101 101 self.txtCopys = QtGui.QSpinBox(self.tabParameters)
102 102 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
103 103 sizePolicy.setHorizontalStretch(0)
104 104 sizePolicy.setVerticalStretch(0)
105 105 sizePolicy.setHeightForWidth(self.txtCopys.sizePolicy().hasHeightForWidth())
106 106 self.txtCopys.setSizePolicy(sizePolicy)
107 107 self.txtCopys.setMinimum(1)
108 108 self.txtCopys.setObjectName("txtCopys")
109 109 self.horizontalLayout_5.addWidget(self.txtCopys)
110 110 self.verticalLayout_2.addLayout(self.horizontalLayout_5)
111 111 self.horizontalLayout_7 = QtGui.QHBoxLayout()
112 112 self.horizontalLayout_7.setObjectName("horizontalLayout_7")
113 113 self.lblStartDay = QtGui.QLabel(self.tabParameters)
114 114 self.lblStartDay.setObjectName("lblStartDay")
115 115 self.horizontalLayout_7.addWidget(self.lblStartDay)
116 116 self.lblStopDay = QtGui.QLabel(self.tabParameters)
117 117 self.lblStopDay.setObjectName("lblStopDay")
118 118 self.horizontalLayout_7.addWidget(self.lblStopDay)
119 119 self.verticalLayout_2.addLayout(self.horizontalLayout_7)
120 120 self.horizontalLayout_8 = QtGui.QHBoxLayout()
121 121 self.horizontalLayout_8.setObjectName("horizontalLayout_8")
122 122 self.lstStartDay = QtGui.QComboBox(self.tabParameters)
123 123 self.lstStartDay.setObjectName("lstStartDay")
124 124 self.horizontalLayout_8.addWidget(self.lstStartDay)
125 125 self.lstStopDay = QtGui.QComboBox(self.tabParameters)
126 126 self.lstStopDay.setObjectName("lstStopDay")
127 127 self.horizontalLayout_8.addWidget(self.lstStopDay)
128 128 self.verticalLayout_2.addLayout(self.horizontalLayout_8)
129 129 self.tabWidget.addTab(self.tabParameters, "")
130 130 self.tabDconfig = QtGui.QWidget()
131 131 self.tabDconfig.setEnabled(True)
132 132 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
133 133 sizePolicy.setHorizontalStretch(0)
134 134 sizePolicy.setVerticalStretch(0)
135 135 sizePolicy.setHeightForWidth(self.tabDconfig.sizePolicy().hasHeightForWidth())
136 136 self.tabDconfig.setSizePolicy(sizePolicy)
137 137 self.tabDconfig.setObjectName("tabDconfig")
138 138 self.verticalLayout_3 = QtGui.QVBoxLayout(self.tabDconfig)
139 139 self.verticalLayout_3.setObjectName("verticalLayout_3")
140 140 self.horizontalLayout_12 = QtGui.QHBoxLayout()
141 141 self.horizontalLayout_12.setObjectName("horizontalLayout_12")
142 142 self.verticalLayout_15 = QtGui.QVBoxLayout()
143 143 self.verticalLayout_15.setObjectName("verticalLayout_15")
144 144 self.chkDevA = QtGui.QCheckBox(self.tabDconfig)
145 145 self.chkDevA.setChecked(True)
146 146 self.chkDevA.setObjectName("chkDevA")
147 147 self.verticalLayout_15.addWidget(self.chkDevA)
148 148 self.grpDevA = QtGui.QWidget(self.tabDconfig)
149 149 self.grpDevA.setObjectName("grpDevA")
150 150 self.verticalLayout_11 = QtGui.QVBoxLayout(self.grpDevA)
151 151 self.verticalLayout_11.setObjectName("verticalLayout_11")
152 152 self.txtDeviceA = QtGui.QLineEdit(self.grpDevA)
153 153 self.txtDeviceA.setReadOnly(True)
154 154 self.txtDeviceA.setObjectName("txtDeviceA")
155 155 self.verticalLayout_11.addWidget(self.txtDeviceA)
156 156 self.txtBspeedA = QtGui.QSpinBox(self.grpDevA)
157 157 self.txtBspeedA.setReadOnly(True)
158 158 self.txtBspeedA.setMinimum(1)
159 159 self.txtBspeedA.setProperty("value", 16)
160 160 self.txtBspeedA.setObjectName("txtBspeedA")
161 161 self.verticalLayout_11.addWidget(self.txtBspeedA)
162 162 self.txtBmodeA = QtGui.QLineEdit(self.grpDevA)
163 163 self.txtBmodeA.setReadOnly(True)
164 164 self.txtBmodeA.setObjectName("txtBmodeA")
165 165 self.verticalLayout_11.addWidget(self.txtBmodeA)
166 166 self.btnTdevA = QtGui.QPushButton(self.grpDevA)
167 167 self.btnTdevA.setObjectName("btnTdevA")
168 168 self.verticalLayout_11.addWidget(self.btnTdevA)
169 169 self.verticalLayout_15.addWidget(self.grpDevA)
170 170 self.horizontalLayout_12.addLayout(self.verticalLayout_15)
171 171 self.verticalLayout_16 = QtGui.QVBoxLayout()
172 172 self.verticalLayout_16.setObjectName("verticalLayout_16")
173 173 self.chkDevB = QtGui.QCheckBox(self.tabDconfig)
174 174 self.chkDevB.setChecked(True)
175 175 self.chkDevB.setObjectName("chkDevB")
176 176 self.verticalLayout_16.addWidget(self.chkDevB)
177 177 self.grpDevB = QtGui.QWidget(self.tabDconfig)
178 178 self.grpDevB.setObjectName("grpDevB")
179 179 self.verticalLayout_12 = QtGui.QVBoxLayout(self.grpDevB)
180 180 self.verticalLayout_12.setObjectName("verticalLayout_12")
181 181 self.txtDeviceB = QtGui.QLineEdit(self.grpDevB)
182 182 self.txtDeviceB.setReadOnly(True)
183 183 self.txtDeviceB.setObjectName("txtDeviceB")
184 184 self.verticalLayout_12.addWidget(self.txtDeviceB)
185 185 self.txtBspeedB = QtGui.QSpinBox(self.grpDevB)
186 186 self.txtBspeedB.setReadOnly(True)
187 187 self.txtBspeedB.setMinimum(1)
188 188 self.txtBspeedB.setProperty("value", 16)
189 189 self.txtBspeedB.setObjectName("txtBspeedB")
190 190 self.verticalLayout_12.addWidget(self.txtBspeedB)
191 191 self.txtBmodeB = QtGui.QLineEdit(self.grpDevB)
192 192 self.txtBmodeB.setReadOnly(True)
193 193 self.txtBmodeB.setObjectName("txtBmodeB")
194 194 self.verticalLayout_12.addWidget(self.txtBmodeB)
195 195 self.btnTdevB = QtGui.QPushButton(self.grpDevB)
196 196 self.btnTdevB.setObjectName("btnTdevB")
197 197 self.verticalLayout_12.addWidget(self.btnTdevB)
198 198 self.verticalLayout_16.addWidget(self.grpDevB)
199 199 self.horizontalLayout_12.addLayout(self.verticalLayout_16)
200 200 self.verticalLayout_17 = QtGui.QVBoxLayout()
201 201 self.verticalLayout_17.setObjectName("verticalLayout_17")
202 202 self.chkDevC = QtGui.QCheckBox(self.tabDconfig)
203 203 self.chkDevC.setChecked(True)
204 204 self.chkDevC.setObjectName("chkDevC")
205 205 self.verticalLayout_17.addWidget(self.chkDevC)
206 206 self.grpDevC = QtGui.QWidget(self.tabDconfig)
207 207 self.grpDevC.setObjectName("grpDevC")
208 208 self.verticalLayout_13 = QtGui.QVBoxLayout(self.grpDevC)
209 209 self.verticalLayout_13.setObjectName("verticalLayout_13")
210 210 self.txtDeviceC = QtGui.QLineEdit(self.grpDevC)
211 211 self.txtDeviceC.setReadOnly(True)
212 212 self.txtDeviceC.setObjectName("txtDeviceC")
213 213 self.verticalLayout_13.addWidget(self.txtDeviceC)
214 214 self.txtBspeedC = QtGui.QSpinBox(self.grpDevC)
215 215 self.txtBspeedC.setReadOnly(True)
216 216 self.txtBspeedC.setMinimum(1)
217 217 self.txtBspeedC.setProperty("value", 16)
218 218 self.txtBspeedC.setObjectName("txtBspeedC")
219 219 self.verticalLayout_13.addWidget(self.txtBspeedC)
220 220 self.txtBmodeC = QtGui.QLineEdit(self.grpDevC)
221 221 self.txtBmodeC.setReadOnly(True)
222 222 self.txtBmodeC.setObjectName("txtBmodeC")
223 223 self.verticalLayout_13.addWidget(self.txtBmodeC)
224 224 self.btnTdevC = QtGui.QPushButton(self.grpDevC)
225 225 self.btnTdevC.setObjectName("btnTdevC")
226 226 self.verticalLayout_13.addWidget(self.btnTdevC)
227 227 self.verticalLayout_17.addWidget(self.grpDevC)
228 228 self.horizontalLayout_12.addLayout(self.verticalLayout_17)
229 229 self.verticalLayout_18 = QtGui.QVBoxLayout()
230 230 self.verticalLayout_18.setObjectName("verticalLayout_18")
231 231 self.chkDevD = QtGui.QCheckBox(self.tabDconfig)
232 232 self.chkDevD.setChecked(True)
233 233 self.chkDevD.setObjectName("chkDevD")
234 234 self.verticalLayout_18.addWidget(self.chkDevD)
235 235 self.grpDevD = QtGui.QWidget(self.tabDconfig)
236 236 self.grpDevD.setObjectName("grpDevD")
237 237 self.verticalLayout_14 = QtGui.QVBoxLayout(self.grpDevD)
238 238 self.verticalLayout_14.setObjectName("verticalLayout_14")
239 239 self.txtDeviceD = QtGui.QLineEdit(self.grpDevD)
240 240 self.txtDeviceD.setReadOnly(True)
241 241 self.txtDeviceD.setObjectName("txtDeviceD")
242 242 self.verticalLayout_14.addWidget(self.txtDeviceD)
243 243 self.txtBspeedD = QtGui.QSpinBox(self.grpDevD)
244 244 self.txtBspeedD.setReadOnly(True)
245 245 self.txtBspeedD.setMinimum(1)
246 246 self.txtBspeedD.setProperty("value", 16)
247 247 self.txtBspeedD.setObjectName("txtBspeedD")
248 248 self.verticalLayout_14.addWidget(self.txtBspeedD)
249 249 self.txtBmodeD = QtGui.QLineEdit(self.grpDevD)
250 250 self.txtBmodeD.setReadOnly(True)
251 251 self.txtBmodeD.setObjectName("txtBmodeD")
252 252 self.verticalLayout_14.addWidget(self.txtBmodeD)
253 253 self.btnTdevD = QtGui.QPushButton(self.grpDevD)
254 254 self.btnTdevD.setObjectName("btnTdevD")
255 255 self.verticalLayout_14.addWidget(self.btnTdevD)
256 256 self.verticalLayout_18.addWidget(self.grpDevD)
257 257 self.horizontalLayout_12.addLayout(self.verticalLayout_18)
258 258 self.verticalLayout_19 = QtGui.QVBoxLayout()
259 259 self.verticalLayout_19.setObjectName("verticalLayout_19")
260 260 spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
261 261 self.verticalLayout_19.addItem(spacerItem1)
262 262 self.grpDevD_2 = QtGui.QWidget(self.tabDconfig)
263 263 self.grpDevD_2.setObjectName("grpDevD_2")
264 264 self.verticalLayout_20 = QtGui.QVBoxLayout(self.grpDevD_2)
265 265 self.verticalLayout_20.setObjectName("verticalLayout_20")
266 266 self.lblDevice = QtGui.QLabel(self.grpDevD_2)
267 267 self.lblDevice.setObjectName("lblDevice")
268 268 self.verticalLayout_20.addWidget(self.lblDevice)
269 269 self.lblBspeed = QtGui.QLabel(self.grpDevD_2)
270 270 self.lblBspeed.setObjectName("lblBspeed")
271 271 self.verticalLayout_20.addWidget(self.lblBspeed)
272 272 self.lblBmode = QtGui.QLabel(self.grpDevD_2)
273 273 self.lblBmode.setObjectName("lblBmode")
274 274 self.verticalLayout_20.addWidget(self.lblBmode)
275 275 spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
276 276 self.verticalLayout_20.addItem(spacerItem2)
277 277 self.verticalLayout_19.addWidget(self.grpDevD_2)
278 278 self.horizontalLayout_12.addLayout(self.verticalLayout_19)
279 279 self.verticalLayout_3.addLayout(self.horizontalLayout_12)
280 280 spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
281 281 self.verticalLayout_3.addItem(spacerItem3)
282 282 self.horizontalLayout_11 = QtGui.QHBoxLayout()
283 283 self.horizontalLayout_11.setSpacing(6)
284 284 self.horizontalLayout_11.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
285 285 self.horizontalLayout_11.setObjectName("horizontalLayout_11")
286 286 self.lblDcapacity = QtGui.QLabel(self.tabDconfig)
287 287 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
288 288 sizePolicy.setHorizontalStretch(0)
289 289 sizePolicy.setVerticalStretch(0)
290 290 sizePolicy.setHeightForWidth(self.lblDcapacity.sizePolicy().hasHeightForWidth())
291 291 self.lblDcapacity.setSizePolicy(sizePolicy)
292 292 self.lblDcapacity.setObjectName("lblDcapacity")
293 293 self.horizontalLayout_11.addWidget(self.lblDcapacity)
294 294 spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
295 295 self.horizontalLayout_11.addItem(spacerItem4)
296 296 self.verticalLayout_3.addLayout(self.horizontalLayout_11)
297 297 self.horizontalLayout_10 = QtGui.QHBoxLayout()
298 298 self.horizontalLayout_10.setSizeConstraint(QtGui.QLayout.SetFixedSize)
299 299 self.horizontalLayout_10.setObjectName("horizontalLayout_10")
300 300 self.lstDcapacity = QtGui.QComboBox(self.tabDconfig)
301 301 self.lstDcapacity.setObjectName("lstDcapacity")
302 302 self.lstDcapacity.addItem("")
303 303 self.lstDcapacity.addItem("")
304 304 self.lstDcapacity.addItem("")
305 305 self.lstDcapacity.addItem("")
306 306 self.lstDcapacity.addItem("")
307 307 self.horizontalLayout_10.addWidget(self.lstDcapacity)
308 308 self.txtDcapacity = QtGui.QDoubleSpinBox(self.tabDconfig)
309 309 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
310 310 sizePolicy.setHorizontalStretch(0)
311 311 sizePolicy.setVerticalStretch(0)
312 312 sizePolicy.setHeightForWidth(self.txtDcapacity.sizePolicy().hasHeightForWidth())
313 313 self.txtDcapacity.setSizePolicy(sizePolicy)
314 314 self.txtDcapacity.setReadOnly(True)
315 315 self.txtDcapacity.setMinimum(100.0)
316 316 self.txtDcapacity.setMaximum(99999.99)
317 317 self.txtDcapacity.setProperty("value", 4482.27)
318 318 self.txtDcapacity.setObjectName("txtDcapacity")
319 319 self.horizontalLayout_10.addWidget(self.txtDcapacity)
320 320 spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
321 321 self.horizontalLayout_10.addItem(spacerItem5)
322 322 self.lblPSgraphic = QtGui.QLabel(self.tabDconfig)
323 323 self.lblPSgraphic.setObjectName("lblPSgraphic")
324 324 self.horizontalLayout_10.addWidget(self.lblPSgraphic)
325 325 self.txtPSgraphic = QtGui.QSpinBox(self.tabDconfig)
326 326 self.txtPSgraphic.setMinimum(1)
327 327 self.txtPSgraphic.setMaximum(33)
328 328 self.txtPSgraphic.setObjectName("txtPSgraphic")
329 329 self.horizontalLayout_10.addWidget(self.txtPSgraphic)
330 330 self.verticalLayout_3.addLayout(self.horizontalLayout_10)
331 331 self.tabWidget.addTab(self.tabDconfig, "")
332 332 self.tabStatus = QtGui.QWidget()
333 333 self.tabStatus.setObjectName("tabStatus")
334 334 self.verticalLayout_4 = QtGui.QVBoxLayout(self.tabStatus)
335 335 self.verticalLayout_4.setObjectName("verticalLayout_4")
336 336 self.horizontalLayout_18 = QtGui.QHBoxLayout()
337 337 self.horizontalLayout_18.setObjectName("horizontalLayout_18")
338 338 self.verticalLayout_21 = QtGui.QVBoxLayout()
339 339 self.verticalLayout_21.setObjectName("verticalLayout_21")
340 340 self.label_4 = QtGui.QLabel(self.tabStatus)
341 341 self.label_4.setObjectName("label_4")
342 342 self.verticalLayout_21.addWidget(self.label_4)
343 343 spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
344 344 self.verticalLayout_21.addItem(spacerItem6)
345 345 self.lblSTATUS = QtGui.QLabel(self.tabStatus)
346 346 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
347 347 sizePolicy.setHorizontalStretch(0)
348 348 sizePolicy.setVerticalStretch(0)
349 349 sizePolicy.setHeightForWidth(self.lblSTATUS.sizePolicy().hasHeightForWidth())
350 350 self.lblSTATUS.setSizePolicy(sizePolicy)
351 351 self.lblSTATUS.setObjectName("lblSTATUS")
352 352 self.verticalLayout_21.addWidget(self.lblSTATUS)
353 353 self.lblINFO = QtGui.QLabel(self.tabStatus)
354 354 self.lblINFO.setObjectName("lblINFO")
355 355 self.verticalLayout_21.addWidget(self.lblINFO)
356 356 self.lblSET = QtGui.QLabel(self.tabStatus)
357 357 self.lblSET.setObjectName("lblSET")
358 358 self.verticalLayout_21.addWidget(self.lblSET)
359 359 self.horizontalLayout_18.addLayout(self.verticalLayout_21)
360 360 self.verticalLayout_22 = QtGui.QVBoxLayout()
361 361 self.verticalLayout_22.setObjectName("verticalLayout_22")
362 362 spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
363 363 self.verticalLayout_22.addItem(spacerItem7)
364 364 self.lblDevA = QtGui.QLabel(self.tabStatus)
365 365 self.lblDevA.setAlignment(QtCore.Qt.AlignCenter)
366 366 self.lblDevA.setObjectName("lblDevA")
367 367 self.verticalLayout_22.addWidget(self.lblDevA)
368 368 self.txtBstatusA = QtGui.QLineEdit(self.tabStatus)
369 369 self.txtBstatusA.setReadOnly(True)
370 370 self.txtBstatusA.setObjectName("txtBstatusA")
371 371 self.verticalLayout_22.addWidget(self.txtBstatusA)
372 372 self.txtBdiscA = QtGui.QLineEdit(self.tabStatus)
373 373 self.txtBdiscA.setReadOnly(True)
374 374 self.txtBdiscA.setObjectName("txtBdiscA")
375 375 self.verticalLayout_22.addWidget(self.txtBdiscA)
376 376 self.txtBcopyA = QtGui.QLineEdit(self.tabStatus)
377 377 self.txtBcopyA.setReadOnly(True)
378 378 self.txtBcopyA.setObjectName("txtBcopyA")
379 379 self.verticalLayout_22.addWidget(self.txtBcopyA)
380 380 self.horizontalLayout_18.addLayout(self.verticalLayout_22)
381 381 self.verticalLayout_23 = QtGui.QVBoxLayout()
382 382 self.verticalLayout_23.setObjectName("verticalLayout_23")
383 383 spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
384 384 self.verticalLayout_23.addItem(spacerItem8)
385 385 self.lblDevB = QtGui.QLabel(self.tabStatus)
386 386 self.lblDevB.setAlignment(QtCore.Qt.AlignCenter)
387 387 self.lblDevB.setObjectName("lblDevB")
388 388 self.verticalLayout_23.addWidget(self.lblDevB)
389 389 self.txtBstatusB = QtGui.QLineEdit(self.tabStatus)
390 390 self.txtBstatusB.setReadOnly(True)
391 391 self.txtBstatusB.setObjectName("txtBstatusB")
392 392 self.verticalLayout_23.addWidget(self.txtBstatusB)
393 393 self.txtBdiscB = QtGui.QLineEdit(self.tabStatus)
394 394 self.txtBdiscB.setReadOnly(True)
395 395 self.txtBdiscB.setObjectName("txtBdiscB")
396 396 self.verticalLayout_23.addWidget(self.txtBdiscB)
397 397 self.txtBcopyB = QtGui.QLineEdit(self.tabStatus)
398 398 self.txtBcopyB.setReadOnly(True)
399 399 self.txtBcopyB.setObjectName("txtBcopyB")
400 400 self.verticalLayout_23.addWidget(self.txtBcopyB)
401 401 self.horizontalLayout_18.addLayout(self.verticalLayout_23)
402 402 self.verticalLayout_24 = QtGui.QVBoxLayout()
403 403 self.verticalLayout_24.setObjectName("verticalLayout_24")
404 404 spacerItem9 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
405 405 self.verticalLayout_24.addItem(spacerItem9)
406 406 self.lblDevC = QtGui.QLabel(self.tabStatus)
407 407 self.lblDevC.setAlignment(QtCore.Qt.AlignCenter)
408 408 self.lblDevC.setObjectName("lblDevC")
409 409 self.verticalLayout_24.addWidget(self.lblDevC)
410 410 self.txtBstatusC = QtGui.QLineEdit(self.tabStatus)
411 411 self.txtBstatusC.setReadOnly(True)
412 412 self.txtBstatusC.setObjectName("txtBstatusC")
413 413 self.verticalLayout_24.addWidget(self.txtBstatusC)
414 414 self.txtBdiscC = QtGui.QLineEdit(self.tabStatus)
415 415 self.txtBdiscC.setReadOnly(True)
416 416 self.txtBdiscC.setObjectName("txtBdiscC")
417 417 self.verticalLayout_24.addWidget(self.txtBdiscC)
418 418 self.txtBcopyC = QtGui.QLineEdit(self.tabStatus)
419 419 self.txtBcopyC.setReadOnly(True)
420 420 self.txtBcopyC.setObjectName("txtBcopyC")
421 421 self.verticalLayout_24.addWidget(self.txtBcopyC)
422 422 self.horizontalLayout_18.addLayout(self.verticalLayout_24)
423 423 self.verticalLayout_25 = QtGui.QVBoxLayout()
424 424 self.verticalLayout_25.setObjectName("verticalLayout_25")
425 425 spacerItem10 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
426 426 self.verticalLayout_25.addItem(spacerItem10)
427 427 self.lblDevD = QtGui.QLabel(self.tabStatus)
428 428 self.lblDevD.setAlignment(QtCore.Qt.AlignCenter)
429 429 self.lblDevD.setObjectName("lblDevD")
430 430 self.verticalLayout_25.addWidget(self.lblDevD)
431 431 self.txtBstatusD = QtGui.QLineEdit(self.tabStatus)
432 432 self.txtBstatusD.setReadOnly(True)
433 433 self.txtBstatusD.setObjectName("txtBstatusD")
434 434 self.verticalLayout_25.addWidget(self.txtBstatusD)
435 435 self.txtBdiscD = QtGui.QLineEdit(self.tabStatus)
436 436 self.txtBdiscD.setReadOnly(True)
437 437 self.txtBdiscD.setObjectName("txtBdiscD")
438 438 self.verticalLayout_25.addWidget(self.txtBdiscD)
439 439 self.txtBcopyD = QtGui.QLineEdit(self.tabStatus)
440 440 self.txtBcopyD.setReadOnly(True)
441 441 self.txtBcopyD.setObjectName("txtBcopyD")
442 442 self.verticalLayout_25.addWidget(self.txtBcopyD)
443 443 self.horizontalLayout_18.addLayout(self.verticalLayout_25)
444 444 self.verticalLayout_4.addLayout(self.horizontalLayout_18)
445 445 spacerItem11 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
446 446 self.verticalLayout_4.addItem(spacerItem11)
447 447 self.horizontalLayout_16 = QtGui.QHBoxLayout()
448 448 self.horizontalLayout_16.setObjectName("horizontalLayout_16")
449 449 self.label = QtGui.QLabel(self.tabStatus)
450 450 self.label.setObjectName("label")
451 451 self.horizontalLayout_16.addWidget(self.label)
452 452 spacerItem12 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
453 453 self.horizontalLayout_16.addItem(spacerItem12)
454 454 self.verticalLayout_4.addLayout(self.horizontalLayout_16)
455 455 self.horizontalLayout_17 = QtGui.QHBoxLayout()
456 456 self.horizontalLayout_17.setObjectName("horizontalLayout_17")
457 457 spacerItem13 = QtGui.QSpacerItem(50, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum)
458 458 self.horizontalLayout_17.addItem(spacerItem13)
459 459 self.txtTDpath = QtGui.QLineEdit(self.tabStatus)
460 self.txtTDpath.setEnabled(False)
460 self.txtTDpath.setEnabled(True)
461 461 self.txtTDpath.setReadOnly(True)
462 462 self.txtTDpath.setObjectName("txtTDpath")
463 463 self.horizontalLayout_17.addWidget(self.txtTDpath)
464 464 self.btnTDpath = QtGui.QPushButton(self.tabStatus)
465 self.btnTDpath.setEnabled(False)
465 self.btnTDpath.setEnabled(True)
466 466 self.btnTDpath.setObjectName("btnTDpath")
467 467 self.horizontalLayout_17.addWidget(self.btnTDpath)
468 468 self.verticalLayout_4.addLayout(self.horizontalLayout_17)
469 469 self.horizontalLayout_19 = QtGui.QHBoxLayout()
470 470 self.horizontalLayout_19.setObjectName("horizontalLayout_19")
471 471 self.verticalLayout_26 = QtGui.QVBoxLayout()
472 472 self.verticalLayout_26.setObjectName("verticalLayout_26")
473 473 spacerItem14 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
474 474 self.verticalLayout_26.addItem(spacerItem14)
475 475 self.lblSTATUS_2 = QtGui.QLabel(self.tabStatus)
476 476 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
477 477 sizePolicy.setHorizontalStretch(0)
478 478 sizePolicy.setVerticalStretch(0)
479 479 sizePolicy.setHeightForWidth(self.lblSTATUS_2.sizePolicy().hasHeightForWidth())
480 480 self.lblSTATUS_2.setSizePolicy(sizePolicy)
481 481 self.lblSTATUS_2.setObjectName("lblSTATUS_2")
482 482 self.verticalLayout_26.addWidget(self.lblSTATUS_2)
483 483 self.horizontalLayout_19.addLayout(self.verticalLayout_26)
484 484 self.verticalLayout_27 = QtGui.QVBoxLayout()
485 485 self.verticalLayout_27.setObjectName("verticalLayout_27")
486 486 self.lblDevA_2 = QtGui.QLabel(self.tabStatus)
487 487 self.lblDevA_2.setAlignment(QtCore.Qt.AlignCenter)
488 488 self.lblDevA_2.setObjectName("lblDevA_2")
489 489 self.verticalLayout_27.addWidget(self.lblDevA_2)
490 490 self.txtCHstatusA = QtGui.QLineEdit(self.tabStatus)
491 491 self.txtCHstatusA.setReadOnly(True)
492 492 self.txtCHstatusA.setObjectName("txtCHstatusA")
493 493 self.verticalLayout_27.addWidget(self.txtCHstatusA)
494 494 self.horizontalLayout_19.addLayout(self.verticalLayout_27)
495 495 self.verticalLayout_28 = QtGui.QVBoxLayout()
496 496 self.verticalLayout_28.setObjectName("verticalLayout_28")
497 497 self.lblDevB_2 = QtGui.QLabel(self.tabStatus)
498 498 self.lblDevB_2.setAlignment(QtCore.Qt.AlignCenter)
499 499 self.lblDevB_2.setObjectName("lblDevB_2")
500 500 self.verticalLayout_28.addWidget(self.lblDevB_2)
501 501 self.txtCHstatusB = QtGui.QLineEdit(self.tabStatus)
502 502 self.txtCHstatusB.setReadOnly(True)
503 503 self.txtCHstatusB.setObjectName("txtCHstatusB")
504 504 self.verticalLayout_28.addWidget(self.txtCHstatusB)
505 505 self.horizontalLayout_19.addLayout(self.verticalLayout_28)
506 506 self.verticalLayout_29 = QtGui.QVBoxLayout()
507 507 self.verticalLayout_29.setObjectName("verticalLayout_29")
508 508 self.lblDevC_2 = QtGui.QLabel(self.tabStatus)
509 509 self.lblDevC_2.setAlignment(QtCore.Qt.AlignCenter)
510 510 self.lblDevC_2.setObjectName("lblDevC_2")
511 511 self.verticalLayout_29.addWidget(self.lblDevC_2)
512 512 self.txtCHstatusC = QtGui.QLineEdit(self.tabStatus)
513 513 self.txtCHstatusC.setReadOnly(True)
514 514 self.txtCHstatusC.setObjectName("txtCHstatusC")
515 515 self.verticalLayout_29.addWidget(self.txtCHstatusC)
516 516 self.horizontalLayout_19.addLayout(self.verticalLayout_29)
517 517 self.verticalLayout_30 = QtGui.QVBoxLayout()
518 518 self.verticalLayout_30.setObjectName("verticalLayout_30")
519 519 self.lblDevD_2 = QtGui.QLabel(self.tabStatus)
520 520 self.lblDevD_2.setAlignment(QtCore.Qt.AlignCenter)
521 521 self.lblDevD_2.setObjectName("lblDevD_2")
522 522 self.verticalLayout_30.addWidget(self.lblDevD_2)
523 523 self.txtCHstatusD = QtGui.QLineEdit(self.tabStatus)
524 524 self.txtCHstatusD.setReadOnly(True)
525 525 self.txtCHstatusD.setObjectName("txtCHstatusD")
526 526 self.verticalLayout_30.addWidget(self.txtCHstatusD)
527 527 self.horizontalLayout_19.addLayout(self.verticalLayout_30)
528 528 self.verticalLayout_4.addLayout(self.horizontalLayout_19)
529 529 self.horizontalLayout_20 = QtGui.QHBoxLayout()
530 530 self.horizontalLayout_20.setObjectName("horizontalLayout_20")
531 531 spacerItem15 = QtGui.QSpacerItem(50, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
532 532 self.horizontalLayout_20.addItem(spacerItem15)
533 self.chkCheck = QtGui.QCheckBox(self.tabStatus)
534 self.chkCheck.setEnabled(True)
535 self.chkCheck.setObjectName("chkCheck")
536 self.horizontalLayout_20.addWidget(self.chkCheck)
537 533 spacerItem16 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
538 534 self.horizontalLayout_20.addItem(spacerItem16)
539 535 self.btnCHstart = QtGui.QPushButton(self.tabStatus)
540 536 self.btnCHstart.setEnabled(False)
541 537 self.btnCHstart.setObjectName("btnCHstart")
542 538 self.horizontalLayout_20.addWidget(self.btnCHstart)
543 539 self.verticalLayout_4.addLayout(self.horizontalLayout_20)
544 540 self.tabWidget.addTab(self.tabStatus, "")
545 541 self.verticalLayout.addWidget(self.tabWidget)
546 542 self.txtInfo = QtGui.QTextEdit(self.centralwidget)
547 543 self.txtInfo.setReadOnly(True)
548 544 self.txtInfo.setObjectName("txtInfo")
549 545 self.verticalLayout.addWidget(self.txtInfo)
550 546 self.txtProgress = QtGui.QLineEdit(self.centralwidget)
551 547 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
552 548 sizePolicy.setHorizontalStretch(0)
553 549 sizePolicy.setVerticalStretch(0)
554 550 sizePolicy.setHeightForWidth(self.txtProgress.sizePolicy().hasHeightForWidth())
555 551 self.txtProgress.setSizePolicy(sizePolicy)
556 552 self.txtProgress.setObjectName("txtProgress")
557 553 self.verticalLayout.addWidget(self.txtProgress)
558 554 self.horizontalLayout_2 = QtGui.QHBoxLayout()
559 555 self.horizontalLayout_2.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint)
560 556 self.horizontalLayout_2.setObjectName("horizontalLayout_2")
561 557 self.btnGbkp = QtGui.QPushButton(self.centralwidget)
562 558 self.btnGbkp.setEnabled(False)
563 559 self.btnGbkp.setObjectName("btnGbkp")
564 560 self.horizontalLayout_2.addWidget(self.btnGbkp)
565 561 self.btnRestart = QtGui.QPushButton(self.centralwidget)
566 562 self.btnRestart.setEnabled(False)
567 563 self.btnRestart.setObjectName("btnRestart")
568 564 self.horizontalLayout_2.addWidget(self.btnRestart)
569 565 self.btnStartburn = QtGui.QPushButton(self.centralwidget)
570 566 self.btnStartburn.setEnabled(False)
571 567 self.btnStartburn.setObjectName("btnStartburn")
572 568 self.horizontalLayout_2.addWidget(self.btnStartburn)
573 569 self.btnStopburn = QtGui.QPushButton(self.centralwidget)
574 570 self.btnStopburn.setEnabled(False)
575 571 self.btnStopburn.setObjectName("btnStopburn")
576 572 self.horizontalLayout_2.addWidget(self.btnStopburn)
577 573 self.verticalLayout.addLayout(self.horizontalLayout_2)
578 574 MainWindow.setCentralWidget(self.centralwidget)
579 575 self.menubar = QtGui.QMenuBar(MainWindow)
580 576 self.menubar.setGeometry(QtCore.QRect(0, 0, 824, 25))
581 577 self.menubar.setObjectName("menubar")
582 578 self.menuFile = QtGui.QMenu(self.menubar)
583 579 self.menuFile.setObjectName("menuFile")
584 580 self.menuHelp = QtGui.QMenu(self.menubar)
585 581 self.menuHelp.setObjectName("menuHelp")
586 582 self.menuParameters = QtGui.QMenu(self.menubar)
587 583 self.menuParameters.setObjectName("menuParameters")
588 584 MainWindow.setMenuBar(self.menubar)
589 585 self.statusbar = QtGui.QStatusBar(MainWindow)
590 586 self.statusbar.setObjectName("statusbar")
591 587 MainWindow.setStatusBar(self.statusbar)
592 588 self.actionChange_Parameters = QtGui.QAction(MainWindow)
593 589 self.actionChange_Parameters.setEnabled(False)
594 590 self.actionChange_Parameters.setObjectName("actionChange_Parameters")
595 591 self.actionQuit = QtGui.QAction(MainWindow)
596 592 self.actionQuit.setObjectName("actionQuit")
597 593 self.actionAbout = QtGui.QAction(MainWindow)
598 594 self.actionAbout.setObjectName("actionAbout")
599 595 self.menuFile.addAction(self.actionQuit)
600 596 self.menuHelp.addAction(self.actionAbout)
601 597 self.menuParameters.addAction(self.actionChange_Parameters)
602 598 self.menubar.addAction(self.menuFile.menuAction())
603 599 self.menubar.addAction(self.menuParameters.menuAction())
604 600 self.menubar.addAction(self.menuHelp.menuAction())
605 601
606 602 self.retranslateUi(MainWindow)
607 603 self.tabWidget.setCurrentIndex(2)
608 604 self.lstDcapacity.setCurrentIndex(2)
609 605 QtCore.QObject.connect(self.actionQuit, QtCore.SIGNAL("triggered()"), MainWindow.close)
610 606 QtCore.QObject.connect(self.chkDevD, QtCore.SIGNAL("toggled(bool)"), self.grpDevD.setEnabled)
611 607 QtCore.QObject.connect(self.chkDevB, QtCore.SIGNAL("toggled(bool)"), self.grpDevB.setEnabled)
612 608 QtCore.QObject.connect(self.chkDevC, QtCore.SIGNAL("toggled(bool)"), self.grpDevC.setEnabled)
613 609 QtCore.QObject.connect(self.chkDevA, QtCore.SIGNAL("toggled(bool)"), self.grpDevA.setEnabled)
614 QtCore.QObject.connect(self.chkCheck, QtCore.SIGNAL("toggled(bool)"), self.txtTDpath.setEnabled)
615 QtCore.QObject.connect(self.chkCheck, QtCore.SIGNAL("toggled(bool)"), self.btnTDpath.setEnabled)
616 QtCore.QObject.connect(self.chkCheck, QtCore.SIGNAL("toggled(bool)"), self.txtTDpath.clear)
617 610 QtCore.QMetaObject.connectSlotsByName(MainWindow)
618 611 MainWindow.setTabOrder(self.txtDpath, self.btnDpath)
619 612 MainWindow.setTabOrder(self.btnDpath, self.txtRpath)
620 613 MainWindow.setTabOrder(self.txtRpath, self.btnRpath)
621 614 MainWindow.setTabOrder(self.btnRpath, self.lstDtype)
622 615 MainWindow.setTabOrder(self.lstDtype, self.txtDtype)
623 616 MainWindow.setTabOrder(self.txtDtype, self.txtElabel)
624 617 MainWindow.setTabOrder(self.txtElabel, self.lstStartDay)
625 618 MainWindow.setTabOrder(self.lstStartDay, self.lstStopDay)
626 619 MainWindow.setTabOrder(self.lstStopDay, self.lstDcapacity)
627 620 MainWindow.setTabOrder(self.lstDcapacity, self.tabWidget)
628 621 MainWindow.setTabOrder(self.tabWidget, self.btnGbkp)
629 622 MainWindow.setTabOrder(self.btnGbkp, self.btnRestart)
630 623 MainWindow.setTabOrder(self.btnRestart, self.btnStartburn)
631 624 MainWindow.setTabOrder(self.btnStartburn, self.btnStopburn)
632 625
633 626 def retranslateUi(self, MainWindow):
634 627 MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "JRO BACKUP MANAGER", None, QtGui.QApplication.UnicodeUTF8))
635 628 self.btnDpath.setText(QtGui.QApplication.translate("MainWindow", "Data Path", None, QtGui.QApplication.UnicodeUTF8))
636 629 self.btnRpath.setText(QtGui.QApplication.translate("MainWindow", "Resource Path", None, QtGui.QApplication.UnicodeUTF8))
637 630 self.lblDtype.setText(QtGui.QApplication.translate("MainWindow", "Data Type", None, QtGui.QApplication.UnicodeUTF8))
638 631 self.lstDtype.setItemText(0, QtGui.QApplication.translate("MainWindow", "Raw Data", None, QtGui.QApplication.UnicodeUTF8))
639 632 self.lstDtype.setItemText(1, QtGui.QApplication.translate("MainWindow", "Process Data", None, QtGui.QApplication.UnicodeUTF8))
640 633 self.lstDtype.setItemText(2, QtGui.QApplication.translate("MainWindow", "BLTR Data", None, QtGui.QApplication.UnicodeUTF8))
641 634 self.lstDtype.setItemText(3, QtGui.QApplication.translate("MainWindow", "Other", None, QtGui.QApplication.UnicodeUTF8))
642 635 self.txtDtype.setText(QtGui.QApplication.translate("MainWindow", "r", None, QtGui.QApplication.UnicodeUTF8))
643 636 self.lblElabel.setText(QtGui.QApplication.translate("MainWindow", "Exp. Label at device", None, QtGui.QApplication.UnicodeUTF8))
644 637 self.lblCopys.setText(QtGui.QApplication.translate("MainWindow", "Copys", None, QtGui.QApplication.UnicodeUTF8))
645 638 self.lblStartDay.setText(QtGui.QApplication.translate("MainWindow", "Start Day:", None, QtGui.QApplication.UnicodeUTF8))
646 639 self.lblStopDay.setText(QtGui.QApplication.translate("MainWindow", "Stop Day:", None, QtGui.QApplication.UnicodeUTF8))
647 640 self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabParameters), QtGui.QApplication.translate("MainWindow", "Parameters", None, QtGui.QApplication.UnicodeUTF8))
648 641 self.chkDevA.setText(QtGui.QApplication.translate("MainWindow", "Dev A", None, QtGui.QApplication.UnicodeUTF8))
649 642 self.txtBmodeA.setText(QtGui.QApplication.translate("MainWindow", "-sao", None, QtGui.QApplication.UnicodeUTF8))
650 643 self.btnTdevA.setText(QtGui.QApplication.translate("MainWindow", "Test DevA", None, QtGui.QApplication.UnicodeUTF8))
651 644 self.chkDevB.setText(QtGui.QApplication.translate("MainWindow", "Dev B", None, QtGui.QApplication.UnicodeUTF8))
652 645 self.txtBmodeB.setText(QtGui.QApplication.translate("MainWindow", "-sao", None, QtGui.QApplication.UnicodeUTF8))
653 646 self.btnTdevB.setText(QtGui.QApplication.translate("MainWindow", "Test DevB", None, QtGui.QApplication.UnicodeUTF8))
654 647 self.chkDevC.setText(QtGui.QApplication.translate("MainWindow", "Dev C", None, QtGui.QApplication.UnicodeUTF8))
655 648 self.txtBmodeC.setText(QtGui.QApplication.translate("MainWindow", "-sao", None, QtGui.QApplication.UnicodeUTF8))
656 649 self.btnTdevC.setText(QtGui.QApplication.translate("MainWindow", "Test DevC", None, QtGui.QApplication.UnicodeUTF8))
657 650 self.chkDevD.setText(QtGui.QApplication.translate("MainWindow", "Dev D", None, QtGui.QApplication.UnicodeUTF8))
658 651 self.txtBmodeD.setText(QtGui.QApplication.translate("MainWindow", "-sao", None, QtGui.QApplication.UnicodeUTF8))
659 652 self.btnTdevD.setText(QtGui.QApplication.translate("MainWindow", "Test DevD", None, QtGui.QApplication.UnicodeUTF8))
660 653 self.lblDevice.setText(QtGui.QApplication.translate("MainWindow", "Device", None, QtGui.QApplication.UnicodeUTF8))
661 654 self.lblBspeed.setText(QtGui.QApplication.translate("MainWindow", "Burn Speed", None, QtGui.QApplication.UnicodeUTF8))
662 655 self.lblBmode.setText(QtGui.QApplication.translate("MainWindow", "Burn Mode", None, QtGui.QApplication.UnicodeUTF8))
663 656 self.lblDcapacity.setText(QtGui.QApplication.translate("MainWindow", "Device Capacity", None, QtGui.QApplication.UnicodeUTF8))
664 657 self.lstDcapacity.setItemText(0, QtGui.QApplication.translate("MainWindow", "BluRay [25.0 GB]", None, QtGui.QApplication.UnicodeUTF8))
665 658 self.lstDcapacity.setItemText(1, QtGui.QApplication.translate("MainWindow", "DVD2 [8.5 GB]", None, QtGui.QApplication.UnicodeUTF8))
666 659 self.lstDcapacity.setItemText(2, QtGui.QApplication.translate("MainWindow", "DVD1 [4.7 GB]", None, QtGui.QApplication.UnicodeUTF8))
667 660 self.lstDcapacity.setItemText(3, QtGui.QApplication.translate("MainWindow", "CD [0.7 GB]", None, QtGui.QApplication.UnicodeUTF8))
668 661 self.lstDcapacity.setItemText(4, QtGui.QApplication.translate("MainWindow", "Other [? MB]", None, QtGui.QApplication.UnicodeUTF8))
669 662 self.lblPSgraphic.setText(QtGui.QApplication.translate("MainWindow", "PS Graphic", None, QtGui.QApplication.UnicodeUTF8))
670 663 self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabDconfig), QtGui.QApplication.translate("MainWindow", "Device Config.", None, QtGui.QApplication.UnicodeUTF8))
671 664 self.label_4.setText(QtGui.QApplication.translate("MainWindow", "BURN", None, QtGui.QApplication.UnicodeUTF8))
672 665 self.lblSTATUS.setText(QtGui.QApplication.translate("MainWindow", "STATUS", None, QtGui.QApplication.UnicodeUTF8))
673 666 self.lblINFO.setText(QtGui.QApplication.translate("MainWindow", "DISC", None, QtGui.QApplication.UnicodeUTF8))
674 667 self.lblSET.setText(QtGui.QApplication.translate("MainWindow", "COPY", None, QtGui.QApplication.UnicodeUTF8))
675 668 self.lblDevA.setText(QtGui.QApplication.translate("MainWindow", "DEV A", None, QtGui.QApplication.UnicodeUTF8))
676 669 self.lblDevB.setText(QtGui.QApplication.translate("MainWindow", "DEV B", None, QtGui.QApplication.UnicodeUTF8))
677 670 self.lblDevC.setText(QtGui.QApplication.translate("MainWindow", "DEV C", None, QtGui.QApplication.UnicodeUTF8))
678 671 self.lblDevD.setText(QtGui.QApplication.translate("MainWindow", "DEV D", None, QtGui.QApplication.UnicodeUTF8))
679 672 self.label.setText(QtGui.QApplication.translate("MainWindow", "CHECK", None, QtGui.QApplication.UnicodeUTF8))
680 673 self.btnTDpath.setText(QtGui.QApplication.translate("MainWindow", "Temp Data Path", None, QtGui.QApplication.UnicodeUTF8))
681 674 self.lblSTATUS_2.setText(QtGui.QApplication.translate("MainWindow", "STATUS", None, QtGui.QApplication.UnicodeUTF8))
682 675 self.lblDevA_2.setText(QtGui.QApplication.translate("MainWindow", "DEV A", None, QtGui.QApplication.UnicodeUTF8))
683 676 self.lblDevB_2.setText(QtGui.QApplication.translate("MainWindow", "DEV B", None, QtGui.QApplication.UnicodeUTF8))
684 677 self.lblDevC_2.setText(QtGui.QApplication.translate("MainWindow", "DEV C", None, QtGui.QApplication.UnicodeUTF8))
685 678 self.lblDevD_2.setText(QtGui.QApplication.translate("MainWindow", "DEV D", None, QtGui.QApplication.UnicodeUTF8))
686 self.chkCheck.setText(QtGui.QApplication.translate("MainWindow", "MANUAL", None, QtGui.QApplication.UnicodeUTF8))
687 679 self.btnCHstart.setText(QtGui.QApplication.translate("MainWindow", "START", None, QtGui.QApplication.UnicodeUTF8))
688 680 self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabStatus), QtGui.QApplication.translate("MainWindow", "Status Burn", None, QtGui.QApplication.UnicodeUTF8))
689 681 self.btnGbkp.setText(QtGui.QApplication.translate("MainWindow", "Generate Bkp", None, QtGui.QApplication.UnicodeUTF8))
690 682 self.btnRestart.setText(QtGui.QApplication.translate("MainWindow", "Restart", None, QtGui.QApplication.UnicodeUTF8))
691 683 self.btnStartburn.setText(QtGui.QApplication.translate("MainWindow", "Start Burn", None, QtGui.QApplication.UnicodeUTF8))
692 684 self.btnStopburn.setText(QtGui.QApplication.translate("MainWindow", "Stop Burn", None, QtGui.QApplication.UnicodeUTF8))
693 685 self.menuFile.setTitle(QtGui.QApplication.translate("MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8))
694 686 self.menuHelp.setTitle(QtGui.QApplication.translate("MainWindow", "Help", None, QtGui.QApplication.UnicodeUTF8))
695 687 self.menuParameters.setTitle(QtGui.QApplication.translate("MainWindow", "Parameters", None, QtGui.QApplication.UnicodeUTF8))
696 688 self.actionChange_Parameters.setText(QtGui.QApplication.translate("MainWindow", "Change Parameters", None, QtGui.QApplication.UnicodeUTF8))
697 689 self.actionQuit.setText(QtGui.QApplication.translate("MainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8))
698 690 self.actionAbout.setText(QtGui.QApplication.translate("MainWindow", "About", None, QtGui.QApplication.UnicodeUTF8))
699 691
700 692
701 693 if __name__ == "__main__":
702 694 import sys
703 695 app = QtGui.QApplication(sys.argv)
704 696 MainWindow = QtGui.QMainWindow()
705 697 ui = Ui_MainWindow()
706 698 ui.setupUi(MainWindow)
707 699 MainWindow.show()
708 700 sys.exit(app.exec_())
709 701
@@ -1,77 +1,77
1 1 # -*- coding: utf-8 -*-
2 2
3 3 # Form implementation generated from reading ui file '/home/ricardoar/JRO_SVN/eric4/jro_backup_manager/ui/Parameters.ui'
4 4 #
5 # Created: Thu May 27 12:04:54 2010
5 # Created: Thu May 27 12:18:45 2010
6 6 # by: PyQt4 UI code generator 4.6
7 7 #
8 8 # WARNING! All changes made in this file will be lost!
9 9
10 10 from PyQt4 import QtCore, QtGui
11 11
12 12 class Ui_Parameters(object):
13 13 def setupUi(self, Parameters):
14 14 Parameters.setObjectName("Parameters")
15 15 Parameters.resize(207, 152)
16 16 self.verticalLayout = QtGui.QVBoxLayout(Parameters)
17 17 self.verticalLayout.setObjectName("verticalLayout")
18 18 self.horizontalLayout_3 = QtGui.QHBoxLayout()
19 19 self.horizontalLayout_3.setObjectName("horizontalLayout_3")
20 20 self.verticalLayout_2 = QtGui.QVBoxLayout()
21 21 self.verticalLayout_2.setObjectName("verticalLayout_2")
22 22 self.label = QtGui.QLabel(Parameters)
23 23 self.label.setObjectName("label")
24 24 self.verticalLayout_2.addWidget(self.label)
25 25 self.label_3 = QtGui.QLabel(Parameters)
26 26 self.label_3.setObjectName("label_3")
27 27 self.verticalLayout_2.addWidget(self.label_3)
28 28 self.label_2 = QtGui.QLabel(Parameters)
29 29 self.label_2.setObjectName("label_2")
30 30 self.verticalLayout_2.addWidget(self.label_2)
31 31 self.horizontalLayout_3.addLayout(self.verticalLayout_2)
32 32 self.verticalLayout_3 = QtGui.QVBoxLayout()
33 33 self.verticalLayout_3.setObjectName("verticalLayout_3")
34 34 self.txtNcopys = QtGui.QSpinBox(Parameters)
35 35 self.txtNcopys.setMinimum(1)
36 36 self.txtNcopys.setMaximum(999)
37 37 self.txtNcopys.setObjectName("txtNcopys")
38 38 self.verticalLayout_3.addWidget(self.txtNcopys)
39 39 self.txtDisc = QtGui.QSpinBox(Parameters)
40 40 self.txtDisc.setMinimum(1)
41 41 self.txtDisc.setMaximum(999999)
42 42 self.txtDisc.setObjectName("txtDisc")
43 43 self.verticalLayout_3.addWidget(self.txtDisc)
44 44 self.txtCopy = QtGui.QSpinBox(Parameters)
45 45 self.txtCopy.setMinimum(1)
46 46 self.txtCopy.setMaximum(999)
47 47 self.txtCopy.setObjectName("txtCopy")
48 48 self.verticalLayout_3.addWidget(self.txtCopy)
49 49 self.horizontalLayout_3.addLayout(self.verticalLayout_3)
50 50 self.verticalLayout.addLayout(self.horizontalLayout_3)
51 51 self.buttonBox = QtGui.QDialogButtonBox(Parameters)
52 52 self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
53 53 self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok)
54 54 self.buttonBox.setObjectName("buttonBox")
55 55 self.verticalLayout.addWidget(self.buttonBox)
56 56
57 57 self.retranslateUi(Parameters)
58 58 QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), Parameters.accept)
59 59 QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Parameters.reject)
60 60 QtCore.QMetaObject.connectSlotsByName(Parameters)
61 61
62 62 def retranslateUi(self, Parameters):
63 63 Parameters.setWindowTitle(QtGui.QApplication.translate("Parameters", "Parameters", None, QtGui.QApplication.UnicodeUTF8))
64 64 self.label.setText(QtGui.QApplication.translate("Parameters", "N° Copys", None, QtGui.QApplication.UnicodeUTF8))
65 65 self.label_3.setText(QtGui.QApplication.translate("Parameters", "Disc", None, QtGui.QApplication.UnicodeUTF8))
66 66 self.label_2.setText(QtGui.QApplication.translate("Parameters", "Copy", None, QtGui.QApplication.UnicodeUTF8))
67 67
68 68
69 69 if __name__ == "__main__":
70 70 import sys
71 71 app = QtGui.QApplication(sys.argv)
72 72 Parameters = QtGui.QDialog()
73 73 ui = Ui_Parameters()
74 74 ui.setupUi(Parameters)
75 75 Parameters.show()
76 76 sys.exit(app.exec_())
77 77
General Comments 0
You need to be logged in to leave comments. Login now