X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBOutputPage.py;h=c36ec390fc384d9ff271ac434ef3ff5333a2049b;hb=83e8cfaaf519136e906463151f91ea6bac409973;hp=e233612e4e20069c9a3ebbda0e0af3b4012bf9c5;hpb=0f0599b68cbba7b8cf8d42153d0927c8c0170844;p=bertos.git diff --git a/wizard/BOutputPage.py b/wizard/BOutputPage.py index e233612e..c36ec390 100644 --- a/wizard/BOutputPage.py +++ b/wizard/BOutputPage.py @@ -4,7 +4,7 @@ # Copyright 2009 Develer S.r.l. (http://www.develer.com/) # All rights reserved. # -# $Id:$ +# $Id$ # # Author: Lorenzo Berni # @@ -15,9 +15,40 @@ from PyQt4.QtGui import * from BWizardPage import * import bertos_utils +from const import * class BOutputPage(BWizardPage): + """ + Page of the wizard that show a little summary of the previous decisions. + """ def __init__(self): - BWizardPage.__init__(self, "output_select.ui") + BWizardPage.__init__(self, UI_LOCATION + "/output_select.ui") self.setTitle(self.tr("Choose the project output")) + self.connectSignals() + self.setProjectInfo("OUTPUT", []) + + ## Overloaded BWizardPage connectSignals method. ## + + def connectSignals(self): + """ + Connects the signals with the related slots. + """ + self.connect(self.pageContent.codeliteCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self.modeChecked(checked, "codelite")) + + #### + + ## Slots ## + + def modeChecked(self, checked, value): + """ + Slot called when one of the mode checkbox is checked. It stores it. + """ + output_list = self.projectInfo("OUTPUT") + if checked == Qt.Checked: + output_list.append(value) + else: + output_list.remove(value) + self.setProjectInfo("OUTPUT", output_list) + + #### \ No newline at end of file