]> git.sesse.net Git - vlc/commitdiff
Qt: move view names to the StandardPanel file
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 27 Oct 2010 06:50:08 +0000 (08:50 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 27 Oct 2010 06:55:53 +0000 (08:55 +0200)
And cleanup includes of StandardPanel

modules/gui/qt4/components/playlist/playlist.hpp
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.hpp

index 04db3a817a7f32ab63919365a0047329a685c558..45d4481fda78f5a513c67dcdcf075a067ccf0c90 100644 (file)
@@ -43,10 +43,6 @@ class QSignalMapper;
 class SearchLineEdit;
 class QModelIndex;
 
-static const QString viewNames[] = { qtr( "Detailed View" ),
-                                     qtr( "Icon View" ),
-                                     qtr( "List View" ) };
-
 class PlaylistWidget : public QSplitter
 {
     Q_OBJECT
index b8abb60e7541e7294a47419e767b1522f421bd83..daad1afb4590e41376288faead8306d971ebce3a 100644 (file)
 # include "config.h"
 #endif
 
-#include "dialogs_provider.hpp"
-
-#include "components/playlist/playlist_model.hpp"
 #include "components/playlist/standardpanel.hpp"
-#include "components/playlist/views.hpp"
-#include "components/playlist/selector.hpp"
-#include "util/customwidgets.hpp"
-#include "menus.hpp"
-#include "input_manager.hpp"
 
-#include <vlc_intf_strings.h>
-#include <vlc_services_discovery.h>
+#include "components/playlist/playlist_model.hpp" /* PLModel */
+#include "components/playlist/views.hpp"          /* 3 views */
+#include "components/playlist/selector.hpp"       /* PLSelector */
+#include "menus.hpp"                              /* Popup */
+#include "input_manager.hpp"                      /* THEMIM */
+
+#include <vlc_services_discovery.h> /* SD_CMD_SEARCH */
 
-#include <QPushButton>
 #include <QHeaderView>
-#include <QKeyEvent>
 #include <QModelIndexList>
-#include <QLabel>
 #include <QMenu>
+#include <QKeyEvent>
 #include <QWheelEvent>
-#include <QToolButton>
-#include <QFontMetrics>
 #include <QStackedLayout>
 #include <QSignalMapper>
+#include <QSettings>
 
 #include <assert.h>
 
 #include "sorting.h"
 
-
 StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
                                   intf_thread_t *_p_intf,
                                   playlist_t *p_playlist,
index d5546e5b927d8ceeaf43677231c13db992ffb75e..4fb4ec7f28e7c181d353b5fd6b48ade895c21eaa 100644 (file)
@@ -51,6 +51,11 @@ class LocationBar;
 class PLSelector;
 class PlaylistWidget;
 
+static const QString viewNames[3 /* VIEW_COUNT */]
+                                = { qtr( "Detailed View" ),
+                                    qtr( "Icon View" ),
+                                    qtr( "List View" ) };
+
 class StandardPLPanel: public QWidget
 {
     Q_OBJECT