selector.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * selector.hpp : Playlist source selector
00003  ****************************************************************************
00004  * Copyright (C) 2000-2005 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 _PLSEL_H_
00025 #define _PLSEL_H_
00026 
00027 #ifdef HAVE_CONFIG_H
00028 # include "config.h"
00029 #endif
00030 
00031 #include <vlc_common.h>
00032 #include <QWidget>
00033 #include <QString>
00034 #include "components/playlist/playlist_model.hpp"
00035 
00036 class QTreeView;
00037 class PlaylistWidget;
00038 
00039 class PLSelector: public QWidget
00040 {
00041     Q_OBJECT;
00042 public:
00043     PLSelector( QWidget *p, intf_thread_t *_p_intf, playlist_t * );
00044     virtual ~PLSelector();
00045 protected:
00046     PLModel *model;
00047     friend class PlaylistWidget;
00048 private:
00049     intf_thread_t *p_intf;
00050     QTreeView *view;
00051 private slots:
00052     void setSource( const QModelIndex& );
00053 signals:
00054     void activated( int );
00055     void shouldRemove( int );
00056 };
00057 
00058 #endif

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