00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef _BOOKMARKS_H_
00026 #define _BOOKMARKS_H
00027
00028 #include "util/qvlcframe.hpp"
00029 #include <QStandardItemModel>
00030 #include <QTreeView>
00031 #include <QTreeWidget>
00032
00033 class BookmarksDialog : public QVLCFrame
00034 {
00035 Q_OBJECT;
00036 public:
00037 static BookmarksDialog * getInstance( intf_thread_t *p_intf )
00038 {
00039 if( !instance )
00040 instance = new BookmarksDialog( p_intf );
00041 return instance;
00042 }
00043 static void killInstance()
00044 {
00045 if( instance ) delete instance;
00046 instance = NULL;
00047 }
00048 virtual ~BookmarksDialog();
00049 private:
00050 BookmarksDialog( intf_thread_t * );
00051 static BookmarksDialog *instance;
00052 void update();
00053 QTreeWidget *bookmarksList;
00054 private slots:
00055 void add();
00056 void del();
00057 void clear();
00058 void edit( QTreeWidgetItem *item, int column );
00059 void extract();
00060 void activateItem( QModelIndex index );
00061 };
00062
00063 #endif
00064