Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
81833785
Commit
81833785
authored
Feb 19, 2006
by
Cyril Deguet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* all: new skin variable "vlc.isFullscreen" (guess what it does ;)
parent
b5b707f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
doc/skins/skins2-howto.xml
doc/skins/skins2-howto.xml
+3
-0
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.cpp
+15
-1
modules/gui/skins2/src/vlcproc.hpp
modules/gui/skins2/src/vlcproc.hpp
+2
-1
No files found.
doc/skins/skins2-howto.xml
View file @
81833785
...
@@ -939,6 +939,9 @@ difficulty to understand how VLC skins work.</para>
...
@@ -939,6 +939,9 @@ difficulty to understand how VLC skins work.</para>
<listitem><para>
<listitem><para>
<emphasis>
equalizer.isEnabled
</emphasis>
: True if the equalizer audio filter is enabled (since VLC 0.8.5).
<emphasis>
equalizer.isEnabled
</emphasis>
: True if the equalizer audio filter is enabled (since VLC 0.8.5).
</para></listitem>
</para></listitem>
<listitem><para>
<emphasis>
vlc.isFullscreen
</emphasis>
: True when the video is in fullscreen mode (since VLV 0.8.5).
</para></listitem>
<listitem><para>
<listitem><para>
<emphasis>
vlc.isPlaying
</emphasis>
: True when VLC is playing, false otherwise.
<emphasis>
vlc.isPlaying
</emphasis>
: True when VLC is playing, false otherwise.
</para></listitem>
</para></listitem>
...
...
modules/gui/skins2/src/vlcproc.cpp
View file @
81833785
...
@@ -101,6 +101,7 @@ VlcProc::VlcProc( intf_thread_t *pIntf ): SkinObject( pIntf ),
...
@@ -101,6 +101,7 @@ VlcProc::VlcProc( intf_thread_t *pIntf ): SkinObject( pIntf ),
REGISTER_VAR
(
m_cVarEqualizer
,
VarBoolImpl
,
"equalizer.isEnabled"
)
REGISTER_VAR
(
m_cVarEqualizer
,
VarBoolImpl
,
"equalizer.isEnabled"
)
REGISTER_VAR
(
m_cVarEqPreamp
,
EqualizerPreamp
,
"equalizer.preamp"
)
REGISTER_VAR
(
m_cVarEqPreamp
,
EqualizerPreamp
,
"equalizer.preamp"
)
REGISTER_VAR
(
m_cVarDvdActive
,
VarBoolImpl
,
"dvd.isActive"
)
REGISTER_VAR
(
m_cVarDvdActive
,
VarBoolImpl
,
"dvd.isActive"
)
REGISTER_VAR
(
m_cVarFullscreen
,
VarBoolImpl
,
"vlc.isFullscreen"
)
#undef REGISTER_VAR
#undef REGISTER_VAR
m_cVarStreamName
=
VariablePtr
(
new
VarText
(
getIntf
(),
false
)
);
m_cVarStreamName
=
VariablePtr
(
new
VarText
(
getIntf
(),
false
)
);
pVarManager
->
registerVar
(
m_cVarStreamName
,
"streamName"
);
pVarManager
->
registerVar
(
m_cVarStreamName
,
"streamName"
);
...
@@ -235,11 +236,12 @@ void VlcProc::manage()
...
@@ -235,11 +236,12 @@ void VlcProc::manage()
VarBoolImpl
*
pVarLoop
=
(
VarBoolImpl
*
)
m_cVarLoop
.
get
();
VarBoolImpl
*
pVarLoop
=
(
VarBoolImpl
*
)
m_cVarLoop
.
get
();
VarBoolImpl
*
pVarRepeat
=
(
VarBoolImpl
*
)
m_cVarRepeat
.
get
();
VarBoolImpl
*
pVarRepeat
=
(
VarBoolImpl
*
)
m_cVarRepeat
.
get
();
VarBoolImpl
*
pVarDvdActive
=
(
VarBoolImpl
*
)
m_cVarDvdActive
.
get
();
VarBoolImpl
*
pVarDvdActive
=
(
VarBoolImpl
*
)
m_cVarDvdActive
.
get
();
VarBoolImpl
*
pVarFullscreen
=
(
VarBoolImpl
*
)
m_cVarFullscreen
.
get
();
// Refresh audio variables
// Refresh audio variables
refreshAudio
();
refreshAudio
();
// Update the input
// Update the input
if
(
getIntf
()
->
p_sys
->
p_input
==
NULL
)
if
(
getIntf
()
->
p_sys
->
p_input
==
NULL
)
{
{
getIntf
()
->
p_sys
->
p_input
=
getIntf
()
->
p_sys
->
p_playlist
->
p_input
;
getIntf
()
->
p_sys
->
p_input
=
getIntf
()
->
p_sys
->
p_playlist
->
p_input
;
...
@@ -276,6 +278,15 @@ void VlcProc::manage()
...
@@ -276,6 +278,15 @@ void VlcProc::manage()
var_Change
(
pInput
,
"chapter"
,
VLC_VAR_CHOICESCOUNT
,
var_Change
(
pInput
,
"chapter"
,
VLC_VAR_CHOICESCOUNT
,
&
chapters_count
,
NULL
);
&
chapters_count
,
NULL
);
pVarDvdActive
->
set
(
chapters_count
.
i_int
>
0
);
pVarDvdActive
->
set
(
chapters_count
.
i_int
>
0
);
// Refresh fullscreen status
vout_thread_t
*
pVout
=
(
vout_thread_t
*
)
vlc_object_find
(
pInput
,
VLC_OBJECT_VOUT
,
FIND_CHILD
);
if
(
pVout
)
{
pVarFullscreen
->
set
(
pVout
->
b_fullscreen
);
vlc_object_release
(
pVout
);
}
}
}
else
else
{
{
...
@@ -285,6 +296,7 @@ void VlcProc::manage()
...
@@ -285,6 +296,7 @@ void VlcProc::manage()
pVarSeekable
->
set
(
false
);
pVarSeekable
->
set
(
false
);
pVarDvdActive
->
set
(
false
);
pVarDvdActive
->
set
(
false
);
pTime
->
set
(
0
,
false
);
pTime
->
set
(
0
,
false
);
pVarFullscreen
->
set
(
false
);
}
}
// Refresh the random variable
// Refresh the random variable
...
@@ -299,6 +311,8 @@ void VlcProc::manage()
...
@@ -299,6 +311,8 @@ void VlcProc::manage()
// Refresh the repeat variable
// Refresh the repeat variable
var_Get
(
getIntf
()
->
p_sys
->
p_playlist
,
"repeat"
,
&
val
);
var_Get
(
getIntf
()
->
p_sys
->
p_playlist
,
"repeat"
,
&
val
);
pVarRepeat
->
set
(
val
.
b_bool
!=
0
);
pVarRepeat
->
set
(
val
.
b_bool
!=
0
);
}
}
...
...
modules/gui/skins2/src/vlcproc.hpp
View file @
81833785
...
@@ -117,7 +117,8 @@ class VlcProc: public SkinObject
...
@@ -117,7 +117,8 @@ class VlcProc: public SkinObject
VariablePtr
m_cVarStopped
;
VariablePtr
m_cVarStopped
;
VariablePtr
m_cVarPaused
;
VariablePtr
m_cVarPaused
;
VariablePtr
m_cVarSeekable
;
VariablePtr
m_cVarSeekable
;
/// Variable for the vout
/// Variables related to the vout
VariablePtr
m_cVarFullscreen
;
VarBox
m_varVoutSize
;
VarBox
m_varVoutSize
;
/// Equalizer variables
/// Equalizer variables
EqualizerBands
m_varEqBands
;
EqualizerBands
m_varEqBands
;
...
...
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