# Author: Lorenzo Berni <duplo@develer.com>
#
+import os
+
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4 import uic
import qvariant_converter
+import const
+
class BWizardPage(QWizardPage):
"""
Base class for all the wizard pages. It has the utility method used in all
def __init__(self, wizardGui, parent = None):
QWizardPage.__init__(self, parent)
- self.pageContent = uic.loadUi(wizardGui, None)
+ self.pageContent = uic.loadUi(os.path.join(const.DATA_DIR, wizardGui), None)
layout = QVBoxLayout()
layout.addWidget(self.pageContent)
self.setLayout(layout)
"""
return QApplication.instance().project.info(key)
+ @property
def project(self):
"""
Returns the BProject instance.
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):
"""
"""
pass
- ####
\ No newline at end of file
+ ####