Last update of gforge repository
[tablet-suite] / src / backup / pcsbackupwizard.py
index bd16fc5..35ed607 100644 (file)
@@ -7,9 +7,9 @@ from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 
 from ui.pcsuiutils import *
-from style.styleTabletSuite import *
 
 from pcsprogresswizard import *
+
 from pcscheckboxwizard import *
 from pcsopenfilewizard import *
 from pcspcbackupmanager import *
@@ -41,15 +41,17 @@ class PcsBackupWizard(QWizard):
         self.addPage(self.chooseFilePage)
         
         self.progressWizard = PcsProgressWizard(self.deviceInfo,self, windowManager, self)
+
+
+
         self.connect(self.progressWizard.cancelButton, SIGNAL("clicked()"), 
-                     self._confirmsCancel)
+                     self._onBackupCancel)
+
         self.connect(self.progressWizard.doneButton, SIGNAL("clicked()"), self._done)
-        self.connect(self.progressWizard, SIGNAL("destroyed()"), self.test)
         self.addPage(self.progressWizard)
     
-    def test(self):
-        print "entrou caraiiiiii"
-    
+
+
     def noNameTest(self):
         if(str(self.chooseFilePage.getBackupName()).strip() == ""):
             message = "Your backup name can't be blank."
@@ -108,19 +110,6 @@ class PcsBackupWizard(QWizard):
                                      % correct_name
         showMessageBox(nameChangeMessage, "Backup name changed")
     
-    def _confirmsCancel(self):
-        """
-        Confirms the backup canceling.
-        """
-        dialog = QMessageBox()
-        dialog.setText("Do you really want cancel this backup?")
-        dialog.setStandardButtons(QMessageBox.Yes | QMessageBox.No)
-        dialog.setWindowFlags(Qt.FramelessWindowHint)
-        dialog.setStyleSheet(MESSAGE_BOX_DEFAULT)
-        ret = dialog.exec_()
-        if ret == QMessageBox.Yes:
-            self._onBackupCancel()
-    
     def _onBackupCancel(self):
         """
         Stops current backup process in backup manager.
@@ -130,11 +119,6 @@ class PcsBackupWizard(QWizard):
         self.progressWizard.progressCanceled()
         self.backupManager.setBackupInProgress(False)
         
-    def setVisible (self, visible):
-        if(visible == False):
-            self.emit("")
-                
-        
 class UpdateBackupProgress(QThread):
     
     def __init__(self, backupName, path, hostIp, categories, comment,