# Copyright 2008 Develer S.r.l. (http://www.develer.com/)
# All rights reserved.
#
-# $Id:$
+# $Id$
#
# Author: Lorenzo Berni <duplo@develer.com>
#
"""
Overload of the QWizardPage isComplete method.
"""
+ self.setDefaultFolder(self._destination_folder)
if self.pageContent.projectPath.text() != "None":
self.setProjectInfo("PROJECT_PATH", unicode(self.pageContent.projectPath.text()))
return True
Initializes the page attributes to the default values.
"""
self._project_name = ""
- self._destination_folder = os.path.expanduser("~")
+ stored_folder = self.defaultFolder()
+ if stored_folder != "":
+ self._destination_folder = stored_folder
+ else:
+ self._destination_folder = os.path.expanduser("~")
self.pageContent.directoryEdit.setText(self._destination_folder)
def setProjectPath(self):
# Copyright 2008 Develer S.r.l. (http://www.develer.com/)
# All rights reserved.
#
-# $Id:$
+# $Id$
#
# Author: Lorenzo Berni <duplo@develer.com>
#
Stores the toolchains in the QSettings.
"""
self.settingsStore("toolchains", qvariant_converter.convertBoolDict(toolchains))
+
+ def defaultFolder(self):
+ """
+ Returns the default save folder stored in the QSettings.
+ """
+ return qvariant_converter.getString(self.settingsRetrieve("folder"))
+
+ def setDefaultFolder(self, folder):
+ """
+ Stores the default save folder in the QSettings.
+ """
+ self.settingsStore("folder", qvariant_converter.convertString(folder))
####