Add a final page after the project creation
[bertos.git] / wizard / BWizard.py
index 221f320179d08be05ff843c79b62efd29a08e0a2..7c2b0f4bc6c73c0302c3db77d8b74f61307a6aaa 100644 (file)
@@ -21,6 +21,7 @@ import BToolchainPage
 import BModulePage
 import BOutputPage
 import BCreationPage
+import BFinalPage
 
 class BWizard(QWizard):
     
@@ -29,6 +30,7 @@ class BWizard(QWizard):
         # TODO: choose the right minimum size
         self.setMinimumSize(1000, 500)
         self.setWindowTitle(self.tr("Create a BeRTOS project"))
+        self.setOption(QWizard.DisabledBackButtonOnLastPage, True)
         self._addPages()
         self._connectSignals()
     
@@ -40,6 +42,7 @@ class BWizard(QWizard):
         self.addPage(BModulePage.BModulePage())
         self.addPage(BOutputPage.BOutputPage())
         self.addPage(BCreationPage.BCreationPage())
+        self.addPage(BFinalPage.BFinalPage())
     
     def _connectSignals(self):
         self.connect(self, SIGNAL("currentIdChanged(int)"), self._pageChanged)
@@ -53,4 +56,4 @@ class BWizard(QWizard):
             page.reloadData()
     
     def project(self):
-        return copy.deepcopy(QApplication.instance().project)
\ No newline at end of file
+        return copy.deepcopy(QApplication.instance().project)