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 ## Overloaded BWizardPage methods. ##
31 def connectSignals(self):
33 Connects the signals with the related slots.
35 self.connect(self.pageContent.codeliteCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self.modeChecked(checked, "codelite"))
39 Overload of the BWizardPage reloadData method.
42 if self.pageContent.codeliteCheckBox.isChecked():
43 output.append("codelite")
45 if "codelite" in output:
46 output.remove("codelite")
47 self.setProjectInfo("OUTPUT", output)
53 def modeChecked(self, checked, value):
55 Slot called when one of the mode checkbox is checked. It stores it.
57 output_list = self.projectInfo("OUTPUT")
58 if checked == Qt.Checked:
59 output_list.append(value)
61 output_list.remove(value)
62 self.setProjectInfo("OUTPUT", output_list)