"Classic BeRTOS makefile based project",
True, False)
scrollLayout.addWidget(group)
+ plugin_list = self.plugins()
for plugin in self.availablePlugins():
module = bertos_utils.loadPlugin(plugin)
+ selected = False
+ if plugin in plugin_list: selected = True
group, check = self.createNewOutput(module.PLUGIN_NAME,
module.PLUGIN_DESCRIPTION,
- True, True)
+ selected, True)
scrollLayout.addWidget(group)
self._plugin_dict[check] = plugin
scrollLayout.addStretch()
for checkBox, plugin in self._plugin_dict.items():
if checkBox.checkState() == Qt.Checked:
plugins.append(plugin)
+ self.setPlugins(plugins)
self.setProjectInfo("OUTPUT", plugins)
####
Value is a QVariant and neet to be converted in a standard type.
"""
return QApplication.instance().settings.value(QString(key), QVariant())
+
+ def plugins(self):
+ """
+ Returns the list of actived plugins.
+ """
+ return qvariant_converter.getStringList(self.settingsRetrieve("plugins"))
+
+ def setPlugins(self, plugins):
+ """
+ Stores the given list of actived plugins.
+ """
+ self.settingsStore("plugins", qvariant_converter.convertStringList(plugins))
def versions(self):
"""