Index: bk_manager/trunk/functions/functions2.py =================================================================== diff --git a/bk_manager/trunk/functions/functions2.py b/bk_manager/trunk/functions/functions2.py --- a/bk_manager/trunk/functions/functions2.py (revision 54) +++ b/bk_manager/trunk/functions/functions2.py (revision 55) @@ -12,8 +12,8 @@ """ Se usa para inicializar ciertos parametros para pruebas """ - self.txtDpath.setText('/home/ricardoar/optional/STORAGE/EW_DRIFTS/') - self.txtRpath.setText('/home/ricardoar/optional/prueba1_jro_backup_manager/') + self.txtDpath.setText('/home/ricardoar/optional/STORAGE/EW_DRIFTS') + self.txtRpath.setText('/home/ricardoar/optional/prueba1_jro_backup_manager') self.txtElabel.setText('EW_DRIFTS_pruebas') self.lstDcapacity.setCurrentIndex(4) self.txtDcapacity.setValue(250.0) Index: bk_manager/trunk/ui/MainWindow.py =================================================================== diff --git a/bk_manager/trunk/ui/MainWindow.py b/bk_manager/trunk/ui/MainWindow.py --- a/bk_manager/trunk/ui/MainWindow.py (revision 54) +++ b/bk_manager/trunk/ui/MainWindow.py (revision 55) @@ -72,6 +72,7 @@ def write(self, txt): self.txtInfo.append(str(txt)) +#----------------------------------------------------- Obtencion de las ruta de los datos --------------------------------------------------------------- @pyqtSignature("") def on_btnDpath_clicked(self): @@ -80,28 +81,30 @@ """ self.var_Dpath= QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly) self.txtDpath.setText(self.var_Dpath) - self.on_txtDpath_editingFinished() #llamada a funcion - - - @pyqtSignature("") - def on_btnRpath_clicked(self): - """ - Permite seleccionar graficamente el direcorio del proyecto - """ - self.var_Rpath = QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly) - self.txtRpath.setText(self.var_Rpath) - self.on_txtRpath_editingFinished() #llamada a funcion - - + self.statusDpath = functions.dir_exists(self.var_Dpath, self) + functions.load_days(self) + + @pyqtSignature("") def on_txtDpath_editingFinished(self): """ - Permite buscar los archivos de extension seleccionada en la ruta de de datos - y cargar los valores para el rango de tiempo a ser grabado + Carga la ruta editada y verifica que sea correcta y carga la lista de dias """ self.var_Dpath=self.txtDpath.text() #Se carga la variable con la ruta recien editada self.statusDpath = functions.dir_exists(self.var_Dpath, self) functions.load_days(self) + + +#----------------------------------------------------- Obtencion de las ruta del proyecto --------------------------------------------------------------- + + @pyqtSignature("") + def on_btnRpath_clicked(self): + """ + Permite seleccionar graficamente el direcorio del proyecto + """ + self.var_Rpath = QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly) + self.txtRpath.setText(self.var_Rpath) + self.statusRpath = functions.dir_exists(self.var_Rpath, self) @pyqtSignature("") @@ -111,8 +114,10 @@ """ self.var_Rpath=self.txtRpath.text() #Se carga la variable con la ruta recien editada self.statusRpath = functions.dir_exists(self.var_Rpath, self) - - + + +#----------------------------------------------------- Tipo de datos --------------------------------------------------------------- + @pyqtSignature("int") def on_lstDtype_activated(self, index): """ @@ -120,40 +125,37 @@ """ self.txtDtype.setReadOnly(True) if index == 0: - var_type='r' + self.var_Dtype ='r' elif index == 1: - var_type='pdata' + self.var_Dtype ='pdata' elif index == 2: - var_type='sswma' + self.var_Dtype ='sswma' else : - var_type='' + self.var_Dtype ='' self.txtDtype.setReadOnly(False) - self.txtDtype.setText(var_type) - self.on_txtDtype_editingFinished() - - + self.txtDtype.setText(self.var_Dtype) + functions.load_days(self) #llamada a funcion + @pyqtSignature("") def on_txtDtype_editingFinished(self): self.var_Dtype=self.txtDtype.text() functions.load_days(self) #llamada a funcion - - + + +#----------------------------------------------------- Etiqueta --------------------------------------------------------------- + @pyqtSignature("") def on_txtElabel_editingFinished(self): self.var_Elabel = self.txtElabel.text() - +#----------------------------------------------------- Numero de copias --------------------------------------------------------------- @pyqtSignature("") def on_txtCopys_editingFinished(self): self.var_Copys = self.txtCopys.value() - - @pyqtSignature("") - def on_txtDcapacity_editingFinished(self): - self.var_Dcapacity = self.txtDcapacity.value() - - +#----------------------------------------------------- Seleccion del rango de fechas --------------------------------------------------------------- + @pyqtSignature("int") #CLOSED def on_lstStartDay_activated(self, index): """ @@ -185,8 +187,15 @@ self.lstStartDay.setCurrentIndex(var_StartDay_index) functions.get_sub_list(self) - - + + +#----------------------------------------------------- Capacidad del dispositivo de grabacion --------------------------------------------------------------- + + @pyqtSignature("") + def on_txtDcapacity_editingFinished(self): + self.var_Dcapacity = self.txtDcapacity.value() + + @pyqtSignature("int") #CLOSED def on_lstDcapacity_activated(self, index): """ @@ -210,11 +219,17 @@ self.var_Dcapacity = self.txtDcapacity.value() + +#============================================================================== +# Botones para la generacion de los archivos de configuracion y el proceso de grabacion +#============================================================================== + +#----------------------------------------------------- Generacion de la configuracion usando los parametros --------------------------------------------------------------- @pyqtSignature("") def on_btnGbkp_clicked(self): """ - Cuando se presiona el boton btnGbkp + Generacion de archivos de configuracion usando los parametros """ if functions.validate_parameters(self) == False: @@ -231,8 +246,11 @@ functions.make_files_print(self) # Se crean los archivos .print functions2.make_parameters_conf(self) # se crea el archivo parameters.conf - #Se deshabilitan los parametros de configuracion + #Se bloquean los parametros de configuracion functions2.enabled_items1(True, self) + + +#----------------------------------------------------- Permite reiniciar la configuracion --------------------------------------------------------------- @pyqtSignature("") def on_btnRestart_clicked(self): @@ -242,6 +260,8 @@ functions2.enabled_items1(False, self) os.remove("parameters.conf") + +#----------------------------------------------------- Iniciar proceso de grabacion --------------------------------------------------------------- @pyqtSignature("") def on_btnStartburn_clicked(self): @@ -294,6 +314,8 @@ ####self.txtInfo.append(str(p.pid)) +#----------------------------------------------------- Detener proceso de grabacion --------------------------------------------------------------- + @pyqtSignature("") def on_btnStopburn_clicked(self): """ @@ -302,7 +324,10 @@ self.btnRestart.setEnabled(True) self.btnStartburn.setEnabled(True) self.btnStopburn.setEnabled(False) - + + +#----------------------------------------------------- Testeo de las unidades de grabacion --------------------------------------------------------------- + @pyqtSignature("") def on_btnTdevA_clicked(self): var_dev = str(self.txtDeviceA.text())