Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
909aedf9
Commit
909aedf9
authored
Aug 09, 2004
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2: support playlist.setRandom(true) and playlist.setRandom(false)
parent
81cc781d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
0 deletions
+44
-0
doc/skins/skins2-howto.xml
doc/skins/skins2-howto.xml
+8
-0
modules/gui/skins2/commands/cmd_playlist.cpp
modules/gui/skins2/commands/cmd_playlist.cpp
+12
-0
modules/gui/skins2/commands/cmd_playlist.hpp
modules/gui/skins2/commands/cmd_playlist.hpp
+20
-0
modules/gui/skins2/parser/interpreter.cpp
modules/gui/skins2/parser/interpreter.cpp
+4
-0
No files found.
doc/skins/skins2-howto.xml
View file @
909aedf9
...
...
@@ -747,6 +747,14 @@ difficulty to understand how VLC skins work.</para>
<listitem><para>
<emphasis>
playlist.setLoop(false)
</emphasis>
: Do not loop at playlist end.
</para></listitem>
<!-- TODO: Enable it for 0.7.3
<listitem><para>
<emphasis>playlist.setRepeat(true)</emphasis>: Repeat the current playlist item.
</para></listitem>
<listitem><para>
<emphasis>playlist.setRepeat(false)</emphasis>: Stop repeating the current playlist item.
</para></listitem>
-->
<listitem><para>
<emphasis>
WindowID.show()
</emphasis>
: Show the
<link
linkend=
"Window"
>
Window
</link>
whose
<link
linkend=
"windowid"
>
id
</link>
attribute is 'WindowID'.
</para></listitem>
...
...
modules/gui/skins2/commands/cmd_playlist.cpp
View file @
909aedf9
...
...
@@ -88,3 +88,15 @@ void CmdPlaylistLoop::execute()
}
}
void
CmdPlaylistRepeat
::
execute
()
{
playlist_t
*
pPlaylist
=
getIntf
()
->
p_sys
->
p_playlist
;
if
(
pPlaylist
!=
NULL
)
{
vlc_value_t
val
;
val
.
b_bool
=
m_value
;
var_Set
(
pPlaylist
,
"repeat"
,
val
);
}
}
modules/gui/skins2/commands/cmd_playlist.hpp
View file @
909aedf9
...
...
@@ -78,6 +78,7 @@ class CmdPlaylistRandom: public CmdGeneric
bool
m_value
;
};
/// Command to set the loop state
class
CmdPlaylistLoop
:
public
CmdGeneric
{
...
...
@@ -98,5 +99,24 @@ class CmdPlaylistLoop: public CmdGeneric
};
/// Command to set the repeat state
class
CmdPlaylistRepeat
:
public
CmdGeneric
{
public:
CmdPlaylistRepeat
(
intf_thread_t
*
pIntf
,
bool
value
)
:
CmdGeneric
(
pIntf
),
m_value
(
value
)
{}
virtual
~
CmdPlaylistRepeat
()
{}
/// This method does the real job of the command
virtual
void
execute
();
/// Return the type of the command
virtual
string
getType
()
const
{
return
"playlist repeat"
;
}
private:
/// Repeat state
bool
m_value
;
};
#endif
modules/gui/skins2/parser/interpreter.cpp
View file @
909aedf9
...
...
@@ -70,6 +70,10 @@ Interpreter::Interpreter( intf_thread_t *pIntf ): SkinObject( pIntf )
CmdGenericPtr
(
new
CmdPlaylistLoop
(
getIntf
(),
true
)
);
m_commandMap
[
"playlist.setLoop(false)"
]
=
CmdGenericPtr
(
new
CmdPlaylistLoop
(
getIntf
(),
false
)
);
m_commandMap
[
"playlist.setRepeat(true)"
]
=
CmdGenericPtr
(
new
CmdPlaylistRepeat
(
getIntf
(),
true
)
);
m_commandMap
[
"playlist.setRepeat(false)"
]
=
CmdGenericPtr
(
new
CmdPlaylistRepeat
(
getIntf
(),
false
)
);
REGISTER_CMD
(
"vlc.fullscreen()"
,
CmdFullscreen
)
REGISTER_CMD
(
"vlc.play()"
,
CmdPlay
)
REGISTER_CMD
(
"vlc.pause()"
,
CmdPause
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment