+ def _savePage(self, previousRow, previousColumn):
+ module = self._module(previousRow)
+ moduleConfigurations = self._projectInfoRetrieve("CONFIGURATIONS")[self._configurations(module)]
+ for index in range(self.pageContent.propertyTable.rowCount()):
+ parameter = qvariant_converter.getString(self.pageContent.propertyTable.item(index, 0).data(Qt.UserRole))
+ if "type" not in moduleConfigurations[parameter]["informations"].keys() or moduleConfigurations[parameter]["informations"]["type"] == "int":
+ moduleConfigurations[parameter]["value"] = str(self.pageContent.propertyTable.cellWidget(index, 1).value())
+ elif moduleConfigurations[parameter]["informations"]["type"] == "enum":
+ moduleConfigurations[parameter]["value"] = unicode(self.pageContent.propertyTable.cellWidget(index, 1).currentText())
+ elif moduleConfigurations[parameter]["informations"]["type"] == "boolean":
+ if self.pageContent.propertyTable.cellWidget(index, 1).isChecked():
+ moduleConfigurations[parameter]["value"] = "1"
+ else:
+ moduleConfigurations[parameter]["value"] = "0"
+
+ def _pageChanged(self, row, column, previousRow, previousColumn):
+ if previousRow != -1 and previousColumn != -1:
+ self._savePage(previousRow, previousColumn)
+ self._fillPropertyTable()
+