from BWizardPage import *
import bertos_utils
-from BVersionPage import BVersionPage
+from BCpuPage import BCpuPage
from BBoardPage import BBoardPage
from const import *
if self.pageContent.projectPath.text() != "None":
self.setProjectInfo("PROJECT_PATH", unicode(self.pageContent.projectPath.text()))
self.setProjectInfo("PROJECT_NAME", os.path.basename(unicode(self.pageContent.projectPath.text())))
+ self.setProjectInfo("ROUTE", self.next_page)
return True
else:
return False
-
- def nextId(self):
- """
- Overload of the QWizardPage nextId method.
- """
- return self.wizard().pageIndex(self.next_page)
-
####
self.connect(self.pageContent.nameEdit, SIGNAL("textChanged(const QString)"), self.nameChanged)
self.connect(self.pageContent.directoryEdit, SIGNAL("textChanged(const QString)"), self.directoryChanged)
self.connect(self.pageContent.directoryButton, SIGNAL("clicked()"), self.selectDirectory)
+ self.connect(self.pageContent.customButton, SIGNAL("toggled(bool)"), self.isComplete)
####
Contains the next page class.
"""
if self.pageContent.customButton.isChecked():
- return BVersionPage
+ return BCpuPage
else:
return BBoardPage
return True
else:
return False
+
+ def nextId(self):
+ """
+ Overload of the QWizard nextId method.
+ """
+ # Pick up the class stored into the project in the 'folder' step
+ page_class = self.projectInfo("ROUTE")
+ return self.wizard().pageIndex(page_class)
####
def newProject():
QApplication.instance().project = BProject()
- page_list = [BIntroPage, BFolderPage, BBoardPage, BVersionPage, BCpuPage, BToolchainPage, BModulePage, BOutputPage, BCreationPage, BFinalPage]
+ page_list = [BIntroPage, BFolderPage, BVersionPage, BBoardPage, BCpuPage, BToolchainPage, BModulePage, BOutputPage, BCreationPage, BFinalPage]
wizard = BWizard(page_list)
wizard.show()
wizard.exec_()