Add the isComplete reimplementation
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 16 Dec 2008 09:15:38 +0000 (09:15 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 16 Dec 2008 09:15:38 +0000 (09:15 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2034 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BStartPage.py

index 46d1abd0556bfc49251e0791d1d69313ef921034..e8432bd60b72a68ead6ff05a07f740a52ee8f682 100644 (file)
@@ -35,6 +35,9 @@ class BStartPage(BWizardPage):
         self.pageContent.newDescription.setVisible(False)
         self.pageContent.editDescription.setVisible(False)
     
+    def isComplete(self):
+        return self.pageContent.newButton.isChecked() or self.pageContent.editButton.isChecked()
+    
     def newProject(self):
         filename = QFileDialog.getSaveFileName(self, self.tr("Destination directory"), "", "", "", QFileDialog.ShowDirsOnly)
         if not filename.isEmpty():
@@ -42,9 +45,11 @@ class BStartPage(BWizardPage):
             self.pageContent.newDescription.setVisible(True)
             # TODO: It's better to create it at the end of the wizard...
             bertos_utils.createBertosProject(filename)
+            self.emit(SIGNAL("completeChanged()"))
         else:
             self.pageContent.newDescription.setText("")
             self.pageContent.newDescription.setVisible(False)
+            self.pageContent.newButton.setChecked(False)
     
     def editProject(self):
-        pass
\ No newline at end of file
+        self.pageContent.newButton.setChecked(False)
\ No newline at end of file