from BVersionPage import BVersionPage
import qvariant_converter
import BModulePage
+import bertos_utils
class BEditingDialog(QDialog):
) == QMessageBox.Ok:
version_page.setProjectInfo("SOURCES_PATH", version)
version_page.setProjectInfo("OLD_SOURCES_PATH", current_version)
+ project = version_page.project()
+ modules, lists, configurations, files = project.info("MODULES"), project.info("LISTS"), project.info("CONFIGURATIONS"), project.info("FILES")
+ bertos_utils.loadSourceTree(version_page.project())
+ bertos_utils.loadModuleData(version_page.project(), True)
+ modules_, lists_, configurations_, files_ = project.info("MODULES"), project.info("LISTS"), project.info("CONFIGURATIONS"), project.info("FILES")
+ self.module_page.fillModuleTree()
+ print modules == modules_, lists == lists_, configurations == configurations_, files == files_
def apply(self):
createBertosProject(self.module_page.project(), edit=True)
"""
Fills the module tree with the module entries separated in categories.
"""
+ self.pageContent.moduleTree.clear()
modules = self.projectInfo("MODULES")
if not modules:
return
Slot called when the value of one of the stored widget changes. It emits
another signal.
"""
- self.emit(SIGNAL("stateChanged"), id)
\ No newline at end of file
+ self.emit(SIGNAL("stateChanged"), id)
def updateConfigurationValues(def_conf, user_conf):
for param in def_conf["paramlist"]:
- def_conf[param[1]]["value"] = user_conf[param[1]]["value"]
+ if param[1] in user_conf and "value" in user_conf[param[1]]:
+ def_conf[param[1]]["value"] = user_conf[param[1]]["value"]
return def_conf
def findParameterType(parameter):