X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fgui%2Fqt4%2Factions_manager.cpp;h=e4c00534e7113bcbee9ff83a016c7136a858a41e;hb=604adb7afc67e0c1789fc2c5dc95d4fb8a1ff5bb;hp=f434a2fdaee0004b621eca2d8c44193832679892;hpb=a7c94c6ad3cc4dc0f66563fd4153c202ec8d5cf1;p=vlc diff --git a/modules/gui/qt4/actions_manager.cpp b/modules/gui/qt4/actions_manager.cpp index f434a2fdae..e4c00534e7 100644 --- a/modules/gui/qt4/actions_manager.cpp +++ b/modules/gui/qt4/actions_manager.cpp @@ -27,6 +27,7 @@ #endif #include +#include #include #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 ); +}