[vlmc-devel] commit: ProjectManager: Use the workspace as the default path for saving/ opening. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Thu Apr 15 01:16:18 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Apr 15 01:14:30 2010 +0200| [9f8575fc649472ca142dcc5e940773c4c454c5bb] | committer: Hugo Beauzée-Luyssen
ProjectManager: Use the workspace as the default path for saving/opening.
Also, save the workspace when validating the wizzard page.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=9f8575fc649472ca142dcc5e940773c4c454c5bb
---
src/Gui/project/GuiProjectManager.cpp | 6 ++++--
src/Gui/wizard/GeneralPage.cpp | 1 +
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/Gui/project/GuiProjectManager.cpp b/src/Gui/project/GuiProjectManager.cpp
index d37577e..a21524b 100644
--- a/src/Gui/project/GuiProjectManager.cpp
+++ b/src/Gui/project/GuiProjectManager.cpp
@@ -93,7 +93,8 @@ GUIProjectManager::acquireProjectFileName()
{
QString fileName =
QFileDialog::getOpenFileName( NULL, "Enter the output file name",
- QString(), "VLMC project file(*.vlmc)" );
+ VLMC_PROJECT_GET_STRING( "general/VLMCWorkspace" ),
+ "VLMC project file(*.vlmc)" );
return fileName;
}
@@ -104,7 +105,8 @@ GUIProjectManager::createNewProjectFile( bool saveAs )
{
QString outputFileName =
QFileDialog::getSaveFileName( NULL, "Enter the output file name",
- QString(), "VLMC project file(*.vlmc)" );
+ VLMC_PROJECT_GET_STRING( "general/VLMCWorkspace" ),
+ "VLMC project file(*.vlmc)" );
if ( outputFileName.length() == 0 )
return false;
if ( m_projectFile != NULL )
diff --git a/src/Gui/wizard/GeneralPage.cpp b/src/Gui/wizard/GeneralPage.cpp
index 1114323..b041aca 100644
--- a/src/Gui/wizard/GeneralPage.cpp
+++ b/src/Gui/wizard/GeneralPage.cpp
@@ -87,6 +87,7 @@ bool GeneralPage::validatePage()
QVariant projectName( ui.lineEditName->text() );
sManager->setValue( "general/ProjectName", projectName, SettingsManager::Project );
+ sManager->setValue( "general/VLMCWorkspace", ui.lineEditWorkspace->text(), SettingsManager::Project );
return true;
}
More information about the Vlmc-devel
mailing list