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
32f7fa10
Commit
32f7fa10
authored
Mar 09, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: Catch INPUT_EVENT_PROGRAM updates and show icon when "program-scrambled" is set.
parent
d7a871c8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
19 deletions
+21
-19
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+16
-4
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+4
-5
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+1
-6
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+0
-4
No files found.
modules/gui/qt4/input_manager.cpp
View file @
32f7fa10
...
@@ -138,9 +138,8 @@ void InputManager::delInput()
...
@@ -138,9 +138,8 @@ void InputManager::delInput()
emit
artChanged
(
NULL
);
emit
artChanged
(
NULL
);
emit
infoChanged
(
NULL
);
emit
infoChanged
(
NULL
);
emit
metaChanged
(
(
input_item_t
*
)
NULL
);
emit
metaChanged
(
(
input_item_t
*
)
NULL
);
#if 0
emit
encryptionChanged
(
false
);
emit
encryptionChanged
(
false
);
#endif
}
}
/* Convert the event from the callbacks in actions */
/* Convert the event from the callbacks in actions */
...
@@ -229,6 +228,9 @@ void InputManager::customEvent( QEvent *event )
...
@@ -229,6 +228,9 @@ void InputManager::customEvent( QEvent *event )
case
RecordingEvent_Type
:
case
RecordingEvent_Type
:
UpdateRecord
();
UpdateRecord
();
break
;
break
;
case
ProgramChanged_Type
:
UpdateProgramEvent
();
break
;
default:
default:
msg_Warn
(
p_intf
,
"This shouldn't happen: %i"
,
i_type
);
msg_Warn
(
p_intf
,
"This shouldn't happen: %i"
,
i_type
);
assert
(
0
);
assert
(
0
);
...
@@ -328,8 +330,9 @@ static int InputEvent( vlc_object_t *p_this, const char *,
...
@@ -328,8 +330,9 @@ static int InputEvent( vlc_object_t *p_this, const char *,
case
INPUT_EVENT_PROGRAM
:
case
INPUT_EVENT_PROGRAM
:
/* This is for PID changes */
/* This is for PID changes */
/* event = new IMEvent( ProgramChanged_Type, 0 );
event
=
new
IMEvent
(
ProgramChanged_Type
,
0
);
break; */
break
;
case
INPUT_EVENT_SIGNAL
:
case
INPUT_EVENT_SIGNAL
:
/* This is for capture-card signals */
/* This is for capture-card signals */
/* event = new IMEvent( SignalChanged_Type, 0 );
/* event = new IMEvent( SignalChanged_Type, 0 );
...
@@ -628,6 +631,15 @@ void InputManager::UpdateRecord()
...
@@ -628,6 +631,15 @@ void InputManager::UpdateRecord()
}
}
}
}
void
InputManager
::
UpdateProgramEvent
()
{
if
(
hasInput
()
)
{
bool
b_scrambled
=
var_GetBool
(
p_input
,
"program-scrambled"
);
emit
encryptionChanged
(
b_scrambled
);
}
}
/* User update of the slider */
/* User update of the slider */
void
InputManager
::
sliderUpdate
(
float
new_pos
)
void
InputManager
::
sliderUpdate
(
float
new_pos
)
{
{
...
...
modules/gui/qt4/input_manager.hpp
View file @
32f7fa10
...
@@ -58,8 +58,8 @@ enum {
...
@@ -58,8 +58,8 @@ enum {
CachingEvent_Type
,
CachingEvent_Type
,
BookmarksChanged_Type
,
BookmarksChanged_Type
,
RecordingEvent_Type
,
RecordingEvent_Type
,
/*
ProgramChanged_Type,
ProgramChanged_Type
,
SignalChanged_Type, */
/*
SignalChanged_Type, */
FullscreenControlToggle_Type
=
QEvent
::
User
+
IMEventType
+
20
,
FullscreenControlToggle_Type
=
QEvent
::
User
+
IMEventType
+
20
,
FullscreenControlShow_Type
,
FullscreenControlShow_Type
,
...
@@ -135,7 +135,7 @@ private:
...
@@ -135,7 +135,7 @@ private:
void
UpdateStats
();
void
UpdateStats
();
void
UpdateCaching
();
void
UpdateCaching
();
void
UpdateRecord
();
void
UpdateRecord
();
void
UpdateProgramEvent
();
public
slots
:
public
slots
:
void
setInput
(
input_thread_t
*
);
///< Our controlled input changed
void
setInput
(
input_thread_t
*
);
///< Our controlled input changed
...
@@ -197,9 +197,8 @@ signals:
...
@@ -197,9 +197,8 @@ signals:
void
synchroChanged
();
void
synchroChanged
();
void
bookmarksChanged
();
void
bookmarksChanged
();
void
cachingChanged
(
float
);
void
cachingChanged
(
float
);
#if 0
/// Program Event changes
void
encryptionChanged
(
bool
);
void
encryptionChanged
(
bool
);
#endif
};
};
class
MainInputManager
:
public
QObject
class
MainInputManager
:
public
QObject
...
...
modules/gui/qt4/main_interface.cpp
View file @
32f7fa10
...
@@ -81,9 +81,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -81,9 +81,7 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
playlistVisible
=
false
;
playlistVisible
=
false
;
input_name
=
""
;
input_name
=
""
;
fullscreenControls
=
NULL
;
fullscreenControls
=
NULL
;
#if 0
cryptedLabel
=
NULL
;
cryptedLabel
=
NULL
;
#endif
/* Ask for privacy */
/* Ask for privacy */
askForPrivacy
();
askForPrivacy
();
...
@@ -353,12 +351,10 @@ inline void MainInterface::createStatusBar()
...
@@ -353,12 +351,10 @@ inline void MainInterface::createStatusBar()
- right-clicking and clicking just toggle between remaining and
- right-clicking and clicking just toggle between remaining and
elapsed time.*/
elapsed time.*/
CONNECT
(
timeLabel
,
timeLabelDoubleClicked
(),
THEDP
,
gotoTimeDialog
()
);
CONNECT
(
timeLabel
,
timeLabelDoubleClicked
(),
THEDP
,
gotoTimeDialog
()
);
#if 0
CONNECT
(
THEMIM
->
getIM
(),
encryptionChanged
(
bool
)
,
this
,
showCryptedLabel
(
bool
)
);
CONNECT
(
THEMIM
->
getIM
(),
encryptionChanged
(
bool
)
,
this
,
showCryptedLabel
(
bool
)
);
#endif
}
}
#if 0
void
MainInterface
::
showCryptedLabel
(
bool
)
void
MainInterface
::
showCryptedLabel
(
bool
)
{
{
if
(
cryptedLabel
==
NULL
)
if
(
cryptedLabel
==
NULL
)
...
@@ -370,7 +366,6 @@ void MainInterface::showCryptedLabel( bool )
...
@@ -370,7 +366,6 @@ void MainInterface::showCryptedLabel( bool )
cryptedLabel
->
show
();
cryptedLabel
->
show
();
}
}
#endif
inline
void
MainInterface
::
initSystray
()
inline
void
MainInterface
::
initSystray
()
{
{
...
...
modules/gui/qt4/main_interface.hpp
View file @
32f7fa10
...
@@ -142,9 +142,7 @@ private:
...
@@ -142,9 +142,7 @@ private:
/* Status Bar */
/* Status Bar */
QLabel
*
nameLabel
;
QLabel
*
nameLabel
;
#if 0
QLabel
*
cryptedLabel
;
QLabel
*
cryptedLabel
;
#endif
virtual
void
customEvent
(
QEvent
*
);
virtual
void
customEvent
(
QEvent
*
);
virtual
void
keyPressEvent
(
QKeyEvent
*
);
virtual
void
keyPressEvent
(
QKeyEvent
*
);
...
@@ -177,9 +175,7 @@ private slots:
...
@@ -177,9 +175,7 @@ private slots:
void
updateSystrayTooltipName
(
QString
);
void
updateSystrayTooltipName
(
QString
);
void
updateSystrayTooltipStatus
(
int
);
void
updateSystrayTooltipStatus
(
int
);
#if 0
void
showCryptedLabel
(
bool
);
void
showCryptedLabel
(
bool
);
#endif
signals:
signals:
void
askReleaseVideo
(
);
void
askReleaseVideo
(
);
void
askVideoToResize
(
unsigned
int
,
unsigned
int
);
void
askVideoToResize
(
unsigned
int
,
unsigned
int
);
...
...
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