Commit f86dd941 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Simplify includes.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 63631cba
/***************************************************************************** /*****************************************************************************
* open.hpp : Panels for the open dialogs * open.hpp : Panels for the open dialogs
**************************************************************************** ****************************************************************************
* Copyright (C) 2006-2007 the VideoLAN team * Copyright (C) 2006-2008 the VideoLAN team
* Copyright (C) 2007 Société des arts technologiques * Copyright (C) 2007 Société des arts technologiques
* Copyright (C) 2007 Savoir-faire Linux * Copyright (C) 2007 Savoir-faire Linux
* $Id$ * $Id$
...@@ -32,16 +32,14 @@ ...@@ -32,16 +32,14 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h> #include "components/preferences_widgets.hpp"
#include <QFileDialog>
#include "ui/open_file.h" #include "ui/open_file.h"
#include "ui/open_disk.h" #include "ui/open_disk.h"
#include "ui/open_net.h" #include "ui/open_net.h"
#include "ui/open_capture.h" #include "ui/open_capture.h"
#include "components/preferences_widgets.hpp" #include <QFileDialog>
#include <limits.h> #include <limits.h>
...@@ -61,7 +59,6 @@ enum ...@@ -61,7 +59,6 @@ enum
RTMP_PROTO RTMP_PROTO
}; };
enum enum
{ {
V4L_DEVICE, V4L_DEVICE,
...@@ -77,7 +74,6 @@ enum ...@@ -77,7 +74,6 @@ enum
static const char *psz_devModule[] = { "v4l", "v4l2", "pvr", "dvb", "bda", static const char *psz_devModule[] = { "v4l", "v4l2", "pvr", "dvb", "bda",
"dshow", "screen", "jack" }; "dshow", "screen", "jack" };
class QWidget; class QWidget;
class QLineEdit; class QLineEdit;
class QString; class QString;
......
...@@ -28,8 +28,6 @@ ...@@ -28,8 +28,6 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h>
#include "qt4.hpp" #include "qt4.hpp"
#include "components/playlist/playlist.hpp" #include "components/playlist/playlist.hpp"
......
...@@ -28,9 +28,6 @@ ...@@ -28,9 +28,6 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h>
#include <vlc_input.h>
#include <vlc_playlist.h>
#include "components/playlist/playlist_model.hpp" #include "components/playlist/playlist_model.hpp"
#include <QString> #include <QString>
......
...@@ -28,12 +28,12 @@ ...@@ -28,12 +28,12 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h> #include "qt4.hpp"
#include <vlc_input.h> #include <vlc_input.h>
#include <vlc_playlist.h> #include <vlc_playlist.h>
#include "playlist_item.hpp"
#include "qt4.hpp" #include "playlist_item.hpp"
#include <QModelIndex> #include <QModelIndex>
#include <QObject> #include <QObject>
......
...@@ -28,11 +28,10 @@ ...@@ -28,11 +28,10 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h>
#include <QWidget>
#include <QString>
#include "components/playlist/playlist_model.hpp" #include "components/playlist/playlist_model.hpp"
#include <QWidget>
class QTreeView; class QTreeView;
class PlaylistWidget; class PlaylistWidget;
......
...@@ -30,8 +30,6 @@ ...@@ -30,8 +30,6 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h>
#include "qt4.hpp" #include "qt4.hpp"
#include <assert.h> #include <assert.h>
...@@ -48,7 +46,6 @@ ...@@ -48,7 +46,6 @@
#include <QVector> #include <QVector>
#include <QDialog> #include <QDialog>
class QTreeWidget; class QTreeWidget;
class QTreeWidgetItem; class QTreeWidgetItem;
class QGroupBox; class QGroupBox;
...@@ -386,7 +383,7 @@ public: ...@@ -386,7 +383,7 @@ public:
virtual QString getValue(); virtual QString getValue();
virtual void hide() { combo->hide(); if( label ) label->hide(); } virtual void hide() { combo->hide(); if( label ) label->hide(); }
virtual void show() { combo->show(); if( label ) label->show(); } virtual void show() { combo->show(); if( label ) label->show(); }
QComboBox *combo; QComboBox *combo;
private: private:
void finish(module_config_t *, bool ); void finish(module_config_t *, bool );
QLabel *label; QLabel *label;
......
...@@ -30,17 +30,19 @@ ...@@ -30,17 +30,19 @@
#include <vlc_common.h> #include <vlc_common.h>
#include <vlc_interface.h> #include <vlc_interface.h>
#include <QWidget>
#include "ui/sprefs_input.h" #include "ui/sprefs_input.h"
#include "ui/sprefs_audio.h" #include "ui/sprefs_audio.h"
#include "ui/sprefs_video.h" #include "ui/sprefs_video.h"
#include "ui/sprefs_subtitles.h" #include "ui/sprefs_subtitles.h"
#include "ui/sprefs_interface.h" #include "ui/sprefs_interface.h"
#ifdef WIN32 #ifdef WIN32
#include "util/registry.hpp" # include "util/registry.hpp"
#endif #endif
#include <QWidget>
enum { enum {
SPrefsInterface = 0, SPrefsInterface = 0,
SPrefsAudio, SPrefsAudio,
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "dialogs/help.hpp" #include "dialogs/help.hpp"
#include <vlc_common.h>
#include <vlc_about.h> #include <vlc_about.h>
#include <vlc_intf_strings.h> #include <vlc_intf_strings.h>
......
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
# include "config.h" # include "config.h"
#endif #endif
#include "dialogs/open.hpp" #include "dialogs/open.hpp"
#include "input_manager.hpp"
#include "dialogs_provider.hpp" #include "dialogs_provider.hpp"
#include "recents.hpp" #include "recents.hpp"
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h> #include <vlc_common.h> /* Gettext functions */
#include "ui/sout.h" #include "ui/sout.h"
#include "util/qvlcframe.hpp" #include "util/qvlcframe.hpp"
......
...@@ -29,8 +29,6 @@ ...@@ -29,8 +29,6 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h>
#ifdef ENABLE_VLM #ifdef ENABLE_VLM
#include <vlc_vlm.h> #include <vlc_vlm.h>
......
...@@ -26,15 +26,14 @@ ...@@ -26,15 +26,14 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h>
#include <vlc_intf_strings.h> #include <vlc_intf_strings.h>
#include "qt4.hpp" #include "qt4.hpp"
#include "dialogs_provider.hpp" #include "dialogs_provider.hpp"
#include "input_manager.hpp" /* Load Subtitles */
#include "menus.hpp" #include "menus.hpp"
#include "input_manager.hpp"
#include "recents.hpp" #include "recents.hpp"
#include "util/qvlcapp.hpp" #include "util/qvlcapp.hpp" /* DialogEvent */
/* The dialogs */ /* The dialogs */
#include "dialogs/playlist.hpp" #include "dialogs/playlist.hpp"
...@@ -51,6 +50,7 @@ ...@@ -51,6 +50,7 @@
#include "dialogs/podcast_configuration.hpp" #include "dialogs/podcast_configuration.hpp"
#include "dialogs/toolbar.hpp" #include "dialogs/toolbar.hpp"
#include "dialogs/plugins.hpp" #include "dialogs/plugins.hpp"
#include "dialogs/interaction.hpp"
#include <QEvent> #include <QEvent>
#include <QApplication> #include <QApplication>
......
/***************************************************************************** /*****************************************************************************
* dialogs_provider.hpp : Dialogs provider * dialogs_provider.hpp : Dialogs provider
**************************************************************************** ****************************************************************************
* Copyright (C) 2006-2007 the VideoLAN team * Copyright (C) 2006-2008 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Clément Stenac <zorglub@videolan.org> * Authors: Clément Stenac <zorglub@videolan.org>
...@@ -30,12 +30,10 @@ ...@@ -30,12 +30,10 @@
#endif #endif
#include <assert.h> #include <assert.h>
#include <vlc_common.h>
#include <vlc_interface.h>
#include "qt4.hpp" #include "qt4.hpp"
#include "dialogs/interaction.hpp"
#include "dialogs/open.hpp" #include <QObject>
#define ADD_FILTER_MEDIA( string ) \ #define ADD_FILTER_MEDIA( string ) \
string += qtr( "Media Files" ); \ string += qtr( "Media Files" ); \
...@@ -74,6 +72,13 @@ enum { ...@@ -74,6 +72,13 @@ enum {
EXT_FILTER_SUBTITLE = 0x10, EXT_FILTER_SUBTITLE = 0x10,
}; };
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 QEvent; class QEvent;
class QSignalMapper; class QSignalMapper;
class QVLCMenu; class QVLCMenu;
...@@ -187,4 +192,21 @@ private slots: ...@@ -187,4 +192,21 @@ private slots:
void SDMenuAction( QString ); void SDMenuAction( QString );
}; };
class DialogEvent : public QEvent
{
public:
DialogEvent( int _i_dialog, int _i_arg, intf_dialog_args_t *_p_arg ) :
QEvent( (QEvent::Type)(DialogEvent_Type) )
{
i_dialog = _i_dialog;
i_arg = _i_arg;
p_arg = _p_arg;
};
virtual ~DialogEvent() { delete p_arg; };
int i_arg, i_dialog;
intf_dialog_args_t *p_arg;
};
#endif #endif
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
# include "config.h" # include "config.h"
#endif #endif
#include "qt4.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
#include <QApplication> #include <QApplication>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
* $Id$ * $Id$
* *
* Authors: Clément Stenac <zorglub@videolan.org> * Authors: Clément Stenac <zorglub@videolan.org>
* Jean-Baptiste <jb@videolan.org>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -28,7 +29,6 @@ ...@@ -28,7 +29,6 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h>
#include <vlc_input.h> #include <vlc_input.h>
#include "qt4.hpp" #include "qt4.hpp"
......
...@@ -28,37 +28,37 @@ ...@@ -28,37 +28,37 @@
#endif #endif
#include "qt4.hpp" #include "qt4.hpp"
#include "main_interface.hpp" #include "main_interface.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
#include "util/qvlcframe.hpp"
#include "util/qvlcapp.hpp"
#include "util/customwidgets.hpp" #include "util/customwidgets.hpp"
#include "util/qvlcapp.hpp" /* DialogEvent defintion */
#include "components/interface_widgets.hpp" #include "components/interface_widgets.hpp"
#include "components/controller.hpp" #include "components/controller.hpp"
#include "components/playlist/playlist.hpp" #include "components/playlist/playlist.hpp"
#include "dialogs/extended.hpp"
#include "dialogs/playlist.hpp"
#include "menus.hpp" #include "menus.hpp"
#include "recents.hpp" #include "recents.hpp"
#include <QMenuBar>
#include <QCloseEvent> #include <QCloseEvent>
#include <QPushButton>
#include <QStatusBar>
#include <QKeyEvent> #include <QKeyEvent>
#include <QUrl> #include <QUrl>
#include <QSystemTrayIcon>
#include <QSize> #include <QSize>
#include <QMenu> #include <QDate>
#include <QMenuBar>
#include <QStatusBar>
#include <QLabel> #include <QLabel>
#include <QSlider>
#include <QWidgetAction>
#include <QToolBar>
#include <QGroupBox> #include <QGroupBox>
#include <QDate> #include <QPushButton>
#include <QWidgetAction>
#include <assert.h> #include <assert.h>
#include <vlc_keys.h>
#include <vlc_keys.h> /* Wheel event */
#include <vlc_vout.h> #include <vlc_vout.h>
/* Callback prototypes */ /* Callback prototypes */
......
...@@ -26,10 +26,9 @@ ...@@ -26,10 +26,9 @@
#define _MAIN_INTERFACE_H_ #define _MAIN_INTERFACE_H_
#include "qt4.hpp" #include "qt4.hpp"
#include "util/qvlcframe.hpp"
#include "components/preferences_widgets.hpp"
#include <vlc_aout.h> #include "util/qvlcframe.hpp"
#include "components/preferences_widgets.hpp" /* First Start */
#include <QSystemTrayIcon> #include <QSystemTrayIcon>
......
...@@ -31,16 +31,14 @@ ...@@ -31,16 +31,14 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h>
#include <vlc_intf_strings.h> #include <vlc_intf_strings.h>
#include "menus.hpp" #include "menus.hpp"
#include "main_interface.hpp" /* View modifications */ #include "main_interface.hpp" /* View modifications */
#include "dialogs_provider.hpp" #include "dialogs_provider.hpp" /* Dialogs display */
#include "input_manager.hpp" #include "input_manager.hpp" /* Input Management */
#include "recents.hpp" #include "recents.hpp" /* Recent Items */
#include <QMenu> #include <QMenu>
#include <QMenuBar> #include <QMenuBar>
......
...@@ -51,18 +51,9 @@ enum { ...@@ -51,18 +51,9 @@ enum {
PLEventType = 200 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;
class MainInterface; class MainInterface;
class DialogsProvider;
class VideoWidget;
class QSettings; class QSettings;
struct intf_sys_t struct intf_sys_t
......
...@@ -50,21 +50,5 @@ protected: ...@@ -50,21 +50,5 @@ protected:
#endif #endif
}; };
class DialogEvent : public QEvent
{
public:
DialogEvent( int _i_dialog, int _i_arg, intf_dialog_args_t *_p_arg ) :
QEvent( (QEvent::Type)(DialogEvent_Type) )
{
i_dialog = _i_dialog;
i_arg = _i_arg;
p_arg = _p_arg;
};
virtual ~DialogEvent() { delete p_arg; };
int i_arg, i_dialog;
intf_dialog_args_t *p_arg;
};
#endif #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment