]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/interface_widgets.hpp
Add video filters panel
[vlc] / modules / gui / qt4 / components / interface_widgets.hpp
index c084807dc99d4b0614d3035acf709b33f0771bf1..3f0946c4eb62a77efe3411050d386b42f6e1c998 100644 (file)
 #define _INTFWIDGETS_H_
 
 #include <vlc/vlc.h>
-#include <vlc/intf.h>
+#include <vlc_interface.h>
+
+#include "qt4.hpp"
+
 #include <QWidget>
 #include <QFrame>
 #include <QPalette>
@@ -86,15 +89,42 @@ public:
     virtual ~VisualSelector();
 private:
     intf_thread_t *p_intf;
+    QLabel *current;
+private slots:
+    void prev();
+    void next();
 };
 
-/******************** Playlist Widget ****************/
+class QPushButton;
+class ControlsWidget : public QFrame
+{
+    Q_OBJECT
+public:
+    ControlsWidget( intf_thread_t *);
+    virtual ~ControlsWidget();
+    void enableInput( bool );
+    void enableVideo( bool );
+private:
+    intf_thread_t *p_intf;
+    QPushButton *slowerButton, *normalButton, *fasterButton;
+    QPushButton *fullscreenButton, *snapshotButton;
+private slots:
+    void faster();
+    void slower();
+    void normal();
+    void snapshot();
+    void fullscreen();
+};
+
+
+/******************** Playlist Widgets ****************/
 #include <QModelIndex>
 class QSignalMapper;
 class PLSelector;
 class PLPanel;
+class QPushButton;
 
-class PlaylistWidget : public QFrame
+class PlaylistWidget : public BasePlaylistWidget
 {
     Q_OBJECT;
 public:
@@ -105,9 +135,13 @@ public:
 private:
     PLSelector *selector;
     PLPanel *rightPanel;
-    intf_thread_t *p_intf;
+    QPushButton *addButton;
+    QLabel *art;
+    QString prevArt;
 private slots:
-    void undock();
+    void setArt( QString );
+signals:
+    void rootChanged( int );
 };
 
 #endif