[vlmc-devel] commit: ProjectManager: Adding a project aspect ratio setting. ( =?UTF-8?Q?Hugo=20Beauz=C3=A9e=2DLuyssen?==?UTF-8?Q?=20?=)

git at videolan.org git at videolan.org
Mon Nov 29 00:58:25 CET 2010


vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Mon Nov 29 00:31:37 2010 +0100| [30f7893faa522336829cf2e120b662bdc6050cff] | committer: Hugo Beauzée-Luyssen 

ProjectManager: Adding a project aspect ratio setting.

This is quite unsafe, and would require a specific list widget.

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

 src/Project/ProjectManager.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/Project/ProjectManager.cpp b/src/Project/ProjectManager.cpp
index 9d58198..3a4ed09 100644
--- a/src/Project/ProjectManager.cpp
+++ b/src/Project/ProjectManager.cpp
@@ -61,6 +61,9 @@ ProjectManager::ProjectManager() : m_projectFile( NULL ), m_needSave( false )
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Height resolution of the output video" ),
                              SettingValue::Flag( SettingValue::Clamped | SettingValue::EightMultiple ) );
     height->setLimits( 0, 2048 );
+    VLMC_CREATE_PROJECT_STRING( "video/AspectRatio", "16/9",
+                                QT_TRANSLATE_NOOP("PreferenceWidget", "Video aspect ratio" ),
+                                QT_TRANSLATE_NOOP("PreferenceWidget", "The rendered video aspect ratio" ) );
     SettingValue    *sampleRate = VLMC_CREATE_PROJECT_VAR( SettingValue::Double, "audio/AudioSampleRate", 44100,
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Audio samplerate" ),
                              QT_TRANSLATE_NOOP( "PreferenceWidget", "Output project audio samplerate" ),



More information about the Vlmc-devel mailing list