from BWizardPage import *
import bertos_utils
+from BVersionPage import BVersionPage
+
from const import *
class BFolderPage(BWizardPage):
return True
else:
return False
+
+ def nextId(self):
+ """
+ Overload of the QWizardPage nextId method.
+ """
+ return self.wizard().pageIndex(self.next_page)
+
####
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):
"""
<rect>
<x>0</x>
<y>0</y>
- <width>381</width>
- <height>146</height>
+ <width>401</width>
+ <height>250</height>
</rect>
</property>
<property name="sizePolicy">
<property name="windowTitle">
<string>Form</string>
</property>
- <layout class="QVBoxLayout" name="verticalLayout_3">
+ <layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
</property>
</widget>
</item>
+ <item>
+ <widget class="QGroupBox" name="groupBox">
+ <property name="title">
+ <string>Board type</string>
+ </property>
+ <property name="checkable">
+ <bool>false</bool>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <item>
+ <widget class="QRadioButton" name="customButton">
+ <property name="text">
+ <string>Custom board</string>
+ </property>
+ <property name="checked">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QRadioButton" name="predefinedButton">
+ <property name="text">
+ <string>Predefined board</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
</layout>
</widget>
<resources>