playlist.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * interface_widgets.hpp : Playlist Widgets
00003  ****************************************************************************
00004  * Copyright (C) 2006 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Clément Stenac <zorglub@videolan.org>
00008  *          Jean-Baptiste Kempf <jb@videolan.org>
00009  *          Rafaël Carré <funman@videolanorg>
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
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

Generated on Wed Aug 13 08:02:37 2008 for VLC by  doxygen 1.5.1