+ self.connect(self._controlGroup, SIGNAL("stateChanged"), self._saveValue)
+
+ def _saveValue(self, index):
+ property = qvariant_converter.getString(self.pageContent.propertyTable.item(index, 0).data(Qt.UserRole))
+ configuration = self._projectInfoRetrieve("MODULES")[self._currentModule()]["configuration"]
+ configurations = self._projectInfoRetrieve("CONFIGURATIONS")
+ if "type" not in configurations[configuration][property]["informations"].keys() or configurations[configuration][property]["informations"]["type"] == "int":
+ configurations[configuration][property]["value"] = str(self.pageContent.propertyTable.cellWidget(index, 1).value())
+ elif configurations[configuration][property]["informations"]["type"] == "enum":
+ configurations[configuration][property]["value"] = unicode(self.pageContent.propertyTable.cellWidget(index, 1).currentText())
+ elif configurations[configuration][property]["informations"]["type"] == "boolean":
+ if self.pageContent.propertyTable.cellWidget(index, 1).isChecked():
+ configurations[configuration][property]["value"] = "1"
+ else:
+ configurations[configuration][property]["value"] = "0"
+ self._projectInfoStore("CONFIGURATIONS", configurations)
+