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
Show 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 )
...
@@ -938,7 +938,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
switch
(
(
int
)
event
->
type
()
)
switch
(
(
int
)
event
->
type
()
)
{
{
/* This is used when the 'i' hotkey is used, to force quick toggle */
/* This is used when the 'i' hotkey is used, to force quick toggle */
case
IMEvent
:
:
FullscreenControlToggle
_Type
:
case
IMEvent
:
:
FullscreenControlToggle
:
vlc_mutex_lock
(
&
lock
);
vlc_mutex_lock
(
&
lock
);
b_fs
=
b_fullscreen
;
b_fs
=
b_fullscreen
;
vlc_mutex_unlock
(
&
lock
);
vlc_mutex_unlock
(
&
lock
);
...
@@ -955,7 +955,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
...
@@ -955,7 +955,7 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
}
}
break
;
break
;
/* Event called to Show the FSC on mouseChanged() */
/* Event called to Show the FSC on mouseChanged() */
case
IMEvent
:
:
FullscreenControlShow
_Type
:
case
IMEvent
:
:
FullscreenControlShow
:
vlc_mutex_lock
(
&
lock
);
vlc_mutex_lock
(
&
lock
);
b_fs
=
b_fullscreen
;
b_fs
=
b_fullscreen
;
vlc_mutex_unlock
(
&
lock
);
vlc_mutex_unlock
(
&
lock
);
...
@@ -965,12 +965,12 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
...
@@ -965,12 +965,12 @@ void FullscreenControllerWidget::customEvent( QEvent *event )
break
;
break
;
/* Start the timer to hide later, called usually with above case */
/* 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
if
(
!
b_mouse_over
)
// Only if the mouse is not over FSC
planHideFSC
();
planHideFSC
();
break
;
break
;
/* Hide */
/* Hide */
case
IMEvent
:
:
FullscreenControlHide
_Type
:
case
IMEvent
:
:
FullscreenControlHide
:
hideFSC
();
hideFSC
();
break
;
break
;
default:
default:
...
@@ -1174,7 +1174,7 @@ void FullscreenControllerWidget::fullscreenChanged( vout_thread_t *p_vout,
...
@@ -1174,7 +1174,7 @@ void FullscreenControllerWidget::fullscreenChanged( vout_thread_t *p_vout,
FullscreenControllerWidgetMouseMoved
,
this
);
FullscreenControllerWidgetMouseMoved
,
this
);
/* Force fs hiding */
/* Force fs hiding */
IMEvent
*
eHide
=
new
IMEvent
(
IMEvent
::
FullscreenControlHide
_Type
,
0
);
IMEvent
*
eHide
=
new
IMEvent
(
IMEvent
::
FullscreenControlHide
,
0
);
QApplication
::
postEvent
(
this
,
eHide
);
QApplication
::
postEvent
(
this
,
eHide
);
}
}
vlc_mutex_unlock
(
&
lock
);
vlc_mutex_unlock
(
&
lock
);
...
@@ -1202,11 +1202,11 @@ void FullscreenControllerWidget::mouseChanged( vout_thread_t *, int i_mousex, in
...
@@ -1202,11 +1202,11 @@ void FullscreenControllerWidget::mouseChanged( vout_thread_t *, int i_mousex, in
if
(
b_toShow
)
if
(
b_toShow
)
{
{
/* Show event */
/* Show event */
IMEvent
*
eShow
=
new
IMEvent
(
IMEvent
::
FullscreenControlShow
_Type
,
0
);
IMEvent
*
eShow
=
new
IMEvent
(
IMEvent
::
FullscreenControlShow
,
0
);
QApplication
::
postEvent
(
this
,
eShow
);
QApplication
::
postEvent
(
this
,
eShow
);
/* Plan hide event */
/* Plan hide event */
IMEvent
*
eHide
=
new
IMEvent
(
IMEvent
::
FullscreenControlPlanHide
_Type
,
0
);
IMEvent
*
eHide
=
new
IMEvent
(
IMEvent
::
FullscreenControlPlanHide
,
0
);
QApplication
::
postEvent
(
this
,
eHide
);
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
...
@@ -48,33 +48,33 @@ class IMEvent : public UniqueEvent
{
{
public:
public:
enum
event_types
{
enum
event_types
{
PositionUpdate
_Type
=
QEvent
::
User
+
IMEventTypeOffset
+
1
,
PositionUpdate
=
QEvent
::
User
+
IMEventTypeOffset
+
1
,
ItemChanged
_Type
,
ItemChanged
,
ItemStateChanged
_Type
,
ItemStateChanged
,
ItemTitleChanged
_Type
,
ItemTitleChanged
,
ItemRateChanged
_Type
,
ItemRateChanged
,
ItemEsChanged
_Type
,
ItemEsChanged
,
ItemTeletextChanged
_Type
,
ItemTeletextChanged
,
InterfaceVoutUpdate
_Type
,
InterfaceVoutUpdate
,
StatisticsUpdate
_Type
,
/*10*/
StatisticsUpdate
,
/*10*/
InterfaceAoutUpdate
_Type
,
InterfaceAoutUpdate
,
MetaChanged
_Type
,
MetaChanged
,
NameChanged
_Type
,
NameChanged
,
InfoChanged
_Type
,
InfoChanged
,
SynchroChanged
_Type
,
SynchroChanged
,
CachingEvent
_Type
,
CachingEvent
,
BookmarksChanged
_Type
,
BookmarksChanged
,
RecordingEvent
_Type
,
RecordingEvent
,
ProgramChanged
_Type
,
ProgramChanged
,
RandomChanged
_Type
,
RandomChanged
,
LoopOrRepeatChanged
_Type
,
LoopOrRepeatChanged
,
EPGEvent
_Type
,
EPGEvent
,
/* SignalChanged
_Type
, */
/* SignalChanged, */
FullscreenControlToggle
_Type
=
QEvent
::
User
+
IMEventTypeOffset
+
20
,
FullscreenControlToggle
=
QEvent
::
User
+
IMEventTypeOffset
+
20
,
FullscreenControlShow
_Type
,
FullscreenControlShow
,
FullscreenControlHide
_Type
,
FullscreenControlHide
,
FullscreenControlPlanHide
_Type
,
FullscreenControlPlanHide
,
};
};
IMEvent
(
event_types
type
,
input_item_t
*
p_input
=
NULL
)
IMEvent
(
event_types
type
,
input_item_t
*
p_input
=
NULL
)
:
UniqueEvent
(
(
QEvent
::
Type
)(
type
)
)
:
UniqueEvent
(
(
QEvent
::
Type
)(
type
)
)
...
@@ -102,10 +102,10 @@ class PLEvent : public QEvent
...
@@ -102,10 +102,10 @@ class PLEvent : public QEvent
public:
public:
enum
PLEventTypes
enum
PLEventTypes
{
{
PLItemAppended
_Type
=
QEvent
::
User
+
PLEventTypeOffset
+
1
,
PLItemAppended
=
QEvent
::
User
+
PLEventTypeOffset
+
1
,
PLItemRemoved
_Type
,
PLItemRemoved
,
LeafToParent
_Type
,
LeafToParent
,
PLEmpty
_Type
PLEmpty
};
};
PLEvent
(
PLEventTypes
t
,
int
i
,
int
p
=
0
)
PLEvent
(
PLEventTypes
t
,
int
i
,
int
p
=
0
)
:
QEvent
(
(
QEvent
::
Type
)(
t
)
),
i_item
(
i
),
i_parent
(
p
)
{}
:
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()
...
@@ -613,7 +613,7 @@ void MainInterface::toggleFSC()
{
{
if
(
!
fullscreenControls
)
return
;
if
(
!
fullscreenControls
)
return
;
IMEvent
*
eShow
=
new
IMEvent
(
IMEvent
::
FullscreenControlToggle
_Type
);
IMEvent
*
eShow
=
new
IMEvent
(
IMEvent
::
FullscreenControlToggle
);
QApplication
::
postEvent
(
fullscreenControls
,
eShow
);
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