1 /***************************************************************************
2 * Copyright (C) 2006 by Tobias Koenig <tokoe@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 ANNOTATIONPOPUP_H
11 #define ANNOTATIONPOPUP_H
13 #include <QtCore/QObject>
14 #include <QtCore/QList>
15 #include <QtCore/QPair>
16 #include <QtCore/QPoint>
23 class AnnotationPopup
: public QObject
28 AnnotationPopup( Okular::Document
*document
,
29 QWidget
*parent
= 0 );
31 void addAnnotation( Okular::Annotation
* annotation
, int pageNumber
);
33 void exec( const QPoint
&point
= QPoint() );
36 void setAnnotationWindow( Okular::Annotation
*annotation
);
37 void removeAnnotationWindow( Okular::Annotation
*annotation
);
41 typedef QPair
< Okular::Annotation
*, int > AnnotPagePair
;
42 QList
< AnnotPagePair
> mAnnotations
;
43 Okular::Document
*mDocument
;