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):
23 BWizardPage.__init__(self, UI_LOCATION + "/output_select.ui")
24 self.setTitle(self.tr("Choose the project output"))
25 self._connectSignals()
26 self._projectInfoStore("OUTPUT", [])
28 def _connectSignals(self):
29 self.connect(self.pageContent.eclipseCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self._modeChecked(checked, "eclipse"))
30 self.connect(self.pageContent.xcodeCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self._modeChecked(checked, "xcode"))
31 self.connect(self.pageContent.codeliteCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self._modeChecked(checked, "codelite"))
33 def _modeChecked(self, checked, value):
34 output_list = self._projectInfoRetrieve("OUTPUT")
35 if checked == Qt.Checked:
36 output_list.append(value)
38 output_list.remove(value)
39 self._projectInfoStore("OUTPUT", output_list)