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
d0ed93fe
Commit
d0ed93fe
authored
Oct 20, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Qt] move some static const int to enum
parent
d7f3af84
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
38 deletions
+44
-38
modules/gui/qt4/components/extended_panels.hpp
modules/gui/qt4/components/extended_panels.hpp
+0
-1
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/playlist_model.hpp
+6
-4
modules/gui/qt4/components/simple_preferences.hpp
modules/gui/qt4/components/simple_preferences.hpp
+2
-2
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+18
-16
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+0
-1
modules/gui/qt4/qt4.hpp
modules/gui/qt4/qt4.hpp
+18
-14
No files found.
modules/gui/qt4/components/extended_panels.hpp
View file @
d0ed93fe
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
#include "ui/video_effects.h"
#include "ui/video_effects.h"
#include "ui/v4l2.h"
#include "ui/v4l2.h"
#include <QTabWidget>
#include <QTabWidget>
#define BANDS EQZ_BANDS_MAX
#define BANDS EQZ_BANDS_MAX
...
...
modules/gui/qt4/components/playlist/playlist_model.hpp
View file @
d0ed93fe
...
@@ -50,10 +50,12 @@ class PLItem;
...
@@ -50,10 +50,12 @@ class PLItem;
#define DEPTH_PL -1
#define DEPTH_PL -1
#define DEPTH_SEL 1
#define DEPTH_SEL 1
static
const
int
ItemUpdate_Type
=
QEvent
::
User
+
PLEventType
+
2
;
enum
{
static
const
int
ItemDelete_Type
=
QEvent
::
User
+
PLEventType
+
3
;
ItemUpdate_Type
=
QEvent
::
User
+
PLEventType
+
2
,
static
const
int
ItemAppend_Type
=
QEvent
::
User
+
PLEventType
+
4
;
ItemDelete_Type
=
QEvent
::
User
+
PLEventType
+
3
,
static
const
int
PLUpdate_Type
=
QEvent
::
User
+
PLEventType
+
5
;
ItemAppend_Type
=
QEvent
::
User
+
PLEventType
+
4
,
PLUpdate_Type
=
QEvent
::
User
+
PLEventType
+
5
,
};
class
PLEvent
:
public
QEvent
class
PLEvent
:
public
QEvent
{
{
...
...
modules/gui/qt4/components/simple_preferences.hpp
View file @
d0ed93fe
...
@@ -55,9 +55,9 @@ enum {
...
@@ -55,9 +55,9 @@ enum {
enum
{
enum
{
CachingCustom
=
0
,
CachingCustom
=
0
,
CachingLowest
=
100
,
CachingLowest
=
100
,
CachingLow
=
200
,
CachingLow
=
200
,
CachingNormal
=
300
,
CachingNormal
=
300
,
CachingHigh
=
400
,
CachingHigh
=
400
,
CachingHigher
=
500
CachingHigher
=
500
};
};
...
...
modules/gui/qt4/input_manager.hpp
View file @
d0ed93fe
...
@@ -36,21 +36,23 @@
...
@@ -36,21 +36,23 @@
#include <QObject>
#include <QObject>
#include <QEvent>
#include <QEvent>
static
int
const
PositionUpdate_Type
=
QEvent
::
User
+
IMEventType
+
1
;
enum
{
static
int
const
ItemChanged_Type
=
QEvent
::
User
+
IMEventType
+
2
;
PositionUpdate_Type
=
QEvent
::
User
+
IMEventType
+
1
,
static
int
const
ItemStateChanged_Type
=
QEvent
::
User
+
IMEventType
+
3
;
ItemChanged_Type
,
static
int
const
ItemTitleChanged_Type
=
QEvent
::
User
+
IMEventType
+
4
;
ItemStateChanged_Type
,
static
int
const
ItemRateChanged_Type
=
QEvent
::
User
+
IMEventType
+
5
;
ItemTitleChanged_Type
,
static
int
const
VolumeChanged_Type
=
QEvent
::
User
+
IMEventType
+
6
;
ItemRateChanged_Type
,
static
int
const
ItemSpuChanged_Type
=
QEvent
::
User
+
IMEventType
+
7
;
VolumeChanged_Type
,
static
int
const
ItemTeletextChanged_Type
=
QEvent
::
User
+
IMEventType
+
8
;
ItemSpuChanged_Type
,
static
int
const
InterfaceVoutUpdate_Type
=
QEvent
::
User
+
IMEventType
+
9
;
ItemTeletextChanged_Type
,
static
int
const
StatisticsUpdate_Type
=
QEvent
::
User
+
IMEventType
+
10
;
InterfaceVoutUpdate_Type
,
StatisticsUpdate_Type
,
static
int
const
FullscreenControlToggle_Type
=
QEvent
::
User
+
IMEventType
+
11
;
static
int
const
FullscreenControlShow_Type
=
QEvent
::
User
+
IMEventType
+
12
;
FullscreenControlToggle_Type
=
QEvent
::
User
+
IMEventType
+
20
,
static
int
const
FullscreenControlHide_Type
=
QEvent
::
User
+
IMEventType
+
13
;
FullscreenControlShow_Type
,
static
int
const
FullscreenControlPlanHide_Type
=
QEvent
::
User
+
IMEventType
+
14
;
FullscreenControlHide_Type
,
FullscreenControlPlanHide_Type
,
};
class
IMEvent
:
public
QEvent
class
IMEvent
:
public
QEvent
{
{
...
@@ -102,7 +104,7 @@ private:
...
@@ -102,7 +104,7 @@ private:
void
UpdateTeletext
();
void
UpdateTeletext
();
void
UpdateArt
();
void
UpdateArt
();
void
UpdateVout
();
void
UpdateVout
();
void
UpdateStats
();
// FIXME, remove from this file.
void
UpdateStats
();
void
AtoBLoop
(
int
);
void
AtoBLoop
(
int
);
...
...
modules/gui/qt4/main_interface.hpp
View file @
d0ed93fe
...
@@ -49,7 +49,6 @@ class FullscreenControllerWidget;
...
@@ -49,7 +49,6 @@ class FullscreenControllerWidget;
class
SpeedControlWidget
;
class
SpeedControlWidget
;
class
QMenu
;
class
QMenu
;
class
QSize
;
class
QSize
;
//class QDockWidet;
enum
{
enum
{
CONTROLS_HIDDEN
=
0x0
,
CONTROLS_HIDDEN
=
0x0
,
...
...
modules/gui/qt4/qt4.hpp
View file @
d0ed93fe
...
@@ -37,9 +37,24 @@
...
@@ -37,9 +37,24 @@
#define HAS_QT43 ( QT_VERSION >= 0x040300 )
#define HAS_QT43 ( QT_VERSION >= 0x040300 )
#define QT_NORMAL_MODE 0
enum
{
#define QT_ALWAYS_VIDEO_MODE 1
QT_NORMAL_MODE
=
0
,
#define QT_MINIMAL_MODE 2
QT_ALWAYS_VIDEO_MODE
,
QT_MINIMAL_MODE
};
enum
{
DialogEventType
=
0
,
IMEventType
=
100
,
PLEventType
=
200
};
enum
{
DialogEvent_Type
=
QEvent
::
User
+
DialogEventType
+
1
,
//PLUndockEvent_Type = QEvent::User + DialogEventType + 2;
//PLDockEvent_Type = QEvent::User + DialogEventType + 3;
SetVideoOnTopEvent_Type
=
QEvent
::
User
+
DialogEventType
+
4
,
};
class
QApplication
;
class
QApplication
;
class
QMenu
;
class
QMenu
;
...
@@ -123,12 +138,6 @@ struct intf_sys_t
...
@@ -123,12 +138,6 @@ struct intf_sys_t
#define getSettings() p_intf->p_sys->mainSettings
#define getSettings() p_intf->p_sys->mainSettings
enum
{
DialogEventType
=
0
,
IMEventType
=
100
,
PLEventType
=
200
};
#include <QString>
#include <QString>
/* Replace separators on Windows because Qt is always using / */
/* Replace separators on Windows because Qt is always using / */
...
@@ -153,11 +162,6 @@ static inline QString removeTrailingSlash( QString s )
...
@@ -153,11 +162,6 @@ static inline QString removeTrailingSlash( QString s )
#define toNativeSepNoSlash( a ) toNativeSeparators( removeTrailingSlash( a ) )
#define toNativeSepNoSlash( a ) toNativeSeparators( removeTrailingSlash( a ) )
static
const
int
DialogEvent_Type
=
QEvent
::
User
+
DialogEventType
+
1
;
//static const int PLUndockEvent_Type = QEvent::User + DialogEventType + 2;
//static const int PLDockEvent_Type = QEvent::User + DialogEventType + 3;
static
const
int
SetVideoOnTopEvent_Type
=
QEvent
::
User
+
DialogEventType
+
4
;
class
DialogEvent
:
public
QEvent
class
DialogEvent
:
public
QEvent
{
{
public:
public:
...
...
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