]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/bookmarks.hpp
af55f4a1fde73db59f11355e8f42604a436ecdad
[vlc] / modules / gui / qt4 / dialogs / bookmarks.hpp
1 /*****************************************************************************
2  * bookmarks.hpp : bookmarks
3  ****************************************************************************
4  * Copyright (C) 2006 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Antoine Lejeune <phytos@via.ecp.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23
24
25 #ifndef QVLC_BOOKMARKS_H_
26 #define QVLC_BOOKMARKS_H_ 1
27
28 #include "util/qvlcframe.hpp"
29 #include <QStandardItemModel>
30 #include <QTreeView>
31 #include <QTreeWidget>
32 #include "util/singleton.hpp"
33
34 class BookmarksDialog : public QVLCFrame, public Singleton<BookmarksDialog>
35 {
36     Q_OBJECT;
37 private:
38     BookmarksDialog( intf_thread_t * );
39     virtual ~BookmarksDialog();
40
41     QTreeWidget *bookmarksList;
42
43 private slots:
44     void update();
45     void add();
46     void del();
47     void clear();
48     void edit( QTreeWidgetItem *item, int column );
49     void extract();
50     void activateItem( QModelIndex index );
51
52     friend class    Singleton<BookmarksDialog>;
53 };
54
55 #endif
56