From: duplo Date: Wed, 31 Mar 2010 09:43:44 +0000 (+0000) Subject: Add stub of new interface with radio for custom/predefined boards. X-Git-Tag: 2.5.0~569 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=3df1334df82a572917f818c88387440a4d8eeee0;p=bertos.git Add stub of new interface with radio for custom/predefined boards. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3339 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BFolderPage.py b/wizard/BFolderPage.py index 3b34f14a..7e5dcca1 100644 --- a/wizard/BFolderPage.py +++ b/wizard/BFolderPage.py @@ -39,6 +39,8 @@ from PyQt4.QtGui import * from BWizardPage import * import bertos_utils +from BVersionPage import BVersionPage + from const import * class BFolderPage(BWizardPage): @@ -65,6 +67,13 @@ class BFolderPage(BWizardPage): return True else: return False + + def nextId(self): + """ + Overload of the QWizardPage nextId method. + """ + return self.wizard().pageIndex(self.next_page) + #### @@ -121,6 +130,19 @@ class BFolderPage(BWizardPage): self.pageContent.directoryEdit.setText(QDir.toNativeSeparators(directory)) #### + + @property + def next_page(self): + """ + Contains the next page class. + """ + # Actually it does nothing. + if self.pageContent.customButton.isChecked(): + return BVersionPage + else: + # TODO: change it with the predefined board selection page. + # return BBoardPage + return BVersionPage def initializeAttributes(self): """ diff --git a/wizard/ui/dir_select.ui b/wizard/ui/dir_select.ui index 39d389f0..a0f2d5bd 100644 --- a/wizard/ui/dir_select.ui +++ b/wizard/ui/dir_select.ui @@ -6,8 +6,8 @@ 0 0 - 381 - 146 + 401 + 250 @@ -19,7 +19,7 @@ Form - + @@ -142,6 +142,35 @@ + + + + Board type + + + false + + + + + + Custom board + + + true + + + + + + + Predefined board + + + + + +