From: duplo Date: Wed, 28 Jan 2009 11:25:25 +0000 (+0000) Subject: Complete the Output page ui class X-Git-Tag: 2.1.0~449 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=e00a0e97d2ec8ef378448598be142f4647b74756;p=bertos.git Complete the Output page ui class git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2233 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BOutputPage.py b/wizard/BOutputPage.py index e233612e..cd1290ee 100644 --- a/wizard/BOutputPage.py +++ b/wizard/BOutputPage.py @@ -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