]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/playlist/selector.hpp
Merge branch 1.0-bugfix into master
[vlc] / modules / gui / qt4 / components / playlist / selector.hpp
index 7a5931b4c5cd67ebe4de229b8251899d12486efe..63a514e51a644f4f65e3b8dacc12c513c1c3724d 100644 (file)
 #ifndef _PLSEL_H_
 #define _PLSEL_H_
 
-#include <vlc/vlc.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include "components/playlist/playlist_model.hpp"
+
 #include <QWidget>
-#include <QString>
+
+class QTreeView;
+class PlaylistWidget;
 
 class PLSelector: public QWidget
 {
@@ -34,8 +41,17 @@ class PLSelector: public QWidget
 public:
     PLSelector( QWidget *p, intf_thread_t *_p_intf );
     virtual ~PLSelector();
+protected:
+    PLModel *model;
+    friend class PlaylistWidget;
 private:
     intf_thread_t *p_intf;
+    QTreeView *view;
+private slots:
+    void setSource( const QModelIndex& );
+signals:
+    void activated( int );
+    void shouldRemove( int );
 };
 
 #endif