1 /***************************************************************************
2 * Copyright (C) 2006 by Pino Toscano <pino@kde.org> *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef BOOKMARKLIST_H
11 #define BOOKMARKLIST_H
15 #include "core/observer.h"
19 class QTreeWidgetItem
;
20 class KTreeWidgetSearchLine
;
28 class BookmarkList
: public QWidget
, public Okular::DocumentObserver
33 explicit BookmarkList( Okular::Document
*document
, QWidget
*parent
= 0 );
36 // inherited from DocumentObserver
37 uint
observerId() const;
38 void notifySetup( const QVector
< Okular::Page
* > & pages
, int setupFlags
);
41 void slotFilterBookmarks( bool );
42 void slotExecuted( QTreeWidgetItem
* item
);
43 void slotChanged( QTreeWidgetItem
* item
);
44 void slotContextMenu( const QPoint
& p
);
45 void slotBookmarksChanged( const KUrl
& url
);
48 void rebuildTree( bool filter
);
49 void goTo( BookmarkItem
* item
);
50 void selectiveUrlUpdate( const KUrl
& url
, QTreeWidgetItem
*& item
);
51 QTreeWidgetItem
* itemForUrl( const KUrl
& url
) const;
53 Okular::Document
* m_document
;
55 KTreeWidgetSearchLine
* m_searchLine
;
56 QAction
* m_showBoomarkOnlyAction
;
57 QTreeWidgetItem
* m_currentDocumentItem
;