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
d6742e01
Commit
d6742e01
authored
Aug 17, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: namespaces are now sufficient for designating event names
parent
087fcf43
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
89 deletions
+89
-89
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+7
-7
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+51
-51
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+30
-30
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+1
-1
No files found.
modules/gui/qt4/components/controller.cpp
View file @
d6742e01
...
...
@@ -938,7 +938,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
switch
(
(
int
)
event
->
type
()
)
{
/* This is used when the 'i' hotkey is used, to force quick toggle */
case
IMEvent
:
:
FullscreenControlToggle
_Type
:
case
IMEvent
:
:
FullscreenControlToggle
:
vlc_mutex_lock
(
&
lock
);
b_fs
=
b_fullscreen
;
vlc_mutex_unlock
(
&
lock
);
...
...
@@ -955,7 +955,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
}
break
;
/* Event called to Show the FSC on mouseChanged() */
case
IMEvent
:
:
FullscreenControlShow
_Type
:
case
IMEvent
:
:
FullscreenControlShow
:
vlc_mutex_lock
(
&
lock
);
b_fs
=
b_fullscreen
;
vlc_mutex_unlock
(
&
lock
);
...
...
@@ -965,12 +965,12 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
break
;
/* Start the timer to hide later, called usually with above case */
case
IMEvent
:
:
FullscreenControlPlanHide
_Type
:
case
IMEvent
:
:
FullscreenControlPlanHide
:
if
(
!
b_mouse_over
)
// Only if the mouse is not over FSC
planHideFSC
();
break
;
/* Hide */
case
IMEvent
:
:
FullscreenControlHide
_Type
:
case
IMEvent
:
:
FullscreenControlHide
:
hideFSC
();
break
;
default:
...
...
@@ -1174,7 +1174,7 @@ void FullscreenControllerWidget::fullscreenChanged( vout_thread_t *p_vout,
FullscreenControllerWidgetMouseMoved
,
this
);
/* Force fs hiding */
IMEvent
*
eHide
=
new
IMEvent
(
IMEvent
::
FullscreenControlHide
_Type
,
0
);
IMEvent
*
eHide
=
new
IMEvent
(
IMEvent
::
FullscreenControlHide
,
0
);
QApplication
::
postEvent
(
this
,
eHide
);
}
vlc_mutex_unlock
(
&
lock
);
...
...
@@ -1202,11 +1202,11 @@ void FullscreenControllerWidget::mouseChanged( vout_thread_t *, int i_mousex, in
if
(
b_toShow
)
{
/* Show event */
IMEvent
*
eShow
=
new
IMEvent
(
IMEvent
::
FullscreenControlShow
_Type
,
0
);
IMEvent
*
eShow
=
new
IMEvent
(
IMEvent
::
FullscreenControlShow
,
0
);
QApplication
::
postEvent
(
this
,
eShow
);
/* Plan hide event */
IMEvent
*
eHide
=
new
IMEvent
(
IMEvent
::
FullscreenControlPlanHide
_Type
,
0
);
IMEvent
*
eHide
=
new
IMEvent
(
IMEvent
::
FullscreenControlPlanHide
,
0
);
QApplication
::
postEvent
(
this
,
eHide
);
}
}
...
...
modules/gui/qt4/input_manager.cpp
View file @
d6742e01
This diff is collapsed.
Click to expand it.
modules/gui/qt4/input_manager.hpp
View file @
d6742e01
...
...
@@ -48,33 +48,33 @@ class IMEvent : public UniqueEvent
{
public:
enum
event_types
{
PositionUpdate
_Type
=
QEvent
::
User
+
IMEventTypeOffset
+
1
,
ItemChanged
_Type
,
ItemStateChanged
_Type
,
ItemTitleChanged
_Type
,
ItemRateChanged
_Type
,
ItemEsChanged
_Type
,
ItemTeletextChanged
_Type
,
InterfaceVoutUpdate
_Type
,
StatisticsUpdate
_Type
,
/*10*/
InterfaceAoutUpdate
_Type
,
MetaChanged
_Type
,
NameChanged
_Type
,
InfoChanged
_Type
,
SynchroChanged
_Type
,
CachingEvent
_Type
,
BookmarksChanged
_Type
,
RecordingEvent
_Type
,
ProgramChanged
_Type
,
RandomChanged
_Type
,
LoopOrRepeatChanged
_Type
,
EPGEvent
_Type
,
/* SignalChanged
_Type
, */
PositionUpdate
=
QEvent
::
User
+
IMEventTypeOffset
+
1
,
ItemChanged
,
ItemStateChanged
,
ItemTitleChanged
,
ItemRateChanged
,
ItemEsChanged
,
ItemTeletextChanged
,
InterfaceVoutUpdate
,
StatisticsUpdate
,
/*10*/
InterfaceAoutUpdate
,
MetaChanged
,
NameChanged
,
InfoChanged
,
SynchroChanged
,
CachingEvent
,
BookmarksChanged
,
RecordingEvent
,
ProgramChanged
,
RandomChanged
,
LoopOrRepeatChanged
,
EPGEvent
,
/* SignalChanged, */
FullscreenControlToggle
_Type
=
QEvent
::
User
+
IMEventTypeOffset
+
20
,
FullscreenControlShow
_Type
,
FullscreenControlHide
_Type
,
FullscreenControlPlanHide
_Type
,
FullscreenControlToggle
=
QEvent
::
User
+
IMEventTypeOffset
+
20
,
FullscreenControlShow
,
FullscreenControlHide
,
FullscreenControlPlanHide
,
};
IMEvent
(
event_types
type
,
input_item_t
*
p_input
=
NULL
)
:
UniqueEvent
(
(
QEvent
::
Type
)(
type
)
)
...
...
@@ -102,10 +102,10 @@ class PLEvent : public QEvent
public:
enum
PLEventTypes
{
PLItemAppended
_Type
=
QEvent
::
User
+
PLEventTypeOffset
+
1
,
PLItemRemoved
_Type
,
LeafToParent
_Type
,
PLEmpty
_Type
PLItemAppended
=
QEvent
::
User
+
PLEventTypeOffset
+
1
,
PLItemRemoved
,
LeafToParent
,
PLEmpty
};
PLEvent
(
PLEventTypes
t
,
int
i
,
int
p
=
0
)
:
QEvent
(
(
QEvent
::
Type
)(
t
)
),
i_item
(
i
),
i_parent
(
p
)
{}
...
...
modules/gui/qt4/main_interface.cpp
View file @
d6742e01
...
...
@@ -613,7 +613,7 @@ void MainInterface::toggleFSC()
{
if
(
!
fullscreenControls
)
return
;
IMEvent
*
eShow
=
new
IMEvent
(
IMEvent
::
FullscreenControlToggle
_Type
);
IMEvent
*
eShow
=
new
IMEvent
(
IMEvent
::
FullscreenControlToggle
);
QApplication
::
postEvent
(
fullscreenControls
,
eShow
);
}
...
...
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