From a9a1ab081a821d0a7b44d97dff69b10b32443da0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Teuli=C3=A8re?= Date: Sun, 1 Aug 2004 16:43:58 +0000 Subject: [PATCH] * modules/gui/skins2/parser/interpreter.cpp: Added the "vlc.ontop()" action * doc/skins/skins2-howto.xml: Updated the doc --- doc/skins/skins2-howto.xml | 9 +++++++-- modules/gui/skins2/parser/interpreter.cpp | 2 ++ modules/gui/skins2/src/vlcproc.cpp | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/doc/skins/skins2-howto.xml b/doc/skins/skins2-howto.xml index 80bfbaf516..94315dc057 100644 --- a/doc/skins/skins2-howto.xml +++ b/doc/skins/skins2-howto.xml @@ -712,9 +712,14 @@ difficulty to understand how VLC skins work. vlc.fullscreen(): Toggle the fullscreen mode. - + +--> vlc.quit(): Quit VLC. diff --git a/modules/gui/skins2/parser/interpreter.cpp b/modules/gui/skins2/parser/interpreter.cpp index 3acc27d9cb..19a28ad4b1 100644 --- a/modules/gui/skins2/parser/interpreter.cpp +++ b/modules/gui/skins2/parser/interpreter.cpp @@ -32,6 +32,7 @@ #include "../commands/cmd_minimize.hpp" #include "../commands/cmd_input.hpp" #include "../commands/cmd_fullscreen.hpp" +#include "../commands/cmd_on_top.hpp" #include "../commands/cmd_show_window.hpp" #include "../src/theme.hpp" #include "../src/var_manager.hpp" @@ -77,6 +78,7 @@ Interpreter::Interpreter( intf_thread_t *pIntf ): SkinObject( pIntf ) REGISTER_CMD( "vlc.slower()", CmdSlower ) REGISTER_CMD( "vlc.mute()", CmdMute ) REGISTER_CMD( "vlc.minimize()", CmdMinimize ) + REGISTER_CMD( "vlc.ontop()", CmdOnTop ) REGISTER_CMD( "vlc.quit()", CmdQuit ) // Register the constant bool variables in the var manager diff --git a/modules/gui/skins2/src/vlcproc.cpp b/modules/gui/skins2/src/vlcproc.cpp index 040839fd90..d664e32434 100755 --- a/modules/gui/skins2/src/vlcproc.cpp +++ b/modules/gui/skins2/src/vlcproc.cpp @@ -79,7 +79,7 @@ VlcProc::VlcProc( intf_thread_t *pIntf ): SkinObject( pIntf ), REGISTER_VAR( m_cVarTime, StreamTime, "time" ) REGISTER_VAR( m_cVarVolume, Volume, "volume" ) REGISTER_VAR( m_cVarStream, Stream, "stream" ) - REGISTER_VAR( m_cVarMute, VarBoolImpl, "vlc.isMute" ) // XXX broken + REGISTER_VAR( m_cVarMute, VarBoolImpl, "vlc.isMute" ) REGISTER_VAR( m_cVarPlaying, VarBoolImpl, "vlc.isPlaying" ) REGISTER_VAR( m_cVarStopped, VarBoolImpl, "vlc.isStopped" ) REGISTER_VAR( m_cVarPaused, VarBoolImpl, "vlc.isPaused" ) -- 2.39.2