Complete the Output page ui class
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Jan 2009 11:25:25 +0000 (11:25 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 28 Jan 2009 11:25:25 +0000 (11:25 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2233 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BOutputPage.py

index e233612e4e20069c9a3ebbda0e0af3b4012bf9c5..cd1290eea7cf124883f435b2a77d1de32ed98be8 100644 (file)
@@ -21,3 +21,24 @@ class BOutputPage(BWizardPage):
     def __init__(self):
         BWizardPage.__init__(self, "output_select.ui")
         self.setTitle(self.tr("Choose the project output"))
+        self._setupButtonGroup()
+        self._connectSignals()
+    
+    def _connectSignals(self):
+        self.connect(self._buttonGroup, SIGNAL("buttonClicked(int)"), self._buttonClicked)
+    
+    def _setupButtonGroup(self):
+        self._buttonGroup = QButtonGroup()
+        self._buttonGroup.addButton(self.pageContent.bbsButton)
+        self._buttonGroup.addButton(self.pageContent.eclipseButton)
+        self._buttonGroup.addButton(self.pageContent.codeliteButton)
+        self._buttonGroup.addButton(self.pageContent.xcodeButton)
+    
+    def _buttonClicked(self):
+        self.emit(SIGNAL("completeChanged()"))
+    
+    def isComplete(self):
+        for button in self._buttonGroup.buttons():
+            if button.isChecked():
+                return True
+        return False
\ No newline at end of file