X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBCreationPage.py;h=d91fbc61c649777cf4432803ec18628c569c02e4;hb=74424d5341be69e17ddd6304b58e3fcde9af0f32;hp=1d48ac3030e82331d89d1c2fde9a02fd671bda94;hpb=4ad4f4c9a51a8347c362617dc6d1bd1de57b9a26;p=bertos.git diff --git a/wizard/BCreationPage.py b/wizard/BCreationPage.py index 1d48ac30..d91fbc61 100644 --- a/wizard/BCreationPage.py +++ b/wizard/BCreationPage.py @@ -46,18 +46,24 @@ class BCreationPage(BWizardPage): def __init__(self): BWizardPage.__init__(self, UI_LOCATION + "/project_creation.ui") - self.setTitle(self.tr("Settings summary")) + self.setTitle(self.tr("Project summary")) + self.setSubTitle(self.tr("Your project is ready to be created. Review your selections and press the \"Create\" button")) self._completed = False ## Overloaded BWizardPage methods ## + + def connectSignals(self): + self.connect(self.pageContent.codeliteCheckBox, SIGNAL("stateChanged(int)"), self.codelitePluginChanged) def setupUi(self): summary = self.pageContent.summaryTree summary.setHeaderHidden(True) summary.setColumnCount(1) + self.pageContent.codeliteCheckBox.setChecked("codelite" not in self.plugins()) + self.codelitePluginChanged() self.setButtonText(QWizard.NextButton, self.tr("Create")) - def reloadData(self): + def reloadData(self, previous_id=None): self.setupUi() self.pageContent.summaryTree.clear() top_level = [] @@ -65,7 +71,7 @@ class BCreationPage(BWizardPage): folder_item = QTreeWidgetItem(folder_title, QStringList([os.path.normpath(self.projectInfo("PROJECT_PATH"))])) top_level.append(folder_title) version_title = QTreeWidgetItem(QStringList([self.tr("BeRTOS version")])) - sources_path = self.projectInfo("SOURCES_PATH") + sources_path = self.projectInfo("BERTOS_PATH") version = QTreeWidgetItem(version_title, QStringList([self.tr("version: ") + bertos_utils.bertosVersion(sources_path)])) source_path = QTreeWidgetItem(version_title, QStringList([self.tr("path: ") + os.path.normpath(sources_path)])) top_level.append(version_title) @@ -86,7 +92,7 @@ class BCreationPage(BWizardPage): toolchain_target = QTreeWidgetItem(toolchain_title, QStringList([version])) toolchain_path = QTreeWidgetItem(toolchain_title, QStringList([self.tr("path: " + os.path.normpath(toolchain_info["path"]))])) top_level.append(toolchain_title) - module_title = QTreeWidgetItem(QStringList([self.tr("Modules")])) + module_title = QTreeWidgetItem(QStringList([self.tr("Selected modules")])) configurations = self.projectInfo("CONFIGURATIONS") module_categories = {} for module, information in self.projectInfo("MODULES").items(): @@ -110,4 +116,15 @@ class BCreationPage(BWizardPage): for item in top_level: self.pageContent.summaryTree.expandItem(item) + #### + + ## Slots ## + + def codelitePluginChanged(self): + if not self.pageContent.codeliteCheckBox.isChecked(): + output = ["codelite"] + else: + output= [] + self.setProjectInfo("OUTPUT", output) + #### \ No newline at end of file