##// END OF EJS Templates
***
ralonso -
r20:21
parent child
Show More
@@ -1,238 +1,278
1 1 # -*- coding: utf-8 -*-
2 2
3 3 """
4 4 Module implementing MainWindow.
5 5 """
6 6
7 7 from PyQt4.QtGui import QMainWindow
8 8 from PyQt4.QtCore import pyqtSignature
9 9 from Ui_MainWindow import Ui_MainWindow
10 10 from PyQt4 import QtGui
11 11 from subprocess import *
12 12 import sys
13 13 import os
14 14 #import subprocess
15 15 import commands
16 16
17 17 class MainWindow(QMainWindow, Ui_MainWindow):
18 18 """
19 19 Class documentation goes here.
20 20 """
21 21 def __init__(self, parent = None):
22 22 QMainWindow.__init__(self, parent)
23 23 self.setupUi(self)
24 24 self.setupUi2()
25 25
26 26 def setupUi2(self):
27 27 print 'hi'
28 28 self.txtDpath.setText('/home/ricardoar/optional/STORAGE/EW_DRIFTS/')
29 29 self.txtRpath.setText('/home/ricardoar/optional/STORAGE/prueba1_jro_backup_manager/')
30 30
31 31 @pyqtSignature("")
32 32 def on_btnDpath_clicked(self):
33 33 """
34 34 Slot documentation goes here.
35 35 """
36 36 var_Dpath= QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)
37 37 self.txtDpath.setText(var_Dpath)
38 38 self.on_txtDpath_editingFinished()
39 39
40 40 @pyqtSignature("")
41 41 def on_btnRpath_clicked(self):
42 42 """
43 43 Slot documentation goes here.
44 44 """
45 45 var_Rpath = QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)
46 46 self.txtRpath.setText(var_Rpath)
47 47 self.on_txtRpath_editingFinished()
48 48
49 49
50 50 @pyqtSignature("")
51 51 def on_txtDpath_editingFinished(self):
52 52
53 53 #Usando el modulo "subprocess" eric4 pide seleccion del tipo de subproceso (padre o hijo)
54 54 #por ello se prefiere usar el modulo "commands"
55 55 #p1= Popen(['find', var_Dpath, '-name', '*.r'], stdout=PIPE)
56 56 #p2= Popen(['awk', '-F/', '{print substr($NF,2,7)}'], stdin=p1.stdout, stdout=PIPE)
57 57 #output_p2= p2.communicate()[0]
58 58 #self.txtInfo.setText(output_p2)
59 59
60 60 var_Dpath=self.txtDpath.text()
61 61
62 62 #Se verifica que la ruta exista y sea un directorio
63 63 var_cmd="test -d "+str(var_Dpath)
64 64 var_output=commands.getstatusoutput(var_cmd)[0]
65 65 if var_output != 0:
66 66 self.txtInfo.setText("Ruta no valida, output_error:" + str(var_output))
67 67 return
68 68
69 69 #Se buscan los archivos del tipo especificado
70 70 var_Dtype=self.txtDtype.text()
71 71 var_cmd="find " + str(var_Dpath) + " -name *."+ str(var_Dtype) +" | awk -F/ '{print substr($NF,2,7)}' | sort| uniq"
72 72 output_p2=commands.getstatusoutput(var_cmd)[1]
73 73
74 74 #INFO: Muestra los dias que se encontraron
75 75 self.txtInfo.setText(output_p2)
76 76
77 77 #Se cargan las listas para seleccionar StartDay y StopDay
78 78 self.var_list=[]
79 79 for i in range(0, (len(output_p2)+1)/8):
80 80 self.var_list.append(output_p2[8*i:8*(i+1)-1])
81 81
82 82 self.lstStartDay.clear()
83 83 self.lstStopDay.clear()
84 84
85 85 for i in self.var_list:
86 86 self.lstStartDay.addItem(i)
87 87 self.lstStopDay.addItem(i)
88 88
89 89 self.lstStopDay.setCurrentIndex(self.lstStartDay.count()-1)
90 90
91 91 #INFO: Muestra cuantos dias se encontraron
92 92 # self.txtInfo.setText(str(self.lstStartDay.count()))
93 93
94 94
95 95 @pyqtSignature("")
96 96 def on_txtRpath_editingFinished(self):
97 97 """
98 98 Slot documentation goes here.
99 99 """
100 100 var_Rpath=self.txtRpath.text()
101 101 #Se verifica que la ruta exista y sea un directorio
102 102 var_cmd="test -d "+str(var_Rpath)
103 103 var_output=commands.getstatusoutput(var_cmd)[0]
104 104 if var_output != 0:
105 105 self.txtInfo.setText("Ruta no valida, output_error:" + str(var_output))
106 106 return
107 107 else:
108 108 self.txtInfo.setText("Ruta valida, sin error")
109 109
110 110
111 111 @pyqtSignature("int")
112 112 def on_lstDtype_activated(self, index):
113 113 """
114 114 Permite elegir entre los tipos de archivos
115 115 """
116 116 if index == 0:
117 117 var_type='r'
118 118 elif index == 1:
119 119 var_type='pdata'
120 120 elif index == 2:
121 121 var_type='sswma'
122 122
123 123 if index != 3:
124 124 self.txtDtype.setText(var_type)
125 125 self.txtDtype.setReadOnly(True)
126 126 self.on_txtDpath_editingFinished()
127 127 else:
128 128 self.txtDtype.setText('')
129 129 self.txtDtype.setReadOnly(False)
130 130
131 131 @pyqtSignature("")
132 132 def on_txtDtype_editingFinished(self):
133 133 """
134 134 Se activa cuando el tipo de archivo es ingresado manualmente
135 135 """
136 136 self.on_txtDpath_editingFinished()
137 137
138 138 @pyqtSignature("int")
139 139 def on_lstStartDay_activated(self, index):
140 140 """
141 141 Slot documentation goes here.
142 142 """
143 143 #self.txtInfo.setText(str(index))
144 144 var_StopDay_index=self.lstStopDay.count() - self.lstStopDay.currentIndex()
145 145
146 146 self.lstStopDay.clear()
147 147
148 148 for i in self.var_list[index:]:
149 149 self.lstStopDay.addItem(i)
150 150
151 151 self.lstStopDay.setCurrentIndex(self.lstStopDay.count() - var_StopDay_index)
152 152 #self.txtInfo.append(str(var_StopDay_index))
153 153 #self.txtInfo.append(str(self.lstStopDay.count()))
154 154
155 155
156 156 @pyqtSignature("int")
157 157 def on_lstStopDay_activated(self, index):
158 158 """
159 159 Slot documentation goes here.
160 160 """
161 161 #self.txtInfo.setText(str(index))
162 162 var_StartDay_index=self.lstStartDay.currentIndex()
163 163
164 164 var_end_index = self.lstStopDay.count() - index
165 165
166 166 self.lstStartDay.clear()
167 167
168 168 for i in self.var_list[:len(self.var_list) - var_end_index + 1]:
169 169 self.lstStartDay.addItem(i)
170 170
171 171 self.lstStartDay.setCurrentIndex(var_StartDay_index)
172 172 #self.txtInfo.append(str(var_StartDay_index))
173 173 #self.txtInfo.append(str(self.lstStartDay.count()))
174 174
175 175 @pyqtSignature("int")
176 176 def on_lstDcapacity_activated(self, index):
177 177 """
178 178 Permite elegir el tamaΓ±o del disco
179 179 """
180 180 if index == 0:
181 181 var_size=25.0
182 182 elif index == 1:
183 183 var_size=8.5
184 184 elif index == 2:
185 185 var_size=4.7
186 186 elif index == 3:
187 187 var_size=0.7
188 188
189 189 if index != 4:
190 190 self.txtDcapacity.setText(str(var_size*10**9/1024**2))
191 191 self.txtDcapacity.setReadOnly(True)
192 192 else:
193 193 self.txtDcapacity.setText('')
194 194 self.txtDcapacity.setReadOnly(False)
195 195
196 196 @pyqtSignature("")
197 197 def on_btnGbkp_clicked(self):
198 198 """
199 Slot documentation goes here.
200 """
199 Cuando se presiona el boton Generate Bkp
200 """
201
202 #CREA LAS CARPETAS "COMENTADO TEMPORALMENTE"
201 203 var_dirs='/{gpath,iso,ppath}'
202 204 var_Rpath=self.txtRpath.text()
203 205 var_cmd="mkdir "+str(var_Rpath)+str(var_dirs)
204 206 self.txtInfo.append(var_cmd)
205
206 #CREA LAS CARPETAS "COMENTADO TEMPORALMENTE"
207 207 #var_output=commands.getstatusoutput(var_cmd)[0]
208 208 #if var_output != 0:
209 209 # self.txtInfo.setText("No se pudieron crear los directorios, output_error:" + str(var_output))
210 210 # return
211 211 #else:
212 212 # self.txtInfo.append('Carpetas creadas correctamente')
213 213
214 214
215 215 var_sublist=[]
216 216 for i in self.var_list[self.lstStartDay.currentIndex():self.lstStartDay.currentIndex() + self.lstStopDay.currentIndex()+1]:
217 217 self.txtInfo.append(i)
218 218 var_sublist.append(i)
219 219
220 220 #Cargando los parametros de busqueda
221 221 var_Dpath=self.txtDpath.text()
222 222 var_Dtype=self.txtDtype.text()
223 223
224 224 var_files_list=[]
225 225 for var_doy in var_sublist:
226 226 var_cmd="find " + str(var_Dpath) + " -name ?"+var_doy+"???."+ str(var_Dtype)
227 227 var_output=commands.getstatusoutput(var_cmd)[1]
228 228 for var_file in var_output.split():
229 229 var_files_list.append(var_file)
230 230
231 self.txtInfo.append('Lista de archivos')
231 var_Dcapacity=float(self.txtDcapacity.text())*1024 #tamaΓ±o en KB
232 self.txtInfo.append(str(var_Dcapacity))
233
234 # self.txtInfo.append('Lista de archivos')
235 # var_n=0
236 # for i in var_files_list:
237 #self.txtInfo.append(str(os.path.getsize(i)/1024)+'KB')
238 #self.txtInfo.append(i)
239 #var_n += 1
240 #self.txtInfo.append(str(var_n))
241
242 #lista de archivos a grabar en archivos .
243
244 #Ruta de los archivos a grabar
245 var_Rpath_ppath=var_Rpath=self.txtRpath.text()+"/ppath"
246
247 var_n=0
248 var_n_files=0
249 var_tmp=0
250 var_files_list_2=[]
251 self.txtInfo.append(str(len(var_files_list)))
232 252
233 253 for i in var_files_list:
234 self.txtInfo.append(str(os.path.getsize(i)))
235 self.txtInfo.append(i)
236
237
238
254 var_size_i=os.path.getsize(i)/1024+1 #tamaΓ±o en KB, se suma 1 KB para evitar problemas al momento de sumar
255 var_tmp += var_size_i
256
257 if var_tmp > var_Dcapacity:
258 var_tmp -= var_size_i #se quita el tamaΓ±o sumado para mostrar el tamaΓ±o real
259 self.txtInfo.append(str(len(var_files_list_2))+" size:"+str(var_tmp))
260
261 var_file = open(self.txtElabel.text()+"_"+str(var_n),"w")
262 for line in var_files_list_2:
263 var_file.write(line)
264 var_file.close()
265
266 var_n_files += len(var_files_list_2)
267 var_tmp = var_size_i
268 var_files_list_2=[]
269 var_files_list_2.append(i)
270 var_n += 1
271
272 else:
273 var_files_list_2.append(i)
274
275 self.txtInfo.append(str(len(var_files_list_2))+" size:"+str(var_tmp))
276
277 var_n_files += len(var_files_list_2)
278 self.txtInfo.append(str(var_n_files))
@@ -1,782 +1,791
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <ui version="4.0">
3 3 <class>MainWindow</class>
4 4 <widget class="QMainWindow" name="MainWindow">
5 5 <property name="geometry">
6 6 <rect>
7 7 <x>0</x>
8 8 <y>0</y>
9 9 <width>593</width>
10 10 <height>787</height>
11 11 </rect>
12 12 </property>
13 13 <property name="windowTitle">
14 14 <string>JRO BACKUP MANAGER</string>
15 15 </property>
16 16 <widget class="QWidget" name="centralwidget">
17 17 <layout class="QVBoxLayout" name="verticalLayout_3">
18 18 <item>
19 19 <widget class="QTabWidget" name="tabWidget">
20 <property name="enabled">
21 <bool>true</bool>
22 </property>
20 23 <property name="sizePolicy">
21 24 <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
22 25 <horstretch>0</horstretch>
23 26 <verstretch>0</verstretch>
24 27 </sizepolicy>
25 28 </property>
26 29 <property name="currentIndex">
27 30 <number>0</number>
28 31 </property>
29 32 <widget class="QWidget" name="tabParameters">
33 <property name="enabled">
34 <bool>true</bool>
35 </property>
30 36 <attribute name="title">
31 37 <string>Parameters</string>
32 38 </attribute>
33 39 <layout class="QVBoxLayout" name="verticalLayout_2">
34 40 <item>
35 41 <layout class="QHBoxLayout" name="horizontalLayout">
36 42 <property name="sizeConstraint">
37 43 <enum>QLayout::SetDefaultConstraint</enum>
38 44 </property>
39 45 <item>
40 46 <widget class="QLineEdit" name="txtDpath">
41 47 <property name="sizePolicy">
42 48 <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
43 49 <horstretch>0</horstretch>
44 50 <verstretch>0</verstretch>
45 51 </sizepolicy>
46 52 </property>
47 53 </widget>
48 54 </item>
49 55 <item>
50 56 <widget class="QPushButton" name="btnDpath">
51 57 <property name="sizePolicy">
52 58 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
53 59 <horstretch>0</horstretch>
54 60 <verstretch>0</verstretch>
55 61 </sizepolicy>
56 62 </property>
57 63 <property name="text">
58 64 <string>Data Path</string>
59 65 </property>
60 66 <property name="checkable">
61 67 <bool>false</bool>
62 68 </property>
63 69 </widget>
64 70 </item>
65 71 </layout>
66 72 </item>
67 73 <item>
68 74 <layout class="QHBoxLayout" name="horizontalLayout_3">
69 75 <item>
70 76 <widget class="QLineEdit" name="txtRpath"/>
71 77 </item>
72 78 <item>
73 79 <widget class="QPushButton" name="btnRpath">
74 80 <property name="text">
75 81 <string>Resource Path</string>
76 82 </property>
77 83 </widget>
78 84 </item>
79 85 </layout>
80 86 </item>
81 87 <item>
82 88 <widget class="QLabel" name="lblDtype">
83 89 <property name="text">
84 90 <string>Data Type</string>
85 91 </property>
86 92 </widget>
87 93 </item>
88 94 <item>
89 95 <layout class="QHBoxLayout" name="horizontalLayout_4">
90 96 <item>
91 97 <widget class="QComboBox" name="lstDtype">
92 98 <item>
93 99 <property name="text">
94 100 <string>Raw Data</string>
95 101 </property>
96 102 </item>
97 103 <item>
98 104 <property name="text">
99 105 <string>Process Data</string>
100 106 </property>
101 107 </item>
102 108 <item>
103 109 <property name="text">
104 110 <string>BLTR Data</string>
105 111 </property>
106 112 </item>
107 113 <item>
108 114 <property name="text">
109 115 <string>Other</string>
110 116 </property>
111 117 </item>
112 118 </widget>
113 119 </item>
114 120 <item>
115 121 <widget class="QLineEdit" name="txtDtype">
116 122 <property name="text">
117 123 <string>r</string>
118 124 </property>
119 125 <property name="readOnly">
120 126 <bool>true</bool>
121 127 </property>
122 128 </widget>
123 129 </item>
124 130 <item>
125 131 <widget class="QCheckBox" name="chkMST">
126 132 <property name="text">
127 133 <string>MST-ISR Data</string>
128 134 </property>
129 135 </widget>
130 136 </item>
131 137 </layout>
132 138 </item>
133 139 <item>
134 140 <layout class="QHBoxLayout" name="horizontalLayout_6">
135 141 <item>
136 142 <widget class="QLabel" name="lblElabel">
137 143 <property name="text">
138 144 <string>Exp. Label at device</string>
139 145 </property>
140 146 </widget>
141 147 </item>
142 148 <item>
143 149 <widget class="QLabel" name="lblCopys">
144 150 <property name="text">
145 151 <string>Copys</string>
146 152 </property>
147 153 </widget>
148 154 </item>
149 155 </layout>
150 156 </item>
151 157 <item>
152 158 <layout class="QHBoxLayout" name="horizontalLayout_5">
153 159 <item>
154 160 <widget class="QLineEdit" name="txtElabel"/>
155 161 </item>
156 162 <item>
157 163 <widget class="QLineEdit" name="txtCopys">
158 164 <property name="text">
159 165 <string>0</string>
160 166 </property>
161 167 </widget>
162 168 </item>
163 169 </layout>
164 170 </item>
165 171 <item>
166 172 <layout class="QHBoxLayout" name="horizontalLayout_7">
167 173 <item>
168 174 <widget class="QLabel" name="lblStartDay">
169 175 <property name="text">
170 176 <string>Start Day:</string>
171 177 </property>
172 178 </widget>
173 179 </item>
174 180 <item>
175 181 <widget class="QLabel" name="lblStopDay">
176 182 <property name="text">
177 183 <string>Stop Day:</string>
178 184 </property>
179 185 </widget>
180 186 </item>
181 187 </layout>
182 188 </item>
183 189 <item>
184 190 <layout class="QHBoxLayout" name="horizontalLayout_8">
185 191 <item>
186 192 <widget class="QComboBox" name="lstStartDay"/>
187 193 </item>
188 194 <item>
189 195 <widget class="QComboBox" name="lstStopDay"/>
190 196 </item>
191 197 </layout>
192 198 </item>
193 199 </layout>
194 200 </widget>
195 201 <widget class="QWidget" name="tabDconfig">
202 <property name="enabled">
203 <bool>true</bool>
204 </property>
196 205 <property name="sizePolicy">
197 206 <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
198 207 <horstretch>0</horstretch>
199 208 <verstretch>0</verstretch>
200 209 </sizepolicy>
201 210 </property>
202 211 <attribute name="title">
203 212 <string>Device Config.</string>
204 213 </attribute>
205 214 <layout class="QVBoxLayout" name="verticalLayout">
206 215 <item>
207 216 <widget class="QWidget" name="widget" native="true">
208 217 <property name="sizePolicy">
209 218 <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
210 219 <horstretch>0</horstretch>
211 220 <verstretch>0</verstretch>
212 221 </sizepolicy>
213 222 </property>
214 223 <property name="maximumSize">
215 224 <size>
216 225 <width>500</width>
217 226 <height>16777215</height>
218 227 </size>
219 228 </property>
220 229 <layout class="QGridLayout" name="gridLayout">
221 230 <item row="0" column="0">
222 231 <widget class="QCheckBox" name="chkDevA">
223 232 <property name="text">
224 233 <string>Dev A</string>
225 234 </property>
226 235 </widget>
227 236 </item>
228 237 <item row="0" column="1">
229 238 <widget class="QCheckBox" name="chkDevB">
230 239 <property name="text">
231 240 <string>Dev B</string>
232 241 </property>
233 242 </widget>
234 243 </item>
235 244 <item row="0" column="2">
236 245 <widget class="QCheckBox" name="chkDevC">
237 246 <property name="text">
238 247 <string>Dev C</string>
239 248 </property>
240 249 </widget>
241 250 </item>
242 251 <item row="0" column="3">
243 252 <widget class="QCheckBox" name="chkDevD">
244 253 <property name="text">
245 254 <string>Dev D</string>
246 255 </property>
247 256 </widget>
248 257 </item>
249 258 <item row="2" column="1">
250 259 <widget class="QLineEdit" name="txtDeviceB"/>
251 260 </item>
252 261 <item row="4" column="0">
253 262 <widget class="QLineEdit" name="txtBspeedA"/>
254 263 </item>
255 264 <item row="2" column="0">
256 265 <widget class="QLineEdit" name="txtDeviceA"/>
257 266 </item>
258 267 <item row="4" column="1">
259 268 <widget class="QLineEdit" name="txtBspeedB"/>
260 269 </item>
261 270 <item row="2" column="4">
262 271 <widget class="QLabel" name="lblDevice">
263 272 <property name="text">
264 273 <string>Device</string>
265 274 </property>
266 275 </widget>
267 276 </item>
268 277 <item row="2" column="2">
269 278 <widget class="QLineEdit" name="txtDeviceC"/>
270 279 </item>
271 280 <item row="2" column="3">
272 281 <widget class="QLineEdit" name="txtDeviceD"/>
273 282 </item>
274 283 <item row="4" column="3">
275 284 <widget class="QLineEdit" name="txtBspeedD"/>
276 285 </item>
277 286 <item row="5" column="0">
278 287 <widget class="QLineEdit" name="txtBmodeA"/>
279 288 </item>
280 289 <item row="5" column="1">
281 290 <widget class="QLineEdit" name="txtBmodeB"/>
282 291 </item>
283 292 <item row="4" column="4">
284 293 <widget class="QLabel" name="lblBspeed">
285 294 <property name="text">
286 295 <string>Burn Speed</string>
287 296 </property>
288 297 </widget>
289 298 </item>
290 299 <item row="5" column="4">
291 300 <widget class="QLabel" name="lblBmode">
292 301 <property name="text">
293 302 <string>Burn Mode</string>
294 303 </property>
295 304 </widget>
296 305 </item>
297 306 <item row="5" column="2">
298 307 <widget class="QLineEdit" name="txtBmodeC"/>
299 308 </item>
300 309 <item row="5" column="3">
301 310 <widget class="QLineEdit" name="txtBmodeD"/>
302 311 </item>
303 312 <item row="6" column="0">
304 313 <widget class="QPushButton" name="btnTdevA">
305 314 <property name="text">
306 315 <string>Test DevA</string>
307 316 </property>
308 317 </widget>
309 318 </item>
310 319 <item row="6" column="1">
311 320 <widget class="QPushButton" name="btnTdevB">
312 321 <property name="text">
313 322 <string>Test DevB</string>
314 323 </property>
315 324 </widget>
316 325 </item>
317 326 <item row="6" column="2">
318 327 <widget class="QPushButton" name="btnTdevC">
319 328 <property name="text">
320 329 <string>Test DevC</string>
321 330 </property>
322 331 </widget>
323 332 </item>
324 333 <item row="6" column="3">
325 334 <widget class="QPushButton" name="btnTdevD">
326 335 <property name="text">
327 336 <string>Test DevD</string>
328 337 </property>
329 338 </widget>
330 339 </item>
331 340 <item row="4" column="2">
332 341 <widget class="QLineEdit" name="txtBspeedC"/>
333 342 </item>
334 343 </layout>
335 344 </widget>
336 345 </item>
337 346 <item>
338 347 <layout class="QHBoxLayout" name="horizontalLayout_9">
339 348 <property name="sizeConstraint">
340 349 <enum>QLayout::SetFixedSize</enum>
341 350 </property>
342 351 <item>
343 352 <widget class="QLabel" name="lblBprocess">
344 353 <property name="sizePolicy">
345 354 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
346 355 <horstretch>0</horstretch>
347 356 <verstretch>0</verstretch>
348 357 </sizepolicy>
349 358 </property>
350 359 <property name="text">
351 360 <string>Burning process</string>
352 361 </property>
353 362 </widget>
354 363 </item>
355 364 <item>
356 365 <widget class="QCheckBox" name="chkSimultaneously">
357 366 <property name="sizePolicy">
358 367 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
359 368 <horstretch>0</horstretch>
360 369 <verstretch>0</verstretch>
361 370 </sizepolicy>
362 371 </property>
363 372 <property name="text">
364 373 <string>Simultaneously</string>
365 374 </property>
366 375 </widget>
367 376 </item>
368 377 <item>
369 378 <widget class="QCheckBox" name="chkSequentially">
370 379 <property name="sizePolicy">
371 380 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
372 381 <horstretch>0</horstretch>
373 382 <verstretch>0</verstretch>
374 383 </sizepolicy>
375 384 </property>
376 385 <property name="text">
377 386 <string>Sequentially</string>
378 387 </property>
379 388 </widget>
380 389 </item>
381 390 </layout>
382 391 </item>
383 392 <item>
384 393 <layout class="QHBoxLayout" name="horizontalLayout_11">
385 394 <property name="spacing">
386 395 <number>6</number>
387 396 </property>
388 397 <property name="sizeConstraint">
389 398 <enum>QLayout::SetDefaultConstraint</enum>
390 399 </property>
391 400 <item>
392 401 <widget class="QLabel" name="lblDcapacity">
393 402 <property name="sizePolicy">
394 403 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
395 404 <horstretch>0</horstretch>
396 405 <verstretch>0</verstretch>
397 406 </sizepolicy>
398 407 </property>
399 408 <property name="text">
400 409 <string>Device Capacity</string>
401 410 </property>
402 411 </widget>
403 412 </item>
404 413 <item>
405 414 <widget class="QCheckBox" name="chkSalert">
406 415 <property name="sizePolicy">
407 416 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
408 417 <horstretch>0</horstretch>
409 418 <verstretch>0</verstretch>
410 419 </sizepolicy>
411 420 </property>
412 421 <property name="text">
413 422 <string>Sound Alert</string>
414 423 </property>
415 424 </widget>
416 425 </item>
417 426 </layout>
418 427 </item>
419 428 <item>
420 429 <layout class="QHBoxLayout" name="horizontalLayout_10">
421 430 <property name="sizeConstraint">
422 431 <enum>QLayout::SetFixedSize</enum>
423 432 </property>
424 433 <item>
425 434 <widget class="QComboBox" name="lstDcapacity">
426 435 <property name="currentIndex">
427 436 <number>2</number>
428 437 </property>
429 438 <item>
430 439 <property name="text">
431 440 <string>BluRay [25.0 GB]</string>
432 441 </property>
433 442 </item>
434 443 <item>
435 444 <property name="text">
436 445 <string>DVD2 [8.5 GB]</string>
437 446 </property>
438 447 </item>
439 448 <item>
440 449 <property name="text">
441 450 <string>DVD1 [4.7 GB]</string>
442 451 </property>
443 452 </item>
444 453 <item>
445 454 <property name="text">
446 455 <string>CD [0.7 GB]</string>
447 456 </property>
448 457 </item>
449 458 <item>
450 459 <property name="text">
451 460 <string>Other [? GB]</string>
452 461 </property>
453 462 </item>
454 463 </widget>
455 464 </item>
456 465 <item>
457 466 <widget class="QLineEdit" name="txtDcapacity">
458 467 <property name="text">
459 468 <string>4482.26928711</string>
460 469 </property>
461 470 <property name="readOnly">
462 471 <bool>true</bool>
463 472 </property>
464 473 </widget>
465 474 </item>
466 475 <item>
467 476 <widget class="QCheckBox" name="chkPSgraphic">
468 477 <property name="text">
469 478 <string>PS Graphic</string>
470 479 </property>
471 480 </widget>
472 481 </item>
473 482 <item>
474 483 <widget class="QLineEdit" name="lineEdit_17"/>
475 484 </item>
476 485 </layout>
477 486 </item>
478 487 </layout>
479 488 </widget>
480 489 <widget class="QWidget" name="tabSburn">
481 490 <attribute name="title">
482 491 <string>Status Burn</string>
483 492 </attribute>
484 493 <layout class="QVBoxLayout" name="verticalLayout_4">
485 494 <item>
486 495 <widget class="QWidget" name="widget_2" native="true">
487 496 <property name="sizePolicy">
488 497 <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
489 498 <horstretch>0</horstretch>
490 499 <verstretch>0</verstretch>
491 500 </sizepolicy>
492 501 </property>
493 502 <property name="maximumSize">
494 503 <size>
495 504 <width>500</width>
496 505 <height>16777215</height>
497 506 </size>
498 507 </property>
499 508 <layout class="QGridLayout" name="gridLayout_2">
500 509 <item row="3" column="2">
501 510 <widget class="QLineEdit" name="txtSTATUSb"/>
502 511 </item>
503 512 <item row="5" column="1">
504 513 <widget class="QLineEdit" name="txtINFOa"/>
505 514 </item>
506 515 <item row="3" column="1">
507 516 <widget class="QLineEdit" name="txtSTATUSa"/>
508 517 </item>
509 518 <item row="5" column="2">
510 519 <widget class="QLineEdit" name="txtINFOb"/>
511 520 </item>
512 521 <item row="3" column="3">
513 522 <widget class="QLineEdit" name="txtSTATUSc"/>
514 523 </item>
515 524 <item row="3" column="4">
516 525 <widget class="QLineEdit" name="txtSTATUSd"/>
517 526 </item>
518 527 <item row="5" column="4">
519 528 <widget class="QLineEdit" name="txtINFOd"/>
520 529 </item>
521 530 <item row="6" column="1">
522 531 <widget class="QLineEdit" name="txtSETa"/>
523 532 </item>
524 533 <item row="6" column="2">
525 534 <widget class="QLineEdit" name="txtSETb"/>
526 535 </item>
527 536 <item row="6" column="3">
528 537 <widget class="QLineEdit" name="txtSETc"/>
529 538 </item>
530 539 <item row="6" column="4">
531 540 <widget class="QLineEdit" name="txtSETd"/>
532 541 </item>
533 542 <item row="3" column="0">
534 543 <widget class="QLabel" name="lblSTATUS">
535 544 <property name="text">
536 545 <string>STATUS</string>
537 546 </property>
538 547 </widget>
539 548 </item>
540 549 <item row="5" column="0">
541 550 <widget class="QLabel" name="lblINFO">
542 551 <property name="text">
543 552 <string>INFO</string>
544 553 </property>
545 554 </widget>
546 555 </item>
547 556 <item row="6" column="0">
548 557 <widget class="QLabel" name="lblSET">
549 558 <property name="text">
550 559 <string>SET</string>
551 560 </property>
552 561 </widget>
553 562 </item>
554 563 <item row="0" column="1">
555 564 <widget class="QLabel" name="lblDevA">
556 565 <property name="text">
557 566 <string>DEV A</string>
558 567 </property>
559 568 <property name="alignment">
560 569 <set>Qt::AlignCenter</set>
561 570 </property>
562 571 </widget>
563 572 </item>
564 573 <item row="0" column="2">
565 574 <widget class="QLabel" name="lblDevB">
566 575 <property name="text">
567 576 <string>DEV B</string>
568 577 </property>
569 578 <property name="alignment">
570 579 <set>Qt::AlignCenter</set>
571 580 </property>
572 581 </widget>
573 582 </item>
574 583 <item row="0" column="3">
575 584 <widget class="QLabel" name="lblDevC">
576 585 <property name="text">
577 586 <string>DEV C</string>
578 587 </property>
579 588 <property name="alignment">
580 589 <set>Qt::AlignCenter</set>
581 590 </property>
582 591 </widget>
583 592 </item>
584 593 <item row="0" column="4">
585 594 <widget class="QLabel" name="lblDevD">
586 595 <property name="text">
587 596 <string>DEV D</string>
588 597 </property>
589 598 <property name="alignment">
590 599 <set>Qt::AlignCenter</set>
591 600 </property>
592 601 </widget>
593 602 </item>
594 603 <item row="5" column="3">
595 604 <widget class="QLineEdit" name="txtINFOc"/>
596 605 </item>
597 606 </layout>
598 607 </widget>
599 608 </item>
600 609 <item>
601 610 <widget class="QTextEdit" name="txtSburn"/>
602 611 </item>
603 612 </layout>
604 613 </widget>
605 614 </widget>
606 615 </item>
607 616 <item>
608 617 <widget class="QTextEdit" name="txtInfo">
609 618 <property name="readOnly">
610 619 <bool>true</bool>
611 620 </property>
612 621 </widget>
613 622 </item>
614 623 <item>
615 624 <layout class="QHBoxLayout" name="horizontalLayout_2">
616 625 <property name="sizeConstraint">
617 626 <enum>QLayout::SetDefaultConstraint</enum>
618 627 </property>
619 628 <item>
620 629 <widget class="QPushButton" name="btnGbkp">
621 630 <property name="text">
622 631 <string>Generate Bkp</string>
623 632 </property>
624 633 </widget>
625 634 </item>
626 635 <item>
627 636 <widget class="QPushButton" name="btnRestart">
628 637 <property name="text">
629 638 <string>Restart</string>
630 639 </property>
631 640 </widget>
632 641 </item>
633 642 <item>
634 643 <widget class="QPushButton" name="btnStartburn">
635 644 <property name="text">
636 645 <string>Start Burn</string>
637 646 </property>
638 647 </widget>
639 648 </item>
640 649 <item>
641 650 <widget class="QPushButton" name="btnStopburn">
642 651 <property name="text">
643 652 <string>Stop Burn</string>
644 653 </property>
645 654 </widget>
646 655 </item>
647 656 </layout>
648 657 </item>
649 658 </layout>
650 659 </widget>
651 660 <widget class="QMenuBar" name="menubar">
652 661 <property name="geometry">
653 662 <rect>
654 663 <x>0</x>
655 664 <y>0</y>
656 665 <width>593</width>
657 <height>20</height>
666 <height>25</height>
658 667 </rect>
659 668 </property>
660 669 <widget class="QMenu" name="menuFile">
661 670 <property name="title">
662 671 <string>File</string>
663 672 </property>
664 673 <addaction name="actionSave_Config"/>
665 674 <addaction name="actionQuit"/>
666 675 </widget>
667 676 <widget class="QMenu" name="menuParameters">
668 677 <property name="title">
669 678 <string>Parameters</string>
670 679 </property>
671 680 <addaction name="actionChange_Parameters"/>
672 681 </widget>
673 682 <widget class="QMenu" name="menuHelp">
674 683 <property name="title">
675 684 <string>Help</string>
676 685 </property>
677 686 <addaction name="actionAbout"/>
678 687 </widget>
679 688 <addaction name="menuFile"/>
680 689 <addaction name="menuParameters"/>
681 690 <addaction name="menuHelp"/>
682 691 </widget>
683 692 <widget class="QStatusBar" name="statusbar"/>
684 693 <action name="actionChange_Parameters">
685 694 <property name="text">
686 695 <string>Change Parameters</string>
687 696 </property>
688 697 </action>
689 698 <action name="actionSave_Config">
690 699 <property name="text">
691 700 <string>Save Config</string>
692 701 </property>
693 702 </action>
694 703 <action name="actionQuit">
695 704 <property name="text">
696 705 <string>Quit</string>
697 706 </property>
698 707 </action>
699 708 <action name="actionAbout">
700 709 <property name="text">
701 710 <string>About</string>
702 711 </property>
703 712 </action>
704 713 </widget>
705 714 <tabstops>
706 715 <tabstop>txtDpath</tabstop>
707 716 <tabstop>btnDpath</tabstop>
708 717 <tabstop>txtRpath</tabstop>
709 718 <tabstop>btnRpath</tabstop>
710 719 <tabstop>lstDtype</tabstop>
711 720 <tabstop>txtDtype</tabstop>
712 721 <tabstop>chkMST</tabstop>
713 722 <tabstop>txtElabel</tabstop>
714 723 <tabstop>txtCopys</tabstop>
715 724 <tabstop>lstStartDay</tabstop>
716 725 <tabstop>lstStopDay</tabstop>
717 726 <tabstop>chkDevA</tabstop>
718 727 <tabstop>chkDevB</tabstop>
719 728 <tabstop>chkDevC</tabstop>
720 729 <tabstop>chkDevD</tabstop>
721 730 <tabstop>txtDeviceA</tabstop>
722 731 <tabstop>txtDeviceB</tabstop>
723 732 <tabstop>txtDeviceC</tabstop>
724 733 <tabstop>txtDeviceD</tabstop>
725 734 <tabstop>txtBspeedA</tabstop>
726 735 <tabstop>txtBspeedB</tabstop>
727 736 <tabstop>txtBspeedC</tabstop>
728 737 <tabstop>txtBspeedD</tabstop>
729 738 <tabstop>txtBmodeA</tabstop>
730 739 <tabstop>txtBmodeB</tabstop>
731 740 <tabstop>txtBmodeC</tabstop>
732 741 <tabstop>txtBmodeD</tabstop>
733 742 <tabstop>btnTdevA</tabstop>
734 743 <tabstop>btnTdevB</tabstop>
735 744 <tabstop>btnTdevC</tabstop>
736 745 <tabstop>btnTdevD</tabstop>
737 746 <tabstop>chkSimultaneously</tabstop>
738 747 <tabstop>chkSequentially</tabstop>
739 748 <tabstop>chkSalert</tabstop>
740 749 <tabstop>lstDcapacity</tabstop>
741 750 <tabstop>txtDcapacity</tabstop>
742 751 <tabstop>chkPSgraphic</tabstop>
743 752 <tabstop>lineEdit_17</tabstop>
744 753 <tabstop>txtSTATUSa</tabstop>
745 754 <tabstop>txtSTATUSb</tabstop>
746 755 <tabstop>txtSTATUSc</tabstop>
747 756 <tabstop>txtSTATUSd</tabstop>
748 757 <tabstop>txtINFOa</tabstop>
749 758 <tabstop>txtINFOb</tabstop>
750 759 <tabstop>txtINFOc</tabstop>
751 760 <tabstop>txtINFOd</tabstop>
752 761 <tabstop>txtSETa</tabstop>
753 762 <tabstop>txtSETb</tabstop>
754 763 <tabstop>txtSETc</tabstop>
755 764 <tabstop>txtSETd</tabstop>
756 765 <tabstop>tabWidget</tabstop>
757 766 <tabstop>txtSburn</tabstop>
758 767 <tabstop>btnGbkp</tabstop>
759 768 <tabstop>btnRestart</tabstop>
760 769 <tabstop>btnStartburn</tabstop>
761 770 <tabstop>btnStopburn</tabstop>
762 771 </tabstops>
763 772 <resources/>
764 773 <connections>
765 774 <connection>
766 775 <sender>chkDevA</sender>
767 776 <signal>toggled(bool)</signal>
768 777 <receiver>txtDeviceA</receiver>
769 778 <slot>setEnabled(bool)</slot>
770 779 <hints>
771 780 <hint type="sourcelabel">
772 781 <x>102</x>
773 782 <y>93</y>
774 783 </hint>
775 784 <hint type="destinationlabel">
776 785 <x>102</x>
777 786 <y>135</y>
778 787 </hint>
779 788 </hints>
780 789 </connection>
781 790 </connections>
782 791 </ui>
General Comments 0
You need to be logged in to leave comments. Login now