projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Group methods in classes in topics
[bertos.git]
/
wizard
/
BWizard.py
diff --git
a/wizard/BWizard.py
b/wizard/BWizard.py
index 559462ac408f0751b608c9453da5ea5b1934ec38..004fdf3e534c450796719f663670e522d8c7da1a 100644
(file)
--- a/
wizard/BWizard.py
+++ b/
wizard/BWizard.py
@@
-24,6
+24,9
@@
import BCreationPage
import BFinalPage
class BWizard(QWizard):
import BFinalPage
class BWizard(QWizard):
+ """
+ Main class of the wizard. It adds the pages automatically.
+ """
def __init__(self):
QWizard.__init__(self)
def __init__(self):
QWizard.__init__(self)
@@
-33,6
+36,9
@@
class BWizard(QWizard):
self._connectSignals()
def _addPages(self):
self._connectSignals()
def _addPages(self):
+ """
+ Method used by the constructor in order to add the pages in the wizard.
+ """
self.addPage(BFolderPage.BFolderPage())
self.addPage(BVersionPage.BVersionPage())
self.addPage(BCpuPage.BCpuPage())
self.addPage(BFolderPage.BFolderPage())
self.addPage(BVersionPage.BVersionPage())
self.addPage(BCpuPage.BCpuPage())
@@
-43,15
+49,22
@@
class BWizard(QWizard):
self.addPage(BFinalPage.BFinalPage())
def _connectSignals(self):
self.addPage(BFinalPage.BFinalPage())
def _connectSignals(self):
+ """
+ Connects the signals with the related slots.
+ """
self.connect(self, SIGNAL("currentIdChanged(int)"), self._pageChanged)
def _pageChanged(self, pageId):
self.connect(self, SIGNAL("currentIdChanged(int)"), self._pageChanged)
def _pageChanged(self, pageId):
- prev_page = self.page(pageId - 1)
- if prev_page is not None:
- prev_page.saveData()
+ """
+ Slot called when the user change the current page. It calls the reloadData
+ method of the next page.
+ """
page = self.page(pageId)
if page is not None:
page.reloadData()
def project(self):
page = self.page(pageId)
if page is not None:
page.reloadData()
def project(self):
+ """
+ Returns the BProject associated with the wizard.
+ """
return copy.deepcopy(QApplication.instance().project)
return copy.deepcopy(QApplication.instance().project)