4 # Copyright 2008 Develer S.r.l. (http://www.develer.com/)
9 # Author: Lorenzo Berni <duplo@develer.com>
12 from PyQt4.QtCore import *
13 from PyQt4.QtGui import *
16 class BWizardPage(QWizardPage):
18 def __init__(self, wizardGui, parent = None):
19 QWizardPage.__init__(self, parent)
20 self.pageContent = uic.loadUi(wizardGui, None)
21 layout = QVBoxLayout()
22 layout.addWidget(self.pageContent)
23 self.setLayout(layout)
25 def _settingsStore(self, key, value):
26 QApplication.instance().settings.setValue(QString(key), QVariant(value))
28 def _settingsRetrieve(self, key):
29 return QApplication.instance().settings.value(QString(key), QVariant())
31 def _projectInfoStore(self, key, value):
32 QApplication.instance().project.setInfo(key, value)
34 def _projectInfoRetrieve(self, key):
35 return QApplication.instance().project.setInfo(key)