X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Factions_manager.cpp;h=f2c7f35807def60e5a218218c06c338ecc017f30;hb=8f3c41de941849f4ff5f2ae5975754c1907637c9;hp=ed5cd71cd8eafde3c6e5dd24f520fe871d073aae;hpb=89db25d28acd949ea1690033e6af5a73df6aa4e1;p=vlc diff --git a/modules/gui/qt4/actions_manager.cpp b/modules/gui/qt4/actions_manager.cpp index ed5cd71cd8..f2c7f35807 100644 --- a/modules/gui/qt4/actions_manager.cpp +++ b/modules/gui/qt4/actions_manager.cpp @@ -89,6 +89,10 @@ void ActionsManager::doAction( int id_action ) break; case QUIT_ACTION: THEDP->quit(); break; + case RANDOM_ACTION: + THEMIM->toggleRandom(); break; + case INFO_ACTION: + THEDP->mediaInfoDialog(); break; default: msg_Dbg( p_intf, "Action: %i", id_action ); break; @@ -117,7 +121,7 @@ void ActionsManager::fullscreen() vout_thread_t *p_vout = THEMIM->getVout(); if( p_vout) { - var_SetBool( p_vout, "fullscreen", !var_GetBool( p_vout, "fullscreen" ) ); + var_ToggleBool( p_vout, "fullscreen" ); vlc_object_release( p_vout ); } } @@ -143,8 +147,7 @@ void ActionsManager::record() if( p_input ) { /* This method won't work fine if the stream can't be cut anywhere */ - const bool b_recording = var_GetBool( p_input, "record" ); - var_SetBool( p_input, "record", !b_recording ); + var_ToggleBool( p_input, "record" ); #if 0 else { @@ -165,21 +168,21 @@ void ActionsManager::frame() { input_thread_t *p_input = THEMIM->getInput(); if( p_input ) - var_SetVoid( p_input, "frame-next" ); + var_TriggerCallback( p_input, "frame-next" ); } void ActionsManager::toggleMuteAudio() { - aout_VolumeMute( p_intf, NULL ); + aout_ToggleMute( THEPL, NULL ); } void ActionsManager::AudioUp() { - aout_VolumeUp( p_intf, 1, NULL ); + aout_VolumeUp( THEPL, 1, NULL ); } void ActionsManager::AudioDown() { - aout_VolumeDown( p_intf, 1, NULL ); + aout_VolumeDown( THEPL, 1, NULL ); }