4 # Copyright 2009 Develer S.r.l. (http://www.develer.com/)
9 # Author: Lorenzo Berni <duplo@develer.com>
14 from PyQt4.QtGui import *
15 from BWizardPage import *
20 class BOutputPage(BWizardPage):
22 Page of the wizard that show a little summary of the previous decisions.
26 BWizardPage.__init__(self, UI_LOCATION + "/output_select.ui")
27 self.setTitle(self.tr("Choose the project output"))
29 self.setProjectInfo("OUTPUT", [])
31 ## Overloaded BWizardPage connectSignals method. ##
33 def connectSignals(self):
35 Connects the signals with the related slots.
37 self.connect(self.pageContent.eclipseCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self.modeChecked(checked, "eclipse"))
38 self.connect(self.pageContent.xcodeCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self.modeChecked(checked, "xcode"))
39 self.connect(self.pageContent.codeliteCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self.modeChecked(checked, "codelite"))
45 def modeChecked(self, checked, value):
47 Slot called when one of the mode checkbox is checked. It stores it.
49 output_list = self.projectInfo("OUTPUT")
50 if checked == Qt.Checked:
51 output_list.append(value)
53 output_list.remove(value)
54 self.setProjectInfo("OUTPUT", output_list)