compile
[kdegraphics.git] / okular / ui / annotationpopup.h
blob307765291f19ad9b9ae09cc52d3ab0498c5d3738
1 /***************************************************************************
2 * Copyright (C) 2006 by Tobias Koenig <tokoe@kde.org> *
3 * *
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>
18 namespace Okular {
19 class Annotation;
20 class Document;
23 class AnnotationPopup : public QObject
25 Q_OBJECT
27 public:
28 AnnotationPopup( Okular::Document *document,
29 QWidget *parent = 0 );
31 void addAnnotation( Okular::Annotation* annotation, int pageNumber );
33 void exec( const QPoint &point = QPoint() );
35 Q_SIGNALS:
36 void setAnnotationWindow( Okular::Annotation *annotation );
37 void removeAnnotationWindow( Okular::Annotation *annotation );
39 private:
40 QWidget *mParent;
41 typedef QPair< Okular::Annotation*, int > AnnotPagePair;
42 QList< AnnotPagePair > mAnnotations;
43 Okular::Document *mDocument;
47 #endif