From 951f9f7001d7b309ceaa3a2b3fcc86e529580a2a Mon Sep 17 00:00:00 2001 From: duplo Date: Thu, 19 Feb 2009 13:51:43 +0000 Subject: [PATCH] Add the enabled modules with their configuration in the summary page git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2358 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BCreationPage.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wizard/BCreationPage.py b/wizard/BCreationPage.py index 42d24610..ae1e71cb 100644 --- a/wizard/BCreationPage.py +++ b/wizard/BCreationPage.py @@ -59,6 +59,15 @@ class BCreationPage(BWizardPage): toolchainTarget = QTreeWidgetItem(toolchainTitle, QStringList([self.tr("version: " + "GCC " + toolchainInfo["version"] + " (" + toolchainInfo["build"] + ")")])) toolchainPath = QTreeWidgetItem(toolchainTitle, QStringList([self.tr("path: " + toolchainInfo["path"])])) topLevel.append(toolchainTitle) + moduleTitle = QTreeWidgetItem(QStringList([self.tr("Modules")])) + configurations = self._projectInfoRetrieve("CONFIGURATIONS") + for module, information in self._projectInfoRetrieve("MODULES").items(): + if information["enabled"]: + moduleItem = QTreeWidgetItem(moduleTitle, QStringList([module + " - " + information["description"]])) + if len(information["configuration"]) > 0: + for property, data in configurations[information["configuration"]].items(): + configurationItem = QTreeWidgetItem(moduleItem, QStringList([data["description"] + " - " + data["value"]])) + topLevel.append(moduleTitle) self.pageContent.summaryTree.insertTopLevelItems(0, topLevel) def _connectSignals(self): -- 2.25.1