1
/*****************************************************************************
2
* interface_widgets.hpp : Playlist Widgets
3
****************************************************************************
4
* Copyright (C) 2006 the VideoLAN team
5
* $Id: 71180e0c0f36a017fea950a0cfa67b9ee896051c $
7
* Authors: Clément Stenac <zorglub@videolan.org>
8
* Jean-Baptiste Kempf <jb@videolan.org>
9
* Rafaël Carré <funman@videolanorg>
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24
*****************************************************************************/
26
#ifndef _PLAYLISTWIDGET_H_
27
#define _PLAYLISTWIDGET_H_
33
#include <vlc_common.h>
35
#include "dialogs_provider.hpp"
36
#include "components/interface_widgets.hpp"
47
class PlaylistWidget : public QSplitter
51
PlaylistWidget( intf_thread_t *_p_i, QWidget *parent ) ;
52
virtual ~PlaylistWidget();
56
QPushButton *addButton;
60
intf_thread_t *p_intf;
61
virtual void dropEvent( QDropEvent *);
62
virtual void dragEnterEvent( QDragEnterEvent * );
63
virtual void closeEvent( QCloseEvent * );
66
void rootChanged( int );
69
class ArtLabel : public CoverArtLabel
73
ArtLabel( intf_thread_t *intf ) : CoverArtLabel( VLC_OBJECT( intf ) ) {};
74
virtual ~ArtLabel() {};
75
void mouseDoubleClickEvent( QMouseEvent *event )
77
THEDP->mediaInfoDialog();