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
e1bc46e7
Commit
e1bc46e7
authored
Feb 12, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Change the event numbers and add more debug to find the IM/Rate bugs.
parent
b7a979cd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
21 deletions
+35
-21
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/playlist_model.hpp
+6
-4
modules/gui/qt4/dialogs/help.hpp
modules/gui/qt4/dialogs/help.hpp
+2
-2
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+9
-5
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+8
-6
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+10
-4
No files found.
modules/gui/qt4/components/playlist/playlist_model.hpp
View file @
e1bc46e7
...
...
@@ -33,6 +33,8 @@
#include <vlc_playlist.h>
#include "playlist_item.hpp"
#include "qt4.hpp"
#include <QModelIndex>
#include <QObject>
#include <QEvent>
...
...
@@ -48,10 +50,10 @@ class PLItem;
#define DEPTH_PL -1
#define DEPTH_SEL 1
static
int
ItemUpdate_Type
=
QEvent
::
User
+
2
;
static
int
ItemDelete_Type
=
QEvent
::
User
+
3
;
static
int
ItemAppend_Type
=
QEvent
::
User
+
4
;
static
int
PLUpdate_Type
=
QEvent
::
User
+
5
;
static
int
ItemUpdate_Type
=
QEvent
::
User
+
PLEventType
+
2
;
static
int
ItemDelete_Type
=
QEvent
::
User
+
PLEventType
+
3
;
static
int
ItemAppend_Type
=
QEvent
::
User
+
PLEventType
+
4
;
static
int
PLUpdate_Type
=
QEvent
::
User
+
PLEventType
+
5
;
class
PLEvent
:
public
QEvent
{
...
...
modules/gui/qt4/dialogs/help.hpp
View file @
e1bc46e7
...
...
@@ -82,8 +82,8 @@ public slots:
#ifdef UPDATE_CHECK
static
int
UDOkEvent
=
QEvent
::
User
+
1
;
static
int
UDErrorEvent
=
QEvent
::
User
+
2
;
static
int
UDOkEvent
=
QEvent
::
User
+
DialogEventType
+
2
1
;
static
int
UDErrorEvent
=
QEvent
::
User
+
DialogEventType
+
2
2
;
class
UpdateDialog
:
public
QVLCFrame
{
...
...
modules/gui/qt4/input_manager.cpp
View file @
e1bc46e7
...
...
@@ -159,6 +159,7 @@ void InputManager::delCallbacks()
void
InputManager
::
customEvent
(
QEvent
*
event
)
{
int
type
=
event
->
type
();
msg_Dbg
(
p_intf
,
"New Event: type %i"
,
type
);
IMEvent
*
ple
=
static_cast
<
IMEvent
*>
(
event
);
//msg_Dbg( p_intf, "New IM Event of type: %i", type );
if
(
type
!=
PositionUpdate_Type
&&
...
...
@@ -170,7 +171,8 @@ void InputManager::customEvent( QEvent *event )
if
(
!
p_input
||
p_input
->
b_die
||
p_input
->
b_dead
)
return
;
if
(
type
!=
PositionUpdate_Type
&&
(
i_input_id
!=
ple
->
i_id
)
)
if
(
(
type
!=
PositionUpdate_Type
&&
type
!=
ItemRateChanged_Type
)
&&
(
i_input_id
!=
ple
->
i_id
)
)
return
;
if
(
type
!=
PositionUpdate_Type
)
msg_Dbg
(
p_intf
,
"New Event: type %i"
,
type
);
...
...
@@ -196,9 +198,9 @@ void InputManager::customEvent( QEvent *event )
UpdateMeta
();
break
;
case
ItemStateChanged_Type
:
UpdateStatus
();
UpdateTracks
();
break
;
UpdateStatus
();
UpdateTracks
();
break
;
}
}
...
...
@@ -304,6 +306,8 @@ void InputManager::UpdateTracks()
var_Change
(
p_input
,
"video-es"
,
VLC_VAR_CHOICESCOUNT
,
&
val
,
NULL
);
b_has_video
=
val
.
i_int
>
0
;
msg_Dbg
(
p_input
,
"I have audio-video: %i %i"
,
b_has_audio
,
b_has_video
);
/* Update ZVBI status */
#ifdef ZVBI_COMPILED
/* Update teletext status*/
...
...
@@ -487,10 +491,10 @@ MainInputManager::~MainInputManager()
void
MainInputManager
::
customEvent
(
QEvent
*
event
)
{
int
type
=
event
->
type
();
//msg_Dbg( p_intf, "New MainIM Event of type: %i", type );
if
(
type
!=
ItemChanged_Type
&&
type
!=
VolumeChanged_Type
)
return
;
// msg_Dbg( p_intf, "New MainIM Event of type: %i", type );
if
(
type
==
VolumeChanged_Type
)
{
emit
volumeChanged
();
...
...
modules/gui/qt4/input_manager.hpp
View file @
e1bc46e7
...
...
@@ -31,15 +31,17 @@
#include <vlc/vlc.h>
#include <vlc_input.h>
#include "qt4.hpp"
#include <QObject>
#include <QEvent>
static
int
const
PositionUpdate_Type
=
QEvent
::
User
+
6
;
static
int
const
ItemChanged_Type
=
QEvent
::
User
+
7
;
static
int
const
Item
RateChanged_Type
=
QEvent
::
User
+
8
;
static
int
const
ItemTitleChanged_Type
=
QEvent
::
User
+
9
;
static
int
const
Item
StateChanged_Type
=
QEvent
::
User
+
10
;
static
int
const
VolumeChanged_Type
=
QEvent
::
User
+
11
;
static
int
const
PositionUpdate_Type
=
QEvent
::
User
+
IMEventType
+
1
;
static
int
const
ItemChanged_Type
=
QEvent
::
User
+
IMEventType
+
2
;
static
int
const
Item
StateChanged_Type
=
QEvent
::
User
+
IMEventType
+
3
;
static
int
const
ItemTitleChanged_Type
=
QEvent
::
User
+
IMEventType
+
4
;
static
int
const
Item
RateChanged_Type
=
QEvent
::
User
+
IMEventType
+
5
;
static
int
const
VolumeChanged_Type
=
QEvent
::
User
+
IMEventType
+
6
;
class
IMEvent
:
public
QEvent
{
...
...
modules/gui/qt4/qt4.hpp
View file @
e1bc46e7
...
...
@@ -104,10 +104,16 @@ struct intf_sys_t
#define TOGGLEV( x ) { if( x->isVisible() ) x->hide(); \
else x->show(); }
static
int
DialogEvent_Type
=
QEvent
::
User
+
1
;
//static int PLUndockEvent_Type = QEvent::User + 2;
//static int PLDockEvent_Type = QEvent::User + 3;
static
int
SetVideoOnTopEvent_Type
=
QEvent
::
User
+
4
;
enum
{
DialogEventType
=
0
,
IMEventType
=
100
,
PLEventType
=
200
};
static
int
DialogEvent_Type
=
QEvent
::
User
+
DialogEventType
+
1
;
//static int PLUndockEvent_Type = QEvent::User + DialogEventType + 2;
//static int PLDockEvent_Type = QEvent::User + DialogEventType + 3;
static
int
SetVideoOnTopEvent_Type
=
QEvent
::
User
+
DialogEventType
+
4
;
class
DialogEvent
:
public
QEvent
{
...
...
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