From: Olivier Teulière Date: Sun, 1 Aug 2004 16:43:58 +0000 (+0000) Subject: * modules/gui/skins2/parser/interpreter.cpp: Added the "vlc.ontop()" action X-Git-Tag: 0.8.0~768 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a9a1ab081a821d0a7b44d97dff69b10b32443da0;p=vlc * modules/gui/skins2/parser/interpreter.cpp: Added the "vlc.ontop()" action * doc/skins/skins2-howto.xml: Updated the doc --- 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" )