Commit 63631cba authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Remove some dialogs_provider.hpp and input_manager.hpp dependencies.

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent dcaffea5
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include "components/controller_widget.hpp" #include "components/controller_widget.hpp"
#include "components/interface_widgets.hpp" #include "components/interface_widgets.hpp"
#include "dialogs_provider.hpp" #include "dialogs_provider.hpp" /* Opening Dialogs */
#include "input_manager.hpp" #include "input_manager.hpp"
#include "util/input_slider.hpp" /* InputSlider */ #include "util/input_slider.hpp" /* InputSlider */
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "components/extended_panels.hpp" #include "components/extended_panels.hpp"
#include "dialogs/preferences.hpp" #include "dialogs/preferences.hpp"
#include "dialogs_provider.hpp"
#include "qt4.hpp" #include "qt4.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#include "components/interface_widgets.hpp" #include "components/interface_widgets.hpp"
#include "input_manager.hpp" /* Rate control */
#include "menus.hpp" /* Popup menu on bgWidget */ #include "menus.hpp" /* Popup menu on bgWidget */
#include <vlc_vout.h> #include <vlc_vout.h>
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
# include "config.h" # include "config.h"
#endif #endif
#include "main_interface.hpp" #include "main_interface.hpp" /* Interface integration */
#include "input_manager.hpp" #include "input_manager.hpp" /* Speed control */
#include "components/controller.hpp" #include "components/controller.hpp"
#include "components/controller_widget.hpp" #include "components/controller_widget.hpp"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include "qt4.hpp" #include "qt4.hpp"
#include "components/open_panels.hpp" #include "components/open_panels.hpp"
#include "dialogs/open.hpp" #include "dialogs/open.hpp"
#include "dialogs_provider.hpp" #include "dialogs_provider.hpp" /* Open Subtitle file */
#include <QFileDialog> #include <QFileDialog>
#include <QDialogButtonBox> #include <QDialogButtonBox>
......
...@@ -29,7 +29,9 @@ ...@@ -29,7 +29,9 @@
#include "components/playlist/panels.hpp" #include "components/playlist/panels.hpp"
#include "components/playlist/selector.hpp" #include "components/playlist/selector.hpp"
#include "components/playlist/playlist.hpp" #include "components/playlist/playlist.hpp"
#include "input_manager.hpp" /* art signal */ #include "input_manager.hpp" /* art signal */
#include "main_interface.hpp" /* DropEvent TODO remove this*/
#include <QSettings> #include <QSettings>
#include <QLabel> #include <QLabel>
...@@ -132,13 +134,12 @@ PlaylistWidget::~PlaylistWidget() ...@@ -132,13 +134,12 @@ PlaylistWidget::~PlaylistWidget()
msg_Dbg( p_intf, "Playlist Destroyed" ); msg_Dbg( p_intf, "Playlist Destroyed" );
} }
#include "main_interface.hpp" void PlaylistWidget::dropEvent( QDropEvent *event )
void PlaylistWidget::dropEvent(QDropEvent *event)
{ {
if( p_intf->p_sys->p_mi ) if( p_intf->p_sys->p_mi )
p_intf->p_sys->p_mi->dropEventPlay( event, false ); p_intf->p_sys->p_mi->dropEventPlay( event, false );
} }
void PlaylistWidget::dragEnterEvent(QDragEnterEvent *event) void PlaylistWidget::dragEnterEvent( QDragEnterEvent *event )
{ {
event->acceptProposedAction(); event->acceptProposedAction();
} }
......
...@@ -30,9 +30,9 @@ ...@@ -30,9 +30,9 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h>
#include "qt4.hpp" #include "qt4.hpp"
#include "dialogs_provider.hpp"
#include "dialogs_provider.hpp" /* Media Info from ArtLabel */
#include "components/interface_widgets.hpp" #include "components/interface_widgets.hpp"
#include <QSplitter> #include <QSplitter>
......
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
* 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/bookmarks.hpp" #include "dialogs/bookmarks.hpp"
#include "dialogs_provider.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
#include <QGridLayout> #include <QGridLayout>
......
/***************************************************************************** /*****************************************************************************
* extended.cpp : Extended controls - Undocked * extended.cpp : Extended controls - Undocked
**************************************************************************** ****************************************************************************
* Copyright (C) 2006 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>
...@@ -26,9 +26,8 @@ ...@@ -26,9 +26,8 @@
#endif #endif
#include "dialogs/extended.hpp" #include "dialogs/extended.hpp"
#include "dialogs_provider.hpp"
#include "main_interface.hpp" #include "main_interface.hpp" /* Needed for external MI size */
#include "input_manager.hpp" #include "input_manager.hpp"
#include <QTabWidget> #include <QTabWidget>
...@@ -92,7 +91,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf ) ...@@ -92,7 +91,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
if( !restoreGeometry(getSettings()->value("EPanel/geometry").toByteArray())) if( !restoreGeometry(getSettings()->value("EPanel/geometry").toByteArray()))
{ {
resize( QSize( 400, 280 ) ); resize( QSize( 400, 280 ) );
MainInterface *p_mi = p_intf->p_sys->p_mi; MainInterface *p_mi = p_intf->p_sys->p_mi;
if( p_mi ) if( p_mi )
move( ( p_mi->x() - frameGeometry().width() - 10 ), p_mi->y() ); move( ( p_mi->x() - frameGeometry().width() - 10 ), p_mi->y() );
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#include "dialogs/gototime.hpp" #include "dialogs/gototime.hpp"
#include "dialogs_provider.hpp"
#include "main_interface.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
#include <QTabWidget> #include <QTabWidget>
......
...@@ -26,19 +26,16 @@ ...@@ -26,19 +26,16 @@
# include "config.h" # include "config.h"
#endif #endif
#include <vlc_common.h>
#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>
#ifdef UPDATE_CHECK #ifdef UPDATE_CHECK
#include <vlc_update.h> # include <vlc_update.h>
#endif #endif
#include "dialogs_provider.hpp"
#include <vlc_intf_strings.h>
#include <QTextBrowser> #include <QTextBrowser>
#include <QTabWidget> #include <QTabWidget>
#include <QLabel> #include <QLabel>
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "dialogs/errors.hpp" #include "dialogs/errors.hpp"
#include "dialogs/interaction.hpp" #include "dialogs/interaction.hpp"
#include "main_interface.hpp"
#include <QLabel> #include <QLabel>
#include <QLineEdit> #include <QLineEdit>
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "dialogs/mediainfo.hpp" #include "dialogs/mediainfo.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
#include "dialogs_provider.hpp"
#include <QTabWidget> #include <QTabWidget>
#include <QGridLayout> #include <QGridLayout>
......
...@@ -25,9 +25,7 @@ ...@@ -25,9 +25,7 @@
#endif #endif
#include "dialogs/messages.hpp" #include "dialogs/messages.hpp"
#include "dialogs_provider.hpp"
#include <QSpacerItem>
#include <QSpinBox> #include <QSpinBox>
#include <QLabel> #include <QLabel>
#include <QTextEdit> #include <QTextEdit>
......
/***************************************************************************** /*****************************************************************************
* open.cpp : Advanced open dialog * open.cpp : Advanced open dialog
***************************************************************************** *****************************************************************************
* Copyright © 2006-2007 the VideoLAN team * Copyright © 2006-2008 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Jean-Baptiste Kempf <jb@videolan.org> * Authors: Jean-Baptiste Kempf <jb@videolan.org>
...@@ -24,10 +24,11 @@ ...@@ -24,10 +24,11 @@
# include "config.h" # include "config.h"
#endif #endif
#include "input_manager.hpp"
#include "dialogs/open.hpp" #include "dialogs/open.hpp"
#include "input_manager.hpp"
#include "dialogs_provider.hpp"
#include "recents.hpp" #include "recents.hpp"
#include <QTabWidget> #include <QTabWidget>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <vlc_common.h> #include <vlc_common.h>
#include "util/qvlcframe.hpp" #include "util/qvlcframe.hpp"
#include "dialogs_provider.hpp"
#include "ui/open.h" #include "ui/open.h"
#include "components/open_panels.hpp" #include "components/open_panels.hpp"
......
...@@ -26,17 +26,10 @@ ...@@ -26,17 +26,10 @@
#include "dialogs/playlist.hpp" #include "dialogs/playlist.hpp"
#include "main_interface.hpp"
#include "components/playlist/playlist.hpp" #include "components/playlist/playlist.hpp"
#include "dialogs_provider.hpp"
#include "menus.hpp"
#include <QUrl> #include <QUrl>
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QSignalMapper>
#include <QMenu>
#include <QAction>
#include <QMenuBar>
PlaylistDialog *PlaylistDialog::instance = NULL; PlaylistDialog *PlaylistDialog::instance = NULL;
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#endif #endif
#include "dialogs/preferences.hpp" #include "dialogs/preferences.hpp"
#include "dialogs_provider.hpp"
#include "util/qvlcframe.hpp" #include "util/qvlcframe.hpp"
#include "components/complete_preferences.hpp" #include "components/complete_preferences.hpp"
...@@ -36,9 +35,7 @@ ...@@ -36,9 +35,7 @@
#include <QHBoxLayout> #include <QHBoxLayout>
#include <QGroupBox> #include <QGroupBox>
#include <QRadioButton> #include <QRadioButton>
#include <QVBoxLayout>
#include <QPushButton> #include <QPushButton>
#include <QCheckBox>
#include <QMessageBox> #include <QMessageBox>
#include <QDialogButtonBox> #include <QDialogButtonBox>
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "qt4.hpp" #include "qt4.hpp"
#include "dialogs_provider.hpp" #include "dialogs_provider.hpp"
#include "main_interface.hpp"
#include "menus.hpp" #include "menus.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
#include "recents.hpp" #include "recents.hpp"
......
...@@ -22,13 +22,15 @@ ...@@ -22,13 +22,15 @@
* 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 "qt4.hpp" #include "qt4.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
#include "dialogs_provider.hpp"
#include <QApplication>
static int ItemChanged( vlc_object_t *, const char *, static int ItemChanged( vlc_object_t *, const char *,
vlc_value_t, vlc_value_t, void * ); vlc_value_t, vlc_value_t, void * );
...@@ -616,7 +618,6 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf ) ...@@ -616,7 +618,6 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
var_Change( THEPL, "playlist-current", VLC_VAR_CHOICESCOUNT, &val, NULL ); var_Change( THEPL, "playlist-current", VLC_VAR_CHOICESCOUNT, &val, NULL );
IMEvent *event = new IMEvent( ItemChanged_Type, val.i_int); IMEvent *event = new IMEvent( ItemChanged_Type, val.i_int);
QApplication::postEvent( this, static_cast<QEvent*>(event) ); QApplication::postEvent( this, static_cast<QEvent*>(event) );
} }
MainInputManager::~MainInputManager() MainInputManager::~MainInputManager()
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "util/qvlcframe.hpp" #include "util/qvlcframe.hpp"
#include "util/qvlcapp.hpp" #include "util/qvlcapp.hpp"
#include "util/customwidgets.hpp" #include "util/customwidgets.hpp"
#include "dialogs_provider.hpp"
#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"
......
...@@ -35,8 +35,9 @@ ...@@ -35,8 +35,9 @@
#include <vlc_intf_strings.h> #include <vlc_intf_strings.h>
#include "main_interface.hpp"
#include "menus.hpp" #include "menus.hpp"
#include "main_interface.hpp" /* View modifications */
#include "dialogs_provider.hpp" #include "dialogs_provider.hpp"
#include "input_manager.hpp" #include "input_manager.hpp"
#include "recents.hpp" #include "recents.hpp"
......
...@@ -35,11 +35,11 @@ ...@@ -35,11 +35,11 @@
#include <QWaitCondition> #include <QWaitCondition>
#include "qt4.hpp" #include "qt4.hpp"
#include "dialogs_provider.hpp" #include "input_manager.hpp" /* THEMIM creation */
#include "input_manager.hpp" #include "dialogs_provider.hpp" /* THEDP creation */
#include "main_interface.hpp" #include "main_interface.hpp" /* MainInterface creation */
#include "dialogs/help.hpp" /* update */ #include "dialogs/help.hpp" /* Launch Update */
#include "recents.hpp" #include "recents.hpp" /* Recents Item destruction */
#include "util/qvlcapp.hpp" #include "util/qvlcapp.hpp"
#ifdef HAVE_X11_XLIB_H #ifdef HAVE_X11_XLIB_H
......
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