]> git.sesse.net Git - vlc/blob - modules/gui/qt4/dialogs/bookmarks.hpp
Qt: addons: fix background paint glitch with new editor
[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 class QPushButton;
34
35 class BookmarksDialog : public QVLCFrame, public Singleton<BookmarksDialog>
36 {
37     Q_OBJECT
38 private:
39     BookmarksDialog( intf_thread_t * );
40     virtual ~BookmarksDialog();
41
42     QTreeWidget *bookmarksList;
43     QPushButton *clearButton;
44     QPushButton *delButton;
45     bool b_ignore_updates;
46
47 private slots:
48     void update();
49     void add();
50     void del();
51     void clear();
52     void edit( QTreeWidgetItem *item, int column );
53     void extract();
54     void activateItem( QModelIndex index );
55     void updateButtons();
56
57     friend class    Singleton<BookmarksDialog>;
58 };
59
60 #endif
61