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"))
28 self._connectSignals()
29 self._projectInfoStore("OUTPUT", [])
31 def _connectSignals(self):
33 Connects the signals with the related slots.
35 self.connect(self.pageContent.eclipseCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self._modeChecked(checked, "eclipse"))
36 self.connect(self.pageContent.xcodeCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self._modeChecked(checked, "xcode"))
37 self.connect(self.pageContent.codeliteCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self._modeChecked(checked, "codelite"))
39 def _modeChecked(self, checked, value):
41 Slot called when one of the mode checkbox is checked. It stores it.
43 output_list = self._projectInfoRetrieve("OUTPUT")
44 if checked == Qt.Checked:
45 output_list.append(value)
47 output_list.remove(value)
48 self._projectInfoStore("OUTPUT", output_list)