# Author: Lorenzo Berni <duplo@develer.com>
#
+from PyQt4.QtCore import *
from PyQt4.QtGui import *
import BFolderPage
def __init__(self):
QWizard.__init__(self)
self.setWindowTitle("Create a BeRTOS project")
+ self._addPages()
+ self._connectSignals()
+
+ def _addPages(self):
self.addPage(BFolderPage.BFolderPage())
self.addPage(BVersionPage.BVersionPage())
- self.addPage(BCpuPage.BCpuPage())
\ No newline at end of file
+ self.addPage(BCpuPage.BCpuPage())
+
+ def _connectSignals(self):
+ self.connect(self, SIGNAL("currentIdChanged(int)"), self._pageChanged)
+
+ def _pageChanged(self, pageId):
+ page = self.page(pageId)
+ if page is not None:
+ page.reloadData()
\ No newline at end of file