1 /***************************************************************************
2 * Copyright (C) 2005 by Enrico Ros <eros.kde@email.it> *
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 _OKULAR_SIDE_REVIEWS_H_
11 #define _OKULAR_SIDE_REVIEWS_H_
13 #include <QtCore/QModelIndexList>
14 #include <QtCore/QVector>
15 #include <QtGui/QWidget>
17 #include "core/observer.h"
26 class AnnotationModel
;
27 class AuthorGroupProxyModel
;
28 class PageFilterProxyModel
;
29 class PageGroupProxyModel
;
35 class Reviews
: public QWidget
, public Okular::DocumentObserver
39 Reviews( QWidget
* parent
, Okular::Document
* document
);
41 // [INHERITED] from DocumentObserver
42 uint
observerId() const { return REVIEWS_ID
; }
43 void notifyViewportChanged( bool smoothMove
);
46 void slotPageEnabled( bool );
47 void slotAuthorEnabled( bool );
48 void slotCurrentPageOnly( bool );
51 void setAnnotationWindow( Okular::Annotation
*annotation
);
52 void removeAnnotationWindow( Okular::Annotation
*annotation
);
55 void activated( const QModelIndex
& );
56 void contextMenuRequested( const QPoint
& );
59 QModelIndexList
retrieveAnnotations(const QModelIndex
& idx
) const;
64 Okular::Document
* m_document
;
65 AnnotationModel
* m_model
;
66 AuthorGroupProxyModel
* m_authorProxy
;
67 PageFilterProxyModel
* m_filterProxy
;
68 PageGroupProxyModel
* m_groupProxy
;