bookmarks.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * bookmarks.hpp : bookmarks
00003  ****************************************************************************
00004  * Copyright (C) 2006 the VideoLAN team
00005  * $Id: 119960c55329d8db27c884714ebd2cd42ba09dad $
00006  *
00007  * Authors: Antoine Lejeune <phytos@via.ecp.fr>
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 
00025 #ifndef QVLC_BOOKMARKS_H_
00026 #define QVLC_BOOKMARKS_H_ 1
00027 
00028 #include "util/qvlcframe.hpp"
00029 #include <QStandardItemModel>
00030 #include <QTreeView>
00031 #include <QTreeWidget>
00032 #include "util/singleton.hpp"
00033 
00034 class BookmarksDialog : public QVLCFrame, public Singleton<BookmarksDialog>
00035 {
00036     Q_OBJECT
00037 private:
00038     BookmarksDialog( intf_thread_t * );
00039     virtual ~BookmarksDialog();
00040 
00041     QTreeWidget *bookmarksList;
00042 
00043 private slots:
00044     void update();
00045     void add();
00046     void del();
00047     void clear();
00048     void edit( QTreeWidgetItem *item, int column );
00049     void extract();
00050     void activateItem( QModelIndex index );
00051 
00052     friend class    Singleton<BookmarksDialog>;
00053 };
00054 
00055 #endif
00056 

Generated on Tue May 25 08:04:57 2010 for VLC by  doxygen 1.5.6