00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _PLAYLISTWIDGET_H_
00027 #define _PLAYLISTWIDGET_H_
00028
00029 #ifdef HAVE_CONFIG_H
00030 # include "config.h"
00031 #endif
00032
00033 #include <vlc_common.h>
00034 #include "qt4.hpp"
00035 #include "dialogs_provider.hpp"
00036
00037 #include <QSplitter>
00038 #include <QLabel>
00039
00040 class PLSelector;
00041 class PLPanel;
00042 class QPushButton;
00043
00044 class PlaylistWidget : public QSplitter
00045 {
00046 Q_OBJECT;
00047 public:
00048 PlaylistWidget( intf_thread_t *_p_i, QWidget *parent ) ;
00049 virtual ~PlaylistWidget();
00050 QSize sizeHint() const;
00051 void savingSettings();
00052 private:
00053 PLSelector *selector;
00054 PLPanel *rightPanel;
00055 QPushButton *addButton;
00056 QLabel *art;
00057 QString prevArt;
00058 QWidget *parent;
00059 protected:
00060 intf_thread_t *p_intf;
00061 private slots:
00062 void setArt( QString );
00063 signals:
00064 void rootChanged( int );
00065 };
00066
00067 class ArtLabel : public QLabel
00068 {
00069 Q_OBJECT
00070 void mouseDoubleClickEvent( QMouseEvent *event )
00071 {
00072 THEDP->mediaInfoDialog();
00073 }
00074 };
00075
00076
00077 #endif