@@ -1,356 +1,361 | |||
|
1 | 1 | # -*- coding: utf-8 -*- No newline at end of file |
|
2 | 2 | No newline at end of file |
|
3 | 3 | #class BKmanager: No newline at end of file |
|
4 | 4 | # def __init__(self): No newline at end of file |
|
5 | 5 | No newline at end of file |
|
6 | 6 | from subprocess import * No newline at end of file |
|
7 | 7 | import sys No newline at end of file |
|
8 | 8 | import os No newline at end of file |
|
9 | 9 | import subprocess No newline at end of file |
|
10 | 10 | import commands No newline at end of file |
|
11 | 11 | import shutil No newline at end of file |
|
12 | 12 | import functions2 No newline at end of file |
|
13 | 13 | No newline at end of file |
|
14 | 14 | #--------------------------------------------- Entero a cadena agregando ceros delante ------------------------------------------------- No newline at end of file |
|
15 | 15 | No newline at end of file |
|
16 | 16 | def i2s(var_n, var_length=4): No newline at end of file |
|
17 | 17 | var_n2=str(var_n) No newline at end of file |
|
18 | 18 | while len(var_n2) < var_length: No newline at end of file |
|
19 | 19 | var_n2 = "0"+var_n2 No newline at end of file |
|
20 | 20 | return var_n2 No newline at end of file |
|
21 | 21 | No newline at end of file |
|
22 | 22 | No newline at end of file |
|
23 | 23 | #----------------------------------------- Se verifica que la ruta exista y sea un directorio ------------------------------------------------- No newline at end of file |
|
24 | 24 | No newline at end of file |
|
25 | 25 | def dir_exists(var_dir, self): No newline at end of file |
|
26 | 26 | if os.path.isdir(var_dir): No newline at end of file |
|
27 | 27 | return True No newline at end of file |
|
28 | 28 | else: No newline at end of file |
|
29 | 29 | self.txtInfo.append("Incorrect path:" + str(var_dir)) No newline at end of file |
|
30 | 30 | return False No newline at end of file |
|
31 | 31 | No newline at end of file |
|
32 | 32 | No newline at end of file |
|
33 | 33 | #-------------------------------- Se buscan los archivos del tipo especificado y se cargan las fechas ----------------------------- No newline at end of file |
|
34 | 34 | No newline at end of file |
|
35 | 35 | def load_days(self): No newline at end of file |
|
36 | 36 | No newline at end of file |
|
37 | 37 | self.var_list=[] No newline at end of file |
|
38 | 38 | self.lstStartDay.clear() No newline at end of file |
|
39 | 39 | self.lstStopDay.clear() No newline at end of file |
|
40 | 40 | No newline at end of file |
|
41 | 41 | if self.statusDpath == False: No newline at end of file |
|
42 | 42 | self.btnGbkp.setEnabled(False) No newline at end of file |
|
43 | 43 | return No newline at end of file |
|
44 | 44 | No newline at end of file |
|
45 | 45 | if self.var_Dtype == '': No newline at end of file |
|
46 | 46 | return No newline at end of file |
|
47 | 47 | No newline at end of file |
|
48 | 48 | var_cmd="find " + str(self.var_Dpath) + " -name *."+ str(self.var_Dtype) +" | awk -F/ '{print substr($NF,2,7)}' | sort| uniq" No newline at end of file |
|
49 | 49 | output=commands.getstatusoutput(var_cmd)[1] No newline at end of file |
|
50 | 50 | No newline at end of file |
|
51 | 51 | #Si no se encuentra ningun archivo No newline at end of file |
|
52 | 52 | if len(output) == 0: No newline at end of file |
|
53 | 53 | self.txtInfo.append("File not found") No newline at end of file |
|
54 | 54 | self.btnGbkp.setEnabled(False) No newline at end of file |
|
55 | 55 | return No newline at end of file |
|
56 | 56 | No newline at end of file |
|
57 | 57 | #Se cargan las listas para seleccionar StartDay y StopDay (QComboBox) No newline at end of file |
|
58 | 58 | for i in range(0, (len(output)+1)/8): No newline at end of file |
|
59 | 59 | self.var_list.append(output[8*i:8*(i+1)-1]) No newline at end of file |
|
60 | 60 | No newline at end of file |
|
61 | 61 | for i in self.var_list: No newline at end of file |
|
62 | 62 | self.lstStartDay.addItem(i) No newline at end of file |
|
63 | 63 | self.lstStopDay.addItem(i) No newline at end of file |
|
64 | 64 | self.lstStopDay.setCurrentIndex(self.lstStartDay.count()-1) No newline at end of file |
|
65 | 65 | No newline at end of file |
|
66 | 66 | get_sub_list(self) No newline at end of file |
|
67 | 67 | self.btnGbkp.setEnabled(True) No newline at end of file |
|
68 | 68 | No newline at end of file |
|
69 | 69 | No newline at end of file |
|
70 | 70 | #-------------------------------------------------- Obtiene el rango de las fechas seleccionadas ----------------------------------------- No newline at end of file |
|
71 | 71 | No newline at end of file |
|
72 | 72 | def get_sub_list(self): No newline at end of file |
|
73 | 73 | self.var_sublist=[] No newline at end of file |
|
74 | 74 | for i in self.var_list[self.lstStartDay.currentIndex():self.lstStartDay.currentIndex() + self.lstStopDay.currentIndex()+1]: No newline at end of file |
|
75 | 75 | self.var_sublist.append(i) No newline at end of file |
|
76 | 76 | No newline at end of file |
|
77 | 77 | No newline at end of file |
|
78 | 78 | #----------------------------------------------------- Verifica los parametros faltantes ----------------------------------------------------------- No newline at end of file |
|
79 | 79 | No newline at end of file |
|
80 | 80 | def validate_parameters(self): No newline at end of file |
|
81 | 81 | #Verifica que las ruta del proyecto sea valida No newline at end of file |
|
82 | 82 | if self.statusRpath == False: No newline at end of file |
|
83 | 83 | self.txtInfo.append("Incorrect proyect path") No newline at end of file |
|
84 | 84 | return False No newline at end of file |
|
85 | 85 | No newline at end of file |
|
86 | 86 | #Verifica la etiqueta No newline at end of file |
|
87 | 87 | if len(self.var_Elabel) == 0: No newline at end of file |
|
88 | 88 | self.txtInfo.append("Enter label") No newline at end of file |
|
89 | 89 | return False No newline at end of file |
|
90 | 90 | No newline at end of file |
|
91 | 91 | return True No newline at end of file |
|
92 | 92 | No newline at end of file |
|
93 | 93 | No newline at end of file |
|
94 | 94 | #------------------------------------------------- Crea directorios en la ruta indicada ----------------------------------------------------------- No newline at end of file |
|
95 | 95 | No newline at end of file |
|
96 | 96 | def make_dirs(list_dirs, self): No newline at end of file |
|
97 | 97 | No newline at end of file |
|
98 | 98 | for var_dir in list_dirs: No newline at end of file |
|
99 | 99 | shutil.rmtree(self.var_Rpath+'/'+var_dir, True) No newline at end of file |
|
100 | 100 | var_output=commands.getstatusoutput("mkdir -p "+self.var_Rpath+'/'+var_dir) No newline at end of file |
|
101 | 101 | if var_output[0] != 0: No newline at end of file |
|
102 | 102 | self.txtInfo.append("Error creating directory: "+var_dir+", output_error:" + str(var_output[0])) No newline at end of file |
|
103 | 103 | return False No newline at end of file |
|
104 | 104 | self.txtInfo.append('Directories created correctly') No newline at end of file |
|
105 | 105 | return True No newline at end of file |
|
106 | 106 | No newline at end of file |
|
107 | 107 | def remove_dir(var_dir, self): No newline at end of file |
|
108 | 108 | var_output = commands.getstatusoutput('chmod -R 777 '+var_dir) No newline at end of file |
|
109 | 109 | if var_output[0] != 0: No newline at end of file |
|
110 | 110 | self.txtInfo.append("Error changing permissions: "+var_dir+", output_error:" + str(var_output[0])) No newline at end of file |
|
111 | 111 | return False No newline at end of file |
|
112 | 112 | No newline at end of file |
|
113 | 113 | var_output = commands.getstatusoutput('rm -rf '+var_dir) No newline at end of file |
|
114 | 114 | if var_output[0] != 0: No newline at end of file |
|
115 | 115 | self.txtInfo.append("Error deleting directory: "+var_dir+", output_error:" + str(var_output[0])) No newline at end of file |
|
116 | 116 | return False No newline at end of file |
|
117 | 117 | return True No newline at end of file |
|
118 | 118 | No newline at end of file |
|
119 | 119 | def make_dir(var_dir, self): No newline at end of file |
|
120 | 120 | var_output = commands.getstatusoutput('mkdir '+var_dir) No newline at end of file |
|
121 | 121 | if var_output[0] != 0: No newline at end of file |
|
122 | 122 | self.txtInfo.append("Error deleting directory: "+var_dir+", output_error:" + str(var_output[0])) No newline at end of file |
|
123 | 123 | return False No newline at end of file |
|
124 | 124 | return True No newline at end of file |
|
125 | 125 | No newline at end of file |
|
126 | 126 | #-------------------------------------------- Busca los archivos con los parametros de busqueda --------------------------------------- No newline at end of file |
|
127 | 127 | No newline at end of file |
|
128 | 128 | def list_files(self): No newline at end of file |
|
129 | 129 | var_files_list=[] No newline at end of file |
|
130 | 130 | for var_doy in self.var_sublist: No newline at end of file |
|
131 | 131 | var_cmd="find " + str(self.var_Dpath) + " -name ?"+var_doy+"???."+ str(self.var_Dtype) + " |sort" No newline at end of file |
|
132 | 132 | var_output=commands.getstatusoutput(var_cmd)[1] No newline at end of file |
|
133 | 133 | for var_file in var_output.split(): No newline at end of file |
|
134 | 134 | var_files_list.append(var_file) #Almacena cada archivo en la lista No newline at end of file |
|
135 | 135 | return var_files_list No newline at end of file |
|
136 | 136 | No newline at end of file |
|
137 | 137 | No newline at end of file |
|
138 | 138 | #--------------- Genera la lista de archivos .dat que contienen los archivos a grabar en cada DVD ----------------------- No newline at end of file |
|
139 | 139 | No newline at end of file |
|
140 | 140 | def make_files_dat(var_files_list, self): No newline at end of file |
|
141 | 141 | var_Rpath_ppath=self.var_Rpath+"/ppath" #Ruta de los archivos a grabar No newline at end of file |
|
142 | 142 | var_n=1 #Numero del DVD actual No newline at end of file |
|
143 | 143 | var_tmp=0 #Se usa para acumular el tamaño de los archivos de la lista No newline at end of file |
|
144 | 144 | var_files_list_2=[] #Se usa para almacenar la lista de archivos agrbar en cada DVD No newline at end of file |
|
145 | 145 | No newline at end of file |
|
146 | 146 | for i in var_files_list: #Se asignan en i los archivos de la lista No newline at end of file |
|
147 | 147 | No newline at end of file |
|
148 | 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 No newline at end of file |
|
149 | 149 | var_tmp += var_size_i #Se acumulan el tamaño de los archivos de la lista No newline at end of file |
|
150 | 150 | No newline at end of file |
|
151 | 151 | #Si el tamaño acumulado es mayor que el de el DVD No newline at end of file |
|
152 | 152 | if var_tmp > (self.var_Dcapacity * 1024): No newline at end of file |
|
153 | 153 | var_tmp -= var_size_i #se quita el tamaño sumado para mostrar el tamaño real No newline at end of file |
|
154 | 154 | #se crea un archivo con numeral en el sufijo y extension .dat No newline at end of file |
|
155 | 155 | var_file = open(var_Rpath_ppath+"/"+self.var_Elabel+"_"+i2s(var_n)+".dat","w") No newline at end of file |
|
156 | 156 | #Se añade la lista de archivos a grabar en el DVD al archivo .dat No newline at end of file |
|
157 | 157 | for line in var_files_list_2: No newline at end of file |
|
158 | 158 | var_tmp_path=line.split(self.var_Dpath)[1][:-13] No newline at end of file |
|
159 | 159 | var_file.write(var_tmp_path+'='+line+'\n') No newline at end of file |
|
160 | 160 | var_file.close() No newline at end of file |
|
161 | 161 | No newline at end of file |
|
162 | 162 | var_tmp = var_size_i #Se asigna a la variable el tamaño del archivo actual No newline at end of file |
|
163 | 163 | var_files_list_2=[] #Se reinicia la lista No newline at end of file |
|
164 | 164 | var_n += 1 No newline at end of file |
|
165 | 165 | var_files_list_2.append(i) No newline at end of file |
|
166 | 166 | No newline at end of file |
|
167 | 167 | #se crea un archivo con numeral en el sufijo y extension .dat No newline at end of file |
|
168 | 168 | var_file = open(var_Rpath_ppath+"/"+self.var_Elabel+"_"+i2s(var_n)+".dat","w") No newline at end of file |
|
169 | 169 | #Se añade la lista de archivos a grabar en el DVD al archivo .dat No newline at end of file |
|
170 | 170 | for line in var_files_list_2: No newline at end of file |
|
171 | 171 | var_tmp_path=line.split(self.var_Dpath)[1][:-13] No newline at end of file |
|
172 | 172 | var_file.write(var_tmp_path+'='+line+'\n') No newline at end of file |
|
173 | 173 | var_file.close() No newline at end of file |
|
174 | 174 | No newline at end of file |
|
175 | 175 | self.txtInfo.append("configuration files created") No newline at end of file |
|
176 | 176 | return var_n No newline at end of file |
|
177 | 177 | No newline at end of file |
|
178 | 178 | No newline at end of file |
|
179 | 179 | #------------------------------ Genera los archivos .print con los cuales se creara los postscript ----------------------------------- No newline at end of file |
|
180 | 180 | No newline at end of file |
|
181 | 181 | def make_files_print(self): No newline at end of file |
|
182 | 182 | No newline at end of file |
|
183 | 183 | var_Rpath_ppath=self.var_Rpath+"/ppath" #Ruta de los archivos a grabar No newline at end of file |
|
184 | 184 | var_Rpath_gpath=self.var_Rpath+"/gpath" #Ruta de los archivos postscript No newline at end of file |
|
185 | 185 | var_labels=[] No newline at end of file |
|
186 | 186 | for m in range (0, self.txtPSgraphic.value() - 1): No newline at end of file |
|
187 | 187 | var_lines = "\n" * 9 No newline at end of file |
|
188 | 188 | var_labels.append(var_lines) No newline at end of file |
|
189 | 189 | No newline at end of file |
|
190 | 190 | # Se leen todos los archivos .dat creados para crear las etiquetas en los archivos .print No newline at end of file |
|
191 | 191 | for var_n in range(1, self.var_Discs + 1): No newline at end of file |
|
192 | 192 | No newline at end of file |
|
193 | 193 | #se abren los archivos .dat en modo lectura No newline at end of file |
|
194 | 194 | var_file = open(var_Rpath_ppath+"/"+self.var_Elabel+"_"+i2s(var_n)+".dat","r") No newline at end of file |
|
195 | 195 | lines=var_file.readlines() # Se lee las lineas en el archivo y se almacenan en la lista No newline at end of file |
|
196 | 196 | var_file.close() No newline at end of file |
|
197 | 197 | list_files=[] No newline at end of file |
|
198 | 198 | var_lines=[] No newline at end of file |
|
199 | 199 | No newline at end of file |
|
200 | 200 | for j in range(0, len(lines)): No newline at end of file |
|
201 | 201 | No newline at end of file |
|
202 | 202 | if j == 0: No newline at end of file |
|
203 | 203 | var_first_folder = lines[j].split('=')[0] No newline at end of file |
|
204 | 204 | var_first_file = (lines[j].split('=')[1])[:-1] No newline at end of file |
|
205 | 205 | continue No newline at end of file |
|
206 | 206 | No newline at end of file |
|
207 | 207 | var_tmp_folder = lines[j].split('=')[0] No newline at end of file |
|
208 | 208 | var_tmp_file = (lines[j].split('=')[1])[:-1] No newline at end of file |
|
209 | 209 | No newline at end of file |
|
210 | 210 | # Si el subfolder superior o el DOY del archivo actual y el anterior son diferentes No newline at end of file |
|
211 | 211 | if (var_tmp_folder != var_first_folder) or (var_tmp_file[0:-5] != var_first_file[0:-5]): No newline at end of file |
|
212 | 212 | var_last_file = (lines[j-1].split('=')[1])[:-1] No newline at end of file |
|
213 | 213 | list_files.append([var_first_folder, var_first_file, var_last_file]) No newline at end of file |
|
214 | 214 | No newline at end of file |
|
215 | 215 | var_first_folder = lines[j].split('=')[0] No newline at end of file |
|
216 | 216 | var_first_file = (lines[j].split('=')[1])[:-1] No newline at end of file |
|
217 | 217 | No newline at end of file |
|
218 | 218 | var_last_file = (lines[-1].split('=')[1])[:-1] No newline at end of file |
|
219 | 219 | list_files.append([var_first_folder, var_first_file, var_last_file]) No newline at end of file |
|
220 | 220 | No newline at end of file |
|
221 | 221 | var_lines2 = lines_print(list_files, self.var_Elabel) No newline at end of file |
|
222 | 222 | No newline at end of file |
|
223 | 223 | for k in range(0, len(var_lines2) / 5): No newline at end of file |
|
224 | 224 | var_lines=["\n"] No newline at end of file |
|
225 | 225 | var_lines.append(" "+self.var_Elabel+" "+i2s(var_n)+"/"+i2s(self.var_Discs)+"\n") No newline at end of file |
|
226 | 226 | var_lines.append("Year Doy Folder"+" "*9+"Set"+" "*11+"Time range\n") No newline at end of file |
|
227 | 227 | var_lines.extend(var_lines2[(5*k):(5*(k+1))]) No newline at end of file |
|
228 | 228 | var_lines.append("\n") No newline at end of file |
|
229 | 229 | var_labels.append(var_lines) No newline at end of file |
|
230 | 230 | No newline at end of file |
|
231 | 231 | for i in range(0, (len(var_labels) // 33) +1 ): No newline at end of file |
|
232 | 232 | var_file=var_Rpath_gpath+"/"+self.var_Elabel+"_"+i2s(i+1) No newline at end of file |
|
233 | 233 | file_ps = open(var_file+".print","w") No newline at end of file |
|
234 | 234 | if i == (len(var_labels) // 33): No newline at end of file |
|
235 | 235 | var_sub_labels = var_labels[33*i:] No newline at end of file |
|
236 | 236 | else: No newline at end of file |
|
237 | 237 | var_sub_labels = var_labels[33*i:33*(i+1)] No newline at end of file |
|
238 | 238 | No newline at end of file |
|
239 | 239 | for label in var_sub_labels: No newline at end of file |
|
240 | 240 | for line in label: No newline at end of file |
|
241 | 241 | file_ps.write(line) No newline at end of file |
|
242 | 242 | file_ps.close() No newline at end of file |
|
243 | 243 | var_cmd="enscript "+var_file+".print -p "+var_file+".ps -f Times-Roman7 " \ No newline at end of file |
|
244 | 244 | +" -3R -j -B --margins=21.25:20.4:25.51:20 --media=A4" No newline at end of file |
|
245 | 245 | var_output=commands.getstatusoutput(var_cmd)[0] No newline at end of file |
|
246 | 246 | No newline at end of file |
|
247 | 247 | No newline at end of file |
|
248 | 248 | def lines_print(list_files, var_Elabel): No newline at end of file |
|
249 | 249 | """ No newline at end of file |
|
250 | 250 | Devuelve las lineas del rango de archivos de cada etiqueta segun el formato No newline at end of file |
|
251 | 251 | """ No newline at end of file |
|
252 | 252 | var_lines=[] No newline at end of file |
|
253 | 253 | for i in list_files: No newline at end of file |
|
254 | 254 | No newline at end of file |
|
255 | 255 | # Si el archivo se grabara directamente en la / del DVD y no en un /directorio/ No newline at end of file |
|
256 | 256 | # se usa la etiqueta para indicar la parte de la etiqueta donde va el subdirectorio No newline at end of file |
|
257 | 257 | if i[0] == '/': No newline at end of file |
|
258 | 258 | var_folder = var_Elabel No newline at end of file |
|
259 | 259 | else: No newline at end of file |
|
260 | 260 | var_folder = i[0].split('/')[-2] No newline at end of file |
|
261 | 261 | No newline at end of file |
|
262 | 262 | var_first_file = i[1] No newline at end of file |
|
263 | 263 | var_last_file = i[2] No newline at end of file |
|
264 | 264 | No newline at end of file |
|
265 | 265 | var_date_first_file=commands.getstatusoutput("date -r "+var_first_file+" +'%T'")[1] No newline at end of file |
|
266 | 266 | var_date_last_file=commands.getstatusoutput("date -r "+var_last_file+" +'%T'")[1] No newline at end of file |
|
267 | 267 | No newline at end of file |
|
268 | 268 | var_lines.append(var_first_file[-12:-8]+" "+var_first_file[-8:-5]+" "+var_folder +" "+var_first_file[-5:-2]+"-" No newline at end of file |
|
269 | 269 | +var_last_file[-5:-2]+" "+var_date_first_file+"-"+var_date_last_file+"\n") No newline at end of file |
|
270 | 270 | #Nos aseguramos que sea un mutiplo de 5 No newline at end of file |
|
271 | 271 | while (len(var_lines) % 5) != 0: No newline at end of file |
|
272 | 272 | var_lines.append("\n") No newline at end of file |
|
273 | 273 | No newline at end of file |
|
274 | 274 | return var_lines No newline at end of file |
|
275 | 275 | No newline at end of file |
|
276 | 276 | #---------------------------------------comandos para el proceso de grabacion ------------------------------------------ No newline at end of file |
|
277 | 277 | def cmd_iso(self): No newline at end of file |
|
278 | 278 | var_Rpath_ppath=self.var_Rpath+"/ppath" No newline at end of file |
|
279 | 279 | var_Rpath_iso=self.var_Rpath+"/iso" No newline at end of file |
|
280 | 280 | #comando para la creacion del archivo.iso No newline at end of file |
|
281 | 281 | file_dat=var_Rpath_ppath+"/"+self.var_Elabel+"_"+i2s(self.var_disc_n)+".dat" No newline at end of file |
|
282 | 282 | file_iso=var_Rpath_iso+"/"+i2s(self.var_disc_n)+".iso" No newline at end of file |
|
283 | 283 | var_cmd = 'genisoimage -hide-joliet-trans-tbl -joliet-long -r ' No newline at end of file |
|
284 | 284 | var_cmd += ' -A '+self.var_Elabel+' -V '+self.var_Elabel No newline at end of file |
|
285 | 285 | var_cmd += ' -graft-points -path-list '+ file_dat+' -o '+file_iso No newline at end of file |
|
286 | 286 | return var_cmd No newline at end of file |
|
287 | 287 | No newline at end of file |
|
288 | 288 | def cmd_burn(self): No newline at end of file |
|
289 | 289 | var_Rpath_iso=self.var_Rpath+"/iso" No newline at end of file |
|
290 | 290 | file_iso=var_Rpath_iso+"/"+i2s(self.var_disc_n)+".iso" No newline at end of file |
|
291 | 291 | No newline at end of file |
|
292 | 292 | var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices) No newline at end of file |
|
293 | 293 | var_dev_tmp = self.var_devices[var_index] No newline at end of file |
|
294 | 294 | No newline at end of file |
|
295 | 295 | # var_cmd = "wodim -v dev="+var_dev_tmp+" speed=16 "+ file_iso No newline at end of file |
|
296 | 296 | var_cmd = "growisofs -dvd-compat -Z "+var_dev_tmp+"="+ file_iso No newline at end of file |
|
297 | 297 | return var_cmd No newline at end of file |
|
298 | 298 | No newline at end of file |
|
299 | 299 | No newline at end of file |
|
300 | 300 | def cmd_check(dev_sr, self): No newline at end of file |
|
301 | 301 | No newline at end of file |
|
302 | 302 | var_Rpath_tmpdata=self.var_Rpath+"/tmpdata" No newline at end of file |
|
303 | 303 | No newline at end of file |
|
304 | 304 | var_output=commands.getstatusoutput('df -hT | grep '+dev_sr) No newline at end of file |
|
305 | 305 | if var_output[0] != 0: No newline at end of file |
|
306 | 306 | return "FATAL ERROR" No newline at end of file |
|
307 | 307 | else: No newline at end of file |
|
308 | 308 | var_cmd = "cp -rfv "+var_output[1] .split()[-1]+"/ "+var_Rpath_tmpdata+"/" No newline at end of file |
|
309 | 309 | return var_cmd No newline at end of file |
|
310 | 310 | No newline at end of file |
|
311 | def cmd_manual_check(var_data_dir, var_TDpath): | |
|
No newline at end of file | ||
|
312 | ||
|
No newline at end of file | ||
|
313 | var_cmd = "cp -rfv "+var_data_dir+"/ "+var_TDpath+"/" | |
|
No newline at end of file | ||
|
314 | return var_cmd | |
|
No newline at end of file | ||
|
315 | No newline at end of file | |
|
311 | 316 | No newline at end of file |
|
312 | 317 | def remove_iso(self): No newline at end of file |
|
313 | 318 | var_Rpath_iso=self.var_Rpath+"/iso" No newline at end of file |
|
314 | 319 | file_iso=var_Rpath_iso+"/"+i2s(self.var_disc_n)+".iso" No newline at end of file |
|
315 | 320 | # shutil.rmtree(self.var_Rpath+'/'+var_dir, True) No newline at end of file |
|
316 | 321 | if os.path.isfile(file_iso): No newline at end of file |
|
317 | 322 | os.remove(file_iso) No newline at end of file |
|
318 | 323 | No newline at end of file |
|
319 | 324 | #Si es el ultimo disco se termina el proceso No newline at end of file |
|
320 | 325 | def is_last_disc_and_copy(self): No newline at end of file |
|
321 | 326 | if self.var_disc_n == self.var_Discs and self.var_copy_n == self.var_Copys: No newline at end of file |
|
322 | 327 | self.function_final() No newline at end of file |
|
323 | 328 | else: No newline at end of file |
|
324 | 329 | next_disc(self) No newline at end of file |
|
325 | 330 | No newline at end of file |
|
326 | 331 | #Define cual es el siguiente disco a grabar y que paso seguir No newline at end of file |
|
327 | 332 | def next_disc(self, error = False): No newline at end of file |
|
328 | 333 | if self.var_copy_n == self.var_Copys: No newline at end of file |
|
329 | 334 | #borrado del iso No newline at end of file |
|
330 | 335 | self.txtInfo.append("Deleting iso file: "+i2s(self.var_disc_n)+".iso") No newline at end of file |
|
331 | 336 | remove_iso(self) No newline at end of file |
|
332 | 337 | No newline at end of file |
|
333 | 338 | self.var_disc_n += 1 No newline at end of file |
|
334 | 339 | self.var_copy_n = 1 No newline at end of file |
|
335 | 340 | self.var_step = 0 No newline at end of file |
|
336 | 341 | No newline at end of file |
|
337 | 342 | else: No newline at end of file |
|
338 | 343 | self.var_copy_n += 1 No newline at end of file |
|
339 | 344 | self.var_step = 1 No newline at end of file |
|
340 | 345 | No newline at end of file |
|
341 | 346 | functions2.make_burning_conf(self) # Si el proceso no ha sido detenido manualmente No newline at end of file |
|
342 | 347 | #crea el archivo burning.conf para el seguimiento de los discos grabados No newline at end of file |
|
343 | 348 | No newline at end of file |
|
344 | 349 | var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices) No newline at end of file |
|
345 | 350 | No newline at end of file |
|
346 | 351 | self.txtInfo.append("NEXT DISC: "+str(self.var_disc_n)+" COPY: "+str(self.var_copy_n) No newline at end of file |
|
347 | 352 | +" INDEX: "+str(var_index)+" STEP: "+str(self.var_step)) No newline at end of file |
|
348 | 353 | self.txtInfo.append("\n") No newline at end of file |
|
349 | 354 | No newline at end of file |
|
350 | 355 | if var_index == 0 : No newline at end of file |
|
351 | 356 | self.function_eject() No newline at end of file |
|
352 | 357 | No newline at end of file |
|
353 | 358 | elif self.var_step == 0: No newline at end of file |
|
354 | 359 | self.function_iso() No newline at end of file |
|
355 | 360 | elif self.var_step == 1: No newline at end of file |
|
356 | 361 | self.function_burn() No newline at end of file |
@@ -1,274 +1,291 | |||
|
1 | 1 | # -*- coding: utf-8 -*- No newline at end of file |
|
2 | 2 | No newline at end of file |
|
3 | 3 | No newline at end of file |
|
4 | 4 | from subprocess import * No newline at end of file |
|
5 | 5 | import sys No newline at end of file |
|
6 | 6 | import os No newline at end of file |
|
7 | 7 | import subprocess No newline at end of file |
|
8 | 8 | import commands No newline at end of file |
|
9 | 9 | No newline at end of file |
|
10 | 10 | #----------------------------------------------------- Deteccion de los dispositivos de grabacion --------------------------------------------------------------- No newline at end of file |
|
11 | 11 | No newline at end of file |
|
12 | 12 | def detect_devices(self): No newline at end of file |
|
13 | 13 | """ No newline at end of file |
|
14 | 14 | Deteccion de los dispositvos de grabacion No newline at end of file |
|
15 | 15 | """ No newline at end of file |
|
16 | 16 | #var_cmd="wodim --devices | grep /dev/ | awk -F\' '{print $2}'" #Funciona en consola pero no en python ¿? No newline at end of file |
|
17 | 17 | var_cmd="wodim --devices | grep /dev/ | awk '{print $2}' | awk -F= '{print $2}'" No newline at end of file |
|
18 | 18 | No newline at end of file |
|
19 | 19 | var_output = commands.getstatusoutput(var_cmd) No newline at end of file |
|
20 | 20 | if var_output[0] != 0: No newline at end of file |
|
21 | 21 | self.txtInfo.append("No recording devices") No newline at end of file |
|
22 | 22 | else: No newline at end of file |
|
23 | 23 | var_devices = var_output[1].split('\n') No newline at end of file |
|
24 | 24 | No newline at end of file |
|
25 | 25 | var_tmp=[] No newline at end of file |
|
26 | 26 | for i in range(0, 4): No newline at end of file |
|
27 | 27 | if i < len(var_devices): No newline at end of file |
|
28 | 28 | var_len = len(var_devices[i]) No newline at end of file |
|
29 | 29 | var_tmp.append(var_devices[i][1:var_len - 1]) No newline at end of file |
|
30 | 30 | else: No newline at end of file |
|
31 | 31 | var_tmp.append('') No newline at end of file |
|
32 | 32 | No newline at end of file |
|
33 | 33 | #Se escriben los dispostivos correspodientes, si existen No newline at end of file |
|
34 | 34 | self.txtDeviceA.setText(str(var_tmp[0])) No newline at end of file |
|
35 | 35 | self.txtDeviceB.setText(str(var_tmp[1])) No newline at end of file |
|
36 | 36 | self.txtDeviceC.setText(str(var_tmp[2])) No newline at end of file |
|
37 | 37 | self.txtDeviceD.setText(str(var_tmp[3])) No newline at end of file |
|
38 | 38 | #Se desactivan los que no existen No newline at end of file |
|
39 | 39 | if len(var_tmp[0]) == 0 : No newline at end of file |
|
40 | 40 | self.chkDevA.setChecked(False) No newline at end of file |
|
41 | 41 | self.chkDevA.setEnabled(False) No newline at end of file |
|
42 | 42 | if len(var_tmp[1]) == 0 : No newline at end of file |
|
43 | 43 | self.chkDevB.setChecked(False) No newline at end of file |
|
44 | 44 | self.chkDevB.setEnabled(False) No newline at end of file |
|
45 | 45 | if len(var_tmp[2]) == 0 : No newline at end of file |
|
46 | 46 | self.chkDevC.setChecked(False) No newline at end of file |
|
47 | 47 | self.chkDevC.setEnabled(False) No newline at end of file |
|
48 | 48 | if len(var_tmp[3]) == 0 : No newline at end of file |
|
49 | 49 | self.chkDevD.setChecked(False) No newline at end of file |
|
50 | 50 | self.chkDevD.setEnabled(False) No newline at end of file |
|
51 | 51 | No newline at end of file |
|
52 | 52 | #----------------------------------- expulsa los dispositivos de grabacion -------------------------------------------- No newline at end of file |
|
53 | 53 | No newline at end of file |
|
54 | 54 | def eject_devices(self): No newline at end of file |
|
55 | 55 | for var_dev in self.var_devices: No newline at end of file |
|
56 | 56 | var_cmd = 'eject ' + var_dev No newline at end of file |
|
57 | 57 | commands.getstatusoutput(var_cmd) No newline at end of file |
|
58 | 58 | No newline at end of file |
|
59 | 59 | #Expulsa el dispositivo de grabacion actual No newline at end of file |
|
60 | 60 | def eject_one_device(self): No newline at end of file |
|
61 | 61 | var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices) No newline at end of file |
|
62 | 62 | var_dev = self.var_devices[var_index] No newline at end of file |
|
63 | 63 | var_cmd = 'eject ' + var_dev No newline at end of file |
|
64 | 64 | commands.getstatusoutput(var_cmd) No newline at end of file |
|
65 | 65 | No newline at end of file |
|
66 | 66 | def eject_t_one_device(self): No newline at end of file |
|
67 | 67 | var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices) No newline at end of file |
|
68 | 68 | var_dev = self.var_devices[var_index] No newline at end of file |
|
69 | 69 | var_cmd = 'eject -t ' + var_dev No newline at end of file |
|
70 | 70 | commands.getstatusoutput(var_cmd) No newline at end of file |
|
71 | 71 | No newline at end of file |
|
72 | 72 | def get_dev_sr(self): No newline at end of file |
|
73 | 73 | var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices) No newline at end of file |
|
74 | 74 | var_dev = self.var_devices[var_index] No newline at end of file |
|
75 | 75 | var_output=commands.getstatusoutput('ls -lh '+var_dev) No newline at end of file |
|
76 | 76 | if var_output[0] != 0: No newline at end of file |
|
77 | 77 | return "FATAL ERROR" No newline at end of file |
|
78 | 78 | else: No newline at end of file |
|
79 | 79 | var_dev_sr = "/dev/"+var_output[1] .split()[-1] No newline at end of file |
|
80 | 80 | return var_dev_sr No newline at end of file |
|
81 | 81 | No newline at end of file |
|
82 | 82 | No newline at end of file |
|
83 | #----------------------------------- expulsa los dispositivos de grabacion -------------------------------------------- | |
|
No newline at end of file | ||
|
84 | def mounted_devices(): | |
|
No newline at end of file | ||
|
85 | var_output=commands.getstatusoutput('df -hT | grep tmpfs') | |
|
No newline at end of file | ||
|
86 | ||
|
No newline at end of file | ||
|
87 | if var_output[0] != 0: | |
|
No newline at end of file | ||
|
88 | return "FATAL ERROR" | |
|
No newline at end of file | ||
|
89 | ||
|
No newline at end of file | ||
|
90 | else: | |
|
No newline at end of file | ||
|
91 | if len(var_output[1]) == 0: | |
|
No newline at end of file | ||
|
92 | return "FATAL ERROR" | |
|
No newline at end of file | ||
|
93 | ||
|
No newline at end of file | ||
|
94 | list_dirs = [] | |
|
No newline at end of file | ||
|
95 | for var_dir in var_output[1].split('\n'): | |
|
No newline at end of file | ||
|
96 | list_dirs.append(var_dir.split()[-1]) | |
|
No newline at end of file | ||
|
97 | ||
|
No newline at end of file | ||
|
98 | return list_dirs | |
|
No newline at end of file | ||
|
99 | No newline at end of file | |
|
83 | 100 | No newline at end of file |
|
84 | 101 | #----------------------------------- listado de los dispositivos de grabacion seleccionados -------------------------------------------- No newline at end of file |
|
85 | 102 | No newline at end of file |
|
86 | 103 | def selected_devices(self): No newline at end of file |
|
87 | 104 | self.var_devices=[] No newline at end of file |
|
88 | 105 | if self.chkDevA.isChecked(): No newline at end of file |
|
89 | 106 | self.var_devices.append(str(self.txtDeviceA.text())) No newline at end of file |
|
90 | 107 | if self.chkDevB.isChecked(): No newline at end of file |
|
91 | 108 | self.var_devices.append(str(self.txtDeviceB.text())) No newline at end of file |
|
92 | 109 | if self.chkDevC.isChecked(): No newline at end of file |
|
93 | 110 | self.var_devices.append(str(self.txtDeviceC.text())) No newline at end of file |
|
94 | 111 | if self.chkDevD.isChecked(): No newline at end of file |
|
95 | 112 | self.var_devices.append(str(self.txtDeviceD.text())) No newline at end of file |
|
96 | 113 | No newline at end of file |
|
97 | 114 | if len(self.var_devices) == 0: No newline at end of file |
|
98 | 115 | return False No newline at end of file |
|
99 | 116 | else: No newline at end of file |
|
100 | 117 | return True No newline at end of file |
|
101 | 118 | No newline at end of file |
|
102 | 119 | No newline at end of file |
|
103 | 120 | #----------------------------------------------------- Inicializacion para pruebas--------------------------------------------------------------- No newline at end of file |
|
104 | 121 | No newline at end of file |
|
105 | 122 | def set_parameters_test(self): No newline at end of file |
|
106 | 123 | """ No newline at end of file |
|
107 | 124 | Se usa para inicializar ciertos parametros para pruebas No newline at end of file |
|
108 | 125 | """ No newline at end of file |
|
109 | 126 | self.txtDpath.setText('/home/ricardoar/optional/STORAGE/EW_DRIFTS') No newline at end of file |
|
110 | 127 | self.txtRpath.setText('/home/ricardoar/optional/prueba1_jro_backup_manager') No newline at end of file |
|
111 | 128 | self.txtElabel.setText('EW_DRIFTS_pruebas') No newline at end of file |
|
112 | 129 | self.lstDcapacity.setCurrentIndex(4) No newline at end of file |
|
113 | 130 | self.txtDcapacity.setValue(100.0) No newline at end of file |
|
114 | 131 | self.txtDcapacity.setReadOnly(False) No newline at end of file |
|
115 | 132 | No newline at end of file |
|
116 | 133 | def set_devices_test(self): No newline at end of file |
|
117 | 134 | self.txtDeviceA.setText("/dev/scd0") No newline at end of file |
|
118 | 135 | self.txtDeviceB.setText("/dev/scd1") No newline at end of file |
|
119 | 136 | self.txtDeviceC.setText("/dev/scd2") No newline at end of file |
|
120 | 137 | self.txtDeviceD.setText("/dev/scd3") No newline at end of file |
|
121 | 138 | No newline at end of file |
|
122 | 139 | No newline at end of file |
|
123 | 140 | No newline at end of file |
|
124 | 141 | #----------------------------------------------------- crea parameters.conf --------------------------------------------------------------- No newline at end of file |
|
125 | 142 | No newline at end of file |
|
126 | 143 | def make_parameters_conf(self): No newline at end of file |
|
127 | 144 | var_file = open("parameters.conf","w") No newline at end of file |
|
128 | 145 | var_file.write(self.var_Dpath+"\n") #0 Ruta de los datos No newline at end of file |
|
129 | 146 | var_file.write(self.var_Rpath+"\n") #1 Ruta del proyecto No newline at end of file |
|
130 | 147 | var_file.write(str(self.var_lstDtype)+"\n") #2 opcion Data Type No newline at end of file |
|
131 | 148 | var_file.write(self.var_Dtype+"\n") #3 extension Data Type No newline at end of file |
|
132 | 149 | var_file.write(self.var_Elabel+"\n") #4 etiqueta No newline at end of file |
|
133 | 150 | var_file.write(str(self.var_Copys)+"\n") #5 Numero de copias No newline at end of file |
|
134 | 151 | var_file.write(str(self.var_lstDcapacity)+"\n") #6 opcion Device Capacity No newline at end of file |
|
135 | 152 | var_file.write(str(self.var_Dcapacity)+"\n") #7 tamaño Device Capacity No newline at end of file |
|
136 | 153 | var_file.write(str(self.var_Discs)+"\n") #8 Numero de discos a grabar No newline at end of file |
|
137 | 154 | # var_file.write(str(self.lstStartDay.currentIndex())+"\n") #9 Indice fecha inicial No newline at end of file |
|
138 | 155 | # var_file.write(str(self.lstStopDay.currentIndex())+"\n") #10 Indice fecha final No newline at end of file |
|
139 | 156 | var_file.close() No newline at end of file |
|
140 | 157 | No newline at end of file |
|
141 | 158 | #----------------------------------------------------- carga parameters.conf --------------------------------------------------------------- No newline at end of file |
|
142 | 159 | No newline at end of file |
|
143 | 160 | def get_parameters_conf(self): No newline at end of file |
|
144 | 161 | var_file = open("parameters.conf","r") No newline at end of file |
|
145 | 162 | lines = var_file.readlines() No newline at end of file |
|
146 | 163 | self.txtDpath.setText(lines[0][:-1]) #0 No newline at end of file |
|
147 | 164 | self.txtRpath.setText(lines[1][:-1]) #1 No newline at end of file |
|
148 | 165 | self.lstDtype.setCurrentIndex(int(lines[2])) #2 No newline at end of file |
|
149 | 166 | self.txtDtype.setText(lines[3][:-1]) #3 No newline at end of file |
|
150 | 167 | self.txtElabel.setText(lines[4][:-1]) #4 No newline at end of file |
|
151 | 168 | self.txtCopys.setValue(int(lines[5][:-1])) #5 No newline at end of file |
|
152 | 169 | self.lstDcapacity.setCurrentIndex(int(lines[6])) #6 No newline at end of file |
|
153 | 170 | self.txtDcapacity.setValue(float(lines[7])) #7 No newline at end of file |
|
154 | 171 | self.var_Discs = int(lines[8]) #8 No newline at end of file |
|
155 | 172 | # var_StartDay = int(lines[6]) #9 No newline at end of file |
|
156 | 173 | # var_StopDay = int(lines[7]) #10 No newline at end of file |
|
157 | 174 | ################################ No newline at end of file |
|
158 | 175 | self.var_Copys = self.txtCopys.value() #5 No newline at end of file |
|
159 | 176 | ################################ No newline at end of file |
|
160 | 177 | No newline at end of file |
|
161 | 178 | var_file.close() No newline at end of file |
|
162 | 179 | No newline at end of file |
|
163 | 180 | No newline at end of file |
|
164 | 181 | #-------------------------- actualiza el valor de las variables con los parametros seleccionados ----------------------------- No newline at end of file |
|
165 | 182 | No newline at end of file |
|
166 | 183 | def set_vars(self): No newline at end of file |
|
167 | 184 | self.var_Dpath = str(self.txtDpath.text()) #0 No newline at end of file |
|
168 | 185 | self.var_Rpath = str(self.txtRpath.text()) #1 No newline at end of file |
|
169 | 186 | self.var_lstDtype = self.lstDtype.currentIndex() #2 No newline at end of file |
|
170 | 187 | self.var_Dtype = str(self.txtDtype.text()) #3 No newline at end of file |
|
171 | 188 | self.var_Elabel = str(self.txtElabel.text()) #4 No newline at end of file |
|
172 | 189 | self.var_Copys = self.txtCopys.value() #5 No newline at end of file |
|
173 | 190 | self.var_lstDcapacity = self.lstDcapacity.currentIndex() #6 No newline at end of file |
|
174 | 191 | self.var_Dcapacity = self.txtDcapacity.value() #7 No newline at end of file |
|
175 | 192 | self.var_Discs = self.var_Discs #8 No newline at end of file |
|
176 | 193 | No newline at end of file |
|
177 | 194 | No newline at end of file |
|
178 | 195 | #-------------------------- crea burning.conf ----------------------------- No newline at end of file |
|
179 | 196 | No newline at end of file |
|
180 | 197 | def make_burning_conf(self): No newline at end of file |
|
181 | 198 | var_file = open("burning.conf","w") No newline at end of file |
|
182 | 199 | var_n_burned_discs = ( ( (self.var_disc_n - 1) * self.var_Copys) + self.var_copy_n - 1 ) No newline at end of file |
|
183 | 200 | var_file.write(str(var_n_burned_discs)+"\n") #0 Numero de discos ya grabados No newline at end of file |
|
184 | 201 | var_file.write(str(self.var_disc_n)+"\n") #1 Disco actual para grabar No newline at end of file |
|
185 | 202 | var_file.write(str(self.var_copy_n)+"\n") #2 Numero de copia actual para grabar No newline at end of file |
|
186 | 203 | var_file.close() No newline at end of file |
|
187 | 204 | No newline at end of file |
|
188 | 205 | #----------------------------------------------------- carga burning.conf --------------------------------------------------------------- No newline at end of file |
|
189 | 206 | No newline at end of file |
|
190 | 207 | def get_burning_conf(self): No newline at end of file |
|
191 | 208 | var_file = open("burning.conf","r") No newline at end of file |
|
192 | 209 | lines = var_file.readlines() No newline at end of file |
|
193 | 210 | self.var_burned_discs = int(lines[0]) #0 No newline at end of file |
|
194 | 211 | self.var_disc_n = int(lines[1]) No newline at end of file |
|
195 | 212 | self.var_copy_n = int(lines[2]) No newline at end of file |
|
196 | 213 | var_file.close() No newline at end of file |
|
197 | 214 | No newline at end of file |
|
198 | 215 | #---------------------------------------------- Habilitacion y deshabilitacion de items ------------------------------------------------------- No newline at end of file |
|
199 | 216 | No newline at end of file |
|
200 | 217 | def enabled_items1(var_bool, self): No newline at end of file |
|
201 | 218 | self.tabParameters.setEnabled(not(var_bool)) No newline at end of file |
|
202 | 219 | self.lstDcapacity.setEnabled(not(var_bool)) No newline at end of file |
|
203 | 220 | self.txtDcapacity.setEnabled(not(var_bool)) No newline at end of file |
|
204 | 221 | self.actionChange_Parameters.setEnabled(var_bool) No newline at end of file |
|
205 | 222 | self.btnGbkp.setEnabled(not(var_bool)) No newline at end of file |
|
206 | 223 | self.btnRestart.setEnabled(var_bool) No newline at end of file |
|
207 | 224 | self.btnStartburn.setEnabled(var_bool) No newline at end of file |
|
208 | 225 | No newline at end of file |
|
209 | 226 | No newline at end of file |
|
210 | 227 | def enabled_items2(var_bool, self): No newline at end of file |
|
211 | 228 | self.btnRestart.setEnabled(not(var_bool)) No newline at end of file |
|
212 | 229 | self.btnStartburn.setEnabled(not(var_bool)) No newline at end of file |
|
213 | 230 | self.btnStopburn.setEnabled(var_bool) No newline at end of file |
|
214 | 231 | self.chkCheck.setEnabled(not(var_bool)) No newline at end of file |
|
215 | 232 | self.chkCheck.setChecked(False) No newline at end of file |
|
216 | 233 | No newline at end of file |
|
217 | 234 | self.actionChange_Parameters.setEnabled(False) No newline at end of file |
|
218 | 235 | No newline at end of file |
|
219 | 236 | No newline at end of file |
|
220 | 237 | No newline at end of file |
|
221 | 238 | No newline at end of file |
|
222 | 239 | No newline at end of file |
|
223 | 240 | #---------------------------------------------- Actualiza estado en los labels ------------------------------------------------------- No newline at end of file |
|
224 | 241 | |
|
242 | No newline at end of file | |
|
225 | def update_message(type, message, self, index=0, ): No newline at end of file | |
|
226 | 243 | if index == 0: No newline at end of file |
|
227 | 244 | var_index = ( ( (self.var_disc_n - 1) * self.var_Copys) + (self.var_copy_n - 1) - self.var_burned_discs ) % len(self.var_devices) No newline at end of file |
|
228 | 245 | else: No newline at end of file |
|
229 | 246 | var_index = index No newline at end of file |
|
230 | 247 | No newline at end of file |
|
231 | 248 | var_message = message No newline at end of file |
|
232 | 249 | # var_message = "BURNING" No newline at end of file |
|
233 | 250 | # var_message = "COMPLETED" No newline at end of file |
|
234 | 251 | # var_message = "ERROR" No newline at end of file |
|
235 | 252 | # var_message = "CHECKING" No newline at end of file |
|
236 | 253 | # var_message = "CHECKED" No newline at end of file |
|
237 | 254 | No newline at end of file |
|
238 | 255 | if type == 1: No newline at end of file |
|
239 | 256 | No newline at end of file |
|
240 | 257 | if var_index == 0: No newline at end of file |
|
241 | 258 | self.txtBstatusA.setText(var_message) No newline at end of file |
|
242 | 259 | self.txtBdiscA.setText(str(self.var_disc_n)) No newline at end of file |
|
243 | 260 | self.txtBcopyA.setText(str(self.var_copy_n)) No newline at end of file |
|
244 | 261 | No newline at end of file |
|
245 | 262 | if var_index == 1: No newline at end of file |
|
246 | 263 | self.txtBstatusB.setText(var_message) No newline at end of file |
|
247 | 264 | self.txtBdiscB.setText(str(self.var_disc_n)) No newline at end of file |
|
248 | 265 | self.txtBcopyB.setText(str(self.var_copy_n)) No newline at end of file |
|
249 | 266 | No newline at end of file |
|
250 | 267 | if var_index == 2: No newline at end of file |
|
251 | 268 | self.txtBstatusC.setText(var_message) No newline at end of file |
|
252 | 269 | self.txtBdiscC.setText(str(self.var_disc_n)) No newline at end of file |
|
253 | 270 | self.txtBcopyC.setText(str(self.var_copy_n)) No newline at end of file |
|
254 | 271 | No newline at end of file |
|
255 | 272 | if var_index == 3: No newline at end of file |
|
256 | 273 | self.txtBstatusD.setText(var_message) No newline at end of file |
|
257 | 274 | self.txtBdiscD.setText(str(self.var_disc_n)) No newline at end of file |
|
258 | 275 | self.txtBcopyD.setText(str(self.var_copy_n)) No newline at end of file |
|
259 | 276 | No newline at end of file |
|
260 | 277 | if type == 2: No newline at end of file |
|
261 | 278 | No newline at end of file |
|
262 | 279 | if var_index == 0: No newline at end of file |
|
263 | 280 | self.txtCHstatusA.setText(var_message) No newline at end of file |
|
264 | 281 | No newline at end of file |
|
265 | 282 | if var_index == 1: No newline at end of file |
|
266 | 283 | self.txtCHstatusB.setText(var_message) No newline at end of file |
|
267 | 284 | No newline at end of file |
|
268 | 285 | if var_index == 2: No newline at end of file |
|
269 | 286 | self.txtCHstatusC.setText(var_message) No newline at end of file |
|
270 | 287 | No newline at end of file |
|
271 | 288 | if var_index == 3: No newline at end of file |
|
272 | 289 | self.txtCHstatusD.setText(var_message) No newline at end of file |
|
273 | 290 | No newline at end of file |
|
274 | 291 | No newline at end of file |
@@ -1,666 +1,758 | |||
|
1 | 1 | # -*- coding: utf-8 -*- No newline at end of file |
|
2 | 2 | No newline at end of file |
|
3 | 3 | """ No newline at end of file |
|
4 | 4 | Module implementing MainWindow. No newline at end of file |
|
5 | 5 | """ No newline at end of file |
|
6 | 6 | No newline at end of file |
|
7 | 7 | from PyQt4.QtGui import QMainWindow No newline at end of file |
|
8 | 8 | from PyQt4.QtCore import pyqtSignature No newline at end of file |
|
9 | 9 | from PyQt4 import QtCore No newline at end of file |
|
10 | 10 | from Ui_MainWindow import Ui_MainWindow No newline at end of file |
|
11 | 11 | from Ui_Parameters import Ui_Parameters No newline at end of file |
|
12 | 12 | from Ui_About import Ui_About No newline at end of file |
|
13 | 13 | from PyQt4 import QtGui No newline at end of file |
|
14 | 14 | from subprocess import * No newline at end of file |
|
15 | 15 | import sys No newline at end of file |
|
16 | 16 | import os No newline at end of file |
|
17 | 17 | #import subprocess No newline at end of file |
|
18 | 18 | import time No newline at end of file |
|
19 | 19 | import commands No newline at end of file |
|
20 | 20 | from functions import functions No newline at end of file |
|
21 | 21 | from functions import functions2 No newline at end of file |
|
22 | 22 | No newline at end of file |
|
23 | 23 | class MainWindow(QMainWindow, Ui_MainWindow): No newline at end of file |
|
24 | 24 | """ No newline at end of file |
|
25 | 25 | Class documentation goes here. No newline at end of file |
|
26 | 26 | """ No newline at end of file |
|
27 | 27 | No newline at end of file |
|
28 | 28 | def __init__(self, parent = None): No newline at end of file |
|
29 | 29 | QMainWindow.__init__(self, parent) No newline at end of file |
|
30 | 30 | self.setupUi(self) No newline at end of file |
|
31 | 31 | self.setupUi2() No newline at end of file |
|
32 | 32 | No newline at end of file |
|
33 | 33 | def setupUi2(self): No newline at end of file |
|
34 | 34 | No newline at end of file |
|
35 | 35 | self.txtInfo.append("cambio 1") No newline at end of file |
|
36 | 36 | No newline at end of file |
|
37 | 37 | self.allTrue = False No newline at end of file |
|
38 | 38 | No newline at end of file |
|
39 | 39 | if self.allTrue == True: No newline at end of file |
|
40 | 40 | self.var_real_principal = True No newline at end of file |
|
41 | 41 | self.var_real_detect_devices = True No newline at end of file |
|
42 | 42 | self.var_real_iso = True No newline at end of file |
|
43 | 43 | self.var_real_burn = True No newline at end of file |
|
44 | 44 | self.var_real_check = True No newline at end of file |
|
45 | 45 | self.var_real_eject = True No newline at end of file |
|
46 | self.var_real_manual_check = True No newline at end of file | |
|
46 | 47 | self.var_real_show_cmd = True No newline at end of file |
|
47 | 48 | No newline at end of file |
|
48 | 49 | else: No newline at end of file |
|
49 | 50 | self.var_real_principal = False No newline at end of file |
|
50 | 51 | self.var_real_detect_devices = False No newline at end of file |
|
51 | 52 | self.var_real_iso = False No newline at end of file |
|
52 | 53 | self.var_real_burn = False |
|
54 | No newline at end of file | |
|
53 | self.var_real_check = True No newline at end of file | |
|
54 | 55 | self.var_real_eject = False No newline at end of file |
|
56 | self.var_real_manual_check = False No newline at end of file | |
|
55 | 57 | self.var_real_show_cmd = True No newline at end of file |
|
56 | 58 | No newline at end of file |
|
57 | 59 | if self.var_real_detect_devices == True: No newline at end of file |
|
58 | 60 | # Reconocimiento de los dispositivos de grabacion No newline at end of file |
|
59 | 61 | functions2.detect_devices(self) No newline at end of file |
|
60 | 62 | else: No newline at end of file |
|
61 | 63 | functions2.set_devices_test(self) No newline at end of file |
|
62 | 64 | No newline at end of file |
|
63 | 65 | #Inicialiazacion de variables No newline at end of file |
|
64 | 66 | self.var_Discs = 0 #Numero de discos del proyecto No newline at end of file |
|
65 | 67 | self.var_Copys = 0 #Numero de copias No newline at end of file |
|
66 | 68 | self.var_disc_n = 0 # disco actual No newline at end of file |
|
67 | 69 | self.var_copy_n = 0 # copia actual No newline at end of file |
|
68 | 70 | self.var_burned_discs = 0 #numero de discos ya grabados No newline at end of file |
|
69 | 71 | No newline at end of file |
|
70 | 72 | self.bool_first_iso = False No newline at end of file |
|
71 | 73 | self.var_step = 0 # numero de paso en el proceso No newline at end of file |
|
72 | 74 | self.bool_state_burning = False #si es True se puede grabar No newline at end of file |
|
73 | 75 | self.blank_discs = False # Si es true significa que se acaban de ingresar discos en blanco No newline at end of file |
|
74 | 76 | No newline at end of file |
|
75 | 77 | self.var_list=[] # Lista de DOYs No newline at end of file |
|
76 | 78 | self.var_sublist=[] # Sub-lista de DOYs seleccionados No newline at end of file |
|
77 | 79 | self.var_devices=[] #Lista de dispositivos seleccionados No newline at end of file |
|
78 | 80 | No newline at end of file |
|
79 | 81 | #Revisa si existe el archivo de confirguracion y lo carga No newline at end of file |
|
80 | 82 | if os.path.isfile("parameters.conf"): No newline at end of file |
|
81 | 83 | functions2.get_parameters_conf(self) No newline at end of file |
|
82 | 84 | self.bool_first_iso = True No newline at end of file |
|
83 | 85 | self.txtInfo.append("Parameters were loaded from configuration file") No newline at end of file |
|
84 | 86 | self.txtInfo.append("Total number of discs for recording: "+str(self.var_Discs * self.var_Copys)) No newline at end of file |
|
85 | 87 | No newline at end of file |
|
86 | 88 | elif self.var_real_principal == False: No newline at end of file |
|
87 | 89 | functions2.set_parameters_test(self) #Establece ciertos parametros, para pruebas No newline at end of file |
|
88 | 90 | No newline at end of file |
|
89 | 91 | functions2.set_vars(self) #Carga las variables de la clase con los parametros seleccionados No newline at end of file |
|
90 | 92 | No newline at end of file |
|
91 | 93 | self.statusDpath = functions.dir_exists(self.var_Dpath, self) No newline at end of file |
|
92 | 94 | self.statusRpath = functions.dir_exists(self.var_Rpath, self) No newline at end of file |
|
93 | 95 | functions.load_days(self) No newline at end of file |
|
94 | 96 | No newline at end of file |
|
95 | 97 | if os.path.isfile("parameters.conf"): No newline at end of file |
|
96 | 98 | functions2.enabled_items1(True, self) #Se bloquean los parametros de configuracion No newline at end of file |
|
97 | 99 | No newline at end of file |
|
98 | 100 | if os.path.isfile("burning.conf"): No newline at end of file |
|
99 | 101 | functions2.get_burning_conf(self) No newline at end of file |
|
100 | 102 | self.txtInfo.append("Current disc: "+str(self.var_disc_n)) No newline at end of file |
|
101 | 103 | self.txtInfo.append("Current copy: "+str(self.var_copy_n)) No newline at end of file |
|
102 | 104 | self.txtInfo.append("Burned discs: "+str(self.var_burned_discs)) No newline at end of file |
|
103 | 105 | self.btnStartburn.setText("Continue") No newline at end of file |
|
104 | 106 | self.actionChange_Parameters.setEnabled(False) No newline at end of file |
|
105 | 107 | No newline at end of file |
|
106 | 108 | self.connect(self.actionChange_Parameters, QtCore.SIGNAL("triggered()"), self.changeParameters) No newline at end of file |
|
107 | 109 | self.connect(self.actionAbout, QtCore.SIGNAL("triggered()"), self.about) No newline at end of file |
|
108 | 110 | No newline at end of file |
|
109 | 111 | self.process_iso = QtCore.QProcess() No newline at end of file |
|
110 | 112 | self.connect(self.process_iso, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_iso) No newline at end of file |
|
111 | 113 | self.connect(self.process_iso, QtCore.SIGNAL('readyReadStandardError()'), self.readError_iso) No newline at end of file |
|
112 | 114 | self.connect(self.process_iso, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_iso) No newline at end of file |
|
113 | 115 | No newline at end of file |
|
114 | 116 | self.process_burn = QtCore.QProcess() No newline at end of file |
|
115 | 117 | self.connect(self.process_burn, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_burn) No newline at end of file |
|
116 | 118 | self.connect(self.process_burn, QtCore.SIGNAL('readyReadStandardError()'), self.readError_burn) No newline at end of file |
|
117 | 119 | self.connect(self.process_burn, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_burn) No newline at end of file |
|
118 | 120 | No newline at end of file |
|
119 | 121 | self.process_check = QtCore.QProcess() No newline at end of file |
|
120 | 122 | self.connect(self.process_check, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_check) No newline at end of file |
|
121 | 123 | self.connect(self.process_check, QtCore.SIGNAL('readyReadStandardError()'), self.readError_check) No newline at end of file |
|
122 | 124 | self.connect(self.process_check, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_check) No newline at end of file |
|
123 | 125 | No newline at end of file |
|
126 | self.process_manual_check = QtCore.QProcess() | |
|
No newline at end of file | ||
|
127 | self.connect(self.process_manual_check, QtCore.SIGNAL('readyReadStandardOutput()'), self.readOuput_manual_check) | |
|
No newline at end of file | ||
|
128 | self.connect(self.process_manual_check, QtCore.SIGNAL('readyReadStandardError()'), self.readError_manual_check) | |
|
No newline at end of file | ||
|
129 | self.connect(self.process_manual_check, QtCore.SIGNAL('finished(int,QProcess::ExitStatus)'), self.finished_manual_check) No newline at end of file | |
|
124 | 130 | No newline at end of file |
|
125 | 131 | def changeParameters(self): No newline at end of file |
|
126 | 132 | dlg=QtGui.QDialog() No newline at end of file |
|
127 | 133 | dlgui=Ui_Parameters() No newline at end of file |
|
128 | 134 | dlgui.setupUi(dlg) No newline at end of file |
|
129 | 135 | if (dlg.exec_() == QtGui.QDialog.Accepted): No newline at end of file |
|
130 | 136 | if dlgui.txtDisc.value() > self.var_Discs or dlgui.txtCopy.value() > dlgui.txtNcopys.value(): No newline at end of file |
|
131 | 137 | self.txtInfo.append("Wrong parameters") No newline at end of file |
|
132 | 138 | else: No newline at end of file |
|
133 | 139 | self.var_Copys = dlgui.txtNcopys.value() No newline at end of file |
|
134 | 140 | self.var_disc_n = dlgui.txtDisc.value() No newline at end of file |
|
135 | 141 | self.var_copy_n = dlgui.txtCopy.value() No newline at end of file |
|
136 | 142 | self.txtInfo.append("Changed parameters") No newline at end of file |
|
137 | 143 | self.var_burned_discs = ( ( (self.var_disc_n - 1) * self.var_Copys) + self.var_copy_n -1 ) No newline at end of file |
|
138 | 144 | self.bool_first_iso = True No newline at end of file |
|
139 | 145 | self.txtInfo.append("Current disc: "+str(self.var_disc_n)) No newline at end of file |
|
140 | 146 | self.txtInfo.append("Current copy: "+str(self.var_copy_n)) No newline at end of file |
|
141 | 147 | self.txtInfo.append("Nro Copys: "+str(self.var_Copys)) No newline at end of file |
|
142 | 148 | functions2.make_parameters_conf(self) No newline at end of file |
|
143 | 149 | self.txtCopys.setValue(self.var_Copys) #Actualizo mananualmente el valor Copys No newline at end of file |
|
144 | 150 | No newline at end of file |
|
145 | 151 | No newline at end of file |
|
146 | 152 | No newline at end of file |
|
147 | 153 | def about(self): No newline at end of file |
|
148 | 154 | dlg_about=QtGui.QDialog() No newline at end of file |
|
149 | 155 | dlgui_about=Ui_About() No newline at end of file |
|
150 | 156 | dlgui_about.setupUi(dlg_about) No newline at end of file |
|
151 | 157 | dlg_about.exec_() No newline at end of file |
|
152 | 158 | No newline at end of file |
|
153 | 159 | No newline at end of file |
|
154 | 160 | #============================================================================== No newline at end of file |
|
155 | 161 | # Manejo de los eventos No newline at end of file |
|
156 | 162 | #============================================================================== No newline at end of file |
|
157 | 163 | No newline at end of file |
|
158 | 164 | #----------------------------------------------------- Obtencion de la ruta de los datos --------------------------------------------------------------- No newline at end of file |
|
159 | 165 | No newline at end of file |
|
160 | 166 | @pyqtSignature("") No newline at end of file |
|
161 | 167 | def on_btnDpath_clicked(self): No newline at end of file |
|
162 | 168 | """ No newline at end of file |
|
163 | 169 | Permite seleccionar graficamente el direcorio de los datos a grabar No newline at end of file |
|
164 | 170 | """ No newline at end of file |
|
165 | 171 | self.var_Dpath= str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) No newline at end of file |
|
166 | 172 | self.txtDpath.setText(self.var_Dpath) No newline at end of file |
|
167 | 173 | self.statusDpath = functions.dir_exists(self.var_Dpath, self) No newline at end of file |
|
168 | 174 | functions.load_days(self) No newline at end of file |
|
169 | 175 | No newline at end of file |
|
170 | 176 | No newline at end of file |
|
171 | 177 | @pyqtSignature("") No newline at end of file |
|
172 | 178 | def on_txtDpath_editingFinished(self): No newline at end of file |
|
173 | 179 | """ No newline at end of file |
|
174 | 180 | Carga la ruta editada y verifica que sea correcta y carga la lista de dias No newline at end of file |
|
175 | 181 | """ No newline at end of file |
|
176 | 182 | self.var_Dpath=str(self.txtDpath.text()) #Se carga la variable con la ruta recien editada No newline at end of file |
|
177 | 183 | self.statusDpath = functions.dir_exists(self.var_Dpath, self) No newline at end of file |
|
178 | 184 | functions.load_days(self) No newline at end of file |
|
179 | 185 | No newline at end of file |
|
180 | 186 | No newline at end of file |
|
181 | 187 | #----------------------------------------------------- Obtencion de las ruta del proyecto --------------------------------------------------------------- No newline at end of file |
|
182 | 188 | No newline at end of file |
|
183 | 189 | @pyqtSignature("") No newline at end of file |
|
184 | 190 | def on_btnRpath_clicked(self): No newline at end of file |
|
185 | 191 | """ No newline at end of file |
|
186 | 192 | Permite seleccionar graficamente el direcorio del proyecto No newline at end of file |
|
187 | 193 | """ No newline at end of file |
|
188 | 194 | self.var_Rpath = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) No newline at end of file |
|
189 | 195 | self.txtRpath.setText(self.var_Rpath) No newline at end of file |
|
190 | 196 | self.statusRpath = functions.dir_exists(self.var_Rpath, self) No newline at end of file |
|
191 | 197 | No newline at end of file |
|
192 | 198 | No newline at end of file |
|
193 | 199 | @pyqtSignature("") No newline at end of file |
|
194 | 200 | def on_txtRpath_editingFinished(self): No newline at end of file |
|
195 | 201 | """ No newline at end of file |
|
196 | 202 | Valida la ruta del proyecto No newline at end of file |
|
197 | 203 | """ No newline at end of file |
|
198 | 204 | self.var_Rpath = str(self.txtRpath.text()) #Se carga la variable con la ruta recien editada No newline at end of file |
|
199 | 205 | self.statusRpath = functions.dir_exists(self.var_Rpath, self) No newline at end of file |
|
200 | 206 | No newline at end of file |
|
201 | 207 | No newline at end of file |
|
202 | 208 | #----------------------------------------------------- Tipo de datos --------------------------------------------------------------- No newline at end of file |
|
203 | 209 | No newline at end of file |
|
204 | 210 | @pyqtSignature("int") No newline at end of file |
|
205 | 211 | def on_lstDtype_activated(self, index): No newline at end of file |
|
206 | 212 | """ No newline at end of file |
|
207 | 213 | Permite elegir entre los tipos de archivos No newline at end of file |
|
208 | 214 | """ No newline at end of file |
|
209 | 215 | self.txtDtype.setReadOnly(True) No newline at end of file |
|
210 | 216 | if index == 0: No newline at end of file |
|
211 | 217 | self.var_Dtype ='r' No newline at end of file |
|
212 | 218 | elif index == 1: No newline at end of file |
|
213 | 219 | self.var_Dtype ='pdata' No newline at end of file |
|
214 | 220 | elif index == 2: No newline at end of file |
|
215 | 221 | self.var_Dtype ='sswma' No newline at end of file |
|
216 | 222 | else : No newline at end of file |
|
217 | 223 | self.var_Dtype ='' No newline at end of file |
|
218 | 224 | self.txtDtype.setReadOnly(False) No newline at end of file |
|
219 | 225 | No newline at end of file |
|
220 | 226 | self.txtDtype.setText(self.var_Dtype) No newline at end of file |
|
221 | 227 | functions.load_days(self) #llamada a funcion No newline at end of file |
|
222 | 228 | No newline at end of file |
|
223 | 229 | @pyqtSignature("") No newline at end of file |
|
224 | 230 | def on_txtDtype_editingFinished(self): No newline at end of file |
|
225 | 231 | self.var_Dtype=str(self.txtDtype.text()) No newline at end of file |
|
226 | 232 | functions.load_days(self) #llamada a funcion No newline at end of file |
|
227 | 233 | No newline at end of file |
|
228 | 234 | No newline at end of file |
|
229 | 235 | #----------------------------------------------------- Etiqueta --------------------------------------------------------------- No newline at end of file |
|
230 | 236 | No newline at end of file |
|
231 | 237 | @pyqtSignature("") No newline at end of file |
|
232 | 238 | def on_txtElabel_editingFinished(self): No newline at end of file |
|
233 | 239 | self.var_Elabel = str(self.txtElabel.text()) No newline at end of file |
|
234 | 240 | No newline at end of file |
|
235 | 241 | #----------------------------------------------------- Numero de copias --------------------------------------------------------------- No newline at end of file |
|
236 | 242 | @pyqtSignature("") No newline at end of file |
|
237 | 243 | def on_txtCopys_editingFinished(self): No newline at end of file |
|
238 | 244 | self.var_Copys = self.txtCopys.value() No newline at end of file |
|
239 | 245 | No newline at end of file |
|
240 | 246 | #----------------------------------------------------- Seleccion del rango de fechas --------------------------------------------------------------- No newline at end of file |
|
241 | 247 | No newline at end of file |
|
242 | 248 | @pyqtSignature("int") #CLOSED No newline at end of file |
|
243 | 249 | def on_lstStartDay_activated(self, index): No newline at end of file |
|
244 | 250 | """ No newline at end of file |
|
245 | 251 | Cambia la lista de opciones en lstStopDay No newline at end of file |
|
246 | 252 | """ No newline at end of file |
|
247 | 253 | var_StopDay_index=self.lstStopDay.count() - self.lstStopDay.currentIndex() No newline at end of file |
|
248 | 254 | self.lstStopDay.clear() No newline at end of file |
|
249 | 255 | No newline at end of file |
|
250 | 256 | for i in self.var_list[index:]: No newline at end of file |
|
251 | 257 | self.lstStopDay.addItem(i) No newline at end of file |
|
252 | 258 | No newline at end of file |
|
253 | 259 | self.lstStopDay.setCurrentIndex(self.lstStopDay.count() - var_StopDay_index) No newline at end of file |
|
254 | 260 | No newline at end of file |
|
255 | 261 | functions.get_sub_list(self) No newline at end of file |
|
256 | 262 | No newline at end of file |
|
257 | 263 | No newline at end of file |
|
258 | 264 | @pyqtSignature("int") #CLOSED No newline at end of file |
|
259 | 265 | def on_lstStopDay_activated(self, index): No newline at end of file |
|
260 | 266 | """ No newline at end of file |
|
261 | 267 | Cambia la lista de opciones en lstStartDay No newline at end of file |
|
262 | 268 | """ No newline at end of file |
|
263 | 269 | var_StartDay_index=self.lstStartDay.currentIndex() No newline at end of file |
|
264 | 270 | var_end_index = self.lstStopDay.count() - index No newline at end of file |
|
265 | 271 | self.lstStartDay.clear() No newline at end of file |
|
266 | 272 | No newline at end of file |
|
267 | 273 | for i in self.var_list[:len(self.var_list) - var_end_index + 1]: No newline at end of file |
|
268 | 274 | self.lstStartDay.addItem(i) No newline at end of file |
|
269 | 275 | No newline at end of file |
|
270 | 276 | self.lstStartDay.setCurrentIndex(var_StartDay_index) No newline at end of file |
|
271 | 277 | No newline at end of file |
|
272 | 278 | functions.get_sub_list(self) No newline at end of file |
|
273 | 279 | No newline at end of file |
|
274 | 280 | No newline at end of file |
|
275 | 281 | #----------------------------------------------------- Capacidad del dispositivo de grabacion --------------------------------------------------------------- No newline at end of file |
|
276 | 282 | No newline at end of file |
|
277 | 283 | @pyqtSignature("") No newline at end of file |
|
278 | 284 | def on_txtDcapacity_editingFinished(self): No newline at end of file |
|
279 | 285 | self.var_Dcapacity = self.txtDcapacity.value() No newline at end of file |
|
280 | 286 | No newline at end of file |
|
281 | 287 | No newline at end of file |
|
282 | 288 | @pyqtSignature("int") #CLOSED No newline at end of file |
|
283 | 289 | def on_lstDcapacity_activated(self, index): No newline at end of file |
|
284 | 290 | """ No newline at end of file |
|
285 | 291 | Permite elegir el tamaño del disco No newline at end of file |
|
286 | 292 | """ No newline at end of file |
|
287 | 293 | if index == 0: No newline at end of file |
|
288 | 294 | var_size=25.0 No newline at end of file |
|
289 | 295 | elif index == 1: No newline at end of file |
|
290 | 296 | var_size=8.5 No newline at end of file |
|
291 | 297 | elif index == 2: No newline at end of file |
|
292 | 298 | var_size=4.7 No newline at end of file |
|
293 | 299 | elif index == 3: No newline at end of file |
|
294 | 300 | var_size=0.7 No newline at end of file |
|
295 | 301 | No newline at end of file |
|
296 | 302 | if index != 4: No newline at end of file |
|
297 | 303 | self.txtDcapacity.setValue(var_size*10**9/1024**2) No newline at end of file |
|
298 | 304 | self.txtDcapacity.setReadOnly(True) No newline at end of file |
|
299 | 305 | else: No newline at end of file |
|
300 | 306 | self.txtDcapacity.setValue(100.0) No newline at end of file |
|
301 | 307 | self.txtDcapacity.setReadOnly(False) No newline at end of file |
|
302 | 308 | No newline at end of file |
|
303 | 309 | self.var_lstDcapacity = self.lstDcapacity.currentIndex() No newline at end of file |
|
304 | 310 | self.var_Dcapacity = self.txtDcapacity.value() No newline at end of file |
|
305 | 311 | No newline at end of file |
|
306 | 312 | #----------------------------------------------------- Testeo de las unidades de grabacion --------------------------------------------------------------- No newline at end of file |
|
307 | 313 | No newline at end of file |
|
308 | 314 | @pyqtSignature("") No newline at end of file |
|
309 | 315 | def on_btnTdevA_clicked(self): No newline at end of file |
|
310 | 316 | var_dev = str(self.txtDeviceA.text()) No newline at end of file |
|
311 | 317 | var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev No newline at end of file |
|
312 | 318 | commands.getstatusoutput(var_cmd) No newline at end of file |
|
313 | 319 | No newline at end of file |
|
314 | 320 | @pyqtSignature("") No newline at end of file |
|
315 | 321 | def on_btnTdevB_clicked(self): No newline at end of file |
|
316 | 322 | var_dev = str(self.txtDeviceB.text()) No newline at end of file |
|
317 | 323 | var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev No newline at end of file |
|
318 | 324 | commands.getstatusoutput(var_cmd) No newline at end of file |
|
319 | 325 | No newline at end of file |
|
320 | 326 | @pyqtSignature("") No newline at end of file |
|
321 | 327 | def on_btnTdevC_clicked(self): No newline at end of file |
|
322 | 328 | var_dev = str(self.txtDeviceC.text()) No newline at end of file |
|
323 | 329 | var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev No newline at end of file |
|
324 | 330 | commands.getstatusoutput(var_cmd) No newline at end of file |
|
325 | 331 | No newline at end of file |
|
326 | 332 | @pyqtSignature("") No newline at end of file |
|
327 | 333 | def on_btnTdevD_clicked(self): No newline at end of file |
|
328 | 334 | var_dev = str(self.txtDeviceD.text()) No newline at end of file |
|
329 | 335 | var_cmd = 'eject ' + var_dev + '; eject -t ' + var_dev No newline at end of file |
|
330 | 336 | commands.getstatusoutput(var_cmd) No newline at end of file |
|
331 | 337 | No newline at end of file |
|
332 | 338 | No newline at end of file |
|
333 | 339 | #============================================================================== No newline at end of file |
|
334 | 340 | # Botones para la generacion de los archivos de configuracion No newline at end of file |
|
335 | 341 | #============================================================================== No newline at end of file |
|
336 | 342 | No newline at end of file |
|
337 | 343 | #----------------------------------------------------- Generacion de la configuracion usando los parametros --------------------------------------------------------------- No newline at end of file |
|
338 | 344 | No newline at end of file |
|
339 | 345 | @pyqtSignature("") No newline at end of file |
|
340 | 346 | def on_btnGbkp_clicked(self): No newline at end of file |
|
341 | 347 | """ No newline at end of file |
|
342 | 348 | Generacion de archivos de configuracion usando los parametros No newline at end of file |
|
343 | 349 | """ No newline at end of file |
|
344 | 350 | No newline at end of file |
|
345 | 351 | if functions.validate_parameters(self) == False: No newline at end of file |
|
346 | 352 | return No newline at end of file |
|
347 | 353 | No newline at end of file |
|
348 | 354 | #Crea las carpetas en la ruta del proyecto y verifica que se crearon correctamente No newline at end of file |
|
349 | 355 | list_dirs=['gpath','iso','ppath', 'tmpdata'] No newline at end of file |
|
350 | 356 | bool_make_dirs = functions.make_dirs(list_dirs, self) No newline at end of file |
|
351 | 357 | if bool_make_dirs == False: No newline at end of file |
|
352 | 358 | return No newline at end of file |
|
353 | 359 | No newline at end of file |
|
354 | 360 | var_files_list = functions.list_files(self) #Se obtiene la lista de archivos a grabar No newline at end of file |
|
355 | 361 | No newline at end of file |
|
356 | 362 | self.var_Discs = functions.make_files_dat(var_files_list, self) #Se crean los archivos .dat No newline at end of file |
|
357 | 363 | No newline at end of file |
|
358 | 364 | functions.make_files_print(self) # Se crean los archivos .print No newline at end of file |
|
359 | 365 | No newline at end of file |
|
360 | 366 | functions2.make_parameters_conf(self) # se crea el archivo parameters.conf No newline at end of file |
|
361 | 367 | No newline at end of file |
|
362 | 368 | self.txtInfo.append("Total number of discs for recording: "+str(self.var_Discs * self.var_Copys)) No newline at end of file |
|
363 | 369 | No newline at end of file |
|
364 | 370 | #Se bloquean los parametros de configuracion No newline at end of file |
|
365 | 371 | functions2.enabled_items1(True, self) No newline at end of file |
|
366 | 372 | self.var_disc_n = 1 No newline at end of file |
|
367 | 373 | self.var_copy_n = 1 No newline at end of file |
|
368 | 374 | self.bool_first_iso = True No newline at end of file |
|
369 | 375 | self.var_burned_discs = 0 #numero de discos grabados No newline at end of file |
|
370 | 376 | No newline at end of file |
|
371 | 377 | No newline at end of file |
|
372 | 378 | #----------------------------------------------------- Permite reiniciar la configuracion --------------------------------------------------------------- No newline at end of file |
|
373 | 379 | No newline at end of file |
|
374 | 380 | @pyqtSignature("") No newline at end of file |
|
375 | 381 | def on_btnRestart_clicked(self): No newline at end of file |
|
376 | 382 | """ No newline at end of file |
|
377 | 383 | Permite que se puedan cambiar los parametros No newline at end of file |
|
378 | 384 | """ No newline at end of file |
|
379 | 385 | if os.path.isfile("parameters.conf"): No newline at end of file |
|
380 | 386 | os.remove("parameters.conf") No newline at end of file |
|
381 | 387 | if os.path.isfile("burning.conf"): No newline at end of file |
|
382 | 388 | os.remove("burning.conf") No newline at end of file |
|
383 | 389 | No newline at end of file |
|
384 | 390 | functions2.enabled_items1(False, self) No newline at end of file |
|
385 | 391 | self.btnStartburn.setText("Start Burn") No newline at end of file |
|
386 | 392 | self.txtInfo.clear() No newline at end of file |
|
387 | 393 | No newline at end of file |
|
388 | 394 | No newline at end of file |
|
389 | 395 | No newline at end of file |
|
390 | 396 | #============================================================================== No newline at end of file |
|
391 | 397 | # Acciones de los procesos No newline at end of file |
|
392 | 398 | #============================================================================== No newline at end of file |
|
393 | 399 | No newline at end of file |
|
394 | 400 | #------------------------------------------------ Funciones del proceso de creacion del iso ------------------------------------------------------ No newline at end of file |
|
395 | 401 | No newline at end of file |
|
396 | 402 | def readOuput_iso(self): No newline at end of file |
|
397 | 403 | self.txtProgress.setText("stdout iso: " + QtCore.QString(self.process_iso.readAllStandardOutput())) No newline at end of file |
|
398 | 404 | No newline at end of file |
|
399 | 405 | def readError_iso(self): No newline at end of file |
|
400 | 406 | self.txtProgress.setText("stderr iso: " + QtCore.QString(self.process_iso.readAllStandardError())) No newline at end of file |
|
401 | 407 | No newline at end of file |
|
402 | 408 | def finished_iso(self): No newline at end of file |
|
403 | 409 | self.txtProgress.clear() No newline at end of file |
|
404 | 410 | No newline at end of file |
|
405 | 411 | if not(self.bool_state_burning): No newline at end of file |
|
406 | 412 | return No newline at end of file |
|
407 | 413 | No newline at end of file |
|
408 | 414 | if self.process_iso.exitCode() == 0: No newline at end of file |
|
409 | 415 | self.txtInfo.append("------Iso file: "+functions.i2s(self.var_disc_n)+" created successfully\n") No newline at end of file |
|
410 | 416 | self.var_step = 1 No newline at end of file |
|
411 | 417 | self.function_burn() No newline at end of file |
|
412 | 418 | No newline at end of file |
|
413 | 419 | else: No newline at end of file |
|
414 | 420 | self.txtInfo.append("#####Error creating iso file "+functions.i2s(self.var_disc_n) No newline at end of file |
|
415 | 421 | +" , code "+QtCore.QString(self.process_iso.exitCode())) No newline at end of file |
|
416 | 422 | self.txtInfo.append("Please check the data") No newline at end of file |
|
417 | 423 | self.txtInfo.append("FATAL ERROR") No newline at end of file |
|
418 | 424 | No newline at end of file |
|
419 | 425 | #----------------------------------------------------- Funciones del proceso de grabado --------------------------------------------------------------- No newline at end of file |
|
420 | 426 | No newline at end of file |
|
421 | 427 | def readOuput_burn(self): No newline at end of file |
|
422 | 428 | self.txtProgress.setText("stdout burn: " + QtCore.QString(self.process_burn.readAllStandardOutput())) No newline at end of file |
|
423 | 429 | No newline at end of file |
|
424 | 430 | def readError_burn(self): No newline at end of file |
|
425 | 431 | self.txtProgress.setText("stderr burn: " + QtCore.QString(self.process_burn.readAllStandardError())) No newline at end of file |
|
426 | 432 | No newline at end of file |
|
427 | 433 | def finished_burn(self): No newline at end of file |
|
428 | 434 | self.txtProgress.clear() No newline at end of file |
|
429 | 435 | No newline at end of file |
|
430 | 436 | #Si se paro el proceso manualmente se termina No newline at end of file |
|
431 | 437 | if not(self.bool_state_burning): No newline at end of file |
|
432 | 438 | return No newline at end of file |
|
433 | 439 | No newline at end of file |
|
434 | 440 | if self.process_burn.exitCode() == 0: No newline at end of file |
|
435 | 441 | self.txtInfo.append("-----Complete recording, disc: "+str(self.var_disc_n)+" copy: "+str(self.var_copy_n)) No newline at end of file |
|
436 | 442 | functions2.update_message(1, "COMPLETED", self) No newline at end of file |
|
437 | 443 | self.var_step = 2 No newline at end of file |
|
438 | 444 | self.function_check() No newline at end of file |
|
439 | 445 | No newline at end of file |
|
440 | 446 | else: No newline at end of file |
|
441 | 447 | self.txtInfo.append("#######Error recording, disc: "+functions.i2s(self.var_disc_n)+" copy: " No newline at end of file |
|
442 | 448 | +functions.i2s(self.var_copy_n)+", code "+QtCore.QString(self.process_burn.exitCode())) No newline at end of file |
|
443 | 449 | functions2.update_message(1, "ERROR", self) No newline at end of file |
|
444 | 450 | No newline at end of file |
|
445 | 451 | functions.is_last_disc_and_copy(self) No newline at end of file |
|
446 | 452 | No newline at end of file |
|
447 | 453 | No newline at end of file |
|
448 | 454 | #----------------------------------------------------- Funciones del proceso de verificacion --------------------------------------------------------------- No newline at end of file |
|
449 | 455 | No newline at end of file |
|
450 | 456 | def readOuput_check(self): No newline at end of file |
|
451 | 457 | self.txtProgress.setText("stdout check: " + QtCore.QString(self.process_check.readAllStandardOutput())) No newline at end of file |
|
452 | 458 | No newline at end of file |
|
453 | 459 | def readError_check(self): No newline at end of file |
|
454 | 460 | self.txtProgress.setText("stderr check: " + QtCore.QString(self.process_check.readAllStandardError())) No newline at end of file |
|
455 | 461 | No newline at end of file |
|
456 | 462 | def finished_check(self): No newline at end of file |
|
457 | 463 | self.txtProgress.clear() No newline at end of file |
|
458 | 464 | No newline at end of file |
|
459 | 465 | if not(self.bool_state_burning): No newline at end of file |
|
460 | 466 | return No newline at end of file |
|
461 | 467 | No newline at end of file |
|
462 | 468 | if self.process_check.exitCode() == 0: No newline at end of file |
|
463 | 469 | self.txtInfo.append("--------Complete checking, disc: "+str(self.var_disc_n)+" copy: "+str(self.var_copy_n)) No newline at end of file |
|
464 | 470 | functions2.update_message(2, "CHECKED", self) No newline at end of file |
|
465 | 471 | No newline at end of file |
|
466 | 472 | else: No newline at end of file |
|
467 | 473 | self.txtInfo.append("#######Error checking, disc: "+functions.i2s(self.var_disc_n)+" copy: " No newline at end of file |
|
468 | 474 | +functions.i2s(self.var_copy_n)+", code "+QtCore.QString(self.process_check.exitCode())) No newline at end of file |
|
469 | 475 | functions2.update_message(2, "ERROR", self) No newline at end of file |
|
470 | 476 | No newline at end of file |
|
471 | 477 | #borrar el contenido de tmpdata No newline at end of file |
|
472 | 478 | var_tmpdata=self.var_Rpath+"/tmpdata" No newline at end of file |
|
473 | 479 | No newline at end of file |
|
474 | 480 | bool_return = functions.remove_dir(var_tmpdata, self) No newline at end of file |
|
475 | 481 | if not(bool_return): No newline at end of file |
|
476 | 482 | self.txtInfo.append("Error deleting directory: "+var_tmpdata) No newline at end of file |
|
477 | 483 | self.bool_state_burning = False No newline at end of file |
|
478 | 484 | return No newline at end of file |
|
479 | 485 | No newline at end of file |
|
480 | 486 | bool_return = functions.make_dir(var_tmpdata, self) No newline at end of file |
|
481 | 487 | if not(bool_return): No newline at end of file |
|
482 | 488 | self.txtInfo.append("Error creating directory:"+ var_tmpdata) No newline at end of file |
|
483 | 489 | self.bool_state_burning = False No newline at end of file |
|
484 | 490 | return No newline at end of file |
|
485 | 491 | No newline at end of file |
|
486 | 492 | functions.is_last_disc_and_copy(self) No newline at end of file |
|
487 | 493 | No newline at end of file |
|
494 | #----------------------------------------------------- Funciones del proceso de verificacion manual --------------------------------------------------------------- | |
|
No newline at end of file | ||
|
495 | ||
|
No newline at end of file | ||
|
496 | def readOuput_manual_check(self): | |
|
No newline at end of file | ||
|
497 | self.txtProgress.setText("stdout check: " + QtCore.QString(self.process_manual_check.readAllStandardOutput())) | |
|
No newline at end of file | ||
|
498 | ||
|
No newline at end of file | ||
|
499 | def readError_manual_check(self): | |
|
No newline at end of file | ||
|
500 | self.txtProgress.setText("stderr check: " + QtCore.QString(self.process_manual_check.readAllStandardError())) | |
|
No newline at end of file | ||
|
501 | ||
|
No newline at end of file | ||
|
502 | def finished_manual_check(self): | |
|
No newline at end of file | ||
|
503 | self.txtProgress.clear() | |
|
No newline at end of file | ||
|
504 | ||
|
No newline at end of file | ||
|
505 | if not(self.bool_state_manual_check): | |
|
No newline at end of file | ||
|
506 | return | |
|
No newline at end of file | ||
|
507 | ||
|
No newline at end of file | ||
|
508 | if self.process_manual_check.exitCode() == 0: | |
|
No newline at end of file | ||
|
509 | self.txtInfo.append("--------Complete checking, disc: "+str(self.var_n_check_dirs + 1)) | |
|
No newline at end of file | ||
|
510 | functions2.update_message(2, "CHECKED", self, index=self.var_n_check_dirs) | |
|
No newline at end of file | ||
|
511 | ||
|
No newline at end of file | ||
|
512 | else: | |
|
No newline at end of file | ||
|
513 | self.txtInfo.append("#######Error checking, disc: "+str(self.var_n_check_dirs + 1) | |
|
No newline at end of file | ||
|
514 | +", code "+QtCore.QString(self.process_manual_check.exitCode())) | |
|
No newline at end of file | ||
|
515 | functions2.update_message(2, "ERROR", self, index=self.var_n_check_dirs) | |
|
No newline at end of file | ||
|
516 | ||
|
No newline at end of file | ||
|
517 | #borrar el contenido de tmpdata | |
|
No newline at end of file | ||
|
518 | var_tmpdata=self.var_Rpath+"/tmpdata" | |
|
No newline at end of file | ||
|
519 | ||
|
No newline at end of file | ||
|
520 | bool_return = functions.remove_dir(var_tmpdata, self) | |
|
No newline at end of file | ||
|
521 | if not(bool_return): | |
|
No newline at end of file | ||
|
522 | self.txtInfo.append("Error deleting directory: "+var_tmpdata) | |
|
No newline at end of file | ||
|
523 | self.bool_state_burning = False | |
|
No newline at end of file | ||
|
524 | return | |
|
No newline at end of file | ||
|
525 | ||
|
No newline at end of file | ||
|
526 | bool_return = functions.make_dir(var_tmpdata, self) | |
|
No newline at end of file | ||
|
527 | if not(bool_return): | |
|
No newline at end of file | ||
|
528 | self.txtInfo.append("Error creating directory:"+ var_tmpdata) | |
|
No newline at end of file | ||
|
529 | self.bool_state_burning = False | |
|
No newline at end of file | ||
|
530 | return | |
|
No newline at end of file | ||
|
531 | ||
|
No newline at end of file | ||
|
532 | if self.var_n_check_dirs >= len(self.list_check_dirs) : | |
|
No newline at end of file | ||
|
533 | self.bool_state_manual_check = False | |
|
No newline at end of file | ||
|
534 | return | |
|
No newline at end of file | ||
|
535 | ||
|
No newline at end of file | ||
|
536 | self.var_n_check_dirs +=1 | |
|
No newline at end of file | ||
|
537 | self.manual_check() No newline at end of file | |
|
488 | 538 | No newline at end of file |
|
489 | 539 | No newline at end of file |
|
490 | 540 | #============================================================================== No newline at end of file |
|
491 | 541 | # Botones para el proceso de grabacion No newline at end of file |
|
492 | 542 | #============================================================================== No newline at end of file |
|
493 | 543 | No newline at end of file |
|
494 | 544 | #----------------------------------------------------- Iniciar proceso de grabacion --------------------------------------------------------------- No newline at end of file |
|
495 | 545 | No newline at end of file |
|
496 | 546 | @pyqtSignature("") No newline at end of file |
|
497 | 547 | def on_btnStartburn_clicked(self): No newline at end of file |
|
498 | 548 | """ No newline at end of file |
|
499 | 549 | Se inicia el proceso de grabacion No newline at end of file |
|
500 | 550 | """ No newline at end of file |
|
501 | 551 | #Verifica que exista algun dispositivo de grabacion seleccionado No newline at end of file |
|
502 | 552 | if not(functions2.selected_devices(self)): No newline at end of file |
|
503 | 553 | self.txtInfo.append("There is no recording device selected") No newline at end of file |
|
504 | 554 | return No newline at end of file |
|
505 | 555 | No newline at end of file |
|
506 | 556 | # #Lista los dispositivos de grabacion a usar No newline at end of file |
|
507 | 557 | # for dev in self.var_devices: No newline at end of file |
|
508 | 558 | # self.txtInfo.append("recording device :"+dev) No newline at end of file |
|
509 | 559 | No newline at end of file |
|
510 | 560 | self.bool_state_burning = True No newline at end of file |
|
511 | 561 | functions2.enabled_items2(True, self) No newline at end of file |
|
512 | 562 | No newline at end of file |
|
513 | 563 | if self.bool_first_iso == True: No newline at end of file |
|
514 | 564 | self.txtInfo.append("BUTTON: on_btnStartburn_clicked") No newline at end of file |
|
515 | 565 | self.var_step = 4 No newline at end of file |
|
516 | 566 | self.function_eject() No newline at end of file |
|
517 | 567 | return No newline at end of file |
|
518 | 568 | No newline at end of file |
|
519 | 569 | if self.var_step == 0: No newline at end of file |
|
520 | 570 | self.function_iso() No newline at end of file |
|
521 | 571 | return No newline at end of file |
|
522 | 572 | No newline at end of file |
|
523 | 573 | if self.var_step == 1: No newline at end of file |
|
524 | 574 | self.function_burn() No newline at end of file |
|
525 | 575 | return No newline at end of file |
|
526 | 576 | No newline at end of file |
|
527 | 577 | #----------------------------------------------------- Funcion para el grabado --------------------------------------------------------------- No newline at end of file |
|
528 | 578 | No newline at end of file |
|
529 | 579 | def function_iso(self): No newline at end of file |
|
530 | 580 | #Creacion del archivo.iso para la grabacion No newline at end of file |
|
531 | 581 | if self.var_step == 0: No newline at end of file |
|
532 | 582 | self.txtInfo.append("########## Disc number: "+str(self.var_disc_n)+"##########") No newline at end of file |
|
533 | 583 | self.txtInfo.append("------Creating iso file number: "+str(self.var_disc_n)) No newline at end of file |
|
534 | 584 | No newline at end of file |
|
535 | 585 | var_cmd = functions.cmd_iso(self) No newline at end of file |
|
536 | 586 | No newline at end of file |
|
537 | 587 | if self.var_real_show_cmd == True: No newline at end of file |
|
538 | 588 | self.txtInfo.append("CMD: "+var_cmd) No newline at end of file |
|
539 | 589 | No newline at end of file |
|
540 | 590 | if self.var_real_iso == False: No newline at end of file |
|
541 | 591 | self.txtInfo.append('**function_iso') No newline at end of file |
|
542 | 592 | var_cmd="echo 'function_iso'" No newline at end of file |
|
543 | 593 | No newline at end of file |
|
544 | 594 | self.process_iso.start(var_cmd) No newline at end of file |
|
545 | 595 | No newline at end of file |
|
546 | 596 | def function_burn(self): No newline at end of file |
|
547 | 597 | #Grabacion de los DVDs No newline at end of file |
|
548 | 598 | No newline at end of file |
|
549 | 599 | if self.var_step == 1: No newline at end of file |
|
550 | 600 | self.txtInfo.append("------Recording disc: "+str(self.var_disc_n)+", copy:"+str(self.var_copy_n)) No newline at end of file |
|
551 | 601 | functions2.update_message(1, "BURNING", self) No newline at end of file |
|
552 | 602 | No newline at end of file |
|
553 | 603 | var_cmd = functions.cmd_burn(self) No newline at end of file |
|
554 | 604 | No newline at end of file |
|
555 | 605 | if self.var_real_show_cmd == True: No newline at end of file |
|
556 | 606 | self.txtInfo.append("CMD: "+var_cmd) No newline at end of file |
|
557 | 607 | No newline at end of file |
|
558 | 608 | if self.var_real_burn == False: No newline at end of file |
|
559 | 609 | self.txtInfo.append('**function_burn') No newline at end of file |
|
560 | 610 | var_cmd="echo 'function_burn'" No newline at end of file |
|
561 | 611 | No newline at end of file |
|
562 | 612 | self.process_burn.start(var_cmd) No newline at end of file |
|
563 | 613 | No newline at end of file |
|
564 | 614 | def function_check(self): No newline at end of file |
|
565 | 615 | #Verificacion de los discos No newline at end of file |
|
566 | 616 | if self.var_step == 2: No newline at end of file |
|
567 | 617 | self.txtInfo.append("-----------checking disc:"+str(self.var_disc_n)+", copy:"+str(self.var_copy_n)) No newline at end of file |
|
568 | 618 | No newline at end of file |
|
569 | 619 | functions2.eject_one_device(self) No newline at end of file |
|
570 | 620 | functions2.eject_t_one_device(self) No newline at end of file |
|
571 | 621 | self.txtInfo.append("Waiting ...") No newline at end of file |
|
572 | 622 | time .sleep(20) No newline at end of file |
|
573 | 623 | No newline at end of file |
|
574 | 624 | functions2.update_message(2, "CHECKING", self) No newline at end of file |
|
575 | 625 | No newline at end of file |
|
576 | 626 | dev_sr = functions2.get_dev_sr(self) No newline at end of file |
|
577 | 627 | var_cmd = functions.cmd_check(dev_sr, self) No newline at end of file |
|
578 | 628 | No newline at end of file |
|
579 | 629 | if self.var_real_show_cmd == True: No newline at end of file |
|
580 | 630 | self.txtInfo.append("CMD: "+var_cmd) No newline at end of file |
|
581 | 631 | No newline at end of file |
|
582 | 632 | if self.var_real_check == False: No newline at end of file |
|
583 | 633 | self.txtInfo.append('**function_check') No newline at end of file |
|
584 | 634 | var_cmd="echo 'function_check'" No newline at end of file |
|
585 | 635 | No newline at end of file |
|
586 | 636 | self.process_check.start(var_cmd) No newline at end of file |
|
587 | 637 | No newline at end of file |
|
588 | 638 | #OK No newline at end of file |
|
589 | 639 | def function_eject(self): No newline at end of file |
|
590 | 640 | self.txtInfo.append("Ejecting recording devices") No newline at end of file |
|
591 | 641 | self.txtInfo.append("Please insert blank discs") No newline at end of file |
|
592 | 642 | No newline at end of file |
|
593 | 643 | if self.var_real_eject == True: No newline at end of file |
|
594 | 644 | functions2.eject_devices(self) # Expulsa las bandejas de los dispostivos de grabacion No newline at end of file |
|
595 | 645 | else: No newline at end of file |
|
596 | 646 | self.txtInfo.append("**functions2.eject_devices") No newline at end of file |
|
597 | 647 | No newline at end of file |
|
598 | 648 | self.btnStartburn.setText("Continue") No newline at end of file |
|
599 | 649 | self.btnStartburn.setEnabled(True) No newline at end of file |
|
600 | 650 | No newline at end of file |
|
601 | 651 | if self.bool_first_iso == True: No newline at end of file |
|
602 | 652 | self.bool_first_iso = False No newline at end of file |
|
603 | 653 | self.var_step = 0 No newline at end of file |
|
604 | 654 | No newline at end of file |
|
605 | 655 | elif self.var_copy_n == 1: No newline at end of file |
|
606 | 656 | self.var_step = 0 No newline at end of file |
|
607 | 657 | No newline at end of file |
|
608 | 658 | else: No newline at end of file |
|
609 | 659 | self.var_step = 1 No newline at end of file |
|
610 | 660 | No newline at end of file |
|
611 | 661 | def function_final(self): No newline at end of file |
|
612 | 662 | self.txtInfo.append("Recording process is complete") No newline at end of file |
|
613 | 663 | if os.path.isfile("parameters.conf"): No newline at end of file |
|
614 | 664 | os.remove("parameters.conf") No newline at end of file |
|
615 | 665 | if os.path.isfile("burning.conf"): No newline at end of file |
|
616 | 666 | os.remove("burning.conf") No newline at end of file |
|
617 | 667 | No newline at end of file |
|
618 | 668 | No newline at end of file |
|
619 | 669 | No newline at end of file |
|
620 | 670 | #----------------------------------------------------- Detener proceso de grabacion --------------------------------------------------------------- No newline at end of file |
|
621 | 671 | No newline at end of file |
|
622 | 672 | @pyqtSignature("") No newline at end of file |
|
623 | 673 | def on_btnStopburn_clicked(self): No newline at end of file |
|
624 | 674 | """ No newline at end of file |
|
625 | 675 | Slot documentation goes here. No newline at end of file |
|
626 | 676 | """ No newline at end of file |
|
627 | 677 | self.bool_state_burning = False No newline at end of file |
|
628 | 678 | No newline at end of file |
|
629 | 679 | if self.var_step == 0: No newline at end of file |
|
630 | 680 | self.process_iso.terminate() #Termina el proceso, si puede No newline at end of file |
|
631 | 681 | # self.process_iso.kill() #Mata el proceso, no es la forma adecuada, solo usar si terminate() no funciona No newline at end of file |
|
632 | 682 | elif self.var_step == 1: No newline at end of file |
|
633 | 683 | self.process_burn.terminate() No newline at end of file |
|
634 | 684 | elif self.var_step == 2: No newline at end of file |
|
635 | 685 | self.process_check.terminate() No newline at end of file |
|
636 | 686 | No newline at end of file |
|
637 | 687 | self.txtInfo.append("Stopped recording") No newline at end of file |
|
638 | 688 | functions2.enabled_items2(False, self) No newline at end of file |
|
639 | 689 | self.bool_first_iso = True No newline at end of file |
|
640 | 690 | No newline at end of file |
|
641 | 691 | No newline at end of file |
|
642 | 692 | No newline at end of file |
|
643 | 693 | #============================================================================== No newline at end of file |
|
644 | 694 | # Proceso verificacion manual No newline at end of file |
|
645 | 695 | #============================================================================== No newline at end of file |
|
646 | 696 | No newline at end of file |
|
647 | 697 | No newline at end of file |
|
648 | 698 | #----------------------------------------------------- Proceso de verificaion manual --------------------------------------------------------------- No newline at end of file |
|
649 | 699 | No newline at end of file |
|
650 | 700 | No newline at end of file |
|
651 | 701 | @pyqtSignature("") No newline at end of file |
|
652 | 702 | def on_btnTDpath_clicked(self): No newline at end of file |
|
653 | 703 | """ No newline at end of file |
|
654 | 704 | Slot documentation goes here. No newline at end of file |
|
655 | 705 | """ No newline at end of file |
|
656 | 706 | self.var_TDpath= str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) No newline at end of file |
|
657 | 707 | self.txtTDpath.setText(self.var_TDpath) No newline at end of file |
|
658 | 708 | self.statusTDpath = functions.dir_exists(self.var_TDpath, self) No newline at end of file |
|
709 | if self.statusTDpath: | |
|
No newline at end of file | ||
|
710 | self.btnCHstart.setEnabled(True) No newline at end of file | |
|
659 | 711 | No newline at end of file |
|
660 | 712 | No newline at end of file |
|
661 | 713 | @pyqtSignature("") No newline at end of file |
|
662 | 714 | def on_btnCHstart_clicked(self): No newline at end of file |
|
663 | 715 | """ No newline at end of file |
|
664 | 716 | Slot documentation goes here. No newline at end of file |
|
665 | 717 | """ |
|
718 | No newline at end of file | |
|
666 | pass No newline at end of file | |
|
No newline at end of file | ||
|
719 | if list_dirs == "FATAL ERROR": | |
|
No newline at end of file | ||
|
720 | self.txtInfo.append("ERROR") | |
|
No newline at end of file | ||
|
721 | return | |
|
No newline at end of file | ||
|
722 | ||
|
No newline at end of file | ||
|
723 | for i in list_dirs: | |
|
No newline at end of file | ||
|
724 | self.txtInfo.append(i) | |
|
No newline at end of file | ||
|
725 | ||
|
No newline at end of file | ||
|
726 | self.list_check_dirs = list_dirs #contiene los directorios donde estan montados los discos a verificar | |
|
No newline at end of file | ||
|
727 | self.var_n_check_dirs = 0 | |
|
No newline at end of file | ||
|
728 | self.bool_state_manual_check = True | |
|
No newline at end of file | ||
|
729 | ||
|
No newline at end of file | ||
|
730 | self.btnTDpath.setEnabled(False) #Deshabilito el boton que permite cambiar la ruta de verificacion | |
|
No newline at end of file | ||
|
731 | self.btnCHstart.setText("STOP") #Cambio el texto del boton | |
|
No newline at end of file | ||
|
732 | ||
|
No newline at end of file | ||
|
733 | self.function_manual_check() | |
|
No newline at end of file | ||
|
734 | ||
|
No newline at end of file | ||
|
735 | ||
|
No newline at end of file | ||
|
736 | def function_manual_check(self): | |
|
No newline at end of file | ||
|
737 | ||
|
No newline at end of file | ||
|
738 | #Verificacion de los discos | |
|
No newline at end of file | ||
|
739 | if self.bool_state_manual_check == True: | |
|
No newline at end of file | ||
|
740 | ||
|
No newline at end of file | ||
|
741 | self.txtInfo.append("-----------manually checking disc: "+self.var_n_check_dirs | |
|
No newline at end of file | ||
|
742 | +" data"+self.list_check_dirs[self.var_n_check_dirs]) | |
|
No newline at end of file | ||
|
743 | ||
|
No newline at end of file | ||
|
744 | functions2.update_message(2, "CHECKING", self, index=self.var_n_check_dirs) | |
|
No newline at end of file | ||
|
745 | ||
|
No newline at end of file | ||
|
746 | var_data_dir = self.list_check_dirs[self.var_n_check_dirs] #Carpeta donde esta montado el disco actual | |
|
No newline at end of file | ||
|
747 | ||
|
No newline at end of file | ||
|
748 | var_cmd = functions.cmd_manual_check(var_data_dir, self.var_TDpath) | |
|
No newline at end of file | ||
|
749 | ||
|
No newline at end of file | ||
|
750 | if self.var_real_show_cmd == True: | |
|
No newline at end of file | ||
|
751 | self.txtInfo.append("CMD: "+var_cmd) | |
|
No newline at end of file | ||
|
752 | ||
|
No newline at end of file | ||
|
753 | if self.var_real_manual_check == False: | |
|
No newline at end of file | ||
|
754 | self.txtInfo.append('**function_manual_check') | |
|
No newline at end of file | ||
|
755 | var_cmd="echo 'function_manual_check'" | |
|
No newline at end of file | ||
|
756 | ||
|
No newline at end of file | ||
|
757 | self.process_manual_check.start(var_cmd) | |
|
No newline at end of file | ||
|
758 | No newline at end of file |
@@ -1,58 +1,58 | |||
|
1 | 1 | # -*- coding: utf-8 -*- No newline at end of file |
|
2 | 2 | No newline at end of file |
|
3 | 3 | # Form implementation generated from reading ui file '/home/ricardoar/JRO_SVN/eric4/jro_backup_manager/ui/About.ui' No newline at end of file |
|
4 | 4 | # |
|
5 | No newline at end of file | |
|
5 | # Created: Tue May 25 00:54:30 2010 | |
|
No newline at end of file | ||
|
6 | No newline at end of file | |
|
6 | # by: PyQt4 UI code generator 4.7.2 No newline at end of file | |
|
7 | 7 | # No newline at end of file |
|
8 | 8 | # WARNING! All changes made in this file will be lost! No newline at end of file |
|
9 | 9 | No newline at end of file |
|
10 | 10 | from PyQt4 import QtCore, QtGui No newline at end of file |
|
11 | 11 | No newline at end of file |
|
12 | 12 | class Ui_About(object): No newline at end of file |
|
13 | 13 | def setupUi(self, About): No newline at end of file |
|
14 | 14 | About.setObjectName("About") No newline at end of file |
|
15 | 15 | About.resize(250, 230) No newline at end of file |
|
16 | 16 | About.setMinimumSize(QtCore.QSize(250, 230)) No newline at end of file |
|
17 | 17 | About.setMaximumSize(QtCore.QSize(250, 230)) No newline at end of file |
|
18 | 18 | self.verticalLayout = QtGui.QVBoxLayout(About) No newline at end of file |
|
19 | 19 | self.verticalLayout.setObjectName("verticalLayout") No newline at end of file |
|
20 | 20 | self.textEdit = QtGui.QTextEdit(About) No newline at end of file |
|
21 | 21 | self.textEdit.setMaximumSize(QtCore.QSize(16777215, 16777215)) No newline at end of file |
|
22 | 22 | self.textEdit.setReadOnly(True) No newline at end of file |
|
23 | 23 | self.textEdit.setObjectName("textEdit") No newline at end of file |
|
24 | 24 | self.verticalLayout.addWidget(self.textEdit) No newline at end of file |
|
25 | 25 | self.btnOK = QtGui.QPushButton(About) No newline at end of file |
|
26 | 26 | self.btnOK.setObjectName("btnOK") No newline at end of file |
|
27 | 27 | self.verticalLayout.addWidget(self.btnOK) No newline at end of file |
|
28 | 28 | No newline at end of file |
|
29 | 29 | self.retranslateUi(About) No newline at end of file |
|
30 | 30 | QtCore.QObject.connect(self.btnOK, QtCore.SIGNAL("clicked()"), About.close) No newline at end of file |
|
31 | 31 | QtCore.QMetaObject.connectSlotsByName(About) No newline at end of file |
|
32 | 32 | No newline at end of file |
|
33 | 33 | def retranslateUi(self, About): No newline at end of file |
|
34 | 34 | About.setWindowTitle(QtGui.QApplication.translate("About", "About", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
35 | 35 | self.textEdit.setHtml(QtGui.QApplication.translate("About", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" No newline at end of file |
|
36 | 36 | "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" No newline at end of file |
|
37 | 37 | "p, li { white-space: pre-wrap; }\n" No newline at end of file |
|
38 | 38 | "</style></head><body style=\" font-family:\'Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" No newline at end of file |
|
39 | 39 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">JRO BACKUP MANAGER</span></p>\n" No newline at end of file |
|
40 | 40 | "<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;\"></p>\n" No newline at end of file |
|
41 | 41 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Author:</span></p>\n" No newline at end of file |
|
42 | 42 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Ricardo Farino Alonso Rondón</span></p>\n" No newline at end of file |
|
43 | 43 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">ricardo.alonso@jro.igp.gob.pe</span></p>\n" No newline at end of file |
|
44 | 44 | "<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-style:italic;\"></p>\n" No newline at end of file |
|
45 | 45 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Jicamarca Radio Observatory</span></p>\n" No newline at end of file |
|
46 | 46 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-style:italic;\">Jicamarca - May 2010</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
47 | 47 | self.btnOK.setText(QtGui.QApplication.translate("About", "OK", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
48 | 48 | No newline at end of file |
|
49 | 49 | No newline at end of file |
|
50 | 50 | if __name__ == "__main__": No newline at end of file |
|
51 | 51 | import sys No newline at end of file |
|
52 | 52 | app = QtGui.QApplication(sys.argv) No newline at end of file |
|
53 | 53 | About = QtGui.QDialog() No newline at end of file |
|
54 | 54 | ui = Ui_About() No newline at end of file |
|
55 | 55 | ui.setupUi(About) No newline at end of file |
|
56 | 56 | About.show() No newline at end of file |
|
57 | 57 | sys.exit(app.exec_()) No newline at end of file |
|
58 | 58 | No newline at end of file |
@@ -1,708 +1,709 | |||
|
1 | 1 | # -*- coding: utf-8 -*- No newline at end of file |
|
2 | 2 | No newline at end of file |
|
3 | 3 | # Form implementation generated from reading ui file '/home/ricardoar/JRO_SVN/eric4/jro_backup_manager/ui/MainWindow.ui' No newline at end of file |
|
4 | 4 | # |
|
5 | No newline at end of file | |
|
5 | # Created: Tue May 25 00:54:29 2010 | |
|
No newline at end of file | ||
|
6 | No newline at end of file | |
|
6 | # by: PyQt4 UI code generator 4.7.2 No newline at end of file | |
|
7 | 7 | # No newline at end of file |
|
8 | 8 | # WARNING! All changes made in this file will be lost! No newline at end of file |
|
9 | 9 | No newline at end of file |
|
10 | 10 | from PyQt4 import QtCore, QtGui No newline at end of file |
|
11 | 11 | No newline at end of file |
|
12 | 12 | class Ui_MainWindow(object): No newline at end of file |
|
13 | 13 | def setupUi(self, MainWindow): No newline at end of file |
|
14 | 14 | MainWindow.setObjectName("MainWindow") |
|
15 | No newline at end of file | |
|
15 | MainWindow.resize(621, 717) No newline at end of file | |
|
16 | 16 | self.centralwidget = QtGui.QWidget(MainWindow) No newline at end of file |
|
17 | 17 | self.centralwidget.setObjectName("centralwidget") No newline at end of file |
|
18 | 18 | self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget) No newline at end of file |
|
19 | 19 | self.verticalLayout.setObjectName("verticalLayout") No newline at end of file |
|
20 | 20 | self.tabWidget = QtGui.QTabWidget(self.centralwidget) No newline at end of file |
|
21 | 21 | self.tabWidget.setEnabled(True) No newline at end of file |
|
22 | 22 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) No newline at end of file |
|
23 | 23 | sizePolicy.setHorizontalStretch(0) No newline at end of file |
|
24 | 24 | sizePolicy.setVerticalStretch(0) No newline at end of file |
|
25 | 25 | sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth()) No newline at end of file |
|
26 | 26 | self.tabWidget.setSizePolicy(sizePolicy) No newline at end of file |
|
27 | 27 | self.tabWidget.setObjectName("tabWidget") No newline at end of file |
|
28 | 28 | self.tabParameters = QtGui.QWidget() No newline at end of file |
|
29 | 29 | self.tabParameters.setEnabled(True) No newline at end of file |
|
30 | 30 | self.tabParameters.setObjectName("tabParameters") No newline at end of file |
|
31 | 31 | self.verticalLayout_2 = QtGui.QVBoxLayout(self.tabParameters) No newline at end of file |
|
32 | 32 | self.verticalLayout_2.setObjectName("verticalLayout_2") No newline at end of file |
|
33 | 33 | self.horizontalLayout = QtGui.QHBoxLayout() No newline at end of file |
|
34 | 34 | self.horizontalLayout.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint) No newline at end of file |
|
35 | 35 | self.horizontalLayout.setObjectName("horizontalLayout") No newline at end of file |
|
36 | 36 | self.txtDpath = QtGui.QLineEdit(self.tabParameters) No newline at end of file |
|
37 | 37 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) No newline at end of file |
|
38 | 38 | sizePolicy.setHorizontalStretch(0) No newline at end of file |
|
39 | 39 | sizePolicy.setVerticalStretch(0) No newline at end of file |
|
40 | 40 | sizePolicy.setHeightForWidth(self.txtDpath.sizePolicy().hasHeightForWidth()) No newline at end of file |
|
41 | 41 | self.txtDpath.setSizePolicy(sizePolicy) No newline at end of file |
|
42 | 42 | self.txtDpath.setObjectName("txtDpath") No newline at end of file |
|
43 | 43 | self.horizontalLayout.addWidget(self.txtDpath) No newline at end of file |
|
44 | 44 | self.btnDpath = QtGui.QPushButton(self.tabParameters) No newline at end of file |
|
45 | 45 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) No newline at end of file |
|
46 | 46 | sizePolicy.setHorizontalStretch(0) No newline at end of file |
|
47 | 47 | sizePolicy.setVerticalStretch(0) No newline at end of file |
|
48 | 48 | sizePolicy.setHeightForWidth(self.btnDpath.sizePolicy().hasHeightForWidth()) No newline at end of file |
|
49 | 49 | self.btnDpath.setSizePolicy(sizePolicy) No newline at end of file |
|
50 | 50 | self.btnDpath.setCheckable(False) No newline at end of file |
|
51 | 51 | self.btnDpath.setObjectName("btnDpath") No newline at end of file |
|
52 | 52 | self.horizontalLayout.addWidget(self.btnDpath) No newline at end of file |
|
53 | 53 | self.verticalLayout_2.addLayout(self.horizontalLayout) No newline at end of file |
|
54 | 54 | self.horizontalLayout_3 = QtGui.QHBoxLayout() No newline at end of file |
|
55 | 55 | self.horizontalLayout_3.setObjectName("horizontalLayout_3") No newline at end of file |
|
56 | 56 | self.txtRpath = QtGui.QLineEdit(self.tabParameters) No newline at end of file |
|
57 | 57 | self.txtRpath.setObjectName("txtRpath") No newline at end of file |
|
58 | 58 | self.horizontalLayout_3.addWidget(self.txtRpath) No newline at end of file |
|
59 | 59 | self.btnRpath = QtGui.QPushButton(self.tabParameters) No newline at end of file |
|
60 | 60 | self.btnRpath.setObjectName("btnRpath") No newline at end of file |
|
61 | 61 | self.horizontalLayout_3.addWidget(self.btnRpath) No newline at end of file |
|
62 | 62 | self.verticalLayout_2.addLayout(self.horizontalLayout_3) No newline at end of file |
|
63 | 63 | self.lblDtype = QtGui.QLabel(self.tabParameters) No newline at end of file |
|
64 | 64 | self.lblDtype.setObjectName("lblDtype") No newline at end of file |
|
65 | 65 | self.verticalLayout_2.addWidget(self.lblDtype) No newline at end of file |
|
66 | 66 | self.horizontalLayout_4 = QtGui.QHBoxLayout() No newline at end of file |
|
67 | 67 | self.horizontalLayout_4.setObjectName("horizontalLayout_4") No newline at end of file |
|
68 | 68 | self.lstDtype = QtGui.QComboBox(self.tabParameters) No newline at end of file |
|
69 | 69 | self.lstDtype.setObjectName("lstDtype") No newline at end of file |
|
70 | 70 | self.lstDtype.addItem("") No newline at end of file |
|
71 | 71 | self.lstDtype.addItem("") No newline at end of file |
|
72 | 72 | self.lstDtype.addItem("") No newline at end of file |
|
73 | 73 | self.lstDtype.addItem("") No newline at end of file |
|
74 | 74 | self.horizontalLayout_4.addWidget(self.lstDtype) No newline at end of file |
|
75 | 75 | self.txtDtype = QtGui.QLineEdit(self.tabParameters) No newline at end of file |
|
76 | 76 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) No newline at end of file |
|
77 | 77 | sizePolicy.setHorizontalStretch(0) No newline at end of file |
|
78 | 78 | sizePolicy.setVerticalStretch(0) No newline at end of file |
|
79 | 79 | sizePolicy.setHeightForWidth(self.txtDtype.sizePolicy().hasHeightForWidth()) No newline at end of file |
|
80 | 80 | self.txtDtype.setSizePolicy(sizePolicy) No newline at end of file |
|
81 | 81 | self.txtDtype.setReadOnly(True) No newline at end of file |
|
82 | 82 | self.txtDtype.setObjectName("txtDtype") No newline at end of file |
|
83 | 83 | self.horizontalLayout_4.addWidget(self.txtDtype) No newline at end of file |
|
84 | 84 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
85 | 85 | self.horizontalLayout_4.addItem(spacerItem) No newline at end of file |
|
86 | 86 | self.verticalLayout_2.addLayout(self.horizontalLayout_4) No newline at end of file |
|
87 | 87 | self.horizontalLayout_6 = QtGui.QHBoxLayout() No newline at end of file |
|
88 | 88 | self.horizontalLayout_6.setObjectName("horizontalLayout_6") No newline at end of file |
|
89 | 89 | self.lblElabel = QtGui.QLabel(self.tabParameters) No newline at end of file |
|
90 | 90 | self.lblElabel.setObjectName("lblElabel") No newline at end of file |
|
91 | 91 | self.horizontalLayout_6.addWidget(self.lblElabel) No newline at end of file |
|
92 | 92 | self.lblCopys = QtGui.QLabel(self.tabParameters) No newline at end of file |
|
93 | 93 | self.lblCopys.setObjectName("lblCopys") No newline at end of file |
|
94 | 94 | self.horizontalLayout_6.addWidget(self.lblCopys) No newline at end of file |
|
95 | 95 | self.verticalLayout_2.addLayout(self.horizontalLayout_6) No newline at end of file |
|
96 | 96 | self.horizontalLayout_5 = QtGui.QHBoxLayout() No newline at end of file |
|
97 | 97 | self.horizontalLayout_5.setObjectName("horizontalLayout_5") No newline at end of file |
|
98 | 98 | self.txtElabel = QtGui.QLineEdit(self.tabParameters) No newline at end of file |
|
99 | 99 | self.txtElabel.setObjectName("txtElabel") No newline at end of file |
|
100 | 100 | self.horizontalLayout_5.addWidget(self.txtElabel) No newline at end of file |
|
101 | 101 | self.txtCopys = QtGui.QSpinBox(self.tabParameters) No newline at end of file |
|
102 | 102 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) No newline at end of file |
|
103 | 103 | sizePolicy.setHorizontalStretch(0) No newline at end of file |
|
104 | 104 | sizePolicy.setVerticalStretch(0) No newline at end of file |
|
105 | 105 | sizePolicy.setHeightForWidth(self.txtCopys.sizePolicy().hasHeightForWidth()) No newline at end of file |
|
106 | 106 | self.txtCopys.setSizePolicy(sizePolicy) No newline at end of file |
|
107 | 107 | self.txtCopys.setMinimum(1) No newline at end of file |
|
108 | 108 | self.txtCopys.setObjectName("txtCopys") No newline at end of file |
|
109 | 109 | self.horizontalLayout_5.addWidget(self.txtCopys) No newline at end of file |
|
110 | 110 | self.verticalLayout_2.addLayout(self.horizontalLayout_5) No newline at end of file |
|
111 | 111 | self.horizontalLayout_7 = QtGui.QHBoxLayout() No newline at end of file |
|
112 | 112 | self.horizontalLayout_7.setObjectName("horizontalLayout_7") No newline at end of file |
|
113 | 113 | self.lblStartDay = QtGui.QLabel(self.tabParameters) No newline at end of file |
|
114 | 114 | self.lblStartDay.setObjectName("lblStartDay") No newline at end of file |
|
115 | 115 | self.horizontalLayout_7.addWidget(self.lblStartDay) No newline at end of file |
|
116 | 116 | self.lblStopDay = QtGui.QLabel(self.tabParameters) No newline at end of file |
|
117 | 117 | self.lblStopDay.setObjectName("lblStopDay") No newline at end of file |
|
118 | 118 | self.horizontalLayout_7.addWidget(self.lblStopDay) No newline at end of file |
|
119 | 119 | self.verticalLayout_2.addLayout(self.horizontalLayout_7) No newline at end of file |
|
120 | 120 | self.horizontalLayout_8 = QtGui.QHBoxLayout() No newline at end of file |
|
121 | 121 | self.horizontalLayout_8.setObjectName("horizontalLayout_8") No newline at end of file |
|
122 | 122 | self.lstStartDay = QtGui.QComboBox(self.tabParameters) No newline at end of file |
|
123 | 123 | self.lstStartDay.setObjectName("lstStartDay") No newline at end of file |
|
124 | 124 | self.horizontalLayout_8.addWidget(self.lstStartDay) No newline at end of file |
|
125 | 125 | self.lstStopDay = QtGui.QComboBox(self.tabParameters) No newline at end of file |
|
126 | 126 | self.lstStopDay.setObjectName("lstStopDay") No newline at end of file |
|
127 | 127 | self.horizontalLayout_8.addWidget(self.lstStopDay) No newline at end of file |
|
128 | 128 | self.verticalLayout_2.addLayout(self.horizontalLayout_8) No newline at end of file |
|
129 | 129 | self.tabWidget.addTab(self.tabParameters, "") No newline at end of file |
|
130 | 130 | self.tabDconfig = QtGui.QWidget() No newline at end of file |
|
131 | 131 | self.tabDconfig.setEnabled(True) No newline at end of file |
|
132 | 132 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
133 | 133 | sizePolicy.setHorizontalStretch(0) No newline at end of file |
|
134 | 134 | sizePolicy.setVerticalStretch(0) No newline at end of file |
|
135 | 135 | sizePolicy.setHeightForWidth(self.tabDconfig.sizePolicy().hasHeightForWidth()) No newline at end of file |
|
136 | 136 | self.tabDconfig.setSizePolicy(sizePolicy) No newline at end of file |
|
137 | 137 | self.tabDconfig.setObjectName("tabDconfig") No newline at end of file |
|
138 | 138 | self.verticalLayout_3 = QtGui.QVBoxLayout(self.tabDconfig) No newline at end of file |
|
139 | 139 | self.verticalLayout_3.setObjectName("verticalLayout_3") No newline at end of file |
|
140 | 140 | self.horizontalLayout_12 = QtGui.QHBoxLayout() No newline at end of file |
|
141 | 141 | self.horizontalLayout_12.setObjectName("horizontalLayout_12") No newline at end of file |
|
142 | 142 | self.verticalLayout_15 = QtGui.QVBoxLayout() No newline at end of file |
|
143 | 143 | self.verticalLayout_15.setObjectName("verticalLayout_15") No newline at end of file |
|
144 | 144 | self.chkDevA = QtGui.QCheckBox(self.tabDconfig) No newline at end of file |
|
145 | 145 | self.chkDevA.setChecked(True) No newline at end of file |
|
146 | 146 | self.chkDevA.setObjectName("chkDevA") No newline at end of file |
|
147 | 147 | self.verticalLayout_15.addWidget(self.chkDevA) No newline at end of file |
|
148 | 148 | self.grpDevA = QtGui.QWidget(self.tabDconfig) No newline at end of file |
|
149 | 149 | self.grpDevA.setObjectName("grpDevA") No newline at end of file |
|
150 | 150 | self.verticalLayout_11 = QtGui.QVBoxLayout(self.grpDevA) No newline at end of file |
|
151 | 151 | self.verticalLayout_11.setObjectName("verticalLayout_11") No newline at end of file |
|
152 | 152 | self.txtDeviceA = QtGui.QLineEdit(self.grpDevA) No newline at end of file |
|
153 | 153 | self.txtDeviceA.setReadOnly(True) No newline at end of file |
|
154 | 154 | self.txtDeviceA.setObjectName("txtDeviceA") No newline at end of file |
|
155 | 155 | self.verticalLayout_11.addWidget(self.txtDeviceA) No newline at end of file |
|
156 | 156 | self.txtBspeedA = QtGui.QSpinBox(self.grpDevA) No newline at end of file |
|
157 | 157 | self.txtBspeedA.setReadOnly(True) No newline at end of file |
|
158 | 158 | self.txtBspeedA.setMinimum(1) No newline at end of file |
|
159 | 159 | self.txtBspeedA.setProperty("value", 16) No newline at end of file |
|
160 | 160 | self.txtBspeedA.setObjectName("txtBspeedA") No newline at end of file |
|
161 | 161 | self.verticalLayout_11.addWidget(self.txtBspeedA) No newline at end of file |
|
162 | 162 | self.txtBmodeA = QtGui.QLineEdit(self.grpDevA) No newline at end of file |
|
163 | 163 | self.txtBmodeA.setReadOnly(True) No newline at end of file |
|
164 | 164 | self.txtBmodeA.setObjectName("txtBmodeA") No newline at end of file |
|
165 | 165 | self.verticalLayout_11.addWidget(self.txtBmodeA) No newline at end of file |
|
166 | 166 | self.btnTdevA = QtGui.QPushButton(self.grpDevA) No newline at end of file |
|
167 | 167 | self.btnTdevA.setObjectName("btnTdevA") No newline at end of file |
|
168 | 168 | self.verticalLayout_11.addWidget(self.btnTdevA) No newline at end of file |
|
169 | 169 | self.verticalLayout_15.addWidget(self.grpDevA) No newline at end of file |
|
170 | 170 | self.horizontalLayout_12.addLayout(self.verticalLayout_15) No newline at end of file |
|
171 | 171 | self.verticalLayout_16 = QtGui.QVBoxLayout() No newline at end of file |
|
172 | 172 | self.verticalLayout_16.setObjectName("verticalLayout_16") No newline at end of file |
|
173 | 173 | self.chkDevB = QtGui.QCheckBox(self.tabDconfig) No newline at end of file |
|
174 | 174 | self.chkDevB.setChecked(True) No newline at end of file |
|
175 | 175 | self.chkDevB.setObjectName("chkDevB") No newline at end of file |
|
176 | 176 | self.verticalLayout_16.addWidget(self.chkDevB) No newline at end of file |
|
177 | 177 | self.grpDevB = QtGui.QWidget(self.tabDconfig) No newline at end of file |
|
178 | 178 | self.grpDevB.setObjectName("grpDevB") No newline at end of file |
|
179 | 179 | self.verticalLayout_12 = QtGui.QVBoxLayout(self.grpDevB) No newline at end of file |
|
180 | 180 | self.verticalLayout_12.setObjectName("verticalLayout_12") No newline at end of file |
|
181 | 181 | self.txtDeviceB = QtGui.QLineEdit(self.grpDevB) No newline at end of file |
|
182 | 182 | self.txtDeviceB.setReadOnly(True) No newline at end of file |
|
183 | 183 | self.txtDeviceB.setObjectName("txtDeviceB") No newline at end of file |
|
184 | 184 | self.verticalLayout_12.addWidget(self.txtDeviceB) No newline at end of file |
|
185 | 185 | self.txtBspeedB = QtGui.QSpinBox(self.grpDevB) No newline at end of file |
|
186 | 186 | self.txtBspeedB.setReadOnly(True) No newline at end of file |
|
187 | 187 | self.txtBspeedB.setMinimum(1) No newline at end of file |
|
188 | 188 | self.txtBspeedB.setProperty("value", 16) No newline at end of file |
|
189 | 189 | self.txtBspeedB.setObjectName("txtBspeedB") No newline at end of file |
|
190 | 190 | self.verticalLayout_12.addWidget(self.txtBspeedB) No newline at end of file |
|
191 | 191 | self.txtBmodeB = QtGui.QLineEdit(self.grpDevB) No newline at end of file |
|
192 | 192 | self.txtBmodeB.setReadOnly(True) No newline at end of file |
|
193 | 193 | self.txtBmodeB.setObjectName("txtBmodeB") No newline at end of file |
|
194 | 194 | self.verticalLayout_12.addWidget(self.txtBmodeB) No newline at end of file |
|
195 | 195 | self.btnTdevB = QtGui.QPushButton(self.grpDevB) No newline at end of file |
|
196 | 196 | self.btnTdevB.setObjectName("btnTdevB") No newline at end of file |
|
197 | 197 | self.verticalLayout_12.addWidget(self.btnTdevB) No newline at end of file |
|
198 | 198 | self.verticalLayout_16.addWidget(self.grpDevB) No newline at end of file |
|
199 | 199 | self.horizontalLayout_12.addLayout(self.verticalLayout_16) No newline at end of file |
|
200 | 200 | self.verticalLayout_17 = QtGui.QVBoxLayout() No newline at end of file |
|
201 | 201 | self.verticalLayout_17.setObjectName("verticalLayout_17") No newline at end of file |
|
202 | 202 | self.chkDevC = QtGui.QCheckBox(self.tabDconfig) No newline at end of file |
|
203 | 203 | self.chkDevC.setChecked(True) No newline at end of file |
|
204 | 204 | self.chkDevC.setObjectName("chkDevC") No newline at end of file |
|
205 | 205 | self.verticalLayout_17.addWidget(self.chkDevC) No newline at end of file |
|
206 | 206 | self.grpDevC = QtGui.QWidget(self.tabDconfig) No newline at end of file |
|
207 | 207 | self.grpDevC.setObjectName("grpDevC") No newline at end of file |
|
208 | 208 | self.verticalLayout_13 = QtGui.QVBoxLayout(self.grpDevC) No newline at end of file |
|
209 | 209 | self.verticalLayout_13.setObjectName("verticalLayout_13") No newline at end of file |
|
210 | 210 | self.txtDeviceC = QtGui.QLineEdit(self.grpDevC) No newline at end of file |
|
211 | 211 | self.txtDeviceC.setReadOnly(True) No newline at end of file |
|
212 | 212 | self.txtDeviceC.setObjectName("txtDeviceC") No newline at end of file |
|
213 | 213 | self.verticalLayout_13.addWidget(self.txtDeviceC) No newline at end of file |
|
214 | 214 | self.txtBspeedC = QtGui.QSpinBox(self.grpDevC) No newline at end of file |
|
215 | 215 | self.txtBspeedC.setReadOnly(True) No newline at end of file |
|
216 | 216 | self.txtBspeedC.setMinimum(1) No newline at end of file |
|
217 | 217 | self.txtBspeedC.setProperty("value", 16) No newline at end of file |
|
218 | 218 | self.txtBspeedC.setObjectName("txtBspeedC") No newline at end of file |
|
219 | 219 | self.verticalLayout_13.addWidget(self.txtBspeedC) No newline at end of file |
|
220 | 220 | self.txtBmodeC = QtGui.QLineEdit(self.grpDevC) No newline at end of file |
|
221 | 221 | self.txtBmodeC.setReadOnly(True) No newline at end of file |
|
222 | 222 | self.txtBmodeC.setObjectName("txtBmodeC") No newline at end of file |
|
223 | 223 | self.verticalLayout_13.addWidget(self.txtBmodeC) No newline at end of file |
|
224 | 224 | self.btnTdevC = QtGui.QPushButton(self.grpDevC) No newline at end of file |
|
225 | 225 | self.btnTdevC.setObjectName("btnTdevC") No newline at end of file |
|
226 | 226 | self.verticalLayout_13.addWidget(self.btnTdevC) No newline at end of file |
|
227 | 227 | self.verticalLayout_17.addWidget(self.grpDevC) No newline at end of file |
|
228 | 228 | self.horizontalLayout_12.addLayout(self.verticalLayout_17) No newline at end of file |
|
229 | 229 | self.verticalLayout_18 = QtGui.QVBoxLayout() No newline at end of file |
|
230 | 230 | self.verticalLayout_18.setObjectName("verticalLayout_18") No newline at end of file |
|
231 | 231 | self.chkDevD = QtGui.QCheckBox(self.tabDconfig) No newline at end of file |
|
232 | 232 | self.chkDevD.setChecked(True) No newline at end of file |
|
233 | 233 | self.chkDevD.setObjectName("chkDevD") No newline at end of file |
|
234 | 234 | self.verticalLayout_18.addWidget(self.chkDevD) No newline at end of file |
|
235 | 235 | self.grpDevD = QtGui.QWidget(self.tabDconfig) No newline at end of file |
|
236 | 236 | self.grpDevD.setObjectName("grpDevD") No newline at end of file |
|
237 | 237 | self.verticalLayout_14 = QtGui.QVBoxLayout(self.grpDevD) No newline at end of file |
|
238 | 238 | self.verticalLayout_14.setObjectName("verticalLayout_14") No newline at end of file |
|
239 | 239 | self.txtDeviceD = QtGui.QLineEdit(self.grpDevD) No newline at end of file |
|
240 | 240 | self.txtDeviceD.setReadOnly(True) No newline at end of file |
|
241 | 241 | self.txtDeviceD.setObjectName("txtDeviceD") No newline at end of file |
|
242 | 242 | self.verticalLayout_14.addWidget(self.txtDeviceD) No newline at end of file |
|
243 | 243 | self.txtBspeedD = QtGui.QSpinBox(self.grpDevD) No newline at end of file |
|
244 | 244 | self.txtBspeedD.setReadOnly(True) No newline at end of file |
|
245 | 245 | self.txtBspeedD.setMinimum(1) No newline at end of file |
|
246 | 246 | self.txtBspeedD.setProperty("value", 16) No newline at end of file |
|
247 | 247 | self.txtBspeedD.setObjectName("txtBspeedD") No newline at end of file |
|
248 | 248 | self.verticalLayout_14.addWidget(self.txtBspeedD) No newline at end of file |
|
249 | 249 | self.txtBmodeD = QtGui.QLineEdit(self.grpDevD) No newline at end of file |
|
250 | 250 | self.txtBmodeD.setReadOnly(True) No newline at end of file |
|
251 | 251 | self.txtBmodeD.setObjectName("txtBmodeD") No newline at end of file |
|
252 | 252 | self.verticalLayout_14.addWidget(self.txtBmodeD) No newline at end of file |
|
253 | 253 | self.btnTdevD = QtGui.QPushButton(self.grpDevD) No newline at end of file |
|
254 | 254 | self.btnTdevD.setObjectName("btnTdevD") No newline at end of file |
|
255 | 255 | self.verticalLayout_14.addWidget(self.btnTdevD) No newline at end of file |
|
256 | 256 | self.verticalLayout_18.addWidget(self.grpDevD) No newline at end of file |
|
257 | 257 | self.horizontalLayout_12.addLayout(self.verticalLayout_18) No newline at end of file |
|
258 | 258 | self.verticalLayout_19 = QtGui.QVBoxLayout() No newline at end of file |
|
259 | 259 | self.verticalLayout_19.setObjectName("verticalLayout_19") No newline at end of file |
|
260 | 260 | spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
261 | 261 | self.verticalLayout_19.addItem(spacerItem1) No newline at end of file |
|
262 | 262 | self.grpDevD_2 = QtGui.QWidget(self.tabDconfig) No newline at end of file |
|
263 | 263 | self.grpDevD_2.setObjectName("grpDevD_2") No newline at end of file |
|
264 | 264 | self.verticalLayout_20 = QtGui.QVBoxLayout(self.grpDevD_2) No newline at end of file |
|
265 | 265 | self.verticalLayout_20.setObjectName("verticalLayout_20") No newline at end of file |
|
266 | 266 | self.lblDevice = QtGui.QLabel(self.grpDevD_2) No newline at end of file |
|
267 | 267 | self.lblDevice.setObjectName("lblDevice") No newline at end of file |
|
268 | 268 | self.verticalLayout_20.addWidget(self.lblDevice) No newline at end of file |
|
269 | 269 | self.lblBspeed = QtGui.QLabel(self.grpDevD_2) No newline at end of file |
|
270 | 270 | self.lblBspeed.setObjectName("lblBspeed") No newline at end of file |
|
271 | 271 | self.verticalLayout_20.addWidget(self.lblBspeed) No newline at end of file |
|
272 | 272 | self.lblBmode = QtGui.QLabel(self.grpDevD_2) No newline at end of file |
|
273 | 273 | self.lblBmode.setObjectName("lblBmode") No newline at end of file |
|
274 | 274 | self.verticalLayout_20.addWidget(self.lblBmode) No newline at end of file |
|
275 | 275 | spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) No newline at end of file |
|
276 | 276 | self.verticalLayout_20.addItem(spacerItem2) No newline at end of file |
|
277 | 277 | self.verticalLayout_19.addWidget(self.grpDevD_2) No newline at end of file |
|
278 | 278 | self.horizontalLayout_12.addLayout(self.verticalLayout_19) No newline at end of file |
|
279 | 279 | self.verticalLayout_3.addLayout(self.horizontalLayout_12) No newline at end of file |
|
280 | 280 | spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
281 | 281 | self.verticalLayout_3.addItem(spacerItem3) No newline at end of file |
|
282 | 282 | self.horizontalLayout_11 = QtGui.QHBoxLayout() No newline at end of file |
|
283 | 283 | self.horizontalLayout_11.setSpacing(6) No newline at end of file |
|
284 | 284 | self.horizontalLayout_11.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint) No newline at end of file |
|
285 | 285 | self.horizontalLayout_11.setObjectName("horizontalLayout_11") No newline at end of file |
|
286 | 286 | self.lblDcapacity = QtGui.QLabel(self.tabDconfig) No newline at end of file |
|
287 | 287 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed) No newline at end of file |
|
288 | 288 | sizePolicy.setHorizontalStretch(0) No newline at end of file |
|
289 | 289 | sizePolicy.setVerticalStretch(0) No newline at end of file |
|
290 | 290 | sizePolicy.setHeightForWidth(self.lblDcapacity.sizePolicy().hasHeightForWidth()) No newline at end of file |
|
291 | 291 | self.lblDcapacity.setSizePolicy(sizePolicy) No newline at end of file |
|
292 | 292 | self.lblDcapacity.setObjectName("lblDcapacity") No newline at end of file |
|
293 | 293 | self.horizontalLayout_11.addWidget(self.lblDcapacity) No newline at end of file |
|
294 | 294 | spacerItem4 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
295 | 295 | self.horizontalLayout_11.addItem(spacerItem4) No newline at end of file |
|
296 | 296 | self.verticalLayout_3.addLayout(self.horizontalLayout_11) No newline at end of file |
|
297 | 297 | self.horizontalLayout_10 = QtGui.QHBoxLayout() No newline at end of file |
|
298 | 298 | self.horizontalLayout_10.setSizeConstraint(QtGui.QLayout.SetFixedSize) No newline at end of file |
|
299 | 299 | self.horizontalLayout_10.setObjectName("horizontalLayout_10") No newline at end of file |
|
300 | 300 | self.lstDcapacity = QtGui.QComboBox(self.tabDconfig) No newline at end of file |
|
301 | 301 | self.lstDcapacity.setObjectName("lstDcapacity") No newline at end of file |
|
302 | 302 | self.lstDcapacity.addItem("") No newline at end of file |
|
303 | 303 | self.lstDcapacity.addItem("") No newline at end of file |
|
304 | 304 | self.lstDcapacity.addItem("") No newline at end of file |
|
305 | 305 | self.lstDcapacity.addItem("") No newline at end of file |
|
306 | 306 | self.lstDcapacity.addItem("") No newline at end of file |
|
307 | 307 | self.horizontalLayout_10.addWidget(self.lstDcapacity) No newline at end of file |
|
308 | 308 | self.txtDcapacity = QtGui.QDoubleSpinBox(self.tabDconfig) No newline at end of file |
|
309 | 309 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) No newline at end of file |
|
310 | 310 | sizePolicy.setHorizontalStretch(0) No newline at end of file |
|
311 | 311 | sizePolicy.setVerticalStretch(0) No newline at end of file |
|
312 | 312 | sizePolicy.setHeightForWidth(self.txtDcapacity.sizePolicy().hasHeightForWidth()) No newline at end of file |
|
313 | 313 | self.txtDcapacity.setSizePolicy(sizePolicy) No newline at end of file |
|
314 | 314 | self.txtDcapacity.setReadOnly(True) No newline at end of file |
|
315 | 315 | self.txtDcapacity.setMinimum(100.0) No newline at end of file |
|
316 | 316 | self.txtDcapacity.setMaximum(99999.99) No newline at end of file |
|
317 | 317 | self.txtDcapacity.setProperty("value", 4482.27) No newline at end of file |
|
318 | 318 | self.txtDcapacity.setObjectName("txtDcapacity") No newline at end of file |
|
319 | 319 | self.horizontalLayout_10.addWidget(self.txtDcapacity) No newline at end of file |
|
320 | 320 | spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
321 | 321 | self.horizontalLayout_10.addItem(spacerItem5) No newline at end of file |
|
322 | 322 | self.lblPSgraphic = QtGui.QLabel(self.tabDconfig) No newline at end of file |
|
323 | 323 | self.lblPSgraphic.setObjectName("lblPSgraphic") No newline at end of file |
|
324 | 324 | self.horizontalLayout_10.addWidget(self.lblPSgraphic) No newline at end of file |
|
325 | 325 | self.txtPSgraphic = QtGui.QSpinBox(self.tabDconfig) No newline at end of file |
|
326 | 326 | self.txtPSgraphic.setMinimum(1) No newline at end of file |
|
327 | 327 | self.txtPSgraphic.setMaximum(33) No newline at end of file |
|
328 | 328 | self.txtPSgraphic.setObjectName("txtPSgraphic") No newline at end of file |
|
329 | 329 | self.horizontalLayout_10.addWidget(self.txtPSgraphic) No newline at end of file |
|
330 | 330 | self.verticalLayout_3.addLayout(self.horizontalLayout_10) No newline at end of file |
|
331 | 331 | self.tabWidget.addTab(self.tabDconfig, "") No newline at end of file |
|
332 | 332 | self.tabStatus = QtGui.QWidget() No newline at end of file |
|
333 | 333 | self.tabStatus.setObjectName("tabStatus") No newline at end of file |
|
334 | 334 | self.verticalLayout_4 = QtGui.QVBoxLayout(self.tabStatus) No newline at end of file |
|
335 | 335 | self.verticalLayout_4.setObjectName("verticalLayout_4") No newline at end of file |
|
336 | 336 | self.horizontalLayout_18 = QtGui.QHBoxLayout() No newline at end of file |
|
337 | 337 | self.horizontalLayout_18.setObjectName("horizontalLayout_18") No newline at end of file |
|
338 | 338 | self.verticalLayout_21 = QtGui.QVBoxLayout() No newline at end of file |
|
339 | 339 | self.verticalLayout_21.setObjectName("verticalLayout_21") No newline at end of file |
|
340 | 340 | self.label_4 = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
341 | 341 | self.label_4.setObjectName("label_4") No newline at end of file |
|
342 | 342 | self.verticalLayout_21.addWidget(self.label_4) No newline at end of file |
|
343 | 343 | spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
344 | 344 | self.verticalLayout_21.addItem(spacerItem6) No newline at end of file |
|
345 | 345 | self.lblSTATUS = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
346 | 346 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) No newline at end of file |
|
347 | 347 | sizePolicy.setHorizontalStretch(0) No newline at end of file |
|
348 | 348 | sizePolicy.setVerticalStretch(0) No newline at end of file |
|
349 | 349 | sizePolicy.setHeightForWidth(self.lblSTATUS.sizePolicy().hasHeightForWidth()) No newline at end of file |
|
350 | 350 | self.lblSTATUS.setSizePolicy(sizePolicy) No newline at end of file |
|
351 | 351 | self.lblSTATUS.setObjectName("lblSTATUS") No newline at end of file |
|
352 | 352 | self.verticalLayout_21.addWidget(self.lblSTATUS) No newline at end of file |
|
353 | 353 | self.lblINFO = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
354 | 354 | self.lblINFO.setObjectName("lblINFO") No newline at end of file |
|
355 | 355 | self.verticalLayout_21.addWidget(self.lblINFO) No newline at end of file |
|
356 | 356 | self.lblSET = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
357 | 357 | self.lblSET.setObjectName("lblSET") No newline at end of file |
|
358 | 358 | self.verticalLayout_21.addWidget(self.lblSET) No newline at end of file |
|
359 | 359 | self.horizontalLayout_18.addLayout(self.verticalLayout_21) No newline at end of file |
|
360 | 360 | self.verticalLayout_22 = QtGui.QVBoxLayout() No newline at end of file |
|
361 | 361 | self.verticalLayout_22.setObjectName("verticalLayout_22") No newline at end of file |
|
362 | 362 | spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
363 | 363 | self.verticalLayout_22.addItem(spacerItem7) No newline at end of file |
|
364 | 364 | self.lblDevA = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
365 | 365 | self.lblDevA.setAlignment(QtCore.Qt.AlignCenter) No newline at end of file |
|
366 | 366 | self.lblDevA.setObjectName("lblDevA") No newline at end of file |
|
367 | 367 | self.verticalLayout_22.addWidget(self.lblDevA) No newline at end of file |
|
368 | 368 | self.txtBstatusA = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
369 | 369 | self.txtBstatusA.setReadOnly(True) No newline at end of file |
|
370 | 370 | self.txtBstatusA.setObjectName("txtBstatusA") No newline at end of file |
|
371 | 371 | self.verticalLayout_22.addWidget(self.txtBstatusA) No newline at end of file |
|
372 | 372 | self.txtBdiscA = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
373 | 373 | self.txtBdiscA.setReadOnly(True) No newline at end of file |
|
374 | 374 | self.txtBdiscA.setObjectName("txtBdiscA") No newline at end of file |
|
375 | 375 | self.verticalLayout_22.addWidget(self.txtBdiscA) No newline at end of file |
|
376 | 376 | self.txtBcopyA = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
377 | 377 | self.txtBcopyA.setReadOnly(True) No newline at end of file |
|
378 | 378 | self.txtBcopyA.setObjectName("txtBcopyA") No newline at end of file |
|
379 | 379 | self.verticalLayout_22.addWidget(self.txtBcopyA) No newline at end of file |
|
380 | 380 | self.horizontalLayout_18.addLayout(self.verticalLayout_22) No newline at end of file |
|
381 | 381 | self.verticalLayout_23 = QtGui.QVBoxLayout() No newline at end of file |
|
382 | 382 | self.verticalLayout_23.setObjectName("verticalLayout_23") No newline at end of file |
|
383 | 383 | spacerItem8 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
384 | 384 | self.verticalLayout_23.addItem(spacerItem8) No newline at end of file |
|
385 | 385 | self.lblDevB = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
386 | 386 | self.lblDevB.setAlignment(QtCore.Qt.AlignCenter) No newline at end of file |
|
387 | 387 | self.lblDevB.setObjectName("lblDevB") No newline at end of file |
|
388 | 388 | self.verticalLayout_23.addWidget(self.lblDevB) No newline at end of file |
|
389 | 389 | self.txtBstatusB = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
390 | 390 | self.txtBstatusB.setReadOnly(True) No newline at end of file |
|
391 | 391 | self.txtBstatusB.setObjectName("txtBstatusB") No newline at end of file |
|
392 | 392 | self.verticalLayout_23.addWidget(self.txtBstatusB) No newline at end of file |
|
393 | 393 | self.txtBdiscB = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
394 | 394 | self.txtBdiscB.setReadOnly(True) No newline at end of file |
|
395 | 395 | self.txtBdiscB.setObjectName("txtBdiscB") No newline at end of file |
|
396 | 396 | self.verticalLayout_23.addWidget(self.txtBdiscB) No newline at end of file |
|
397 | 397 | self.txtBcopyB = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
398 | 398 | self.txtBcopyB.setReadOnly(True) No newline at end of file |
|
399 | 399 | self.txtBcopyB.setObjectName("txtBcopyB") No newline at end of file |
|
400 | 400 | self.verticalLayout_23.addWidget(self.txtBcopyB) No newline at end of file |
|
401 | 401 | self.horizontalLayout_18.addLayout(self.verticalLayout_23) No newline at end of file |
|
402 | 402 | self.verticalLayout_24 = QtGui.QVBoxLayout() No newline at end of file |
|
403 | 403 | self.verticalLayout_24.setObjectName("verticalLayout_24") No newline at end of file |
|
404 | 404 | spacerItem9 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
405 | 405 | self.verticalLayout_24.addItem(spacerItem9) No newline at end of file |
|
406 | 406 | self.lblDevC = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
407 | 407 | self.lblDevC.setAlignment(QtCore.Qt.AlignCenter) No newline at end of file |
|
408 | 408 | self.lblDevC.setObjectName("lblDevC") No newline at end of file |
|
409 | 409 | self.verticalLayout_24.addWidget(self.lblDevC) No newline at end of file |
|
410 | 410 | self.txtBstatusC = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
411 | 411 | self.txtBstatusC.setReadOnly(True) No newline at end of file |
|
412 | 412 | self.txtBstatusC.setObjectName("txtBstatusC") No newline at end of file |
|
413 | 413 | self.verticalLayout_24.addWidget(self.txtBstatusC) No newline at end of file |
|
414 | 414 | self.txtBdiscC = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
415 | 415 | self.txtBdiscC.setReadOnly(True) No newline at end of file |
|
416 | 416 | self.txtBdiscC.setObjectName("txtBdiscC") No newline at end of file |
|
417 | 417 | self.verticalLayout_24.addWidget(self.txtBdiscC) No newline at end of file |
|
418 | 418 | self.txtBcopyC = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
419 | 419 | self.txtBcopyC.setReadOnly(True) No newline at end of file |
|
420 | 420 | self.txtBcopyC.setObjectName("txtBcopyC") No newline at end of file |
|
421 | 421 | self.verticalLayout_24.addWidget(self.txtBcopyC) No newline at end of file |
|
422 | 422 | self.horizontalLayout_18.addLayout(self.verticalLayout_24) No newline at end of file |
|
423 | 423 | self.verticalLayout_25 = QtGui.QVBoxLayout() No newline at end of file |
|
424 | 424 | self.verticalLayout_25.setObjectName("verticalLayout_25") No newline at end of file |
|
425 | 425 | spacerItem10 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
426 | 426 | self.verticalLayout_25.addItem(spacerItem10) No newline at end of file |
|
427 | 427 | self.lblDevD = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
428 | 428 | self.lblDevD.setAlignment(QtCore.Qt.AlignCenter) No newline at end of file |
|
429 | 429 | self.lblDevD.setObjectName("lblDevD") No newline at end of file |
|
430 | 430 | self.verticalLayout_25.addWidget(self.lblDevD) No newline at end of file |
|
431 | 431 | self.txtBstatusD = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
432 | 432 | self.txtBstatusD.setReadOnly(True) No newline at end of file |
|
433 | 433 | self.txtBstatusD.setObjectName("txtBstatusD") No newline at end of file |
|
434 | 434 | self.verticalLayout_25.addWidget(self.txtBstatusD) No newline at end of file |
|
435 | 435 | self.txtBdiscD = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
436 | 436 | self.txtBdiscD.setReadOnly(True) No newline at end of file |
|
437 | 437 | self.txtBdiscD.setObjectName("txtBdiscD") No newline at end of file |
|
438 | 438 | self.verticalLayout_25.addWidget(self.txtBdiscD) No newline at end of file |
|
439 | 439 | self.txtBcopyD = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
440 | 440 | self.txtBcopyD.setReadOnly(True) No newline at end of file |
|
441 | 441 | self.txtBcopyD.setObjectName("txtBcopyD") No newline at end of file |
|
442 | 442 | self.verticalLayout_25.addWidget(self.txtBcopyD) No newline at end of file |
|
443 | 443 | self.horizontalLayout_18.addLayout(self.verticalLayout_25) No newline at end of file |
|
444 | 444 | self.verticalLayout_4.addLayout(self.horizontalLayout_18) No newline at end of file |
|
445 | 445 | spacerItem11 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) No newline at end of file |
|
446 | 446 | self.verticalLayout_4.addItem(spacerItem11) No newline at end of file |
|
447 | 447 | self.horizontalLayout_16 = QtGui.QHBoxLayout() No newline at end of file |
|
448 | 448 | self.horizontalLayout_16.setObjectName("horizontalLayout_16") No newline at end of file |
|
449 | 449 | self.label = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
450 | 450 | self.label.setObjectName("label") No newline at end of file |
|
451 | 451 | self.horizontalLayout_16.addWidget(self.label) No newline at end of file |
|
452 | 452 | spacerItem12 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
453 | 453 | self.horizontalLayout_16.addItem(spacerItem12) No newline at end of file |
|
454 | 454 | self.verticalLayout_4.addLayout(self.horizontalLayout_16) No newline at end of file |
|
455 | 455 | self.horizontalLayout_17 = QtGui.QHBoxLayout() No newline at end of file |
|
456 | 456 | self.horizontalLayout_17.setObjectName("horizontalLayout_17") No newline at end of file |
|
457 | 457 | spacerItem13 = QtGui.QSpacerItem(50, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
458 | 458 | self.horizontalLayout_17.addItem(spacerItem13) No newline at end of file |
|
459 | 459 | self.txtTDpath = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
460 | 460 | self.txtTDpath.setEnabled(False) No newline at end of file |
|
461 | self.txtTDpath.setReadOnly(True) No newline at end of file | |
|
461 | 462 | self.txtTDpath.setObjectName("txtTDpath") No newline at end of file |
|
462 | 463 | self.horizontalLayout_17.addWidget(self.txtTDpath) No newline at end of file |
|
463 | 464 | self.btnTDpath = QtGui.QPushButton(self.tabStatus) No newline at end of file |
|
464 | 465 | self.btnTDpath.setEnabled(False) No newline at end of file |
|
465 | 466 | self.btnTDpath.setObjectName("btnTDpath") No newline at end of file |
|
466 | 467 | self.horizontalLayout_17.addWidget(self.btnTDpath) No newline at end of file |
|
467 | 468 | self.verticalLayout_4.addLayout(self.horizontalLayout_17) No newline at end of file |
|
468 | 469 | self.horizontalLayout_19 = QtGui.QHBoxLayout() No newline at end of file |
|
469 | 470 | self.horizontalLayout_19.setObjectName("horizontalLayout_19") No newline at end of file |
|
470 | 471 | self.verticalLayout_26 = QtGui.QVBoxLayout() No newline at end of file |
|
471 | 472 | self.verticalLayout_26.setObjectName("verticalLayout_26") No newline at end of file |
|
472 | 473 | spacerItem14 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
473 | 474 | self.verticalLayout_26.addItem(spacerItem14) No newline at end of file |
|
474 | 475 | self.lblSTATUS_2 = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
475 | 476 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) No newline at end of file |
|
476 | 477 | sizePolicy.setHorizontalStretch(0) No newline at end of file |
|
477 | 478 | sizePolicy.setVerticalStretch(0) No newline at end of file |
|
478 | 479 | sizePolicy.setHeightForWidth(self.lblSTATUS_2.sizePolicy().hasHeightForWidth()) No newline at end of file |
|
479 | 480 | self.lblSTATUS_2.setSizePolicy(sizePolicy) No newline at end of file |
|
480 | 481 | self.lblSTATUS_2.setObjectName("lblSTATUS_2") No newline at end of file |
|
481 | 482 | self.verticalLayout_26.addWidget(self.lblSTATUS_2) No newline at end of file |
|
482 | 483 | self.horizontalLayout_19.addLayout(self.verticalLayout_26) No newline at end of file |
|
483 | 484 | self.verticalLayout_27 = QtGui.QVBoxLayout() No newline at end of file |
|
484 | 485 | self.verticalLayout_27.setObjectName("verticalLayout_27") No newline at end of file |
|
485 | 486 | self.lblDevA_2 = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
486 | 487 | self.lblDevA_2.setAlignment(QtCore.Qt.AlignCenter) No newline at end of file |
|
487 | 488 | self.lblDevA_2.setObjectName("lblDevA_2") No newline at end of file |
|
488 | 489 | self.verticalLayout_27.addWidget(self.lblDevA_2) No newline at end of file |
|
489 | 490 | self.txtCHstatusA = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
490 | 491 | self.txtCHstatusA.setReadOnly(True) No newline at end of file |
|
491 | 492 | self.txtCHstatusA.setObjectName("txtCHstatusA") No newline at end of file |
|
492 | 493 | self.verticalLayout_27.addWidget(self.txtCHstatusA) No newline at end of file |
|
493 | 494 | self.horizontalLayout_19.addLayout(self.verticalLayout_27) No newline at end of file |
|
494 | 495 | self.verticalLayout_28 = QtGui.QVBoxLayout() No newline at end of file |
|
495 | 496 | self.verticalLayout_28.setObjectName("verticalLayout_28") No newline at end of file |
|
496 | 497 | self.lblDevB_2 = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
497 | 498 | self.lblDevB_2.setAlignment(QtCore.Qt.AlignCenter) No newline at end of file |
|
498 | 499 | self.lblDevB_2.setObjectName("lblDevB_2") No newline at end of file |
|
499 | 500 | self.verticalLayout_28.addWidget(self.lblDevB_2) No newline at end of file |
|
500 | 501 | self.txtCHstatusB = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
501 | 502 | self.txtCHstatusB.setReadOnly(True) No newline at end of file |
|
502 | 503 | self.txtCHstatusB.setObjectName("txtCHstatusB") No newline at end of file |
|
503 | 504 | self.verticalLayout_28.addWidget(self.txtCHstatusB) No newline at end of file |
|
504 | 505 | self.horizontalLayout_19.addLayout(self.verticalLayout_28) No newline at end of file |
|
505 | 506 | self.verticalLayout_29 = QtGui.QVBoxLayout() No newline at end of file |
|
506 | 507 | self.verticalLayout_29.setObjectName("verticalLayout_29") No newline at end of file |
|
507 | 508 | self.lblDevC_2 = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
508 | 509 | self.lblDevC_2.setAlignment(QtCore.Qt.AlignCenter) No newline at end of file |
|
509 | 510 | self.lblDevC_2.setObjectName("lblDevC_2") No newline at end of file |
|
510 | 511 | self.verticalLayout_29.addWidget(self.lblDevC_2) No newline at end of file |
|
511 | 512 | self.txtCHstatusC = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
512 | 513 | self.txtCHstatusC.setReadOnly(True) No newline at end of file |
|
513 | 514 | self.txtCHstatusC.setObjectName("txtCHstatusC") No newline at end of file |
|
514 | 515 | self.verticalLayout_29.addWidget(self.txtCHstatusC) No newline at end of file |
|
515 | 516 | self.horizontalLayout_19.addLayout(self.verticalLayout_29) No newline at end of file |
|
516 | 517 | self.verticalLayout_30 = QtGui.QVBoxLayout() No newline at end of file |
|
517 | 518 | self.verticalLayout_30.setObjectName("verticalLayout_30") No newline at end of file |
|
518 | 519 | self.lblDevD_2 = QtGui.QLabel(self.tabStatus) No newline at end of file |
|
519 | 520 | self.lblDevD_2.setAlignment(QtCore.Qt.AlignCenter) No newline at end of file |
|
520 | 521 | self.lblDevD_2.setObjectName("lblDevD_2") No newline at end of file |
|
521 | 522 | self.verticalLayout_30.addWidget(self.lblDevD_2) No newline at end of file |
|
522 | 523 | self.txtCHstatusD = QtGui.QLineEdit(self.tabStatus) No newline at end of file |
|
523 | 524 | self.txtCHstatusD.setReadOnly(True) No newline at end of file |
|
524 | 525 | self.txtCHstatusD.setObjectName("txtCHstatusD") No newline at end of file |
|
525 | 526 | self.verticalLayout_30.addWidget(self.txtCHstatusD) No newline at end of file |
|
526 | 527 | self.horizontalLayout_19.addLayout(self.verticalLayout_30) No newline at end of file |
|
527 | 528 | self.verticalLayout_4.addLayout(self.horizontalLayout_19) No newline at end of file |
|
528 | 529 | self.horizontalLayout_20 = QtGui.QHBoxLayout() No newline at end of file |
|
529 | 530 | self.horizontalLayout_20.setObjectName("horizontalLayout_20") No newline at end of file |
|
530 | 531 | spacerItem15 = QtGui.QSpacerItem(50, 20, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
531 | 532 | self.horizontalLayout_20.addItem(spacerItem15) No newline at end of file |
|
532 | 533 | self.chkCheck = QtGui.QCheckBox(self.tabStatus) No newline at end of file |
|
533 | 534 | self.chkCheck.setEnabled(True) No newline at end of file |
|
534 | 535 | self.chkCheck.setObjectName("chkCheck") No newline at end of file |
|
535 | 536 | self.horizontalLayout_20.addWidget(self.chkCheck) No newline at end of file |
|
536 | 537 | spacerItem16 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) No newline at end of file |
|
537 | 538 | self.horizontalLayout_20.addItem(spacerItem16) No newline at end of file |
|
538 | 539 | self.btnCHstart = QtGui.QPushButton(self.tabStatus) No newline at end of file |
|
539 | 540 | self.btnCHstart.setEnabled(False) No newline at end of file |
|
540 | 541 | self.btnCHstart.setObjectName("btnCHstart") No newline at end of file |
|
541 | 542 | self.horizontalLayout_20.addWidget(self.btnCHstart) No newline at end of file |
|
542 | 543 | self.verticalLayout_4.addLayout(self.horizontalLayout_20) No newline at end of file |
|
543 | 544 | self.tabWidget.addTab(self.tabStatus, "") No newline at end of file |
|
544 | 545 | self.verticalLayout.addWidget(self.tabWidget) No newline at end of file |
|
545 | 546 | self.txtInfo = QtGui.QTextEdit(self.centralwidget) No newline at end of file |
|
546 | 547 | self.txtInfo.setReadOnly(True) No newline at end of file |
|
547 | 548 | self.txtInfo.setObjectName("txtInfo") No newline at end of file |
|
548 | 549 | self.verticalLayout.addWidget(self.txtInfo) No newline at end of file |
|
549 | 550 | self.txtProgress = QtGui.QLineEdit(self.centralwidget) No newline at end of file |
|
550 | 551 | sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) No newline at end of file |
|
551 | 552 | sizePolicy.setHorizontalStretch(0) No newline at end of file |
|
552 | 553 | sizePolicy.setVerticalStretch(0) No newline at end of file |
|
553 | 554 | sizePolicy.setHeightForWidth(self.txtProgress.sizePolicy().hasHeightForWidth()) No newline at end of file |
|
554 | 555 | self.txtProgress.setSizePolicy(sizePolicy) No newline at end of file |
|
555 | 556 | self.txtProgress.setObjectName("txtProgress") No newline at end of file |
|
556 | 557 | self.verticalLayout.addWidget(self.txtProgress) No newline at end of file |
|
557 | 558 | self.horizontalLayout_2 = QtGui.QHBoxLayout() No newline at end of file |
|
558 | 559 | self.horizontalLayout_2.setSizeConstraint(QtGui.QLayout.SetDefaultConstraint) No newline at end of file |
|
559 | 560 | self.horizontalLayout_2.setObjectName("horizontalLayout_2") No newline at end of file |
|
560 | 561 | self.btnGbkp = QtGui.QPushButton(self.centralwidget) No newline at end of file |
|
561 | 562 | self.btnGbkp.setEnabled(False) No newline at end of file |
|
562 | 563 | self.btnGbkp.setObjectName("btnGbkp") No newline at end of file |
|
563 | 564 | self.horizontalLayout_2.addWidget(self.btnGbkp) No newline at end of file |
|
564 | 565 | self.btnRestart = QtGui.QPushButton(self.centralwidget) No newline at end of file |
|
565 | 566 | self.btnRestart.setEnabled(False) No newline at end of file |
|
566 | 567 | self.btnRestart.setObjectName("btnRestart") No newline at end of file |
|
567 | 568 | self.horizontalLayout_2.addWidget(self.btnRestart) No newline at end of file |
|
568 | 569 | self.btnStartburn = QtGui.QPushButton(self.centralwidget) No newline at end of file |
|
569 | 570 | self.btnStartburn.setEnabled(False) No newline at end of file |
|
570 | 571 | self.btnStartburn.setObjectName("btnStartburn") No newline at end of file |
|
571 | 572 | self.horizontalLayout_2.addWidget(self.btnStartburn) No newline at end of file |
|
572 | 573 | self.btnStopburn = QtGui.QPushButton(self.centralwidget) No newline at end of file |
|
573 | 574 | self.btnStopburn.setEnabled(False) No newline at end of file |
|
574 | 575 | self.btnStopburn.setObjectName("btnStopburn") No newline at end of file |
|
575 | 576 | self.horizontalLayout_2.addWidget(self.btnStopburn) No newline at end of file |
|
576 | 577 | self.verticalLayout.addLayout(self.horizontalLayout_2) No newline at end of file |
|
577 | 578 | MainWindow.setCentralWidget(self.centralwidget) No newline at end of file |
|
578 | 579 | self.menubar = QtGui.QMenuBar(MainWindow) |
|
580 | No newline at end of file | |
|
579 | self.menubar.setGeometry(QtCore.QRect(0, 0, 621, 21)) No newline at end of file | |
|
580 | 581 | self.menubar.setObjectName("menubar") No newline at end of file |
|
581 | 582 | self.menuFile = QtGui.QMenu(self.menubar) No newline at end of file |
|
582 | 583 | self.menuFile.setObjectName("menuFile") No newline at end of file |
|
583 | 584 | self.menuHelp = QtGui.QMenu(self.menubar) No newline at end of file |
|
584 | 585 | self.menuHelp.setObjectName("menuHelp") No newline at end of file |
|
585 | 586 | self.menuParameters = QtGui.QMenu(self.menubar) No newline at end of file |
|
586 | 587 | self.menuParameters.setObjectName("menuParameters") No newline at end of file |
|
587 | 588 | MainWindow.setMenuBar(self.menubar) No newline at end of file |
|
588 | 589 | self.statusbar = QtGui.QStatusBar(MainWindow) No newline at end of file |
|
589 | 590 | self.statusbar.setObjectName("statusbar") No newline at end of file |
|
590 | 591 | MainWindow.setStatusBar(self.statusbar) No newline at end of file |
|
591 | 592 | self.actionChange_Parameters = QtGui.QAction(MainWindow) No newline at end of file |
|
592 | 593 | self.actionChange_Parameters.setEnabled(False) No newline at end of file |
|
593 | 594 | self.actionChange_Parameters.setObjectName("actionChange_Parameters") No newline at end of file |
|
594 | 595 | self.actionQuit = QtGui.QAction(MainWindow) No newline at end of file |
|
595 | 596 | self.actionQuit.setObjectName("actionQuit") No newline at end of file |
|
596 | 597 | self.actionAbout = QtGui.QAction(MainWindow) No newline at end of file |
|
597 | 598 | self.actionAbout.setObjectName("actionAbout") No newline at end of file |
|
598 | 599 | self.menuFile.addAction(self.actionQuit) No newline at end of file |
|
599 | 600 | self.menuHelp.addAction(self.actionAbout) No newline at end of file |
|
600 | 601 | self.menuParameters.addAction(self.actionChange_Parameters) No newline at end of file |
|
601 | 602 | self.menubar.addAction(self.menuFile.menuAction()) No newline at end of file |
|
602 | 603 | self.menubar.addAction(self.menuParameters.menuAction()) No newline at end of file |
|
603 | 604 | self.menubar.addAction(self.menuHelp.menuAction()) No newline at end of file |
|
604 | 605 | No newline at end of file |
|
605 | 606 | self.retranslateUi(MainWindow) |
|
607 | No newline at end of file | |
|
606 | self.tabWidget.setCurrentIndex(0) No newline at end of file | |
|
607 | 608 | self.lstDcapacity.setCurrentIndex(2) No newline at end of file |
|
608 | 609 | QtCore.QObject.connect(self.actionQuit, QtCore.SIGNAL("triggered()"), MainWindow.close) No newline at end of file |
|
609 | 610 | QtCore.QObject.connect(self.chkCheck, QtCore.SIGNAL("toggled(bool)"), self.txtTDpath.setEnabled) No newline at end of file |
|
610 | 611 | QtCore.QObject.connect(self.chkCheck, QtCore.SIGNAL("toggled(bool)"), self.btnTDpath.setEnabled) No newline at end of file |
|
611 | 612 | QtCore.QObject.connect(self.chkCheck, QtCore.SIGNAL("toggled(bool)"), self.btnCHstart.setEnabled) No newline at end of file |
|
612 | 613 | QtCore.QObject.connect(self.chkDevD, QtCore.SIGNAL("toggled(bool)"), self.grpDevD.setEnabled) No newline at end of file |
|
613 | 614 | QtCore.QObject.connect(self.chkDevB, QtCore.SIGNAL("toggled(bool)"), self.grpDevB.setEnabled) No newline at end of file |
|
614 | 615 | QtCore.QObject.connect(self.chkDevC, QtCore.SIGNAL("toggled(bool)"), self.grpDevC.setEnabled) No newline at end of file |
|
615 | 616 | QtCore.QObject.connect(self.chkDevA, QtCore.SIGNAL("toggled(bool)"), self.grpDevA.setEnabled) No newline at end of file |
|
616 | 617 | QtCore.QMetaObject.connectSlotsByName(MainWindow) No newline at end of file |
|
617 | 618 | MainWindow.setTabOrder(self.txtDpath, self.btnDpath) No newline at end of file |
|
618 | 619 | MainWindow.setTabOrder(self.btnDpath, self.txtRpath) No newline at end of file |
|
619 | 620 | MainWindow.setTabOrder(self.txtRpath, self.btnRpath) No newline at end of file |
|
620 | 621 | MainWindow.setTabOrder(self.btnRpath, self.lstDtype) No newline at end of file |
|
621 | 622 | MainWindow.setTabOrder(self.lstDtype, self.txtDtype) No newline at end of file |
|
622 | 623 | MainWindow.setTabOrder(self.txtDtype, self.txtElabel) No newline at end of file |
|
623 | 624 | MainWindow.setTabOrder(self.txtElabel, self.lstStartDay) No newline at end of file |
|
624 | 625 | MainWindow.setTabOrder(self.lstStartDay, self.lstStopDay) No newline at end of file |
|
625 | 626 | MainWindow.setTabOrder(self.lstStopDay, self.lstDcapacity) No newline at end of file |
|
626 | 627 | MainWindow.setTabOrder(self.lstDcapacity, self.tabWidget) No newline at end of file |
|
627 | 628 | MainWindow.setTabOrder(self.tabWidget, self.btnGbkp) No newline at end of file |
|
628 | 629 | MainWindow.setTabOrder(self.btnGbkp, self.btnRestart) No newline at end of file |
|
629 | 630 | MainWindow.setTabOrder(self.btnRestart, self.btnStartburn) No newline at end of file |
|
630 | 631 | MainWindow.setTabOrder(self.btnStartburn, self.btnStopburn) No newline at end of file |
|
631 | 632 | No newline at end of file |
|
632 | 633 | def retranslateUi(self, MainWindow): No newline at end of file |
|
633 | 634 | MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "JRO BACKUP MANAGER", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
634 | 635 | self.btnDpath.setText(QtGui.QApplication.translate("MainWindow", "Data Path", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
635 | 636 | self.btnRpath.setText(QtGui.QApplication.translate("MainWindow", "Resource Path", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
636 | 637 | self.lblDtype.setText(QtGui.QApplication.translate("MainWindow", "Data Type", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
637 | 638 | self.lstDtype.setItemText(0, QtGui.QApplication.translate("MainWindow", "Raw Data", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
638 | 639 | self.lstDtype.setItemText(1, QtGui.QApplication.translate("MainWindow", "Process Data", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
639 | 640 | self.lstDtype.setItemText(2, QtGui.QApplication.translate("MainWindow", "BLTR Data", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
640 | 641 | self.lstDtype.setItemText(3, QtGui.QApplication.translate("MainWindow", "Other", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
641 | 642 | self.txtDtype.setText(QtGui.QApplication.translate("MainWindow", "r", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
642 | 643 | self.lblElabel.setText(QtGui.QApplication.translate("MainWindow", "Exp. Label at device", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
643 | 644 | self.lblCopys.setText(QtGui.QApplication.translate("MainWindow", "Copys", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
644 | 645 | self.lblStartDay.setText(QtGui.QApplication.translate("MainWindow", "Start Day:", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
645 | 646 | self.lblStopDay.setText(QtGui.QApplication.translate("MainWindow", "Stop Day:", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
646 | 647 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabParameters), QtGui.QApplication.translate("MainWindow", "Parameters", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
647 | 648 | self.chkDevA.setText(QtGui.QApplication.translate("MainWindow", "Dev A", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
648 | 649 | self.txtBmodeA.setText(QtGui.QApplication.translate("MainWindow", "-sao", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
649 | 650 | self.btnTdevA.setText(QtGui.QApplication.translate("MainWindow", "Test DevA", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
650 | 651 | self.chkDevB.setText(QtGui.QApplication.translate("MainWindow", "Dev B", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
651 | 652 | self.txtBmodeB.setText(QtGui.QApplication.translate("MainWindow", "-sao", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
652 | 653 | self.btnTdevB.setText(QtGui.QApplication.translate("MainWindow", "Test DevB", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
653 | 654 | self.chkDevC.setText(QtGui.QApplication.translate("MainWindow", "Dev C", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
654 | 655 | self.txtBmodeC.setText(QtGui.QApplication.translate("MainWindow", "-sao", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
655 | 656 | self.btnTdevC.setText(QtGui.QApplication.translate("MainWindow", "Test DevC", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
656 | 657 | self.chkDevD.setText(QtGui.QApplication.translate("MainWindow", "Dev D", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
657 | 658 | self.txtBmodeD.setText(QtGui.QApplication.translate("MainWindow", "-sao", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
658 | 659 | self.btnTdevD.setText(QtGui.QApplication.translate("MainWindow", "Test DevD", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
659 | 660 | self.lblDevice.setText(QtGui.QApplication.translate("MainWindow", "Device", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
660 | 661 | self.lblBspeed.setText(QtGui.QApplication.translate("MainWindow", "Burn Speed", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
661 | 662 | self.lblBmode.setText(QtGui.QApplication.translate("MainWindow", "Burn Mode", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
662 | 663 | self.lblDcapacity.setText(QtGui.QApplication.translate("MainWindow", "Device Capacity", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
663 | 664 | self.lstDcapacity.setItemText(0, QtGui.QApplication.translate("MainWindow", "BluRay [25.0 GB]", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
664 | 665 | self.lstDcapacity.setItemText(1, QtGui.QApplication.translate("MainWindow", "DVD2 [8.5 GB]", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
665 | 666 | self.lstDcapacity.setItemText(2, QtGui.QApplication.translate("MainWindow", "DVD1 [4.7 GB]", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
666 | 667 | self.lstDcapacity.setItemText(3, QtGui.QApplication.translate("MainWindow", "CD [0.7 GB]", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
667 | 668 | self.lstDcapacity.setItemText(4, QtGui.QApplication.translate("MainWindow", "Other [? MB]", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
668 | 669 | self.lblPSgraphic.setText(QtGui.QApplication.translate("MainWindow", "PS Graphic", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
669 | 670 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabDconfig), QtGui.QApplication.translate("MainWindow", "Device Config.", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
670 | 671 | self.label_4.setText(QtGui.QApplication.translate("MainWindow", "BURN", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
671 | 672 | self.lblSTATUS.setText(QtGui.QApplication.translate("MainWindow", "STATUS", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
672 | 673 | self.lblINFO.setText(QtGui.QApplication.translate("MainWindow", "DISC", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
673 | 674 | self.lblSET.setText(QtGui.QApplication.translate("MainWindow", "COPY", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
674 | 675 | self.lblDevA.setText(QtGui.QApplication.translate("MainWindow", "DEV A", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
675 | 676 | self.lblDevB.setText(QtGui.QApplication.translate("MainWindow", "DEV B", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
676 | 677 | self.lblDevC.setText(QtGui.QApplication.translate("MainWindow", "DEV C", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
677 | 678 | self.lblDevD.setText(QtGui.QApplication.translate("MainWindow", "DEV D", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
678 | 679 | self.label.setText(QtGui.QApplication.translate("MainWindow", "CHECK", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
679 | 680 | self.btnTDpath.setText(QtGui.QApplication.translate("MainWindow", "Temp Data Path", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
680 | 681 | self.lblSTATUS_2.setText(QtGui.QApplication.translate("MainWindow", "STATUS", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
681 | 682 | self.lblDevA_2.setText(QtGui.QApplication.translate("MainWindow", "DEV A", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
682 | 683 | self.lblDevB_2.setText(QtGui.QApplication.translate("MainWindow", "DEV B", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
683 | 684 | self.lblDevC_2.setText(QtGui.QApplication.translate("MainWindow", "DEV C", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
684 | 685 | self.lblDevD_2.setText(QtGui.QApplication.translate("MainWindow", "DEV D", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
685 | 686 | self.chkCheck.setText(QtGui.QApplication.translate("MainWindow", "MANUAL", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
686 | 687 | self.btnCHstart.setText(QtGui.QApplication.translate("MainWindow", "START", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
687 | 688 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabStatus), QtGui.QApplication.translate("MainWindow", "Status Burn", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
688 | 689 | self.btnGbkp.setText(QtGui.QApplication.translate("MainWindow", "Generate Bkp", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
689 | 690 | self.btnRestart.setText(QtGui.QApplication.translate("MainWindow", "Restart", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
690 | 691 | self.btnStartburn.setText(QtGui.QApplication.translate("MainWindow", "Start Burn", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
691 | 692 | self.btnStopburn.setText(QtGui.QApplication.translate("MainWindow", "Stop Burn", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
692 | 693 | self.menuFile.setTitle(QtGui.QApplication.translate("MainWindow", "File", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
693 | 694 | self.menuHelp.setTitle(QtGui.QApplication.translate("MainWindow", "Help", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
694 | 695 | self.menuParameters.setTitle(QtGui.QApplication.translate("MainWindow", "Parameters", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
695 | 696 | self.actionChange_Parameters.setText(QtGui.QApplication.translate("MainWindow", "Change Parameters", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
696 | 697 | self.actionQuit.setText(QtGui.QApplication.translate("MainWindow", "Quit", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
697 | 698 | self.actionAbout.setText(QtGui.QApplication.translate("MainWindow", "About", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
698 | 699 | No newline at end of file |
|
699 | 700 | No newline at end of file |
|
700 | 701 | if __name__ == "__main__": No newline at end of file |
|
701 | 702 | import sys No newline at end of file |
|
702 | 703 | app = QtGui.QApplication(sys.argv) No newline at end of file |
|
703 | 704 | MainWindow = QtGui.QMainWindow() No newline at end of file |
|
704 | 705 | ui = Ui_MainWindow() No newline at end of file |
|
705 | 706 | ui.setupUi(MainWindow) No newline at end of file |
|
706 | 707 | MainWindow.show() No newline at end of file |
|
707 | 708 | sys.exit(app.exec_()) No newline at end of file |
|
708 | 709 | No newline at end of file |
@@ -1,77 +1,77 | |||
|
1 | 1 | # -*- coding: utf-8 -*- No newline at end of file |
|
2 | 2 | No newline at end of file |
|
3 | 3 | # Form implementation generated from reading ui file '/home/ricardoar/JRO_SVN/eric4/jro_backup_manager/ui/Parameters.ui' No newline at end of file |
|
4 | 4 | # |
|
5 | No newline at end of file | |
|
5 | # Created: Tue May 25 00:54:30 2010 | |
|
No newline at end of file | ||
|
6 | No newline at end of file | |
|
6 | # by: PyQt4 UI code generator 4.7.2 No newline at end of file | |
|
7 | 7 | # No newline at end of file |
|
8 | 8 | # WARNING! All changes made in this file will be lost! No newline at end of file |
|
9 | 9 | No newline at end of file |
|
10 | 10 | from PyQt4 import QtCore, QtGui No newline at end of file |
|
11 | 11 | No newline at end of file |
|
12 | 12 | class Ui_Parameters(object): No newline at end of file |
|
13 | 13 | def setupUi(self, Parameters): No newline at end of file |
|
14 | 14 | Parameters.setObjectName("Parameters") No newline at end of file |
|
15 | 15 | Parameters.resize(207, 152) No newline at end of file |
|
16 | 16 | self.verticalLayout = QtGui.QVBoxLayout(Parameters) No newline at end of file |
|
17 | 17 | self.verticalLayout.setObjectName("verticalLayout") No newline at end of file |
|
18 | 18 | self.horizontalLayout_3 = QtGui.QHBoxLayout() No newline at end of file |
|
19 | 19 | self.horizontalLayout_3.setObjectName("horizontalLayout_3") No newline at end of file |
|
20 | 20 | self.verticalLayout_2 = QtGui.QVBoxLayout() No newline at end of file |
|
21 | 21 | self.verticalLayout_2.setObjectName("verticalLayout_2") No newline at end of file |
|
22 | 22 | self.label = QtGui.QLabel(Parameters) No newline at end of file |
|
23 | 23 | self.label.setObjectName("label") No newline at end of file |
|
24 | 24 | self.verticalLayout_2.addWidget(self.label) No newline at end of file |
|
25 | 25 | self.label_3 = QtGui.QLabel(Parameters) No newline at end of file |
|
26 | 26 | self.label_3.setObjectName("label_3") No newline at end of file |
|
27 | 27 | self.verticalLayout_2.addWidget(self.label_3) No newline at end of file |
|
28 | 28 | self.label_2 = QtGui.QLabel(Parameters) No newline at end of file |
|
29 | 29 | self.label_2.setObjectName("label_2") No newline at end of file |
|
30 | 30 | self.verticalLayout_2.addWidget(self.label_2) No newline at end of file |
|
31 | 31 | self.horizontalLayout_3.addLayout(self.verticalLayout_2) No newline at end of file |
|
32 | 32 | self.verticalLayout_3 = QtGui.QVBoxLayout() No newline at end of file |
|
33 | 33 | self.verticalLayout_3.setObjectName("verticalLayout_3") No newline at end of file |
|
34 | 34 | self.txtNcopys = QtGui.QSpinBox(Parameters) No newline at end of file |
|
35 | 35 | self.txtNcopys.setMinimum(1) No newline at end of file |
|
36 | 36 | self.txtNcopys.setMaximum(999) No newline at end of file |
|
37 | 37 | self.txtNcopys.setObjectName("txtNcopys") No newline at end of file |
|
38 | 38 | self.verticalLayout_3.addWidget(self.txtNcopys) No newline at end of file |
|
39 | 39 | self.txtDisc = QtGui.QSpinBox(Parameters) No newline at end of file |
|
40 | 40 | self.txtDisc.setMinimum(1) No newline at end of file |
|
41 | 41 | self.txtDisc.setMaximum(999999) No newline at end of file |
|
42 | 42 | self.txtDisc.setObjectName("txtDisc") No newline at end of file |
|
43 | 43 | self.verticalLayout_3.addWidget(self.txtDisc) No newline at end of file |
|
44 | 44 | self.txtCopy = QtGui.QSpinBox(Parameters) No newline at end of file |
|
45 | 45 | self.txtCopy.setMinimum(1) No newline at end of file |
|
46 | 46 | self.txtCopy.setMaximum(999) No newline at end of file |
|
47 | 47 | self.txtCopy.setObjectName("txtCopy") No newline at end of file |
|
48 | 48 | self.verticalLayout_3.addWidget(self.txtCopy) No newline at end of file |
|
49 | 49 | self.horizontalLayout_3.addLayout(self.verticalLayout_3) No newline at end of file |
|
50 | 50 | self.verticalLayout.addLayout(self.horizontalLayout_3) No newline at end of file |
|
51 | 51 | self.buttonBox = QtGui.QDialogButtonBox(Parameters) No newline at end of file |
|
52 | 52 | self.buttonBox.setOrientation(QtCore.Qt.Horizontal) No newline at end of file |
|
53 | 53 | self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) No newline at end of file |
|
54 | 54 | self.buttonBox.setObjectName("buttonBox") No newline at end of file |
|
55 | 55 | self.verticalLayout.addWidget(self.buttonBox) No newline at end of file |
|
56 | 56 | No newline at end of file |
|
57 | 57 | self.retranslateUi(Parameters) No newline at end of file |
|
58 | 58 | QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), Parameters.accept) No newline at end of file |
|
59 | 59 | QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), Parameters.reject) No newline at end of file |
|
60 | 60 | QtCore.QMetaObject.connectSlotsByName(Parameters) No newline at end of file |
|
61 | 61 | No newline at end of file |
|
62 | 62 | def retranslateUi(self, Parameters): No newline at end of file |
|
63 | 63 | Parameters.setWindowTitle(QtGui.QApplication.translate("Parameters", "Parameters", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
64 | 64 | self.label.setText(QtGui.QApplication.translate("Parameters", "N° Copys", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
65 | 65 | self.label_3.setText(QtGui.QApplication.translate("Parameters", "Disc", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
66 | 66 | self.label_2.setText(QtGui.QApplication.translate("Parameters", "Copy", None, QtGui.QApplication.UnicodeUTF8)) No newline at end of file |
|
67 | 67 | No newline at end of file |
|
68 | 68 | No newline at end of file |
|
69 | 69 | if __name__ == "__main__": No newline at end of file |
|
70 | 70 | import sys No newline at end of file |
|
71 | 71 | app = QtGui.QApplication(sys.argv) No newline at end of file |
|
72 | 72 | Parameters = QtGui.QDialog() No newline at end of file |
|
73 | 73 | ui = Ui_Parameters() No newline at end of file |
|
74 | 74 | ui.setupUi(Parameters) No newline at end of file |
|
75 | 75 | Parameters.show() No newline at end of file |
|
76 | 76 | sys.exit(app.exec_()) No newline at end of file |
|
77 | 77 | No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now