from PyQt4.QtGui import *
from ui.pcsuiutils import *
-from style.styleTabletSuite import *
from pcsprogresswizard import *
+
from pcscheckboxwizard import *
from pcsopenfilewizard import *
from pcspcbackupmanager import *
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."
% 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.
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,