[vlc-devel] commit: Qt: give access to fineslower and finefaster in the menus. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Tue Mar 3 14:39:10 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Mar  3 14:38:50 2009 +0100| [74ffc974d256d2a7371a1010c9d7e1c9b1cabaad] | committer: Jean-Baptiste Kempf 

Qt: give access to fineslower and finefaster in the menus.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=74ffc974d256d2a7371a1010c9d7e1c9b1cabaad
---

 modules/gui/qt4/input_manager.cpp |   11 +++++++++++
 modules/gui/qt4/input_manager.hpp |    2 ++
 modules/gui/qt4/menus.cpp         |    8 ++++++++
 3 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index cdefa32..adb58f1 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -28,6 +28,7 @@
 #endif
 
 #include "input_manager.hpp"
+#include <vlc_keys.h>
 
 #include <QApplication>
 
@@ -779,6 +780,16 @@ void InputManager::faster()
         var_SetVoid( p_input, "rate-faster" );
 }
 
+void InputManager::littlefaster()
+{
+    var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_RATE_FASTER_FINE );
+}
+
+void InputManager::littleslower()
+{
+    var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_RATE_SLOWER_FINE );
+}
+
 void InputManager::normalRate()
 {
     if( hasInput() )
diff --git a/modules/gui/qt4/input_manager.hpp b/modules/gui/qt4/input_manager.hpp
index e6729f2..bc478e1 100644
--- a/modules/gui/qt4/input_manager.hpp
+++ b/modules/gui/qt4/input_manager.hpp
@@ -144,6 +144,8 @@ public slots:
     void reverse();
     void slower();
     void faster();
+    void littlefaster();
+    void littleslower();
     void normalRate();
     void setRate( int );
     /* Jumping */
diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp
index bf69ed8..348a68a 100644
--- a/modules/gui/qt4/menus.cpp
+++ b/modules/gui/qt4/menus.cpp
@@ -747,10 +747,18 @@ void QVLCMenu::PopupMenuControlEntries( QMenu *menu, intf_thread_t *p_intf )
     action->setIcon( QIcon( ":/faster") );
     action->setData( true );
 
+    action = menu->addAction( qtr( "Faster (fine)" ), THEMIM->getIM(),
+                              SLOT( littlefaster() ) );
+    action->setData( true );
+
     action = menu->addAction( qtr( "N&ormal Speed" ), THEMIM->getIM(),
                               SLOT( normalRate() ) );
     action->setData( true );
 
+    action = menu->addAction( qtr( "Slower (fine)" ), THEMIM->getIM(),
+                              SLOT( littleslower() ) );
+    action->setData( true );
+
     action = menu->addAction( qtr( "Slo&wer" ), THEMIM->getIM(),
                               SLOT( slower() ) );
     action->setIcon( QIcon( ":/slower") );




More information about the vlc-devel mailing list