[vlc-commits] Qt, action_manager: provide skip fwd and bckwd actions

Jean-Baptiste Kempf git at videolan.org
Thu Apr 21 00:58:20 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Apr 21 00:48:34 2011 +0200| [6bf1a3bacc8b46b7a7122bd115c8dd7938661109] | committer: Jean-Baptiste Kempf

Qt, action_manager: provide skip fwd and bckwd actions

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

 modules/gui/qt4/actions_manager.cpp |   16 ++++++++++++----
 modules/gui/qt4/actions_manager.hpp |    2 ++
 2 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/modules/gui/qt4/actions_manager.cpp b/modules/gui/qt4/actions_manager.cpp
index b2f0957..7ac8f2c 100644
--- a/modules/gui/qt4/actions_manager.cpp
+++ b/modules/gui/qt4/actions_manager.cpp
@@ -80,12 +80,10 @@ void ActionsManager::doAction( int id_action )
         case REVERSE_ACTION:
             THEMIM->getIM()->reverse(); break;
         case SKIP_BACK_ACTION:
-            var_SetInteger( p_intf->p_libvlc, "key-action",
-                    ACTIONID_JUMP_BACKWARD_SHORT );
+            skipBackward();
             break;
         case SKIP_FW_ACTION:
-            var_SetInteger( p_intf->p_libvlc, "key-action",
-                    ACTIONID_JUMP_FORWARD_SHORT );
+            skipForward();
             break;
         case QUIT_ACTION:
             THEDP->quit();  break;
@@ -187,3 +185,13 @@ void ActionsManager::AudioDown()
     aout_VolumeDown( THEPL, 1, NULL );
 }
 
+void ActionsManager::skipForward()
+{
+    var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_JUMP_FORWARD_SHORT );
+}
+
+void ActionsManager::skipBackward()
+{
+    var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_JUMP_BACKWARD_SHORT );
+}
+
diff --git a/modules/gui/qt4/actions_manager.hpp b/modules/gui/qt4/actions_manager.hpp
index 4dbf06b..866be09 100644
--- a/modules/gui/qt4/actions_manager.hpp
+++ b/modules/gui/qt4/actions_manager.hpp
@@ -86,6 +86,8 @@ public slots:
     void AudioDown();
     void play();
     void record();
+    void skipForward();
+    void skipBackward();
 protected slots:
     void fullscreen();
     void snapshot();



More information about the vlc-commits mailing list