Commit a9a1ab08 authored by Olivier Teulière's avatar Olivier Teulière

* modules/gui/skins2/parser/interpreter.cpp: Added the "vlc.ontop()" action

 * doc/skins/skins2-howto.xml: Updated the doc
parent 8bc23a1c
...@@ -712,9 +712,14 @@ difficulty to understand how VLC skins work.</para> ...@@ -712,9 +712,14 @@ difficulty to understand how VLC skins work.</para>
<listitem><para> <listitem><para>
<emphasis>vlc.fullscreen()</emphasis>: Toggle the fullscreen mode. <emphasis>vlc.fullscreen()</emphasis>: Toggle the fullscreen mode.
</para></listitem> </para></listitem>
<!-- _Enable it for 0.7.3_ listitem><para> <!-- TODO: Enable it for 0.7.3
<listitem><para>
<emphasis>vlc.ontop()</emphasis>: Toggle the "Always on top" status.
</para></listitem>
<listitem><para>
<emphasis>vlc.minimize()</emphasis>: Minimize VLC. <emphasis>vlc.minimize()</emphasis>: Minimize VLC.
</para></listitem--> </para></listitem>
-->
<listitem><para> <listitem><para>
<emphasis>vlc.quit()</emphasis>: Quit VLC. <emphasis>vlc.quit()</emphasis>: Quit VLC.
</para></listitem> </para></listitem>
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include "../commands/cmd_minimize.hpp" #include "../commands/cmd_minimize.hpp"
#include "../commands/cmd_input.hpp" #include "../commands/cmd_input.hpp"
#include "../commands/cmd_fullscreen.hpp" #include "../commands/cmd_fullscreen.hpp"
#include "../commands/cmd_on_top.hpp"
#include "../commands/cmd_show_window.hpp" #include "../commands/cmd_show_window.hpp"
#include "../src/theme.hpp" #include "../src/theme.hpp"
#include "../src/var_manager.hpp" #include "../src/var_manager.hpp"
...@@ -77,6 +78,7 @@ Interpreter::Interpreter( intf_thread_t *pIntf ): SkinObject( pIntf ) ...@@ -77,6 +78,7 @@ Interpreter::Interpreter( intf_thread_t *pIntf ): SkinObject( pIntf )
REGISTER_CMD( "vlc.slower()", CmdSlower ) REGISTER_CMD( "vlc.slower()", CmdSlower )
REGISTER_CMD( "vlc.mute()", CmdMute ) REGISTER_CMD( "vlc.mute()", CmdMute )
REGISTER_CMD( "vlc.minimize()", CmdMinimize ) REGISTER_CMD( "vlc.minimize()", CmdMinimize )
REGISTER_CMD( "vlc.ontop()", CmdOnTop )
REGISTER_CMD( "vlc.quit()", CmdQuit ) REGISTER_CMD( "vlc.quit()", CmdQuit )
// Register the constant bool variables in the var manager // Register the constant bool variables in the var manager
......
...@@ -79,7 +79,7 @@ VlcProc::VlcProc( intf_thread_t *pIntf ): SkinObject( pIntf ), ...@@ -79,7 +79,7 @@ VlcProc::VlcProc( intf_thread_t *pIntf ): SkinObject( pIntf ),
REGISTER_VAR( m_cVarTime, StreamTime, "time" ) REGISTER_VAR( m_cVarTime, StreamTime, "time" )
REGISTER_VAR( m_cVarVolume, Volume, "volume" ) REGISTER_VAR( m_cVarVolume, Volume, "volume" )
REGISTER_VAR( m_cVarStream, Stream, "stream" ) 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_cVarPlaying, VarBoolImpl, "vlc.isPlaying" )
REGISTER_VAR( m_cVarStopped, VarBoolImpl, "vlc.isStopped" ) REGISTER_VAR( m_cVarStopped, VarBoolImpl, "vlc.isStopped" )
REGISTER_VAR( m_cVarPaused, VarBoolImpl, "vlc.isPaused" ) REGISTER_VAR( m_cVarPaused, VarBoolImpl, "vlc.isPaused" )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment