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
b88f7e6d
Commit
b88f7e6d
authored
Mar 21, 2005
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* skins2: added vlc.volumeUp() and vlc.volumeDown() actions
parent
97a8984f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
0 deletions
+22
-0
doc/skins/skins2-howto.xml
doc/skins/skins2-howto.xml
+6
-0
modules/gui/skins2/commands/cmd_input.cpp
modules/gui/skins2/commands/cmd_input.cpp
+12
-0
modules/gui/skins2/commands/cmd_input.hpp
modules/gui/skins2/commands/cmd_input.hpp
+2
-0
modules/gui/skins2/parser/interpreter.cpp
modules/gui/skins2/parser/interpreter.cpp
+2
-0
No files found.
doc/skins/skins2-howto.xml
View file @
b88f7e6d
...
...
@@ -709,6 +709,12 @@ difficulty to understand how VLC skins work.</para>
<listitem><para>
<emphasis>
vlc.mute()
</emphasis>
: Toggle mute/un-mute.
</para></listitem>
<listitem><para>
<emphasis>
vlc.volumeUp()
</emphasis>
: Increase the volume (since VLC 0.8.2).
</para></listitem>
<listitem><para>
<emphasis>
vlc.volumeDown()
</emphasis>
: Reduce the volume (since VLC 0.8.2).
</para></listitem>
<listitem><para>
<emphasis>
vlc.fullscreen()
</emphasis>
: Toggle the fullscreen mode.
</para></listitem>
...
...
modules/gui/skins2/commands/cmd_input.cpp
View file @
b88f7e6d
...
...
@@ -109,3 +109,15 @@ void CmdMute::execute()
aout_VolumeMute
(
getIntf
(),
NULL
);
}
void
CmdVolumeUp
::
execute
()
{
aout_VolumeUp
(
getIntf
(),
1
,
NULL
);
}
void
CmdVolumeDown
::
execute
()
{
aout_VolumeDown
(
getIntf
(),
1
,
NULL
);
}
modules/gui/skins2/commands/cmd_input.hpp
View file @
b88f7e6d
...
...
@@ -34,6 +34,8 @@ DEFINE_COMMAND( Stop, "stop" )
DEFINE_COMMAND
(
Slower
,
"slower"
)
DEFINE_COMMAND
(
Faster
,
"faster"
)
DEFINE_COMMAND
(
Mute
,
"mute"
)
DEFINE_COMMAND
(
VolumeUp
,
"volume up"
)
DEFINE_COMMAND
(
VolumeDown
,
"volume down"
)
#endif
modules/gui/skins2/parser/interpreter.cpp
View file @
b88f7e6d
...
...
@@ -83,6 +83,8 @@ Interpreter::Interpreter( intf_thread_t *pIntf ): SkinObject( pIntf )
REGISTER_CMD
(
"vlc.faster()"
,
CmdFaster
)
REGISTER_CMD
(
"vlc.slower()"
,
CmdSlower
)
REGISTER_CMD
(
"vlc.mute()"
,
CmdMute
)
REGISTER_CMD
(
"vlc.volumeUp()"
,
CmdVolumeUp
)
REGISTER_CMD
(
"vlc.volumeDown()"
,
CmdVolumeDown
)
REGISTER_CMD
(
"vlc.minimize()"
,
CmdMinimize
)
REGISTER_CMD
(
"vlc.onTop()"
,
CmdOnTop
)
REGISTER_CMD
(
"vlc.quit()"
,
CmdQuit
)
...
...
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