Add some modules.
[bertos.git] / wizard / BWizard.py
index 497ea51d3c674406995538d4c06377486c2db716..a9bff88f0990f5e4caf90bf2709301ef9194ac4e 100644 (file)
@@ -9,6 +9,8 @@
 # Author: Lorenzo Berni <duplo@develer.com>
 #
 
+import copy
+
 from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 
@@ -18,6 +20,7 @@ import BCpuPage
 import BToolchainPage
 import BModulePage
 import BOutputPage
+import BCreationPage
 
 class BWizard(QWizard):
     
@@ -36,6 +39,7 @@ class BWizard(QWizard):
         self.addPage(BToolchainPage.BToolchainPage())
         self.addPage(BModulePage.BModulePage())
         self.addPage(BOutputPage.BOutputPage())
+        self.addPage(BCreationPage.BCreationPage())
     
     def _connectSignals(self):
         self.connect(self, SIGNAL("currentIdChanged(int)"), self._pageChanged)
@@ -46,4 +50,7 @@ class BWizard(QWizard):
             prevPage.saveData()
         page = self.page(pageId)
         if page is not None:
-            page.reloadData()
\ No newline at end of file
+            page.reloadData()
+    
+    def project(self):
+        return copy.deepcopy(QApplication.instance().project)
\ No newline at end of file