Add the enabled modules with their configuration in the summary page
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 19 Feb 2009 13:51:43 +0000 (13:51 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 19 Feb 2009 13:51:43 +0000 (13:51 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2358 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BCreationPage.py

index 42d246109b01976c5bc76c56ae68e0ad707fabcb..ae1e71cbd9e31aecc33fcbec504c70e5534e093e 100644 (file)
@@ -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):