X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBVersionPage.py;h=addc2960bc340e71b3a84cfdead92ba7d21b674d;hb=3583bfc76f7ff08915a8ecd23402e5f522e602bd;hp=7c205554e685c2fa08c4fe61d80302c694065fac;hpb=95b71bb91147ac88fa10fed3385ce2f0307fe13c;p=bertos.git diff --git a/wizard/BVersionPage.py b/wizard/BVersionPage.py index 7c205554..addc2960 100644 --- a/wizard/BVersionPage.py +++ b/wizard/BVersionPage.py @@ -51,8 +51,8 @@ class BVersionPage(BWizardPage): def __init__(self, edit=False): self._edit = edit BWizardPage.__init__(self, UI_LOCATION + "/bertos_versions.ui") - self.setTitle(self.tr("Select the BeRTOS directory")) - self.setSubTitle(self.tr("The project created will be based on the BeRTOS version found")) + self.setTitle(self.tr("Select BeRTOS version")) + self.setSubTitle(self.tr("Your project will be created with the specified BeRTOS version")) ## Overloaded QWizardPage methods ## @@ -69,14 +69,6 @@ class BVersionPage(BWizardPage): 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) #### @@ -86,13 +78,13 @@ class BVersionPage(BWizardPage): """ Overload of the BWizardPage connectSignals method. """ - self.connect(self.pageContent.versionList, SIGNAL("itemSelectionChanged()"), self.rowChanged) + self.connect(self.pageContent.versionList, SIGNAL("currentItemChanged(QListWidgetItem *, QListWidgetItem*)"), self.rowChanged) self.connect(self.pageContent.addButton, SIGNAL("clicked()"), self.addVersion) self.connect(self.pageContent.removeButton, SIGNAL("clicked()"), self.removeVersion) # Fake signal connection for the update button self.connect(self.pageContent.updateButton, SIGNAL("clicked()"), self.updateClicked) - def reloadData(self): + def reloadData(self, previous_id=None): """ Overload of the BWizardPage reloadData method. """ @@ -192,8 +184,6 @@ class BVersionPage(BWizardPage): Fills the version list with all the BeRTOS versions founded in the QSettings. """ versions = set([]) - if self._edit: - versions.add(self.projectInfo("BERTOS_PATH")) if os.name == "nt": import winreg_importer versions |= set([os.path.normpath(dir) for dir in winreg_importer.getBertosDirs()])