~ubuntu-branches/ubuntu/maverick/vlc/maverick

« back to all changes in this revision

Viewing changes to modules/gui/qt4/components/playlist/playlist.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-09-17 21:56:14 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20080917215614-tj0vx8xzd57e52t8
Tags: 0.9.2-1ubuntu1
* New Upstream Release, exception granted by
    - dktrkranz, norsetto, Hobbsee (via irc). LP: #270404

Changes done in ubuntu:

* add libxul-dev to build-depends
* make sure that vlc is build against libxul in configure. This doesn't
  change anything in the package, but makes it more robust if building
  in an 'unclean' chroot or when modifying the package.
* debian/control: make Vcs-* fields point to the motumedia branch
* add libx264-dev and libass-dev to build-depends
  LP: #210354, #199870
* actually enable libass support by passing --enable-libass to configure
* enable libdca: add libdca-dev to build depends and --enable-libdca
* install the x264 plugin.

Changes already in the pkg-multimedia branch in debian:

* don't install usr/share/vlc/mozilla in debian/mozilla-plugin-vlc.install  
* new upstream .desktop file now registers flash video mimetype LP: #261567
* add Xb-Npp-Applications to mozilla-plugin-vlc
* remove duplicate entries in debian/vlc-nox.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 * interface_widgets.hpp : Playlist Widgets
 
3
 ****************************************************************************
 
4
 * Copyright (C) 2006 the VideoLAN team
 
5
 * $Id: 71180e0c0f36a017fea950a0cfa67b9ee896051c $
 
6
 *
 
7
 * Authors: Clément Stenac <zorglub@videolan.org>
 
8
 *          Jean-Baptiste Kempf <jb@videolan.org>
 
9
 *          Rafaël Carré <funman@videolanorg>
 
10
 *
 
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.
 
15
 *
 
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.
 
20
 *
 
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
 *****************************************************************************/
 
25
 
 
26
#ifndef _PLAYLISTWIDGET_H_
 
27
#define _PLAYLISTWIDGET_H_
 
28
 
 
29
#ifdef HAVE_CONFIG_H
 
30
# include "config.h"
 
31
#endif
 
32
 
 
33
#include <vlc_common.h>
 
34
#include "qt4.hpp"
 
35
#include "dialogs_provider.hpp"
 
36
#include "components/interface_widgets.hpp"
 
37
 
 
38
#include <QSplitter>
 
39
#include <QLabel>
 
40
 
 
41
class PLSelector;
 
42
class PLPanel;
 
43
class QPushButton;
 
44
class CoverArtLabel;
 
45
class ArtLabel;
 
46
 
 
47
class PlaylistWidget : public QSplitter
 
48
{
 
49
    Q_OBJECT;
 
50
public:
 
51
    PlaylistWidget( intf_thread_t *_p_i, QWidget *parent ) ;
 
52
    virtual ~PlaylistWidget();
 
53
private:
 
54
    PLSelector *selector;
 
55
    PLPanel *rightPanel;
 
56
    QPushButton *addButton;
 
57
    ArtLabel *art;
 
58
    QWidget *parent;
 
59
protected:
 
60
    intf_thread_t *p_intf;
 
61
    virtual void dropEvent( QDropEvent *);
 
62
    virtual void dragEnterEvent( QDragEnterEvent * );
 
63
    virtual void closeEvent( QCloseEvent * );
 
64
 
 
65
signals:
 
66
    void rootChanged( int );
 
67
};
 
68
 
 
69
class ArtLabel : public CoverArtLabel
 
70
{
 
71
    Q_OBJECT
 
72
public:
 
73
    ArtLabel( intf_thread_t *intf ) : CoverArtLabel( VLC_OBJECT( intf ) ) {};
 
74
    virtual ~ArtLabel() {};
 
75
    void mouseDoubleClickEvent( QMouseEvent *event )
 
76
    {
 
77
        THEDP->mediaInfoDialog();
 
78
    }
 
79
};
 
80
 
 
81
 
 
82
#endif