@@ -1,332 +1,356 | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 | 3 | #class BKmanager: |
|
4 | 4 | # def __init__(self): |
|
5 | 5 | |
|
6 | 6 | from subprocess import * |
|
7 | 7 | import sys |
|
8 | 8 | import os |
|
9 | 9 | import subprocess |
|
10 | 10 | import commands |
|
11 | 11 | import shutil |
|
12 | 12 | import functions2 |
|
13 | 13 | |
|
14 | 14 | #--------------------------------------------- Entero a cadena agregando ceros delante ------------------------------------------------- |
|
15 | 15 | |
|
16 | 16 | def i2s(var_n, var_length=4): |
|
17 | 17 | var_n2=str(var_n) |
|
18 | 18 | while len(var_n2) < var_length: |
|
19 | 19 | var_n2 = "0"+var_n2 |
|
20 | 20 | return var_n2 |
|
21 | 21 | |
|
22 | 22 | |
|
23 | 23 | #----------------------------------------- Se verifica que la ruta exista y sea un directorio ------------------------------------------------- |
|
24 | 24 | |
|
25 | 25 | def dir_exists(var_dir, self): |
|
26 | 26 | if os.path.isdir(var_dir): |
|
27 | 27 | return True |
|
28 | 28 | else: |
|
29 | 29 | self.txtInfo.append("Incorrect path:" + str(var_dir)) |
|
30 | 30 | return False |
|
31 | 31 | |
|
32 | 32 | |
|
33 | 33 | #-------------------------------- Se buscan los archivos del tipo especificado y se cargan las fechas ----------------------------- |
|
34 | 34 | |
|
35 | 35 | def load_days(self): |
|
36 | 36 | |
|
37 | 37 | self.var_list=[] |
|
38 | 38 | self.lstStartDay.clear() |
|
39 | 39 | self.lstStopDay.clear() |
|
40 | 40 | |
|
41 | 41 | if self.statusDpath == False: |
|
42 | 42 | self.btnGbkp.setEnabled(False) |
|
43 | 43 | return |
|
44 | 44 | |
|
45 | 45 | if self.var_Dtype == '': |
|
46 | 46 | return |
|
47 | 47 | |
|
48 | 48 | var_cmd="find " + str(self.var_Dpath) + " -name *."+ str(self.var_Dtype) +" | awk -F/ '{print substr($NF,2,7)}' | sort| uniq" |
|
49 | 49 | output=commands.getstatusoutput(var_cmd)[1] |
|
50 | 50 | |
|
51 | 51 | #Si no se encuentra ningun archivo |
|
52 | 52 | if len(output) == 0: |
|
53 | 53 | self.txtInfo.append("File not found") |
|
54 | 54 | self.btnGbkp.setEnabled(False) |
|
55 | 55 | return |
|
56 | 56 | |
|
57 | 57 | #Se cargan las listas para seleccionar StartDay y StopDay (QComboBox) |
|
58 | 58 | for i in range(0, (len(output)+1)/8): |
|
59 | 59 | self.var_list.append(output[8*i:8*(i+1)-1]) |
|
60 | 60 | |
|
61 | 61 | for i in self.var_list: |
|
62 | 62 | self.lstStartDay.addItem(i) |
|
63 | 63 | self.lstStopDay.addItem(i) |
|
64 | 64 | self.lstStopDay.setCurrentIndex(self.lstStartDay.count()-1) |
|
65 | 65 | |
|
66 | 66 | get_sub_list(self) |
|
67 | 67 | self.btnGbkp.setEnabled(True) |
|
68 | 68 | |
|
69 | 69 | |
|
70 | 70 | #-------------------------------------------------- Obtiene el rango de las fechas seleccionadas ----------------------------------------- |
|
71 | 71 | |
|
72 | 72 | def get_sub_list(self): |
|
73 | 73 | self.var_sublist=[] |
|
74 | 74 | for i in self.var_list[self.lstStartDay.currentIndex():self.lstStartDay.currentIndex() + self.lstStopDay.currentIndex()+1]: |
|
75 | 75 | self.var_sublist.append(i) |
|
76 | 76 | |
|
77 | 77 | |
|
78 | 78 | #----------------------------------------------------- Verifica los parametros faltantes ----------------------------------------------------------- |
|
79 | 79 | |
|
80 | 80 | def validate_parameters(self): |
|
81 | 81 | #Verifica que las ruta del proyecto sea valida |
|
82 | 82 | if self.statusRpath == False: |
|
83 | 83 | self.txtInfo.append("Incorrect proyect path") |
|
84 | 84 | return False |
|
85 | 85 | |
|
86 | 86 | #Verifica la etiqueta |
|
87 | 87 | if len(self.var_Elabel) == 0: |
|
88 | 88 | self.txtInfo.append("Enter label") |
|
89 | 89 | return False |
|
90 | 90 | |
|
91 | 91 | return True |
|
92 | 92 | |
|
93 | 93 | |
|
94 | 94 | #------------------------------------------------- Crea directorios en la ruta indicada ----------------------------------------------------------- |
|
95 | 95 | |
|
96 | 96 | def make_dirs(list_dirs, self): |
|
97 | """ | |
|
98 | ||
|
99 | """ | |
|
100 | ||
|
97 | ||
|
101 | 98 | for var_dir in list_dirs: |
|
102 | 99 | shutil.rmtree(self.var_Rpath+'/'+var_dir, True) |
|
103 |
var_output=commands.getstatusoutput("mkdir -p "+self.var_Rpath+'/'+var_dir) |
|
|
104 | if var_output != 0: | |
|
105 | self.txtInfo.append("Error creating directory: "+var_dir+", output_error:" + str(var_output)) | |
|
100 | var_output=commands.getstatusoutput("mkdir -p "+self.var_Rpath+'/'+var_dir) | |
|
101 | if var_output[0] != 0: | |
|
102 | self.txtInfo.append("Error creating directory: "+var_dir+", output_error:" + str(var_output[0])) | |
|
106 | 103 | return False |
|
107 | 104 | self.txtInfo.append('Directories created correctly') |
|
108 | 105 | return True |
|
109 | 106 | |
|
110 | ||
|
107 | def remove_dir(var_dir, self): | |
|
108 | var_output = commands.getstatusoutput('chmod -R 777 '+var_dir) | |
|
109 | if var_output[0] != 0: | |
|
110 | self.txtInfo.append("Error changing permissions: "+var_dir+", output_error:" + str(var_output[0])) | |
|
111 | return False | |
|
112 | ||
|
113 | var_output = commands.getstatusoutput('rm -rf '+var_dir) | |
|
114 | if var_output[0] != 0: | |
|
115 | self.txtInfo.append("Error deleting directory: "+var_dir+", output_error:" + str(var_output[0])) | |
|
116 | return False | |
|
117 | return True | |
|
118 | ||
|
119 | def make_dir(var_dir, self): | |
|
120 | var_output = commands.getstatusoutput('mkdir '+var_dir) | |
|
121 | if var_output[0] != 0: | |
|
122 | self.txtInfo.append("Error deleting directory: "+var_dir+", output_error:" + str(var_output[0])) | |
|
123 | return False | |
|
124 | return True | |
|
125 | ||
|
111 | 126 | #-------------------------------------------- Busca los archivos con los parametros de busqueda --------------------------------------- |
|
112 | 127 | |
|
113 | 128 | def list_files(self): |
|
114 | 129 | var_files_list=[] |
|
115 | 130 | for var_doy in self.var_sublist: |
|
116 | 131 | var_cmd="find " + str(self.var_Dpath) + " -name ?"+var_doy+"???."+ str(self.var_Dtype) + " |sort" |
|
117 | 132 | var_output=commands.getstatusoutput(var_cmd)[1] |
|
118 | 133 | for var_file in var_output.split(): |
|
119 | 134 | var_files_list.append(var_file) #Almacena cada archivo en la lista |
|
120 | 135 | return var_files_list |
|
121 | 136 | |
|
122 | 137 | |
|
123 | 138 | #--------------- Genera la lista de archivos .dat que contienen los archivos a grabar en cada DVD ----------------------- |
|
124 | 139 | |
|
125 | 140 | def make_files_dat(var_files_list, self): |
|
126 | 141 | var_Rpath_ppath=self.var_Rpath+"/ppath" #Ruta de los archivos a grabar |
|
127 | 142 | var_n=1 #Numero del DVD actual |
|
128 | 143 | var_tmp=0 #Se usa para acumular el tamaΓ±o de los archivos de la lista |
|
129 | 144 | var_files_list_2=[] #Se usa para almacenar la lista de archivos agrbar en cada DVD |
|
130 | 145 | |
|
131 | 146 | for i in var_files_list: #Se asignan en i los archivos de la lista |
|
132 | 147 | |
|
133 | 148 | var_size_i=os.path.getsize(i)/1024+1 #tamaΓ±o en KB del archivo de la lista, se suma 1 KB para evitar problemas al momento de sumar |
|
134 | 149 | var_tmp += var_size_i #Se acumulan el tamaΓ±o de los archivos de la lista |
|
135 | 150 | |
|
136 | 151 | #Si el tamaΓ±o acumulado es mayor que el de el DVD |
|
137 | 152 | if var_tmp > (self.var_Dcapacity * 1024): |
|
138 | 153 | var_tmp -= var_size_i #se quita el tamaΓ±o sumado para mostrar el tamaΓ±o real |
|
139 | 154 | #se crea un archivo con numeral en el sufijo y extension .dat |
|
140 | 155 | var_file = open(var_Rpath_ppath+"/"+self.var_Elabel+"_"+i2s(var_n)+".dat","w") |
|
141 | 156 | #Se aΓ±ade la lista de archivos a grabar en el DVD al archivo .dat |
|
142 | 157 | for line in var_files_list_2: |
|
143 | 158 | var_tmp_path=line.split(self.var_Dpath)[1][:-13] |
|
144 | 159 | var_file.write(var_tmp_path+'='+line+'\n') |
|
145 | 160 | var_file.close() |
|
146 | 161 | |
|
147 | 162 | var_tmp = var_size_i #Se asigna a la variable el tamaΓ±o del archivo actual |
|
148 | 163 | var_files_list_2=[] #Se reinicia la lista |
|
149 | 164 | var_n += 1 |
|
150 | 165 | var_files_list_2.append(i) |
|
151 | 166 | |
|
152 | 167 | #se crea un archivo con numeral en el sufijo y extension .dat |
|
153 | 168 | var_file = open(var_Rpath_ppath+"/"+self.var_Elabel+"_"+i2s(var_n)+".dat","w") |
|
154 | 169 | #Se aΓ±ade la lista de archivos a grabar en el DVD al archivo .dat |
|
155 | 170 | for line in var_files_list_2: |
|
156 | 171 | var_tmp_path=line.split(self.var_Dpath)[1][:-13] |
|
157 | 172 | var_file.write(var_tmp_path+'='+line+'\n') |
|
158 | 173 | var_file.close() |
|
159 | 174 | |
|
160 | 175 | self.txtInfo.append("configuration files created") |
|
161 | 176 | return var_n |
|
162 | 177 | |
|
163 | 178 | |
|
164 | 179 | #------------------------------ Genera los archivos .print con los cuales se creara los postscript ----------------------------------- |
|
165 | 180 | |
|
166 | 181 | def make_files_print(self): |
|
167 | 182 | |
|
168 | 183 | var_Rpath_ppath=self.var_Rpath+"/ppath" #Ruta de los archivos a grabar |
|
169 | 184 | var_Rpath_gpath=self.var_Rpath+"/gpath" #Ruta de los archivos postscript |
|
170 | 185 | var_labels=[] |
|
171 | 186 | for m in range (0, self.txtPSgraphic.value() - 1): |
|
172 | 187 | var_lines = "\n" * 9 |
|
173 | 188 | var_labels.append(var_lines) |
|
174 | 189 | |
|
175 | 190 | # Se leen todos los archivos .dat creados para crear las etiquetas en los archivos .print |
|
176 | 191 | for var_n in range(1, self.var_Discs + 1): |
|
177 | 192 | |
|
178 | 193 | #se abren los archivos .dat en modo lectura |
|
179 | 194 | var_file = open(var_Rpath_ppath+"/"+self.var_Elabel+"_"+i2s(var_n)+".dat","r") |
|
180 | 195 | lines=var_file.readlines() # Se lee las lineas en el archivo y se almacenan en la lista |
|
181 | 196 | var_file.close() |
|
182 | 197 | list_files=[] |
|
183 | 198 | var_lines=[] |
|
184 | 199 | |
|
185 | 200 | for j in range(0, len(lines)): |
|
186 | 201 | |
|
187 | 202 | if j == 0: |
|
188 | 203 | var_first_folder = lines[j].split('=')[0] |
|
189 | 204 | var_first_file = (lines[j].split('=')[1])[:-1] |
|
190 | 205 | continue |
|
191 | 206 | |
|
192 | 207 | var_tmp_folder = lines[j].split('=')[0] |
|
193 | 208 | var_tmp_file = (lines[j].split('=')[1])[:-1] |
|
194 | 209 | |
|
195 | 210 | # Si el subfolder superior o el DOY del archivo actual y el anterior son diferentes |
|
196 | 211 | if (var_tmp_folder != var_first_folder) or (var_tmp_file[0:-5] != var_first_file[0:-5]): |
|
197 | 212 | var_last_file = (lines[j-1].split('=')[1])[:-1] |
|
198 | 213 | list_files.append([var_first_folder, var_first_file, var_last_file]) |
|
199 | 214 | |
|
200 | 215 | var_first_folder = lines[j].split('=')[0] |
|
201 | 216 | var_first_file = (lines[j].split('=')[1])[:-1] |
|
202 | 217 | |
|
203 | 218 | var_last_file = (lines[-1].split('=')[1])[:-1] |
|
204 | 219 | list_files.append([var_first_folder, var_first_file, var_last_file]) |
|
205 | 220 | |
|
206 | 221 | var_lines2 = lines_print(list_files, self.var_Elabel) |
|
207 | 222 | |
|
208 | 223 | for k in range(0, len(var_lines2) / 5): |
|
209 | 224 | var_lines=["\n"] |
|
210 | 225 | var_lines.append(" "+self.var_Elabel+" "+i2s(var_n)+"/"+i2s(self.var_Discs)+"\n") |
|
211 | 226 | var_lines.append("Year Doy Folder"+" "*9+"Set"+" "*11+"Time range\n") |
|
212 | 227 | var_lines.extend(var_lines2[(5*k):(5*(k+1))]) |
|
213 | 228 | var_lines.append("\n") |
|
214 | 229 | var_labels.append(var_lines) |
|
215 | 230 | |
|
216 | 231 | for i in range(0, (len(var_labels) // 33) +1 ): |
|
217 | 232 | var_file=var_Rpath_gpath+"/"+self.var_Elabel+"_"+i2s(i+1) |
|
218 | 233 | file_ps = open(var_file+".print","w") |
|
219 | 234 | if i == (len(var_labels) // 33): |
|
220 | 235 | var_sub_labels = var_labels[33*i:] |
|
221 | 236 | else: |
|
222 | 237 | var_sub_labels = var_labels[33*i:33*(i+1)] |
|
223 | 238 | |
|
224 | 239 | for label in var_sub_labels: |
|
225 | 240 | for line in label: |
|
226 | 241 | file_ps.write(line) |
|
227 | 242 | file_ps.close() |
|
228 | 243 | var_cmd="enscript "+var_file+".print -p "+var_file+".ps -f Times-Roman7 " \ |
|
229 | 244 | +" -3R -j -B --margins=21.25:20.4:25.51:20 --media=A4" |
|
230 | 245 | var_output=commands.getstatusoutput(var_cmd)[0] |
|
231 | 246 | |
|
232 | 247 | |
|
233 | 248 | def lines_print(list_files, var_Elabel): |
|
234 | 249 | """ |
|
235 | 250 | Devuelve las lineas del rango de archivos de cada etiqueta segun el formato |
|
236 | 251 | """ |
|
237 | 252 | var_lines=[] |
|
238 | 253 | for i in list_files: |
|
239 | 254 | |
|
240 | 255 | # Si el archivo se grabara directamente en la / del DVD y no en un /directorio/ |
|
241 | 256 | # se usa la etiqueta para indicar la parte de la etiqueta donde va el subdirectorio |
|
242 | 257 | if i[0] == '/': |
|
243 | 258 | var_folder = var_Elabel |
|
244 | 259 | else: |
|
245 | 260 | var_folder = i[0].split('/')[-2] |
|
246 | 261 | |
|
247 | 262 | var_first_file = i[1] |
|
248 | 263 | var_last_file = i[2] |
|
249 | 264 | |
|
250 | 265 | var_date_first_file=commands.getstatusoutput("date -r "+var_first_file+" +'%T'")[1] |
|
251 | 266 | var_date_last_file=commands.getstatusoutput("date -r "+var_last_file+" +'%T'")[1] |
|
252 | 267 | |
|
253 | 268 | var_lines.append(var_first_file[-12:-8]+" "+var_first_file[-8:-5]+" "+var_folder +" "+var_first_file[-5:-2]+"-" |
|
254 | 269 | +var_last_file[-5:-2]+" "+var_date_first_file+"-"+var_date_last_file+"\n") |
|
255 | 270 | #Nos aseguramos que sea un mutiplo de 5 |
|
256 | 271 | while (len(var_lines) % 5) != 0: |
|
257 | 272 | var_lines.append("\n") |
|
258 | 273 | |
|
259 | 274 | return var_lines |
|
260 | 275 | |
|
261 | 276 | #---------------------------------------comandos para el proceso de grabacion ------------------------------------------ |
|
262 | 277 | def cmd_iso(self): |
|
263 | 278 | var_Rpath_ppath=self.var_Rpath+"/ppath" |
|
264 | 279 | var_Rpath_iso=self.var_Rpath+"/iso" |
|
265 | 280 | #comando para la creacion del archivo.iso |
|
266 | 281 | file_dat=var_Rpath_ppath+"/"+self.var_Elabel+"_"+i2s(self.var_disc_n)+".dat" |
|
267 | 282 | file_iso=var_Rpath_iso+"/"+i2s(self.var_disc_n)+".iso" |
|
268 | 283 | var_cmd = 'genisoimage -hide-joliet-trans-tbl -joliet-long -r ' |
|
269 | 284 | var_cmd += ' -A '+self.var_Elabel+' -V '+self.var_Elabel |
|
270 | 285 | var_cmd += ' -graft-points -path-list '+ file_dat+' -o '+file_iso |
|
271 | 286 | return var_cmd |
|
272 | 287 | |
|
273 | 288 | def cmd_burn(self): |
|
274 | 289 | var_Rpath_iso=self.var_Rpath+"/iso" |
|
275 | 290 | file_iso=var_Rpath_iso+"/"+i2s(self.var_disc_n)+".iso" |
|
276 | 291 | |
|
277 | 292 | var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices) |
|
278 | 293 | var_dev_tmp = self.var_devices[var_index] |
|
279 | 294 | |
|
280 | 295 | # var_cmd = "wodim -v dev="+var_dev_tmp+" speed=16 "+ file_iso |
|
281 | 296 | var_cmd = "growisofs -dvd-compat -Z "+var_dev_tmp+"="+ file_iso |
|
282 | 297 | return var_cmd |
|
283 | 298 | |
|
284 | def cmd_check(self): | |
|
285 | var_cmd = "echo 'function check'" | |
|
286 | return var_cmd | |
|
299 | ||
|
300 | def cmd_check(dev_sr, self): | |
|
301 | ||
|
302 | var_Rpath_tmpdata=self.var_Rpath+"/tmpdata" | |
|
303 | ||
|
304 | var_output=commands.getstatusoutput('df -hT | grep '+dev_sr) | |
|
305 | if var_output[0] != 0: | |
|
306 | return "FATAL ERROR" | |
|
307 | else: | |
|
308 | var_cmd = "cp -rfv "+var_output[1] .split()[-1]+"/ "+var_Rpath_tmpdata+"/" | |
|
309 | return var_cmd | |
|
310 | ||
|
287 | 311 | |
|
288 | 312 | def remove_iso(self): |
|
289 | 313 | var_Rpath_iso=self.var_Rpath+"/iso" |
|
290 | 314 | file_iso=var_Rpath_iso+"/"+i2s(self.var_disc_n)+".iso" |
|
291 | 315 | # shutil.rmtree(self.var_Rpath+'/'+var_dir, True) |
|
292 | 316 | if os.path.isfile(file_iso): |
|
293 | 317 | os.remove(file_iso) |
|
294 | 318 | |
|
295 | 319 | #Si es el ultimo disco se termina el proceso |
|
296 | 320 | def is_last_disc_and_copy(self): |
|
297 | 321 | if self.var_disc_n == self.var_Discs and self.var_copy_n == self.var_Copys: |
|
298 | 322 | self.function_final() |
|
299 | 323 | else: |
|
300 | 324 | next_disc(self) |
|
301 | 325 | |
|
302 | 326 | #Define cual es el siguiente disco a grabar y que paso seguir |
|
303 | 327 | def next_disc(self, error = False): |
|
304 | 328 | if self.var_copy_n == self.var_Copys: |
|
305 | 329 | #borrado del iso |
|
306 | 330 | self.txtInfo.append("Deleting iso file: "+i2s(self.var_disc_n)+".iso") |
|
307 | 331 | remove_iso(self) |
|
308 | 332 | |
|
309 | 333 | self.var_disc_n += 1 |
|
310 | 334 | self.var_copy_n = 1 |
|
311 | 335 | self.var_step = 0 |
|
312 | 336 | |
|
313 | 337 | else: |
|
314 | 338 | self.var_copy_n += 1 |
|
315 | 339 | self.var_step = 1 |
|
316 | 340 | |
|
317 | 341 | functions2.make_burning_conf(self) # Si el proceso no ha sido detenido manualmente |
|
318 | 342 | #crea el archivo burning.conf para el seguimiento de los discos grabados |
|
319 | 343 | |
|
320 | 344 | var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices) |
|
321 | 345 | |
|
322 | 346 | self.txtInfo.append("NEXT DISC: "+str(self.var_disc_n)+" COPY: "+str(self.var_copy_n) |
|
323 | 347 | +" INDEX: "+str(var_index)+" STEP: "+str(self.var_step)) |
|
324 | 348 | self.txtInfo.append("\n") |
|
325 | 349 | |
|
326 | 350 | if var_index == 0 : |
|
327 | 351 | self.function_eject() |
|
328 | 352 | |
|
329 | 353 | elif self.var_step == 0: |
|
330 | 354 | self.function_iso() |
|
331 | 355 | elif self.var_step == 1: |
|
332 | 356 | self.function_burn() |
@@ -1,246 +1,274 | |||
|
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 | #Expulsa el dispositivo de grabacion actual | |
|
60 | def eject_one_device(self): | |
|
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 | var_dev = self.var_devices[var_index] | |
|
63 | var_cmd = 'eject ' + var_dev | |
|
64 | commands.getstatusoutput(var_cmd) | |
|
65 | ||
|
66 | def eject_t_one_device(self): | |
|
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 | var_dev = self.var_devices[var_index] | |
|
69 | var_cmd = 'eject -t ' + var_dev | |
|
70 | commands.getstatusoutput(var_cmd) | |
|
71 | ||
|
72 | def get_dev_sr(self): | |
|
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 | var_dev = self.var_devices[var_index] | |
|
75 | var_output=commands.getstatusoutput('ls -lh '+var_dev) | |
|
76 | if var_output[0] != 0: | |
|
77 | return "FATAL ERROR" | |
|
78 | else: | |
|
79 | var_dev_sr = "/dev/"+var_output[1] .split()[-1] | |
|
80 | return var_dev_sr | |
|
81 | ||
|
82 | ||
|
83 | ||
|
59 | 84 | #----------------------------------- listado de los dispositivos de grabacion seleccionados -------------------------------------------- |
|
60 | 85 | |
|
61 | 86 | def selected_devices(self): |
|
62 | 87 | self.var_devices=[] |
|
63 | 88 | if self.chkDevA.isChecked(): |
|
64 | 89 | self.var_devices.append(str(self.txtDeviceA.text())) |
|
65 | 90 | if self.chkDevB.isChecked(): |
|
66 | 91 | self.var_devices.append(str(self.txtDeviceB.text())) |
|
67 | 92 | if self.chkDevC.isChecked(): |
|
68 | 93 | self.var_devices.append(str(self.txtDeviceC.text())) |
|
69 | 94 | if self.chkDevD.isChecked(): |
|
70 | 95 | self.var_devices.append(str(self.txtDeviceD.text())) |
|
71 | 96 | |
|
72 | 97 | if len(self.var_devices) == 0: |
|
73 | 98 | return False |
|
74 | 99 | else: |
|
75 | 100 | return True |
|
76 | 101 | |
|
77 | 102 | |
|
78 | 103 | #----------------------------------------------------- Inicializacion para pruebas--------------------------------------------------------------- |
|
79 | 104 | |
|
80 | 105 | def set_parameters_test(self): |
|
81 | 106 | """ |
|
82 | 107 | Se usa para inicializar ciertos parametros para pruebas |
|
83 | 108 | """ |
|
84 | 109 | self.txtDpath.setText('/home/ricardoar/optional/STORAGE/EW_DRIFTS') |
|
85 | 110 | self.txtRpath.setText('/home/ricardoar/optional/prueba1_jro_backup_manager') |
|
86 | 111 | self.txtElabel.setText('EW_DRIFTS_pruebas') |
|
87 | 112 | self.lstDcapacity.setCurrentIndex(4) |
|
88 | 113 | self.txtDcapacity.setValue(100.0) |
|
89 | 114 | self.txtDcapacity.setReadOnly(False) |
|
90 | 115 | |
|
91 | 116 | def set_devices_test(self): |
|
92 | 117 | self.txtDeviceA.setText("/dev/scd0") |
|
93 | 118 | self.txtDeviceB.setText("/dev/scd1") |
|
94 | 119 | self.txtDeviceC.setText("/dev/scd2") |
|
95 | 120 | self.txtDeviceD.setText("/dev/scd3") |
|
96 | 121 | |
|
97 | 122 | |
|
98 | 123 | |
|
99 | 124 | #----------------------------------------------------- crea parameters.conf --------------------------------------------------------------- |
|
100 | 125 | |
|
101 | 126 | def make_parameters_conf(self): |
|
102 | 127 | var_file = open("parameters.conf","w") |
|
103 | 128 | var_file.write(self.var_Dpath+"\n") #0 Ruta de los datos |
|
104 | 129 | var_file.write(self.var_Rpath+"\n") #1 Ruta del proyecto |
|
105 | 130 | var_file.write(str(self.var_lstDtype)+"\n") #2 opcion Data Type |
|
106 | 131 | var_file.write(self.var_Dtype+"\n") #3 extension Data Type |
|
107 | 132 | var_file.write(self.var_Elabel+"\n") #4 etiqueta |
|
108 | 133 | var_file.write(str(self.var_Copys)+"\n") #5 Numero de copias |
|
109 | 134 | var_file.write(str(self.var_lstDcapacity)+"\n") #6 opcion Device Capacity |
|
110 | 135 | var_file.write(str(self.var_Dcapacity)+"\n") #7 tamaΓ±o Device Capacity |
|
111 | 136 | var_file.write(str(self.var_Discs)+"\n") #8 Numero de discos a grabar |
|
112 | 137 | # var_file.write(str(self.lstStartDay.currentIndex())+"\n") #9 Indice fecha inicial |
|
113 | 138 | # var_file.write(str(self.lstStopDay.currentIndex())+"\n") #10 Indice fecha final |
|
114 | 139 | var_file.close() |
|
115 | 140 | |
|
116 | 141 | #----------------------------------------------------- carga parameters.conf --------------------------------------------------------------- |
|
117 | 142 | |
|
118 | 143 | def get_parameters_conf(self): |
|
119 | 144 | var_file = open("parameters.conf","r") |
|
120 | 145 | lines = var_file.readlines() |
|
121 | 146 | self.txtDpath.setText(lines[0][:-1]) #0 |
|
122 | 147 | self.txtRpath.setText(lines[1][:-1]) #1 |
|
123 | 148 | self.lstDtype.setCurrentIndex(int(lines[2])) #2 |
|
124 | 149 | self.txtDtype.setText(lines[3][:-1]) #3 |
|
125 | 150 | self.txtElabel.setText(lines[4][:-1]) #4 |
|
126 | 151 | self.txtCopys.setValue(int(lines[5][:-1])) #5 |
|
127 | 152 | self.lstDcapacity.setCurrentIndex(int(lines[6])) #6 |
|
128 | 153 | self.txtDcapacity.setValue(float(lines[7])) #7 |
|
129 | 154 | self.var_Discs = int(lines[8]) #8 |
|
130 | 155 | # var_StartDay = int(lines[6]) #9 |
|
131 | 156 | # var_StopDay = int(lines[7]) #10 |
|
132 | 157 | ################################ |
|
133 | 158 | self.var_Copys = self.txtCopys.value() #5 |
|
134 | 159 | ################################ |
|
135 | 160 | |
|
136 | 161 | var_file.close() |
|
137 | 162 | |
|
138 | 163 | |
|
139 | 164 | #-------------------------- actualiza el valor de las variables con los parametros seleccionados ----------------------------- |
|
140 | 165 | |
|
141 | 166 | def set_vars(self): |
|
142 | 167 | self.var_Dpath = str(self.txtDpath.text()) #0 |
|
143 | 168 | self.var_Rpath = str(self.txtRpath.text()) #1 |
|
144 | 169 | self.var_lstDtype = self.lstDtype.currentIndex() #2 |
|
145 | 170 | self.var_Dtype = str(self.txtDtype.text()) #3 |
|
146 | 171 | self.var_Elabel = str(self.txtElabel.text()) #4 |
|
147 | 172 | self.var_Copys = self.txtCopys.value() #5 |
|
148 | 173 | self.var_lstDcapacity = self.lstDcapacity.currentIndex() #6 |
|
149 | 174 | self.var_Dcapacity = self.txtDcapacity.value() #7 |
|
150 | 175 | self.var_Discs = self.var_Discs #8 |
|
151 | 176 | |
|
152 | 177 | |
|
153 | 178 | #-------------------------- crea burning.conf ----------------------------- |
|
154 | 179 | |
|
155 | 180 | def make_burning_conf(self): |
|
156 | 181 | var_file = open("burning.conf","w") |
|
157 | 182 | var_n_burned_discs = ( ( (self.var_disc_n - 1) * self.var_Copys) + self.var_copy_n - 1 ) |
|
158 | 183 | var_file.write(str(var_n_burned_discs)+"\n") #0 Numero de discos ya grabados |
|
159 | 184 | var_file.write(str(self.var_disc_n)+"\n") #1 Disco actual para grabar |
|
160 | 185 | var_file.write(str(self.var_copy_n)+"\n") #2 Numero de copia actual para grabar |
|
161 | 186 | var_file.close() |
|
162 | 187 | |
|
163 | 188 | #----------------------------------------------------- carga burning.conf --------------------------------------------------------------- |
|
164 | 189 | |
|
165 | 190 | def get_burning_conf(self): |
|
166 | 191 | var_file = open("burning.conf","r") |
|
167 | 192 | lines = var_file.readlines() |
|
168 | 193 | self.var_burned_discs = int(lines[0]) #0 |
|
169 | 194 | self.var_disc_n = int(lines[1]) |
|
170 | 195 | self.var_copy_n = int(lines[2]) |
|
171 | 196 | var_file.close() |
|
172 | 197 | |
|
173 | 198 | #---------------------------------------------- Habilitacion y deshabilitacion de items ------------------------------------------------------- |
|
174 | 199 | |
|
175 | 200 | def enabled_items1(var_bool, self): |
|
176 | 201 | self.tabParameters.setEnabled(not(var_bool)) |
|
177 | 202 | self.lstDcapacity.setEnabled(not(var_bool)) |
|
178 | 203 | self.txtDcapacity.setEnabled(not(var_bool)) |
|
179 | 204 | self.actionChange_Parameters.setEnabled(var_bool) |
|
180 | 205 | self.btnGbkp.setEnabled(not(var_bool)) |
|
181 | 206 | self.btnRestart.setEnabled(var_bool) |
|
182 | 207 | self.btnStartburn.setEnabled(var_bool) |
|
183 | 208 | |
|
184 | 209 | |
|
185 | 210 | def enabled_items2(var_bool, self): |
|
186 | 211 | self.btnRestart.setEnabled(not(var_bool)) |
|
187 | 212 | self.btnStartburn.setEnabled(not(var_bool)) |
|
188 | 213 | self.btnStopburn.setEnabled(var_bool) |
|
189 | 214 | self.chkCheck.setEnabled(not(var_bool)) |
|
215 | self.chkCheck.setChecked(False) | |
|
216 | ||
|
190 | 217 | self.actionChange_Parameters.setEnabled(False) |
|
218 | ||
|
191 | 219 | |
|
192 | 220 | |
|
193 | 221 | |
|
194 | 222 | |
|
195 | 223 | #---------------------------------------------- Actualiza estado en los labels ------------------------------------------------------- |
|
196 | 224 | |
|
197 | def update_message(type, message, self, index=0): | |
|
225 | def update_message(type, message, self, index=0, ): | |
|
198 | 226 | if index == 0: |
|
199 | 227 | var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices) |
|
200 | 228 | else: |
|
201 | 229 | var_index = index |
|
202 | 230 | |
|
203 | 231 | var_message = message |
|
204 | 232 | # var_message = "BURNING" |
|
205 | 233 | # var_message = "COMPLETED" |
|
206 | 234 | # var_message = "ERROR" |
|
207 | 235 | # var_message = "CHECKING" |
|
208 | 236 | # var_message = "CHECKED" |
|
209 | 237 | |
|
210 | 238 | if type == 1: |
|
211 | 239 | |
|
212 | 240 | if var_index == 0: |
|
213 | 241 | self.txtBstatusA.setText(var_message) |
|
214 | 242 | self.txtBdiscA.setText(str(self.var_disc_n)) |
|
215 | 243 | self.txtBcopyA.setText(str(self.var_copy_n)) |
|
216 | 244 | |
|
217 | 245 | if var_index == 1: |
|
218 | 246 | self.txtBstatusB.setText(var_message) |
|
219 | 247 | self.txtBdiscB.setText(str(self.var_disc_n)) |
|
220 | 248 | self.txtBcopyB.setText(str(self.var_copy_n)) |
|
221 | 249 | |
|
222 | 250 | if var_index == 2: |
|
223 | 251 | self.txtBstatusC.setText(var_message) |
|
224 | 252 | self.txtBdiscC.setText(str(self.var_disc_n)) |
|
225 | 253 | self.txtBcopyC.setText(str(self.var_copy_n)) |
|
226 | 254 | |
|
227 | 255 | if var_index == 3: |
|
228 | 256 | self.txtBstatusD.setText(var_message) |
|
229 | 257 | self.txtBdiscD.setText(str(self.var_disc_n)) |
|
230 | 258 | self.txtBcopyD.setText(str(self.var_copy_n)) |
|
231 | 259 | |
|
232 | 260 | if type == 2: |
|
233 | 261 | |
|
234 | 262 | if var_index == 0: |
|
235 | 263 | self.txtCHstatusA.setText(var_message) |
|
236 | 264 | |
|
237 | 265 | if var_index == 1: |
|
238 | 266 | self.txtCHstatusB.setText(var_message) |
|
239 | 267 | |
|
240 | 268 | if var_index == 2: |
|
241 | 269 | self.txtCHstatusC.setText(var_message) |
|
242 | 270 | |
|
243 | 271 | if var_index == 3: |
|
244 | 272 | self.txtCHstatusD.setText(var_message) |
|
245 | 273 | |
|
246 | 274 |
@@ -1,645 +1,666 | |||
|
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 | self.txtInfo.append("cambio") | |
|
36 | ||
|
37 | ||
|
38 | self.allTrue = True | |
|
35 | self.txtInfo.append("cambio 1") | |
|
36 | ||
|
37 | self.allTrue = False | |
|
39 | 38 | |
|
40 | 39 | if self.allTrue == True: |
|
41 | 40 | self.var_real_principal = True |
|
42 | 41 | self.var_real_detect_devices = True |
|
43 | 42 | self.var_real_iso = True |
|
44 | 43 | self.var_real_burn = True |
|
45 | 44 | self.var_real_check = True |
|
46 | 45 | self.var_real_eject = True |
|
47 | 46 | self.var_real_show_cmd = True |
|
48 | 47 | |
|
49 | 48 | else: |
|
50 |
self.var_real_principal = |
|
|
49 | self.var_real_principal = False | |
|
51 | 50 | self.var_real_detect_devices = False |
|
52 |
self.var_real_iso = |
|
|
51 | self.var_real_iso = False | |
|
53 | 52 | self.var_real_burn = False |
|
54 |
self.var_real_check = |
|
|
53 | self.var_real_check = True | |
|
55 | 54 | self.var_real_eject = False |
|
56 | 55 | self.var_real_show_cmd = True |
|
57 | 56 | |
|
58 | 57 | if self.var_real_detect_devices == True: |
|
59 | 58 | # Reconocimiento de los dispositivos de grabacion |
|
60 | 59 | functions2.detect_devices(self) |
|
61 | 60 | else: |
|
62 | 61 | functions2.set_devices_test(self) |
|
63 | 62 | |
|
64 | 63 | #Inicialiazacion de variables |
|
65 | 64 | self.var_Discs = 0 #Numero de discos del proyecto |
|
66 | 65 | self.var_Copys = 0 #Numero de copias |
|
67 | 66 | self.var_disc_n = 0 # disco actual |
|
68 | 67 | self.var_copy_n = 0 # copia actual |
|
69 | 68 | self.var_burned_discs = 0 #numero de discos ya grabados |
|
70 | 69 | |
|
71 | 70 | self.bool_first_iso = False |
|
72 | 71 | self.var_step = 0 # numero de paso en el proceso |
|
73 | 72 | self.bool_state_burning = False #si es True se puede grabar |
|
74 | 73 | self.blank_discs = False # Si es true significa que se acaban de ingresar discos en blanco |
|
75 | 74 | |
|
76 | 75 | self.var_list=[] # Lista de DOYs |
|
77 | 76 | self.var_sublist=[] # Sub-lista de DOYs seleccionados |
|
78 | 77 | self.var_devices=[] #Lista de dispositivos seleccionados |
|
79 | 78 | |
|
80 | 79 | #Revisa si existe el archivo de confirguracion y lo carga |
|
81 | 80 | if os.path.isfile("parameters.conf"): |
|
82 | 81 | functions2.get_parameters_conf(self) |
|
83 | 82 | self.bool_first_iso = True |
|
84 | 83 | self.txtInfo.append("Parameters were loaded from configuration file") |
|
85 | 84 | self.txtInfo.append("Total number of discs for recording: "+str(self.var_Discs * self.var_Copys)) |
|
86 | 85 | |
|
87 | 86 | elif self.var_real_principal == False: |
|
88 | 87 | functions2.set_parameters_test(self) #Establece ciertos parametros, para pruebas |
|
89 | 88 | |
|
90 | 89 | functions2.set_vars(self) #Carga las variables de la clase con los parametros seleccionados |
|
91 | 90 | |
|
92 | 91 | self.statusDpath = functions.dir_exists(self.var_Dpath, self) |
|
93 | 92 | self.statusRpath = functions.dir_exists(self.var_Rpath, self) |
|
94 | 93 | functions.load_days(self) |
|
95 | 94 | |
|
96 | 95 | if os.path.isfile("parameters.conf"): |
|
97 | 96 | functions2.enabled_items1(True, self) #Se bloquean los parametros de configuracion |
|
98 | 97 | |
|
99 | 98 | if os.path.isfile("burning.conf"): |
|
100 | 99 | functions2.get_burning_conf(self) |
|
101 | 100 | self.txtInfo.append("Current disc: "+str(self.var_disc_n)) |
|
102 | 101 | self.txtInfo.append("Current copy: "+str(self.var_copy_n)) |
|
103 | 102 | self.txtInfo.append("Burned discs: "+str(self.var_burned_discs)) |
|
104 | 103 | self.btnStartburn.setText("Continue") |
|
105 | 104 | self.actionChange_Parameters.setEnabled(False) |
|
106 | 105 | |
|
107 | 106 | self.connect(self.actionChange_Parameters, QtCore.SIGNAL("triggered()"), self.changeParameters) |
|
108 | 107 | self.connect(self.actionAbout, QtCore.SIGNAL("triggered()"), self.about) |
|
109 | 108 | |
|
110 | 109 | self.process_iso = QtCore.QProcess() |
|
111 | 110 | self.connect(self.process_iso, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_iso) |
|
112 | 111 | self.connect(self.process_iso, QtCore.SIGNAL('readyReadStandardError()'), self.readError_iso) |
|
113 | 112 | self.connect(self.process_iso, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_iso) |
|
114 | 113 | |
|
115 | 114 | self.process_burn = QtCore.QProcess() |
|
116 | 115 | self.connect(self.process_burn, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_burn) |
|
117 | 116 | self.connect(self.process_burn, QtCore.SIGNAL('readyReadStandardError()'), self.readError_burn) |
|
118 | 117 | self.connect(self.process_burn, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_burn) |
|
119 | 118 | |
|
120 | 119 | self.process_check = QtCore.QProcess() |
|
121 | 120 | self.connect(self.process_check, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_check) |
|
122 | 121 | self.connect(self.process_check, QtCore.SIGNAL('readyReadStandardError()'), self.readError_check) |
|
123 | 122 | self.connect(self.process_check, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_check) |
|
124 | 123 | |
|
125 | 124 | |
|
126 | 125 | def changeParameters(self): |
|
127 | 126 | dlg=QtGui.QDialog() |
|
128 | 127 | dlgui=Ui_Parameters() |
|
129 | 128 | dlgui.setupUi(dlg) |
|
130 | 129 | if (dlg.exec_() == QtGui.QDialog.Accepted): |
|
131 | 130 | if dlgui.txtDisc.value() > self.var_Discs or dlgui.txtCopy.value() > dlgui.txtNcopys.value(): |
|
132 | 131 | self.txtInfo.append("Wrong parameters") |
|
133 | 132 | else: |
|
134 | 133 | self.var_Copys = dlgui.txtNcopys.value() |
|
135 | 134 | self.var_disc_n = dlgui.txtDisc.value() |
|
136 | 135 | self.var_copy_n = dlgui.txtCopy.value() |
|
137 | 136 | self.txtInfo.append("Changed parameters") |
|
138 | 137 | self.var_burned_discs = ( ( (self.var_disc_n - 1) * self.var_Copys) + self.var_copy_n -1 ) |
|
139 | 138 | self.bool_first_iso = True |
|
140 | 139 | self.txtInfo.append("Current disc: "+str(self.var_disc_n)) |
|
141 | 140 | self.txtInfo.append("Current copy: "+str(self.var_copy_n)) |
|
142 | 141 | self.txtInfo.append("Nro Copys: "+str(self.var_Copys)) |
|
143 | 142 | functions2.make_parameters_conf(self) |
|
144 | 143 | self.txtCopys.setValue(self.var_Copys) #Actualizo mananualmente el valor Copys |
|
145 | 144 | |
|
146 | 145 | |
|
147 | 146 | |
|
148 | 147 | def about(self): |
|
149 | 148 | dlg_about=QtGui.QDialog() |
|
150 | 149 | dlgui_about=Ui_About() |
|
151 | 150 | dlgui_about.setupUi(dlg_about) |
|
152 | 151 | dlg_about.exec_() |
|
153 | 152 | |
|
154 | 153 | |
|
155 | 154 | #============================================================================== |
|
156 | 155 | # Manejo de los eventos |
|
157 | 156 | #============================================================================== |
|
158 | 157 | |
|
159 | 158 | #----------------------------------------------------- Obtencion de la ruta de los datos --------------------------------------------------------------- |
|
160 | 159 | |
|
161 | 160 | @pyqtSignature("") |
|
162 | 161 | def on_btnDpath_clicked(self): |
|
163 | 162 | """ |
|
164 | 163 | Permite seleccionar graficamente el direcorio de los datos a grabar |
|
165 | 164 | """ |
|
166 | 165 | self.var_Dpath= str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) |
|
167 | 166 | self.txtDpath.setText(self.var_Dpath) |
|
168 | 167 | self.statusDpath = functions.dir_exists(self.var_Dpath, self) |
|
169 | 168 | functions.load_days(self) |
|
170 | 169 | |
|
171 | 170 | |
|
172 | 171 | @pyqtSignature("") |
|
173 | 172 | def on_txtDpath_editingFinished(self): |
|
174 | 173 | """ |
|
175 | 174 | Carga la ruta editada y verifica que sea correcta y carga la lista de dias |
|
176 | 175 | """ |
|
177 | 176 | self.var_Dpath=str(self.txtDpath.text()) #Se carga la variable con la ruta recien editada |
|
178 | 177 | self.statusDpath = functions.dir_exists(self.var_Dpath, self) |
|
179 | 178 | functions.load_days(self) |
|
180 | 179 | |
|
181 | 180 | |
|
182 | 181 | #----------------------------------------------------- Obtencion de las ruta del proyecto --------------------------------------------------------------- |
|
183 | 182 | |
|
184 | 183 | @pyqtSignature("") |
|
185 | 184 | def on_btnRpath_clicked(self): |
|
186 | 185 | """ |
|
187 | 186 | Permite seleccionar graficamente el direcorio del proyecto |
|
188 | 187 | """ |
|
189 | 188 | self.var_Rpath = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) |
|
190 | 189 | self.txtRpath.setText(self.var_Rpath) |
|
191 | 190 | self.statusRpath = functions.dir_exists(self.var_Rpath, self) |
|
192 | 191 | |
|
193 | 192 | |
|
194 | 193 | @pyqtSignature("") |
|
195 | 194 | def on_txtRpath_editingFinished(self): |
|
196 | 195 | """ |
|
197 | 196 | Valida la ruta del proyecto |
|
198 | 197 | """ |
|
199 | 198 | self.var_Rpath = str(self.txtRpath.text()) #Se carga la variable con la ruta recien editada |
|
200 | 199 | self.statusRpath = functions.dir_exists(self.var_Rpath, self) |
|
201 | 200 | |
|
202 | 201 | |
|
203 | 202 | #----------------------------------------------------- Tipo de datos --------------------------------------------------------------- |
|
204 | 203 | |
|
205 | 204 | @pyqtSignature("int") |
|
206 | 205 | def on_lstDtype_activated(self, index): |
|
207 | 206 | """ |
|
208 | 207 | Permite elegir entre los tipos de archivos |
|
209 | 208 | """ |
|
210 | 209 | self.txtDtype.setReadOnly(True) |
|
211 | 210 | if index == 0: |
|
212 | 211 | self.var_Dtype ='r' |
|
213 | 212 | elif index == 1: |
|
214 | 213 | self.var_Dtype ='pdata' |
|
215 | 214 | elif index == 2: |
|
216 | 215 | self.var_Dtype ='sswma' |
|
217 | 216 | else : |
|
218 | 217 | self.var_Dtype ='' |
|
219 | 218 | self.txtDtype.setReadOnly(False) |
|
220 | 219 | |
|
221 | 220 | self.txtDtype.setText(self.var_Dtype) |
|
222 | 221 | functions.load_days(self) #llamada a funcion |
|
223 | 222 | |
|
224 | 223 | @pyqtSignature("") |
|
225 | 224 | def on_txtDtype_editingFinished(self): |
|
226 | 225 | self.var_Dtype=str(self.txtDtype.text()) |
|
227 | 226 | functions.load_days(self) #llamada a funcion |
|
228 | 227 | |
|
229 | 228 | |
|
230 | 229 | #----------------------------------------------------- Etiqueta --------------------------------------------------------------- |
|
231 | 230 | |
|
232 | 231 | @pyqtSignature("") |
|
233 | 232 | def on_txtElabel_editingFinished(self): |
|
234 | 233 | self.var_Elabel = str(self.txtElabel.text()) |
|
235 | 234 | |
|
236 | 235 | #----------------------------------------------------- Numero de copias --------------------------------------------------------------- |
|
237 | 236 | @pyqtSignature("") |
|
238 | 237 | def on_txtCopys_editingFinished(self): |
|
239 | 238 | self.var_Copys = self.txtCopys.value() |
|
240 | 239 | |
|
241 | 240 | #----------------------------------------------------- Seleccion del rango de fechas --------------------------------------------------------------- |
|
242 | 241 | |
|
243 | 242 | @pyqtSignature("int") #CLOSED |
|
244 | 243 | def on_lstStartDay_activated(self, index): |
|
245 | 244 | """ |
|
246 | 245 | Cambia la lista de opciones en lstStopDay |
|
247 | 246 | """ |
|
248 | 247 | var_StopDay_index=self.lstStopDay.count() - self.lstStopDay.currentIndex() |
|
249 | 248 | self.lstStopDay.clear() |
|
250 | 249 | |
|
251 | 250 | for i in self.var_list[index:]: |
|
252 | 251 | self.lstStopDay.addItem(i) |
|
253 | 252 | |
|
254 | 253 | self.lstStopDay.setCurrentIndex(self.lstStopDay.count() - var_StopDay_index) |
|
255 | 254 | |
|
256 | 255 | functions.get_sub_list(self) |
|
257 | 256 | |
|
258 | 257 | |
|
259 | 258 | @pyqtSignature("int") #CLOSED |
|
260 | 259 | def on_lstStopDay_activated(self, index): |
|
261 | 260 | """ |
|
262 | 261 | Cambia la lista de opciones en lstStartDay |
|
263 | 262 | """ |
|
264 | 263 | var_StartDay_index=self.lstStartDay.currentIndex() |
|
265 | 264 | var_end_index = self.lstStopDay.count() - index |
|
266 | 265 | self.lstStartDay.clear() |
|
267 | 266 | |
|
268 | 267 | for i in self.var_list[:len(self.var_list) - var_end_index + 1]: |
|
269 | 268 | self.lstStartDay.addItem(i) |
|
270 | 269 | |
|
271 | 270 | self.lstStartDay.setCurrentIndex(var_StartDay_index) |
|
272 | 271 | |
|
273 | 272 | functions.get_sub_list(self) |
|
274 | 273 | |
|
275 | 274 | |
|
276 | 275 | #----------------------------------------------------- Capacidad del dispositivo de grabacion --------------------------------------------------------------- |
|
277 | 276 | |
|
278 | 277 | @pyqtSignature("") |
|
279 | 278 | def on_txtDcapacity_editingFinished(self): |
|
280 | 279 | self.var_Dcapacity = self.txtDcapacity.value() |
|
281 | 280 | |
|
282 | 281 | |
|
283 | 282 | @pyqtSignature("int") #CLOSED |
|
284 | 283 | def on_lstDcapacity_activated(self, index): |
|
285 | 284 | """ |
|
286 | 285 | Permite elegir el tamaΓ±o del disco |
|
287 | 286 | """ |
|
288 | 287 | if index == 0: |
|
289 | 288 | var_size=25.0 |
|
290 | 289 | elif index == 1: |
|
291 | 290 | var_size=8.5 |
|
292 | 291 | elif index == 2: |
|
293 | 292 | var_size=4.7 |
|
294 | 293 | elif index == 3: |
|
295 | 294 | var_size=0.7 |
|
296 | 295 | |
|
297 | 296 | if index != 4: |
|
298 | 297 | self.txtDcapacity.setValue(var_size*10**9/1024**2) |
|
299 | 298 | self.txtDcapacity.setReadOnly(True) |
|
300 | 299 | else: |
|
301 | 300 | self.txtDcapacity.setValue(100.0) |
|
302 | 301 | self.txtDcapacity.setReadOnly(False) |
|
303 | 302 | |
|
304 | 303 | self.var_lstDcapacity = self.lstDcapacity.currentIndex() |
|
305 | 304 | self.var_Dcapacity = self.txtDcapacity.value() |
|
306 | 305 | |
|
307 | 306 | #----------------------------------------------------- Testeo de las unidades de grabacion --------------------------------------------------------------- |
|
308 | 307 | |
|
309 | 308 | @pyqtSignature("") |
|
310 | 309 | def on_btnTdevA_clicked(self): |
|
311 | 310 | var_dev = str(self.txtDeviceA.text()) |
|
312 | 311 | var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev |
|
313 | 312 | commands.getstatusoutput(var_cmd) |
|
314 | 313 | |
|
315 | 314 | @pyqtSignature("") |
|
316 | 315 | def on_btnTdevB_clicked(self): |
|
317 | 316 | var_dev = str(self.txtDeviceB.text()) |
|
318 | 317 | var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev |
|
319 | 318 | commands.getstatusoutput(var_cmd) |
|
320 | 319 | |
|
321 | 320 | @pyqtSignature("") |
|
322 | 321 | def on_btnTdevC_clicked(self): |
|
323 | 322 | var_dev = str(self.txtDeviceC.text()) |
|
324 | 323 | var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev |
|
325 | 324 | commands.getstatusoutput(var_cmd) |
|
326 | 325 | |
|
327 | 326 | @pyqtSignature("") |
|
328 | 327 | def on_btnTdevD_clicked(self): |
|
329 | 328 | var_dev = str(self.txtDeviceD.text()) |
|
330 | 329 | var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev |
|
331 | 330 | commands.getstatusoutput(var_cmd) |
|
332 | 331 | |
|
333 | 332 | |
|
334 | 333 | #============================================================================== |
|
335 | 334 | # Botones para la generacion de los archivos de configuracion |
|
336 | 335 | #============================================================================== |
|
337 | 336 | |
|
338 | 337 | #----------------------------------------------------- Generacion de la configuracion usando los parametros --------------------------------------------------------------- |
|
339 | 338 | |
|
340 | 339 | @pyqtSignature("") |
|
341 | 340 | def on_btnGbkp_clicked(self): |
|
342 | 341 | """ |
|
343 | 342 | Generacion de archivos de configuracion usando los parametros |
|
344 | 343 | """ |
|
345 | 344 | |
|
346 | 345 | if functions.validate_parameters(self) == False: |
|
347 | 346 | return |
|
348 | 347 | |
|
349 | 348 | #Crea las carpetas en la ruta del proyecto y verifica que se crearon correctamente |
|
350 | 349 | list_dirs=['gpath','iso','ppath', 'tmpdata'] |
|
351 | 350 | bool_make_dirs = functions.make_dirs(list_dirs, self) |
|
352 | 351 | if bool_make_dirs == False: |
|
353 | 352 | return |
|
354 | 353 | |
|
355 | 354 | var_files_list = functions.list_files(self) #Se obtiene la lista de archivos a grabar |
|
356 | 355 | |
|
357 | 356 | self.var_Discs = functions.make_files_dat(var_files_list, self) #Se crean los archivos .dat |
|
358 | 357 | |
|
359 | 358 | functions.make_files_print(self) # Se crean los archivos .print |
|
360 | 359 | |
|
361 | 360 | functions2.make_parameters_conf(self) # se crea el archivo parameters.conf |
|
362 | 361 | |
|
363 | 362 | self.txtInfo.append("Total number of discs for recording: "+str(self.var_Discs * self.var_Copys)) |
|
364 | 363 | |
|
365 | 364 | #Se bloquean los parametros de configuracion |
|
366 | 365 | functions2.enabled_items1(True, self) |
|
367 | 366 | self.var_disc_n = 1 |
|
368 | 367 | self.var_copy_n = 1 |
|
369 | 368 | self.bool_first_iso = True |
|
370 | 369 | self.var_burned_discs = 0 #numero de discos grabados |
|
371 | 370 | |
|
372 | 371 | |
|
373 | 372 | #----------------------------------------------------- Permite reiniciar la configuracion --------------------------------------------------------------- |
|
374 | 373 | |
|
375 | 374 | @pyqtSignature("") |
|
376 | 375 | def on_btnRestart_clicked(self): |
|
377 | 376 | """ |
|
378 | 377 | Permite que se puedan cambiar los parametros |
|
379 | 378 | """ |
|
380 | 379 | if os.path.isfile("parameters.conf"): |
|
381 | 380 | os.remove("parameters.conf") |
|
382 | 381 | if os.path.isfile("burning.conf"): |
|
383 | 382 | os.remove("burning.conf") |
|
384 | 383 | |
|
385 | 384 | functions2.enabled_items1(False, self) |
|
386 | 385 | self.btnStartburn.setText("Start Burn") |
|
387 | 386 | self.txtInfo.clear() |
|
388 | 387 | |
|
389 | 388 | |
|
390 | 389 | |
|
391 | 390 | #============================================================================== |
|
392 | 391 | # Acciones de los procesos |
|
393 | 392 | #============================================================================== |
|
394 | 393 | |
|
395 | 394 | #------------------------------------------------ Funciones del proceso de creacion del iso ------------------------------------------------------ |
|
396 | 395 | |
|
397 | 396 | def readOuput_iso(self): |
|
398 | 397 | self.txtProgress.setText("stdout iso: " + QtCore.QString(self.process_iso.readAllStandardOutput())) |
|
399 | 398 | |
|
400 | 399 | def readError_iso(self): |
|
401 | 400 | self.txtProgress.setText("stderr iso: " + QtCore.QString(self.process_iso.readAllStandardError())) |
|
402 | 401 | |
|
403 | 402 | def finished_iso(self): |
|
404 | 403 | self.txtProgress.clear() |
|
405 | 404 | |
|
406 | 405 | if not(self.bool_state_burning): |
|
407 | 406 | return |
|
408 | 407 | |
|
409 | 408 | if self.process_iso.exitCode() == 0: |
|
410 | 409 | self.txtInfo.append("------Iso file: "+functions.i2s(self.var_disc_n)+" created successfully\n") |
|
411 | 410 | self.var_step = 1 |
|
412 | 411 | self.function_burn() |
|
413 | 412 | |
|
414 | 413 | else: |
|
415 | 414 | self.txtInfo.append("#####Error creating iso file "+functions.i2s(self.var_disc_n) |
|
416 | 415 | +" , code "+QtCore.QString(self.process_iso.exitCode())) |
|
417 | 416 | self.txtInfo.append("Please check the data") |
|
418 | 417 | self.txtInfo.append("FATAL ERROR") |
|
419 | 418 | |
|
420 | 419 | #----------------------------------------------------- Funciones del proceso de grabado --------------------------------------------------------------- |
|
421 | 420 | |
|
422 | 421 | def readOuput_burn(self): |
|
423 | 422 | self.txtProgress.setText("stdout burn: " + QtCore.QString(self.process_burn.readAllStandardOutput())) |
|
424 | 423 | |
|
425 | 424 | def readError_burn(self): |
|
426 | 425 | self.txtProgress.setText("stderr burn: " + QtCore.QString(self.process_burn.readAllStandardError())) |
|
427 | 426 | |
|
428 | 427 | def finished_burn(self): |
|
429 | 428 | self.txtProgress.clear() |
|
430 | 429 | |
|
431 | 430 | #Si se paro el proceso manualmente se termina |
|
432 | 431 | if not(self.bool_state_burning): |
|
433 | 432 | return |
|
434 | 433 | |
|
435 | 434 | if self.process_burn.exitCode() == 0: |
|
436 | 435 | self.txtInfo.append("-----Complete recording, disc: "+str(self.var_disc_n)+" copy: "+str(self.var_copy_n)) |
|
437 | 436 | functions2.update_message(1, "COMPLETED", self) |
|
438 | 437 | self.var_step = 2 |
|
439 | 438 | self.function_check() |
|
440 | 439 | |
|
441 | 440 | else: |
|
442 | 441 | self.txtInfo.append("#######Error recording, disc: "+functions.i2s(self.var_disc_n)+" copy: " |
|
443 | 442 | +functions.i2s(self.var_copy_n)+", code "+QtCore.QString(self.process_burn.exitCode())) |
|
444 | 443 | functions2.update_message(1, "ERROR", self) |
|
445 | 444 | |
|
446 | 445 | functions.is_last_disc_and_copy(self) |
|
447 | 446 | |
|
448 | 447 | |
|
449 | 448 | #----------------------------------------------------- Funciones del proceso de verificacion --------------------------------------------------------------- |
|
450 | 449 | |
|
451 | 450 | def readOuput_check(self): |
|
452 | 451 | self.txtProgress.setText("stdout check: " + QtCore.QString(self.process_check.readAllStandardOutput())) |
|
453 | 452 | |
|
454 | 453 | def readError_check(self): |
|
455 | 454 | self.txtProgress.setText("stderr check: " + QtCore.QString(self.process_check.readAllStandardError())) |
|
456 | 455 | |
|
457 | 456 | def finished_check(self): |
|
458 | 457 | self.txtProgress.clear() |
|
459 | 458 | |
|
460 | 459 | if not(self.bool_state_burning): |
|
461 | 460 | return |
|
462 | ||
|
461 | ||
|
463 | 462 | if self.process_check.exitCode() == 0: |
|
464 | 463 | self.txtInfo.append("--------Complete checking, disc: "+str(self.var_disc_n)+" copy: "+str(self.var_copy_n)) |
|
465 | 464 | functions2.update_message(2, "CHECKED", self) |
|
466 | 465 | |
|
467 | 466 | else: |
|
468 | 467 | self.txtInfo.append("#######Error checking, disc: "+functions.i2s(self.var_disc_n)+" copy: " |
|
469 | 468 | +functions.i2s(self.var_copy_n)+", code "+QtCore.QString(self.process_check.exitCode())) |
|
470 | 469 | functions2.update_message(2, "ERROR", self) |
|
471 | ||
|
470 | ||
|
471 | #borrar el contenido de tmpdata | |
|
472 | var_tmpdata=self.var_Rpath+"/tmpdata" | |
|
473 | ||
|
474 | bool_return = functions.remove_dir(var_tmpdata, self) | |
|
475 | if not(bool_return): | |
|
476 | self.txtInfo.append("Error deleting directory: "+var_tmpdata) | |
|
477 | self.bool_state_burning = False | |
|
478 | return | |
|
479 | ||
|
480 | bool_return = functions.make_dir(var_tmpdata, self) | |
|
481 | if not(bool_return): | |
|
482 | self.txtInfo.append("Error creating directory:"+ var_tmpdata) | |
|
483 | self.bool_state_burning = False | |
|
484 | return | |
|
485 | ||
|
472 | 486 | functions.is_last_disc_and_copy(self) |
|
473 | 487 | |
|
474 | 488 | |
|
475 | 489 | |
|
476 | 490 | #============================================================================== |
|
477 | 491 | # Botones para el proceso de grabacion |
|
478 | 492 | #============================================================================== |
|
479 | 493 | |
|
480 | 494 | #----------------------------------------------------- Iniciar proceso de grabacion --------------------------------------------------------------- |
|
481 | 495 | |
|
482 | 496 | @pyqtSignature("") |
|
483 | 497 | def on_btnStartburn_clicked(self): |
|
484 | 498 | """ |
|
485 | 499 | Se inicia el proceso de grabacion |
|
486 | 500 | """ |
|
487 | 501 | #Verifica que exista algun dispositivo de grabacion seleccionado |
|
488 | 502 | if not(functions2.selected_devices(self)): |
|
489 | 503 | self.txtInfo.append("There is no recording device selected") |
|
490 | 504 | return |
|
491 | 505 | |
|
492 | 506 | # #Lista los dispositivos de grabacion a usar |
|
493 | 507 | # for dev in self.var_devices: |
|
494 | 508 | # self.txtInfo.append("recording device :"+dev) |
|
495 | 509 | |
|
496 | 510 | self.bool_state_burning = True |
|
497 | 511 | functions2.enabled_items2(True, self) |
|
498 | 512 | |
|
499 | 513 | if self.bool_first_iso == True: |
|
500 | 514 | self.txtInfo.append("BUTTON: on_btnStartburn_clicked") |
|
501 | 515 | self.var_step = 4 |
|
502 | 516 | self.function_eject() |
|
503 | 517 | return |
|
504 | 518 | |
|
505 | 519 | if self.var_step == 0: |
|
506 | 520 | self.function_iso() |
|
507 | 521 | return |
|
508 | 522 | |
|
509 | 523 | if self.var_step == 1: |
|
510 | 524 | self.function_burn() |
|
511 | 525 | return |
|
512 | 526 | |
|
513 | 527 | #----------------------------------------------------- Funcion para el grabado --------------------------------------------------------------- |
|
514 | 528 | |
|
515 | 529 | def function_iso(self): |
|
516 | 530 | #Creacion del archivo.iso para la grabacion |
|
517 | 531 | if self.var_step == 0: |
|
518 | 532 | self.txtInfo.append("########## Disc number: "+str(self.var_disc_n)+"##########") |
|
519 | 533 | self.txtInfo.append("------Creating iso file number: "+str(self.var_disc_n)) |
|
520 | 534 | |
|
521 | 535 | var_cmd = functions.cmd_iso(self) |
|
522 | 536 | |
|
523 | 537 | if self.var_real_show_cmd == True: |
|
524 | 538 | self.txtInfo.append("CMD: "+var_cmd) |
|
525 | 539 | |
|
526 | 540 | if self.var_real_iso == False: |
|
527 | 541 | self.txtInfo.append('**function_iso') |
|
528 | 542 | var_cmd="echo 'function_iso'" |
|
529 | 543 | |
|
530 | 544 | self.process_iso.start(var_cmd) |
|
531 | 545 | |
|
532 | 546 | def function_burn(self): |
|
533 | 547 | #Grabacion de los DVDs |
|
534 | 548 | |
|
535 | 549 | if self.var_step == 1: |
|
536 | 550 | self.txtInfo.append("------Recording disc: "+str(self.var_disc_n)+", copy:"+str(self.var_copy_n)) |
|
537 | 551 | functions2.update_message(1, "BURNING", self) |
|
538 | 552 | |
|
539 | 553 | var_cmd = functions.cmd_burn(self) |
|
540 | 554 | |
|
541 | 555 | if self.var_real_show_cmd == True: |
|
542 | 556 | self.txtInfo.append("CMD: "+var_cmd) |
|
543 | 557 | |
|
544 | 558 | if self.var_real_burn == False: |
|
545 | 559 | self.txtInfo.append('**function_burn') |
|
546 | 560 | var_cmd="echo 'function_burn'" |
|
547 | 561 | |
|
548 | 562 | self.process_burn.start(var_cmd) |
|
549 | 563 | |
|
550 | 564 | def function_check(self): |
|
551 | 565 | #Verificacion de los discos |
|
552 | 566 | if self.var_step == 2: |
|
553 | 567 | self.txtInfo.append("-----------checking disc:"+str(self.var_disc_n)+", copy:"+str(self.var_copy_n)) |
|
568 | ||
|
569 | functions2.eject_one_device(self) | |
|
570 | functions2.eject_t_one_device(self) | |
|
571 | self.txtInfo.append("Waiting ...") | |
|
572 | time .sleep(20) | |
|
573 | ||
|
554 | 574 | functions2.update_message(2, "CHECKING", self) |
|
555 | ||
|
556 |
|
|
|
575 | ||
|
576 | dev_sr = functions2.get_dev_sr(self) | |
|
577 | var_cmd = functions.cmd_check(dev_sr, self) | |
|
557 | 578 | |
|
558 | 579 | if self.var_real_show_cmd == True: |
|
559 | 580 | self.txtInfo.append("CMD: "+var_cmd) |
|
560 | 581 | |
|
561 | 582 | if self.var_real_check == False: |
|
562 | 583 | self.txtInfo.append('**function_check') |
|
563 | 584 | var_cmd="echo 'function_check'" |
|
564 | 585 | |
|
565 | 586 | self.process_check.start(var_cmd) |
|
566 | 587 | |
|
567 | 588 | #OK |
|
568 | 589 | def function_eject(self): |
|
569 | 590 | self.txtInfo.append("Ejecting recording devices") |
|
570 | 591 | self.txtInfo.append("Please insert blank discs") |
|
571 | 592 | |
|
572 | 593 | if self.var_real_eject == True: |
|
573 | 594 | functions2.eject_devices(self) # Expulsa las bandejas de los dispostivos de grabacion |
|
574 | 595 | else: |
|
575 | 596 | self.txtInfo.append("**functions2.eject_devices") |
|
576 | 597 | |
|
577 | 598 | self.btnStartburn.setText("Continue") |
|
578 | 599 | self.btnStartburn.setEnabled(True) |
|
579 | 600 | |
|
580 | 601 | if self.bool_first_iso == True: |
|
581 | 602 | self.bool_first_iso = False |
|
582 | 603 | self.var_step = 0 |
|
583 | 604 | |
|
584 | 605 | elif self.var_copy_n == 1: |
|
585 | 606 | self.var_step = 0 |
|
586 | 607 | |
|
587 | 608 | else: |
|
588 | 609 | self.var_step = 1 |
|
589 | 610 | |
|
590 | 611 | def function_final(self): |
|
591 | 612 | self.txtInfo.append("Recording process is complete") |
|
592 | 613 | if os.path.isfile("parameters.conf"): |
|
593 | 614 | os.remove("parameters.conf") |
|
594 | 615 | if os.path.isfile("burning.conf"): |
|
595 | 616 | os.remove("burning.conf") |
|
596 | 617 | |
|
597 | 618 | |
|
598 | 619 | |
|
599 | 620 | #----------------------------------------------------- Detener proceso de grabacion --------------------------------------------------------------- |
|
600 | 621 | |
|
601 | 622 | @pyqtSignature("") |
|
602 | 623 | def on_btnStopburn_clicked(self): |
|
603 | 624 | """ |
|
604 | 625 | Slot documentation goes here. |
|
605 | 626 | """ |
|
606 | 627 | self.bool_state_burning = False |
|
607 | 628 | |
|
608 | 629 | if self.var_step == 0: |
|
609 | 630 | self.process_iso.terminate() #Termina el proceso, si puede |
|
610 | 631 | # self.process_iso.kill() #Mata el proceso, no es la forma adecuada, solo usar si terminate() no funciona |
|
611 | 632 | elif self.var_step == 1: |
|
612 | 633 | self.process_burn.terminate() |
|
613 | 634 | elif self.var_step == 2: |
|
614 | 635 | self.process_check.terminate() |
|
615 | 636 | |
|
616 | 637 | self.txtInfo.append("Stopped recording") |
|
617 | 638 | functions2.enabled_items2(False, self) |
|
618 | 639 | self.bool_first_iso = True |
|
619 | 640 | |
|
620 | 641 | |
|
621 | 642 | |
|
622 | 643 | #============================================================================== |
|
623 | 644 | # Proceso verificacion manual |
|
624 | 645 | #============================================================================== |
|
625 | 646 | |
|
626 | 647 | |
|
627 | 648 | #----------------------------------------------------- Proceso de verificaion manual --------------------------------------------------------------- |
|
628 | 649 | |
|
629 | 650 | |
|
630 | 651 | @pyqtSignature("") |
|
631 | 652 | def on_btnTDpath_clicked(self): |
|
632 | 653 | """ |
|
633 | 654 | Slot documentation goes here. |
|
634 | 655 | """ |
|
635 | 656 | self.var_TDpath= str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) |
|
636 | 657 | self.txtTDpath.setText(self.var_TDpath) |
|
637 | 658 | self.statusTDpath = functions.dir_exists(self.var_TDpath, self) |
|
638 | 659 | |
|
639 | 660 | |
|
640 | 661 | @pyqtSignature("") |
|
641 | 662 | def on_btnCHstart_clicked(self): |
|
642 | 663 | """ |
|
643 | 664 | Slot documentation goes here. |
|
644 | 665 | """ |
|
645 | 666 | pass |
@@ -1,1463 +1,1466 | |||
|
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>0</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 | 1004 | <bool>false</bool> |
|
1005 | </property> | |
|
1006 | <property name="readOnly"> | |
|
1007 | <bool>true</bool> | |
|
1005 | 1008 | </property> |
|
1006 | 1009 | </widget> |
|
1007 | 1010 | </item> |
|
1008 | 1011 | <item> |
|
1009 | 1012 | <widget class="QPushButton" name="btnTDpath"> |
|
1010 | 1013 | <property name="enabled"> |
|
1011 | 1014 | <bool>false</bool> |
|
1012 | 1015 | </property> |
|
1013 | 1016 | <property name="text"> |
|
1014 | 1017 | <string>Temp Data Path</string> |
|
1015 | 1018 | </property> |
|
1016 | 1019 | </widget> |
|
1017 | 1020 | </item> |
|
1018 | 1021 | </layout> |
|
1019 | 1022 | </item> |
|
1020 | 1023 | <item> |
|
1021 | 1024 | <layout class="QHBoxLayout" name="horizontalLayout_19"> |
|
1022 | 1025 | <item> |
|
1023 | 1026 | <layout class="QVBoxLayout" name="verticalLayout_26"> |
|
1024 | 1027 | <item> |
|
1025 | 1028 | <spacer name="horizontalSpacer_10"> |
|
1026 | 1029 | <property name="orientation"> |
|
1027 | 1030 | <enum>Qt::Horizontal</enum> |
|
1028 | 1031 | </property> |
|
1029 | 1032 | <property name="sizeType"> |
|
1030 | 1033 | <enum>QSizePolicy::Minimum</enum> |
|
1031 | 1034 | </property> |
|
1032 | 1035 | <property name="sizeHint" stdset="0"> |
|
1033 | 1036 | <size> |
|
1034 | 1037 | <width>40</width> |
|
1035 | 1038 | <height>20</height> |
|
1036 | 1039 | </size> |
|
1037 | 1040 | </property> |
|
1038 | 1041 | </spacer> |
|
1039 | 1042 | </item> |
|
1040 | 1043 | <item> |
|
1041 | 1044 | <widget class="QLabel" name="lblSTATUS_2"> |
|
1042 | 1045 | <property name="sizePolicy"> |
|
1043 | 1046 | <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> |
|
1044 | 1047 | <horstretch>0</horstretch> |
|
1045 | 1048 | <verstretch>0</verstretch> |
|
1046 | 1049 | </sizepolicy> |
|
1047 | 1050 | </property> |
|
1048 | 1051 | <property name="text"> |
|
1049 | 1052 | <string>STATUS</string> |
|
1050 | 1053 | </property> |
|
1051 | 1054 | </widget> |
|
1052 | 1055 | </item> |
|
1053 | 1056 | </layout> |
|
1054 | 1057 | </item> |
|
1055 | 1058 | <item> |
|
1056 | 1059 | <layout class="QVBoxLayout" name="verticalLayout_27"> |
|
1057 | 1060 | <item> |
|
1058 | 1061 | <widget class="QLabel" name="lblDevA_2"> |
|
1059 | 1062 | <property name="text"> |
|
1060 | 1063 | <string>DEV A</string> |
|
1061 | 1064 | </property> |
|
1062 | 1065 | <property name="alignment"> |
|
1063 | 1066 | <set>Qt::AlignCenter</set> |
|
1064 | 1067 | </property> |
|
1065 | 1068 | </widget> |
|
1066 | 1069 | </item> |
|
1067 | 1070 | <item> |
|
1068 | 1071 | <widget class="QLineEdit" name="txtCHstatusA"> |
|
1069 | 1072 | <property name="readOnly"> |
|
1070 | 1073 | <bool>true</bool> |
|
1071 | 1074 | </property> |
|
1072 | 1075 | </widget> |
|
1073 | 1076 | </item> |
|
1074 | 1077 | </layout> |
|
1075 | 1078 | </item> |
|
1076 | 1079 | <item> |
|
1077 | 1080 | <layout class="QVBoxLayout" name="verticalLayout_28"> |
|
1078 | 1081 | <item> |
|
1079 | 1082 | <widget class="QLabel" name="lblDevB_2"> |
|
1080 | 1083 | <property name="text"> |
|
1081 | 1084 | <string>DEV B</string> |
|
1082 | 1085 | </property> |
|
1083 | 1086 | <property name="alignment"> |
|
1084 | 1087 | <set>Qt::AlignCenter</set> |
|
1085 | 1088 | </property> |
|
1086 | 1089 | </widget> |
|
1087 | 1090 | </item> |
|
1088 | 1091 | <item> |
|
1089 | 1092 | <widget class="QLineEdit" name="txtCHstatusB"> |
|
1090 | 1093 | <property name="readOnly"> |
|
1091 | 1094 | <bool>true</bool> |
|
1092 | 1095 | </property> |
|
1093 | 1096 | </widget> |
|
1094 | 1097 | </item> |
|
1095 | 1098 | </layout> |
|
1096 | 1099 | </item> |
|
1097 | 1100 | <item> |
|
1098 | 1101 | <layout class="QVBoxLayout" name="verticalLayout_29"> |
|
1099 | 1102 | <item> |
|
1100 | 1103 | <widget class="QLabel" name="lblDevC_2"> |
|
1101 | 1104 | <property name="text"> |
|
1102 | 1105 | <string>DEV C</string> |
|
1103 | 1106 | </property> |
|
1104 | 1107 | <property name="alignment"> |
|
1105 | 1108 | <set>Qt::AlignCenter</set> |
|
1106 | 1109 | </property> |
|
1107 | 1110 | </widget> |
|
1108 | 1111 | </item> |
|
1109 | 1112 | <item> |
|
1110 | 1113 | <widget class="QLineEdit" name="txtCHstatusC"> |
|
1111 | 1114 | <property name="readOnly"> |
|
1112 | 1115 | <bool>true</bool> |
|
1113 | 1116 | </property> |
|
1114 | 1117 | </widget> |
|
1115 | 1118 | </item> |
|
1116 | 1119 | </layout> |
|
1117 | 1120 | </item> |
|
1118 | 1121 | <item> |
|
1119 | 1122 | <layout class="QVBoxLayout" name="verticalLayout_30"> |
|
1120 | 1123 | <item> |
|
1121 | 1124 | <widget class="QLabel" name="lblDevD_2"> |
|
1122 | 1125 | <property name="text"> |
|
1123 | 1126 | <string>DEV D</string> |
|
1124 | 1127 | </property> |
|
1125 | 1128 | <property name="alignment"> |
|
1126 | 1129 | <set>Qt::AlignCenter</set> |
|
1127 | 1130 | </property> |
|
1128 | 1131 | </widget> |
|
1129 | 1132 | </item> |
|
1130 | 1133 | <item> |
|
1131 | 1134 | <widget class="QLineEdit" name="txtCHstatusD"> |
|
1132 | 1135 | <property name="readOnly"> |
|
1133 | 1136 | <bool>true</bool> |
|
1134 | 1137 | </property> |
|
1135 | 1138 | </widget> |
|
1136 | 1139 | </item> |
|
1137 | 1140 | </layout> |
|
1138 | 1141 | </item> |
|
1139 | 1142 | </layout> |
|
1140 | 1143 | </item> |
|
1141 | 1144 | <item> |
|
1142 | 1145 | <layout class="QHBoxLayout" name="horizontalLayout_20"> |
|
1143 | 1146 | <item> |
|
1144 | 1147 | <spacer name="horizontalSpacer_12"> |
|
1145 | 1148 | <property name="orientation"> |
|
1146 | 1149 | <enum>Qt::Horizontal</enum> |
|
1147 | 1150 | </property> |
|
1148 | 1151 | <property name="sizeType"> |
|
1149 | 1152 | <enum>QSizePolicy::Minimum</enum> |
|
1150 | 1153 | </property> |
|
1151 | 1154 | <property name="sizeHint" stdset="0"> |
|
1152 | 1155 | <size> |
|
1153 | 1156 | <width>50</width> |
|
1154 | 1157 | <height>20</height> |
|
1155 | 1158 | </size> |
|
1156 | 1159 | </property> |
|
1157 | 1160 | </spacer> |
|
1158 | 1161 | </item> |
|
1159 | 1162 | <item> |
|
1160 | 1163 | <widget class="QCheckBox" name="chkCheck"> |
|
1161 | 1164 | <property name="enabled"> |
|
1162 | 1165 | <bool>true</bool> |
|
1163 | 1166 | </property> |
|
1164 | 1167 | <property name="text"> |
|
1165 | 1168 | <string>MANUAL</string> |
|
1166 | 1169 | </property> |
|
1167 | 1170 | </widget> |
|
1168 | 1171 | </item> |
|
1169 | 1172 | <item> |
|
1170 | 1173 | <spacer name="horizontalSpacer_15"> |
|
1171 | 1174 | <property name="orientation"> |
|
1172 | 1175 | <enum>Qt::Horizontal</enum> |
|
1173 | 1176 | </property> |
|
1174 | 1177 | <property name="sizeHint" stdset="0"> |
|
1175 | 1178 | <size> |
|
1176 | 1179 | <width>40</width> |
|
1177 | 1180 | <height>20</height> |
|
1178 | 1181 | </size> |
|
1179 | 1182 | </property> |
|
1180 | 1183 | </spacer> |
|
1181 | 1184 | </item> |
|
1182 | 1185 | <item> |
|
1183 | 1186 | <widget class="QPushButton" name="btnCHstart"> |
|
1184 | 1187 | <property name="enabled"> |
|
1185 | 1188 | <bool>false</bool> |
|
1186 | 1189 | </property> |
|
1187 | 1190 | <property name="text"> |
|
1188 | 1191 | <string>START</string> |
|
1189 | 1192 | </property> |
|
1190 | 1193 | </widget> |
|
1191 | 1194 | </item> |
|
1192 | 1195 | </layout> |
|
1193 | 1196 | </item> |
|
1194 | 1197 | </layout> |
|
1195 | 1198 | </widget> |
|
1196 | 1199 | </widget> |
|
1197 | 1200 | </item> |
|
1198 | 1201 | <item> |
|
1199 | 1202 | <widget class="QTextEdit" name="txtInfo"> |
|
1200 | 1203 | <property name="readOnly"> |
|
1201 | 1204 | <bool>true</bool> |
|
1202 | 1205 | </property> |
|
1203 | 1206 | </widget> |
|
1204 | 1207 | </item> |
|
1205 | 1208 | <item> |
|
1206 | 1209 | <widget class="QLineEdit" name="txtProgress"> |
|
1207 | 1210 | <property name="sizePolicy"> |
|
1208 | 1211 | <sizepolicy hsizetype="Preferred" vsizetype="Fixed"> |
|
1209 | 1212 | <horstretch>0</horstretch> |
|
1210 | 1213 | <verstretch>0</verstretch> |
|
1211 | 1214 | </sizepolicy> |
|
1212 | 1215 | </property> |
|
1213 | 1216 | </widget> |
|
1214 | 1217 | </item> |
|
1215 | 1218 | <item> |
|
1216 | 1219 | <layout class="QHBoxLayout" name="horizontalLayout_2"> |
|
1217 | 1220 | <property name="sizeConstraint"> |
|
1218 | 1221 | <enum>QLayout::SetDefaultConstraint</enum> |
|
1219 | 1222 | </property> |
|
1220 | 1223 | <item> |
|
1221 | 1224 | <widget class="QPushButton" name="btnGbkp"> |
|
1222 | 1225 | <property name="enabled"> |
|
1223 | 1226 | <bool>false</bool> |
|
1224 | 1227 | </property> |
|
1225 | 1228 | <property name="text"> |
|
1226 | 1229 | <string>Generate Bkp</string> |
|
1227 | 1230 | </property> |
|
1228 | 1231 | </widget> |
|
1229 | 1232 | </item> |
|
1230 | 1233 | <item> |
|
1231 | 1234 | <widget class="QPushButton" name="btnRestart"> |
|
1232 | 1235 | <property name="enabled"> |
|
1233 | 1236 | <bool>false</bool> |
|
1234 | 1237 | </property> |
|
1235 | 1238 | <property name="text"> |
|
1236 | 1239 | <string>Restart</string> |
|
1237 | 1240 | </property> |
|
1238 | 1241 | </widget> |
|
1239 | 1242 | </item> |
|
1240 | 1243 | <item> |
|
1241 | 1244 | <widget class="QPushButton" name="btnStartburn"> |
|
1242 | 1245 | <property name="enabled"> |
|
1243 | 1246 | <bool>false</bool> |
|
1244 | 1247 | </property> |
|
1245 | 1248 | <property name="text"> |
|
1246 | 1249 | <string>Start Burn</string> |
|
1247 | 1250 | </property> |
|
1248 | 1251 | </widget> |
|
1249 | 1252 | </item> |
|
1250 | 1253 | <item> |
|
1251 | 1254 | <widget class="QPushButton" name="btnStopburn"> |
|
1252 | 1255 | <property name="enabled"> |
|
1253 | 1256 | <bool>false</bool> |
|
1254 | 1257 | </property> |
|
1255 | 1258 | <property name="text"> |
|
1256 | 1259 | <string>Stop Burn</string> |
|
1257 | 1260 | </property> |
|
1258 | 1261 | </widget> |
|
1259 | 1262 | </item> |
|
1260 | 1263 | </layout> |
|
1261 | 1264 | </item> |
|
1262 | 1265 | </layout> |
|
1263 | 1266 | </widget> |
|
1264 | 1267 | <widget class="QMenuBar" name="menubar"> |
|
1265 | 1268 | <property name="geometry"> |
|
1266 | 1269 | <rect> |
|
1267 | 1270 | <x>0</x> |
|
1268 | 1271 | <y>0</y> |
|
1269 | 1272 | <width>824</width> |
|
1270 | 1273 | <height>25</height> |
|
1271 | 1274 | </rect> |
|
1272 | 1275 | </property> |
|
1273 | 1276 | <widget class="QMenu" name="menuFile"> |
|
1274 | 1277 | <property name="title"> |
|
1275 | 1278 | <string>File</string> |
|
1276 | 1279 | </property> |
|
1277 | 1280 | <addaction name="actionQuit"/> |
|
1278 | 1281 | </widget> |
|
1279 | 1282 | <widget class="QMenu" name="menuHelp"> |
|
1280 | 1283 | <property name="title"> |
|
1281 | 1284 | <string>Help</string> |
|
1282 | 1285 | </property> |
|
1283 | 1286 | <addaction name="actionAbout"/> |
|
1284 | 1287 | </widget> |
|
1285 | 1288 | <widget class="QMenu" name="menuParameters"> |
|
1286 | 1289 | <property name="title"> |
|
1287 | 1290 | <string>Parameters</string> |
|
1288 | 1291 | </property> |
|
1289 | 1292 | <addaction name="actionChange_Parameters"/> |
|
1290 | 1293 | </widget> |
|
1291 | 1294 | <addaction name="menuFile"/> |
|
1292 | 1295 | <addaction name="menuParameters"/> |
|
1293 | 1296 | <addaction name="menuHelp"/> |
|
1294 | 1297 | </widget> |
|
1295 | 1298 | <widget class="QStatusBar" name="statusbar"/> |
|
1296 | 1299 | <action name="actionChange_Parameters"> |
|
1297 | 1300 | <property name="enabled"> |
|
1298 | 1301 | <bool>false</bool> |
|
1299 | 1302 | </property> |
|
1300 | 1303 | <property name="text"> |
|
1301 | 1304 | <string>Change Parameters</string> |
|
1302 | 1305 | </property> |
|
1303 | 1306 | </action> |
|
1304 | 1307 | <action name="actionQuit"> |
|
1305 | 1308 | <property name="text"> |
|
1306 | 1309 | <string>Quit</string> |
|
1307 | 1310 | </property> |
|
1308 | 1311 | </action> |
|
1309 | 1312 | <action name="actionAbout"> |
|
1310 | 1313 | <property name="text"> |
|
1311 | 1314 | <string>About</string> |
|
1312 | 1315 | </property> |
|
1313 | 1316 | </action> |
|
1314 | 1317 | </widget> |
|
1315 | 1318 | <tabstops> |
|
1316 | 1319 | <tabstop>txtDpath</tabstop> |
|
1317 | 1320 | <tabstop>btnDpath</tabstop> |
|
1318 | 1321 | <tabstop>txtRpath</tabstop> |
|
1319 | 1322 | <tabstop>btnRpath</tabstop> |
|
1320 | 1323 | <tabstop>lstDtype</tabstop> |
|
1321 | 1324 | <tabstop>txtDtype</tabstop> |
|
1322 | 1325 | <tabstop>txtElabel</tabstop> |
|
1323 | 1326 | <tabstop>lstStartDay</tabstop> |
|
1324 | 1327 | <tabstop>lstStopDay</tabstop> |
|
1325 | 1328 | <tabstop>lstDcapacity</tabstop> |
|
1326 | 1329 | <tabstop>tabWidget</tabstop> |
|
1327 | 1330 | <tabstop>btnGbkp</tabstop> |
|
1328 | 1331 | <tabstop>btnRestart</tabstop> |
|
1329 | 1332 | <tabstop>btnStartburn</tabstop> |
|
1330 | 1333 | <tabstop>btnStopburn</tabstop> |
|
1331 | 1334 | </tabstops> |
|
1332 | 1335 | <resources/> |
|
1333 | 1336 | <connections> |
|
1334 | 1337 | <connection> |
|
1335 | 1338 | <sender>actionQuit</sender> |
|
1336 | 1339 | <signal>triggered()</signal> |
|
1337 | 1340 | <receiver>MainWindow</receiver> |
|
1338 | 1341 | <slot>close()</slot> |
|
1339 | 1342 | <hints> |
|
1340 | 1343 | <hint type="sourcelabel"> |
|
1341 | 1344 | <x>-1</x> |
|
1342 | 1345 | <y>-1</y> |
|
1343 | 1346 | </hint> |
|
1344 | 1347 | <hint type="destinationlabel"> |
|
1345 | 1348 | <x>306</x> |
|
1346 | 1349 | <y>358</y> |
|
1347 | 1350 | </hint> |
|
1348 | 1351 | </hints> |
|
1349 | 1352 | </connection> |
|
1350 | 1353 | <connection> |
|
1351 | 1354 | <sender>chkCheck</sender> |
|
1352 | 1355 | <signal>toggled(bool)</signal> |
|
1353 | 1356 | <receiver>txtTDpath</receiver> |
|
1354 | 1357 | <slot>setEnabled(bool)</slot> |
|
1355 | 1358 | <hints> |
|
1356 | 1359 | <hint type="sourcelabel"> |
|
1357 | 1360 | <x>160</x> |
|
1358 | 1361 | <y>378</y> |
|
1359 | 1362 | </hint> |
|
1360 | 1363 | <hint type="destinationlabel"> |
|
1361 | 1364 | <x>231</x> |
|
1362 | 1365 | <y>306</y> |
|
1363 | 1366 | </hint> |
|
1364 | 1367 | </hints> |
|
1365 | 1368 | </connection> |
|
1366 | 1369 | <connection> |
|
1367 | 1370 | <sender>chkCheck</sender> |
|
1368 | 1371 | <signal>toggled(bool)</signal> |
|
1369 | 1372 | <receiver>btnTDpath</receiver> |
|
1370 | 1373 | <slot>setEnabled(bool)</slot> |
|
1371 | 1374 | <hints> |
|
1372 | 1375 | <hint type="sourcelabel"> |
|
1373 | 1376 | <x>160</x> |
|
1374 | 1377 | <y>387</y> |
|
1375 | 1378 | </hint> |
|
1376 | 1379 | <hint type="destinationlabel"> |
|
1377 | 1380 | <x>802</x> |
|
1378 | 1381 | <y>305</y> |
|
1379 | 1382 | </hint> |
|
1380 | 1383 | </hints> |
|
1381 | 1384 | </connection> |
|
1382 | 1385 | <connection> |
|
1383 | 1386 | <sender>chkCheck</sender> |
|
1384 | 1387 | <signal>toggled(bool)</signal> |
|
1385 | 1388 | <receiver>btnCHstart</receiver> |
|
1386 | 1389 | <slot>setEnabled(bool)</slot> |
|
1387 | 1390 | <hints> |
|
1388 | 1391 | <hint type="sourcelabel"> |
|
1389 | 1392 | <x>160</x> |
|
1390 | 1393 | <y>383</y> |
|
1391 | 1394 | </hint> |
|
1392 | 1395 | <hint type="destinationlabel"> |
|
1393 | 1396 | <x>802</x> |
|
1394 | 1397 | <y>389</y> |
|
1395 | 1398 | </hint> |
|
1396 | 1399 | </hints> |
|
1397 | 1400 | </connection> |
|
1398 | 1401 | <connection> |
|
1399 | 1402 | <sender>chkDevD</sender> |
|
1400 | 1403 | <signal>toggled(bool)</signal> |
|
1401 | 1404 | <receiver>grpDevD</receiver> |
|
1402 | 1405 | <slot>setEnabled(bool)</slot> |
|
1403 | 1406 | <hints> |
|
1404 | 1407 | <hint type="sourcelabel"> |
|
1405 | 1408 | <x>701</x> |
|
1406 | 1409 | <y>98</y> |
|
1407 | 1410 | </hint> |
|
1408 | 1411 | <hint type="destinationlabel"> |
|
1409 | 1412 | <x>701</x> |
|
1410 | 1413 | <y>251</y> |
|
1411 | 1414 | </hint> |
|
1412 | 1415 | </hints> |
|
1413 | 1416 | </connection> |
|
1414 | 1417 | <connection> |
|
1415 | 1418 | <sender>chkDevB</sender> |
|
1416 | 1419 | <signal>toggled(bool)</signal> |
|
1417 | 1420 | <receiver>grpDevB</receiver> |
|
1418 | 1421 | <slot>setEnabled(bool)</slot> |
|
1419 | 1422 | <hints> |
|
1420 | 1423 | <hint type="sourcelabel"> |
|
1421 | 1424 | <x>263</x> |
|
1422 | 1425 | <y>79</y> |
|
1423 | 1426 | </hint> |
|
1424 | 1427 | <hint type="destinationlabel"> |
|
1425 | 1428 | <x>251</x> |
|
1426 | 1429 | <y>167</y> |
|
1427 | 1430 | </hint> |
|
1428 | 1431 | </hints> |
|
1429 | 1432 | </connection> |
|
1430 | 1433 | <connection> |
|
1431 | 1434 | <sender>chkDevC</sender> |
|
1432 | 1435 | <signal>toggled(bool)</signal> |
|
1433 | 1436 | <receiver>grpDevC</receiver> |
|
1434 | 1437 | <slot>setEnabled(bool)</slot> |
|
1435 | 1438 | <hints> |
|
1436 | 1439 | <hint type="sourcelabel"> |
|
1437 | 1440 | <x>391</x> |
|
1438 | 1441 | <y>79</y> |
|
1439 | 1442 | </hint> |
|
1440 | 1443 | <hint type="destinationlabel"> |
|
1441 | 1444 | <x>391</x> |
|
1442 | 1445 | <y>202</y> |
|
1443 | 1446 | </hint> |
|
1444 | 1447 | </hints> |
|
1445 | 1448 | </connection> |
|
1446 | 1449 | <connection> |
|
1447 | 1450 | <sender>chkDevA</sender> |
|
1448 | 1451 | <signal>toggled(bool)</signal> |
|
1449 | 1452 | <receiver>grpDevA</receiver> |
|
1450 | 1453 | <slot>setEnabled(bool)</slot> |
|
1451 | 1454 | <hints> |
|
1452 | 1455 | <hint type="sourcelabel"> |
|
1453 | 1456 | <x>105</x> |
|
1454 | 1457 | <y>79</y> |
|
1455 | 1458 | </hint> |
|
1456 | 1459 | <hint type="destinationlabel"> |
|
1457 | 1460 | <x>95</x> |
|
1458 | 1461 | <y>167</y> |
|
1459 | 1462 | </hint> |
|
1460 | 1463 | </hints> |
|
1461 | 1464 | </connection> |
|
1462 | 1465 | </connections> |
|
1463 | 1466 | </ui> |
General Comments 0
You need to be logged in to leave comments.
Login now