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
f5ca137c
Commit
f5ca137c
authored
Feb 14, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify a bit Qt4 teletext.
parent
fc2955ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
36 deletions
+29
-36
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+29
-35
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+0
-1
No files found.
modules/gui/qt4/input_manager.cpp
View file @
f5ca137c
...
...
@@ -456,9 +456,36 @@ bool InputManager::hasAudio()
void
InputManager
::
UpdateTeletext
()
{
if
(
hasInput
()
)
telexActivation
(
var_CountChoices
(
p_input
,
"teletext-es"
)
>
0
);
{
const
bool
b_enabled
=
var_CountChoices
(
p_input
,
"teletext-es"
)
>
0
;
const
int
i_teletext_es
=
var_GetInteger
(
p_input
,
"teletext-es"
);
/* Teletext is possible. Show the buttons */
emit
teletextPossible
(
b_enabled
);
msg_Err
(
p_intf
,
"InputManager::UpdateTeletext: %d %d"
,
b_enabled
,
i_teletext_es
);
/* If Teletext is selected */
if
(
b_enabled
&&
i_teletext_es
>=
0
)
{
/* Then, find the current page */
int
i_page
=
100
;
vlc_object_t
*
p_vbi
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_input
,
"zvbi"
,
FIND_ANYWHERE
);
if
(
p_vbi
)
{
i_page
=
var_GetInteger
(
p_vbi
,
"vbi-page"
);
vlc_object_release
(
p_vbi
);
emit
newTelexPageSet
(
i_page
);
}
}
emit
teletextActivated
(
b_enabled
&&
i_teletext_es
>=
0
);
}
else
telexActivation
(
false
);
{
emit
teletextActivated
(
false
);
emit
teletextPossible
(
false
);
}
}
void
InputManager
::
UpdateVout
()
...
...
@@ -671,39 +698,6 @@ void InputManager::telexSetTransparency( bool b_transparentTelextext )
}
}
void
InputManager
::
telexActivation
(
bool
b_enabled
)
{
if
(
hasInput
()
)
{
const
int
i_teletext_es
=
var_GetInteger
(
p_input
,
"teletext-es"
);
/* Teletext is possible. Show the buttons */
b_enabled
=
var_CountChoices
(
p_input
,
"teletext-es"
)
>
0
;
emit
teletextPossible
(
b_enabled
);
if
(
!
b_enabled
)
return
;
/* If Teletext is selected */
if
(
i_teletext_es
>=
0
)
{
/* Activate the buttons */
emit
teletextActivated
(
true
);
/* Then, find the current page */
int
i_page
=
100
;
vlc_object_t
*
p_vbi
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_input
,
"zvbi"
,
FIND_ANYWHERE
);
if
(
p_vbi
)
{
i_page
=
var_GetInteger
(
p_vbi
,
"vbi-page"
);
vlc_object_release
(
p_vbi
);
emit
newTelexPageSet
(
i_page
);
}
}
}
else
emit
teletextPossible
(
b_enabled
);
}
void
InputManager
::
activateTeletext
(
bool
b_enable
)
{
vlc_value_t
list
;
...
...
modules/gui/qt4/input_manager.hpp
View file @
f5ca137c
...
...
@@ -153,7 +153,6 @@ public slots:
/* Teletext */
void
telexSetPage
(
int
);
///< Goto teletext page
void
telexSetTransparency
(
bool
);
///< Transparency on teletext background
void
telexActivation
(
bool
);
///< Enable disable teletext buttons
void
activateTeletext
(
bool
);
///< Toggle buttons after click
/* A to B Loop */
void
setAtoB
();
...
...
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