[vlmc-devel] ProjectWizard: Save the last used VLMC workspace

Hugo Beauzée-Luyssen git at videolan.org
Wed Sep 5 17:43:04 CEST 2012


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Sep  5 17:24:29 2012 +0300| [655a8451dbadf6fa61dbc74d0d36860b5afe08aa] | committer: Hugo Beauzée-Luyssen

ProjectWizard: Save the last used VLMC workspace

Also, try to explain the difference between project workspace and vlmc
workspace

> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=655a8451dbadf6fa61dbc74d0d36860b5afe08aa
---

 src/Gui/wizard/GeneralPage.cpp   |    3 ++-
 src/Gui/wizard/ProjectWizard.cpp |    5 ++++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/Gui/wizard/GeneralPage.cpp b/src/Gui/wizard/GeneralPage.cpp
index fbe9ddd..d1587d8 100644
--- a/src/Gui/wizard/GeneralPage.cpp
+++ b/src/Gui/wizard/GeneralPage.cpp
@@ -49,7 +49,8 @@ GeneralPage::GeneralPage( QWidget *parent ) :
              this, SLOT( updateProjectLocation() ) );
 
     registerField( "projectName*", ui.lineEditName );
-    registerField( "workspace*", ui.lineEditProjectLocation );
+    registerField( "projectPath*", ui.lineEditProjectLocation );
+    registerField( "workspace*", ui.lineEditWorkspace );
 }
 
 void
diff --git a/src/Gui/wizard/ProjectWizard.cpp b/src/Gui/wizard/ProjectWizard.cpp
index 2db9752..3538de1 100644
--- a/src/Gui/wizard/ProjectWizard.cpp
+++ b/src/Gui/wizard/ProjectWizard.cpp
@@ -101,7 +101,10 @@ ProjectWizard::accept()
     {
         SettingsManager *sManager = SettingsManager::getInstance();
         GUIProjectManager::getInstance()->newProject( field( "projectName" ).toString(), field( "workspace" ).toString() );
-        sManager->setValue( "general/Workspace", field( "workspace" ), SettingsManager::Project );
+        //Save the project workspace
+        sManager->setValue( "general/Workspace", field( "projectPath" ), SettingsManager::Project );
+        //And the default vlmc workspace
+        sManager->setValue( "general/DefaultProjectLocation", field( "workspace" ), SettingsManager::Vlmc );
 
         sManager->setValue( "video/VLMCOutputFPS", field( "fps" ), SettingsManager::Project );
         sManager->setValue( "video/VideoProjectHeight", field( "height" ), SettingsManager::Project );



More information about the Vlmc-devel mailing list