# Copyright 2008 Develer S.r.l. (http://www.develer.com/)
# All rights reserved.
#
-# $Id:$
+# $Id$
#
# Author: Lorenzo Berni <duplo@develer.com>
#
def __init__(self):
BWizardPage.__init__(self, UI_LOCATION + "/bertos_versions.ui")
- self.setTitle(self.tr("Select the BeRTOS version needed"))
+ self.setTitle(self.tr("Select the BeRTOS directory"))
+ self.setSubTitle(self.tr("The project created will be based on the BeRTOS version found"))
## Overloaded QWizardPage methods ##
"""
if self.pageContent.versionList.currentRow() != -1:
sources_path = qvariant_converter.getString(self.pageContent.versionList.currentItem().data(Qt.UserRole))
- ## Remove the trailing slash
+ # Remove the trailing slash
if sources_path.endswith(os.sep):
sources_path = sources_path[:-1]
self.setProjectInfo("SOURCES_PATH", sources_path)
"""
Overload of the BWizardPage reloadData method.
"""
+ self.resetVersionList()
self.pageContent.versionList.setCurrentRow(-1)
self.fillVersionList()
+ def setupUi(self):
+ """
+ Overload of the BWizardPage setupUi method.
+ """
+ self.pageContent.updateButton.setVisible(False)
+
####
## Slots ##
versions = self.versions()
versions.remove(directory)
self.setVersions(versions)
-
+
+ def resetVersionList(self):
+ """
+ Remove all the version entries from the list.
+ """
+ self.pageContent.versionList.clear()
+
def insertListElement(self, directory):
"""
Inserts the given directory in the version list and returns the