playlist.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * playlist.hpp: Playlist dialog
00003  ****************************************************************************
00004  * Copyright (C) 2006 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Clément Stenac <zorglub@videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef _PLAYLIST_DIALOG_H_
00025 #define _PLAYLIST_DIALOG_H_
00026 
00027 #include "util/qvlcframe.hpp"
00028 #include "../components/playlist/playlist.hpp"
00029 
00030 #include <QModelIndex>
00031 
00032 class QSignalMapper;
00033 class PLSelector;
00034 class PLPanel;
00035 class QSettings;
00036 
00037 class PlaylistDialog : public QVLCMW
00038 {
00039     Q_OBJECT;
00040 private:
00041     PlaylistWidget *playlistWidget;
00042 
00043 public:
00044     static PlaylistDialog * getInstance( intf_thread_t *p_intf )
00045     {
00046         if( !instance) instance = new PlaylistDialog( p_intf );
00047         return instance;
00048     }
00049     static void killInstance()
00050     {
00051         if( instance ) delete instance;
00052         instance = NULL;
00053     }
00054     virtual ~PlaylistDialog();
00055 private:
00056     PlaylistDialog( intf_thread_t * );
00057 
00058     void dropEvent( QDropEvent *);
00059     void dragEnterEvent( QDragEnterEvent * );
00060     void dragMoveEvent( QDragMoveEvent * );
00061     void dragLeaveEvent( QDragLeaveEvent * );
00062 
00063     static PlaylistDialog *instance;
00064 };
00065 
00066 
00067 #endif

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