Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
50606d8f
Commit
50606d8f
authored
Jan 21, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: react to recording event from the core by activating the button.
parent
a6b0ee0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+3
-0
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+17
-6
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+4
-2
No files found.
modules/gui/qt4/components/controller.cpp
View file @
50606d8f
...
...
@@ -307,6 +307,9 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
CONNECT_MAP_SET
(
recordButton
,
RECORD_ACTION
);
BUTTON_SET_BAR
(
recordButton
);
ENABLE_ON_INPUT
(
recordButton
);
recordButton
->
setCheckable
(
true
);
CONNECT
(
THEMIM
->
getIM
(),
recordingStateChanged
(
bool
),
recordButton
,
setChecked
(
bool
)
);
widget
=
recordButton
;
}
break
;
...
...
modules/gui/qt4/input_manager.cpp
View file @
50606d8f
...
...
@@ -156,7 +156,8 @@ void InputManager::customEvent( QEvent *event )
i_type
!=
SynchroChanged_Type
&&
i_type
!=
CachingEvent_Type
&&
i_type
!=
BookmarksChanged_Type
&&
i_type
!=
InterfaceAoutUpdate_Type
)
i_type
!=
InterfaceAoutUpdate_Type
&&
i_type
!=
RecordingEvent_Type
)
return
;
if
(
!
hasInput
()
)
return
;
...
...
@@ -176,7 +177,8 @@ void InputManager::customEvent( QEvent *event )
i_type
!=
InfoChanged_Type
&&
i_type
!=
SynchroChanged_Type
&&
i_type
!=
BookmarksChanged_Type
&&
i_type
!=
InterfaceAoutUpdate_Type
i_type
!=
InterfaceAoutUpdate_Type
&&
i_type
!=
RecordingEvent_Type
)
&&
(
i_input_id
!=
ple
->
i_id
)
)
return
;
...
...
@@ -247,6 +249,9 @@ void InputManager::customEvent( QEvent *event )
case
InterfaceAoutUpdate_Type
:
UpdateAout
();
break
;
case
RecordingEvent_Type
:
UpdateRecord
();
break
;
default:
msg_Warn
(
p_intf
,
"This shouldn't happen: %i"
,
i_type
);
}
...
...
@@ -340,10 +345,8 @@ static int InputEvent( vlc_object_t *p_this, const char *,
break
;
case
INPUT_EVENT_RECORD
:
/* This happens when a recording starts. What do we do then?
Display a red light? */
/* event = new IMEvent( RecordingEvent_Type, 0 );
break; */
event
=
new
IMEvent
(
RecordingEvent_Type
,
0
);
break
;
case
INPUT_EVENT_PROGRAM
:
/* This is for PID changes */
...
...
@@ -585,6 +588,14 @@ inline void InputManager::UpdateInfo()
emit
infoChanged
(
input_GetItem
(
p_input
)
);
}
void
InputManager
::
UpdateRecord
()
{
if
(
hasInput
()
)
{
emit
recordingStateChanged
(
var_GetBool
(
p_input
,
"record"
)
);
}
}
/* User update of the slider */
void
InputManager
::
sliderUpdate
(
float
new_pos
)
{
...
...
modules/gui/qt4/input_manager.hpp
View file @
50606d8f
...
...
@@ -57,8 +57,8 @@ enum {
SynchroChanged_Type
,
CachingEvent_Type
,
BookmarksChanged_Type
,
/*
RecordingEvent_Type,
ProgramChanged_Type,
RecordingEvent_Type
,
/*
ProgramChanged_Type,
SignalChanged_Type, */
FullscreenControlToggle_Type
=
QEvent
::
User
+
IMEventType
+
20
,
...
...
@@ -133,6 +133,7 @@ private:
void
UpdateAout
();
void
UpdateStats
();
void
UpdateCaching
();
void
UpdateRecord
();
void
AtoBLoop
(
int
);
...
...
@@ -175,6 +176,7 @@ signals:
void
artChanged
(
QString
);
/// Play/pause status
void
statusChanged
(
int
);
void
recordingStateChanged
(
bool
);
/// Teletext
void
teletextPossible
(
bool
);
void
teletextActivated
(
bool
);
...
...
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