From 67e2ddd0e9a3aaf90b379a120ae5265dc82e6912 Mon Sep 17 00:00:00 2001 From: duplo Date: Wed, 17 Dec 2008 16:16:19 +0000 Subject: [PATCH] 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 --- wizard/BProject.py | 4 ---- wizard/BWizardPage.py | 8 +++++++- 2 files changed, 7 insertions(+), 5 deletions(-) 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 -- 2.25.1