From: duplo Date: Wed, 17 Dec 2008 16:16:19 +0000 (+0000) Subject: Add a stub of the BProject interface for store the project infos X-Git-Tag: 2.1.0~617 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=67e2ddd0e9a3aaf90b379a120ae5265dc82e6912;p=bertos.git Add a stub of the BProject interface for store the project infos git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2065 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/wizard/BProject.py b/wizard/BProject.py index 907599c7..19d61a1c 100644 --- a/wizard/BProject.py +++ b/wizard/BProject.py @@ -14,10 +14,6 @@ class BProject(object): def __init__(self): pass - def openProject(self, path): - # Fill the BProject fields, opening an existing project - pass - def setProjectPath(self, path): self.projectPath = path diff --git a/wizard/BWizardPage.py b/wizard/BWizardPage.py index 4eb9915b..dd031ed9 100644 --- a/wizard/BWizardPage.py +++ b/wizard/BWizardPage.py @@ -26,4 +26,10 @@ class BWizardPage(QWizardPage): QApplication.instance().settings.setValue(QString(key), QVariant(value)) def _settingsRetrieve(self, key): - return QApplication.instance().settings.value(QString(key), QVariant()) \ No newline at end of file + return QApplication.instance().settings.value(QString(key), QVariant()) + + def _projectInfoStore(self, key, value): + QApplication.instance().project.setInfo(key, value) + + def _projectInfoRetrieve(self, key): + return QApplication.instance().project.setInfo(key) \ No newline at end of file