Change some strings.
[bertos.git] / wizard / BVersionPage.py
index 452e8a947309637d75906199b3ae0674894157e8..1f7e61bfedf87459d4651ce206e64699087000a0 100644 (file)
@@ -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 ##
     
@@ -65,18 +65,10 @@ class BVersionPage(BWizardPage):
             # Remove the trailing slash
             if sources_path.endswith(os.sep):
                 sources_path = sources_path[:-1]
-            self.setProjectInfo("SOURCES_PATH", sources_path)
+            self.setProjectInfo("BERTOS_PATH", sources_path)
             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)
     
     ####
     
@@ -192,13 +184,11 @@ 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("SOURCES_PATH"))
         if os.name == "nt":
             import winreg_importer
             versions |= set([os.path.normpath(dir) for dir in winreg_importer.getBertosDirs()])
         versions |= set([os.path.normpath(dir) for dir in self.versions()])
-        selected = self.projectInfo("SOURCES_PATH")
+        selected = self.projectInfo("BERTOS_PATH")
         for directory in versions:
             item = self.insertListElement(directory)
             if selected and selected == directory: