[vlmc-devel] commit: ProjectManager: Add a project dir variable. ( Hugo Beauzée-Luyssen )

git at videolan.org git at videolan.org
Sun Jun 20 19:21:36 CEST 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Sun Jun 20 19:18:58 2010 +0200| [28c05f8aebd3588f5284ff684f44dc30e57180f7] | committer: Hugo Beauzée-Luyssen 

ProjectManager: Add a project dir variable.

Correcting VLMCWorkspace variable type: this one belong to the
preferences, not the project.

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

 src/Project/ProjectManager.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index 9f2bbc1..a87833f 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -57,14 +57,16 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false )
     VLMC_CREATE_PROJECT_INT( "audio/AudioSampleRate", 0,
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Audio samplerate" ),
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Output project audio samplerate" ) );
-    VLMC_CREATE_PROJECT_STRING( "general/VLMCWorkspace", QDir::homePath(),
+    VLMC_CREATE_PREFERENCE_STRING( "general/VLMCWorkspace", QDir::homePath(),
                                 QT_TRANSLATE_NOOP( "PreferenceWidget", "Workspace location" ),
-                                QT_TRANSLATE_NOOP( "PreferenceWidget", "The place where all project's videos will be stored" ) );
+                                QT_TRANSLATE_NOOP( "PreferenceWidget", "The place where all project's medias will be stored" ) );
 
     VLMC_CREATE_PROJECT_STRING( "general/ProjectName", unNamedProject,
                                 QT_TRANSLATE_NOOP( "PreferenceWidget", "Project name" ),
                                 QT_TRANSLATE_NOOP( "PreferenceWidget", "The project name" ) );
 
+    VLMC_CREATE_PRIVATE_PROJECT_STRING( "general/ProjectDir", "" );
+
     //We have to wait for the library to be loaded before loading the workflow
     connect( Library::getInstance(), SIGNAL( projectLoaded() ), this, SLOT( loadWorkflow() ) );
 }



More information about the Vlmc-devel mailing list