Resolve the codelite project generation bug
[bertos.git] / wizard / BOutputPage.py
index aea68aaf9fa789ae79a0e5023f25fe4a93cccb4e..55418d664de7f98dfd2f4bdfd57a45773c2ac905 100644 (file)
@@ -4,7 +4,7 @@
 # Copyright 2009 Develer S.r.l. (http://www.develer.com/)
 # All rights reserved.
 #
-# $Id:$
+# $Id$
 #
 # Author: Lorenzo Berni <duplo@develer.com>
 #
@@ -25,19 +25,27 @@ class BOutputPage(BWizardPage):
     def __init__(self):
         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. ##
+    ## Overloaded BWizardPage methods. ##
     
     def connectSignals(self):
         """
         Connects the signals with the related slots.
         """
-        self.connect(self.pageContent.eclipseCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self.modeChecked(checked, "eclipse"))
-        self.connect(self.pageContent.xcodeCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self.modeChecked(checked, "xcode"))
         self.connect(self.pageContent.codeliteCheckBox, SIGNAL("stateChanged(int)"), lambda checked: self.modeChecked(checked, "codelite"))
     
+    def reloadData(self):
+        """
+        Overload of the BWizardPage reloadData method.
+        """
+        output = []
+        if self.pageContent.codeliteCheckBox.isChecked():
+            output.append("codelite")
+        else:
+            if "codelite" in output:
+                output.remove("codelite")
+        self.setProjectInfo("OUTPUT", output)
+    
     ####
     
     ## Slots ##