X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBWizardPage.py;h=b7ffe1f51e96a2fb76e431935cc806973c20a8b2;hb=52d65db7c052108ba5d004dc4687f938d6f3dc90;hp=be66756206897d489e8c33cb82187f4340e7e65b;hpb=cf36efa296379eb024dd593fc2806a42093e6c97;p=bertos.git diff --git a/wizard/BWizardPage.py b/wizard/BWizardPage.py index be667562..b7ffe1f5 100644 --- a/wizard/BWizardPage.py +++ b/wizard/BWizardPage.py @@ -85,6 +85,7 @@ class BWizardPage(QWizardPage): """ return QApplication.instance().project.info(key) + @property def project(self): """ Returns the BProject instance. @@ -107,6 +108,18 @@ class BWizardPage(QWizardPage): 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): """ @@ -195,4 +208,4 @@ class BWizardPage(QWizardPage): """ pass - #### \ No newline at end of file + ####