]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/actions_manager.cpp
aout_VolumeMute -> aout_ToggleMute
[vlc] / modules / gui / qt4 / actions_manager.cpp
index f434a2fdaee0004b621eca2d8c44193832679892..e4c00534e7113bcbee9ff83a016c7136a858a41e 100644 (file)
@@ -27,6 +27,7 @@
 #endif
 
 #include <vlc_vout.h>
+#include <vlc_aout.h>
 #include <vlc_keys.h>
 
 #include "actions_manager.hpp"
@@ -53,7 +54,7 @@ void ActionsManager::doAction( int id_action )
         case STOP_ACTION:
             THEMIM->stop(); break;
         case OPEN_ACTION:
-            break;
+            THEDP->openDialog(); break;
         case PREVIOUS_ACTION:
             THEMIM->prev(); break;
         case NEXT_ACTION:
@@ -79,13 +80,15 @@ void ActionsManager::doAction( int id_action )
         case REVERSE_ACTION:
             THEMIM->getIM()->reverse(); break;
         case SKIP_BACK_ACTION:
-            var_SetInteger( p_intf->p_libvlc, "key-pressed",
+            var_SetInteger( p_intf->p_libvlc, "key-action",
                     ACTIONID_JUMP_BACKWARD_SHORT );
             break;
         case SKIP_FW_ACTION:
-            var_SetInteger( p_intf->p_libvlc, "key-pressed",
+            var_SetInteger( p_intf->p_libvlc, "key-action",
                     ACTIONID_JUMP_FORWARD_SHORT );
             break;
+        case QUIT_ACTION:
+            THEDP->quit();  break;
         default:
             msg_Dbg( p_intf, "Action: %i", id_action );
             break;
@@ -124,7 +127,7 @@ void ActionsManager::snapshot()
     vout_thread_t *p_vout = THEMIM->getVout();
     if( p_vout )
     {
-        vout_Control( p_vout, VOUT_SNAPSHOT );
+        var_TriggerCallback( p_vout, "video-snapshot" );
         vlc_object_release( p_vout );
     }
 }
@@ -165,4 +168,18 @@ void ActionsManager::frame()
         var_SetVoid( p_input, "frame-next" );
 }
 
+void ActionsManager::toggleMuteAudio()
+{
+     aout_ToggleMute( p_intf, NULL );
+}
+
+void ActionsManager::AudioUp()
+{
+    aout_VolumeUp( p_intf, 1, NULL );
+}
+
+void ActionsManager::AudioDown()
+{
+    aout_VolumeDown( p_intf, 1, NULL );
+}