[Drobo-utils-devel] SF.net SVN: drobo-utils:[250] trunk
Brought to you by:
peter_silva
From: <pet...@us...> - 2009-05-19 03:12:40
|
Revision: 250 http://drobo-utils.svn.sourceforge.net/drobo-utils/?rev=250&view=rev Author: peter_silva Date: 2009-05-19 03:12:31 +0000 (Tue, 19 May 2009) Log Message: ----------- Added arbitrary firmware load support to GUI. Modified Paths: -------------- trunk/Drobo.py trunk/DroboGUI.py Modified: trunk/Drobo.py =================================================================== --- trunk/Drobo.py 2009-05-19 03:09:17 UTC (rev 249) +++ trunk/Drobo.py 2009-05-19 03:12:31 UTC (rev 250) @@ -324,9 +324,6 @@ print "%s fw[6] is not armmarvell." % self.char_dev_file raise DroboException - - - def __del__(self): Modified: trunk/DroboGUI.py =================================================================== --- trunk/DroboGUI.py 2009-05-19 03:09:17 UTC (rev 249) +++ trunk/DroboGUI.py 2009-05-19 03:12:31 UTC (rev 250) @@ -449,11 +449,16 @@ self.diagdialog = ShowText(datam,False) self.diagdialog.show() + def __loadFirmware(self): + fileName = QtGui.QFileDialog.getOpenFileName(self, + self.tr("QFileDialog.getOpenFileName()"), + '/root/.drobo-utils', + self.tr("All Files (*);;Text Files (*.txt)")) + if not fileName.isEmpty(): + if self.drobo.PickFirmware(str(fileName)): + self.drobo.writeFirmware( self.Tools.progress.setValue ) + - - - - def __renameDialog(self): @@ -515,6 +520,11 @@ tlay.addWidget(Diagbutton,3,0,1,1) self.connect(Diagbutton, QtCore.SIGNAL('clicked()'), self.__printDiagFile) + DiagLdbutton = QtGui.QPushButton('Load Firmware', self.Tools) + DiagLdbutton.setCheckable(False) + tlay.addWidget(DiagLdbutton,3,1,1,1) + self.connect(DiagLdbutton, QtCore.SIGNAL('clicked()'), self.__loadFirmware) + self.Tools.progress = QtGui.QProgressBar(self.Tools) #self.Tools.progress.setMinimumWidth(2*w) tlay.addWidget(self.Tools.progress,4,0,1,2) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |