• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
annotations_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2007 by Pino Toscano <pino@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  ***************************************************************************/
9 
10 #ifndef OKULAR_ANNOTATIONS_P_H
11 #define OKULAR_ANNOTATIONS_P_H
12 
13 #include "area.h"
14 #include "annotations.h"
15 
16 // qt/kde includes
17 #include <QtCore/QDateTime>
18 #include <QtCore/QString>
19 #include <QtCore/QVariant>
20 #include <QtGui/QColor>
21 
22 class QTransform;
23 
24 namespace Okular {
25 
26 class PagePrivate;
27 
28 class AnnotationPrivate
29 {
30  public:
31  AnnotationPrivate();
32 
33  virtual ~AnnotationPrivate();
34 
39  void annotationTransform( const QTransform &matrix );
40 
41  virtual void transform( const QTransform &matrix );
42  virtual void baseTransform( const QTransform &matrix );
43  virtual void resetTransformation();
44  virtual void translate( const NormalizedPoint &coord );
45  virtual bool openDialogAfterCreation() const;
46  virtual void setAnnotationProperties( const QDomNode& node );
47  virtual AnnotationPrivate* getNewAnnotationPrivate() = 0;
48 
54  virtual double distanceSqr( double x, double y, double xScale, double yScale );
55 
56  PagePrivate * m_page;
57 
58  QString m_author;
59  QString m_contents;
60  QString m_uniqueName;
61  QDateTime m_modifyDate;
62  QDateTime m_creationDate;
63 
64  int m_flags;
65  NormalizedRect m_boundary;
66  NormalizedRect m_transformedBoundary;
67 
68  Okular::Annotation::Style m_style;
69  Okular::Annotation::Window m_window;
70  QLinkedList< Okular::Annotation::Revision > m_revisions;
71 
72  Annotation::DisposeDataFunction m_disposeFunc;
73  QVariant m_nativeId;
74 };
75 
76 }
77 
78 #endif
Okular::NormalizedPoint
NormalizedPoint is a helper class which stores the coordinates of a normalized point.
Definition: area.h:47
Okular::PagePrivate
Definition: page_p.h:55
Okular::AnnotationPrivate::m_flags
int m_flags
Definition: annotations_p.h:64
Okular::AnnotationPrivate::m_boundary
NormalizedRect m_boundary
Definition: annotations_p.h:65
Okular::AnnotationPrivate::resetTransformation
virtual void resetTransformation()
Definition: annotations.cpp:857
Okular::NormalizedRect
NormalizedRect is a helper class which stores the coordinates of a normalized rect, which is a rectangle of.
Definition: area.h:105
Okular::AnnotationPrivate::m_style
Okular::Annotation::Style m_style
Definition: annotations_p.h:68
area.h
Okular::AnnotationPrivate::getNewAnnotationPrivate
virtual AnnotationPrivate * getNewAnnotationPrivate()=0
Okular::AnnotationPrivate::annotationTransform
void annotationTransform(const QTransform &matrix)
Transforms the annotation coordinates with the transformation defined by matrix.
Definition: annotations.cpp:841
Okular::AnnotationPrivate::~AnnotationPrivate
virtual ~AnnotationPrivate()
Definition: annotations.cpp:497
Okular::AnnotationPrivate::setAnnotationProperties
virtual void setAnnotationProperties(const QDomNode &node)
Definition: annotations.cpp:875
Okular::AnnotationPrivate
Definition: annotations_p.h:28
Okular::AnnotationPrivate::m_transformedBoundary
NormalizedRect m_transformedBoundary
Definition: annotations_p.h:66
Okular::Annotation::Window
The Window class contains all information about the popup window of the annotation that is used to ed...
Definition: annotations.h:440
Okular::AnnotationPrivate::openDialogAfterCreation
virtual bool openDialogAfterCreation() const
Definition: annotations.cpp:870
Okular::AnnotationPrivate::m_disposeFunc
Annotation::DisposeDataFunction m_disposeFunc
Definition: annotations_p.h:72
Okular::Annotation::DisposeDataFunction
void(* DisposeDataFunction)(const Okular::Annotation *)
A function to be called when the annotation is destroyed.
Definition: annotations.h:203
Okular::AnnotationPrivate::m_contents
QString m_contents
Definition: annotations_p.h:59
Okular::AnnotationPrivate::m_author
QString m_author
Definition: annotations_p.h:58
annotations.h
Okular::AnnotationPrivate::m_window
Okular::Annotation::Window m_window
Definition: annotations_p.h:69
Okular::AnnotationPrivate::baseTransform
virtual void baseTransform(const QTransform &matrix)
Definition: annotations.cpp:852
Okular::AnnotationPrivate::m_modifyDate
QDateTime m_modifyDate
Definition: annotations_p.h:61
Okular::AnnotationPrivate::AnnotationPrivate
AnnotationPrivate()
Definition: annotations.cpp:492
Okular::AnnotationPrivate::distanceSqr
virtual double distanceSqr(double x, double y, double xScale, double yScale)
Determines the distance of the closest point of the annotation to the given point x y xScale yScale...
Definition: annotations.cpp:836
Okular::AnnotationPrivate::m_revisions
QLinkedList< Okular::Annotation::Revision > m_revisions
Definition: annotations_p.h:70
Okular::AnnotationPrivate::translate
virtual void translate(const NormalizedPoint &coord)
Definition: annotations.cpp:862
Okular::AnnotationPrivate::m_uniqueName
QString m_uniqueName
Definition: annotations_p.h:60
Okular::Annotation::Style
The Style class contains all information about style of the annotation.
Definition: annotations.h:305
Okular::AnnotationPrivate::transform
virtual void transform(const QTransform &matrix)
Definition: annotations.cpp:847
Okular::AnnotationPrivate::m_nativeId
QVariant m_nativeId
Definition: annotations_p.h:73
Okular::AnnotationPrivate::m_creationDate
QDateTime m_creationDate
Definition: annotations_p.h:62
Okular::AnnotationPrivate::m_page
PagePrivate * m_page
Definition: annotations_p.h:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal