mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-05 23:49:20 +00:00
870fd3ba12
Will be in KDE *4.7* Patch by Victor Blazquez <victor.blazquez@gmail.com> BUGS: 213258 svn path=/trunk/KDE/kdegraphics/okular/; revision=1209674
70 lines
2 KiB
C++
70 lines
2 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
***************************************************************************/
|
|
|
|
#ifndef OKULAR_ANNOTATIONS_P_H
|
|
#define OKULAR_ANNOTATIONS_P_H
|
|
|
|
#include "area.h"
|
|
#include "annotations.h"
|
|
|
|
// qt/kde includes
|
|
#include <QtCore/QDateTime>
|
|
#include <QtCore/QString>
|
|
#include <QtCore/QVariant>
|
|
#include <QtGui/QColor>
|
|
|
|
class QMatrix;
|
|
|
|
namespace Okular {
|
|
|
|
class PagePrivate;
|
|
|
|
class AnnotationPrivate
|
|
{
|
|
public:
|
|
AnnotationPrivate();
|
|
|
|
virtual ~AnnotationPrivate();
|
|
|
|
/**
|
|
* Transforms the annotation coordinates with the transformation
|
|
* defined by @p matrix.
|
|
*/
|
|
void annotationTransform( const QMatrix &matrix );
|
|
|
|
virtual void transform( const QMatrix &matrix );
|
|
virtual void baseTransform( const QMatrix &matrix );
|
|
virtual void resetTransformation();
|
|
virtual void translate( const NormalizedPoint &coord );
|
|
virtual bool openDialogAfterCreation() const;
|
|
|
|
PagePrivate * m_page;
|
|
|
|
QString m_author;
|
|
QString m_contents;
|
|
QString m_uniqueName;
|
|
QDateTime m_modifyDate;
|
|
QDateTime m_creationDate;
|
|
|
|
int m_flags;
|
|
NormalizedRect m_boundary;
|
|
NormalizedRect m_transformedBoundary;
|
|
|
|
Okular::Annotation::Style m_style;
|
|
Okular::Annotation::Window m_window;
|
|
QLinkedList< Okular::Annotation::Revision > m_revisions;
|
|
|
|
Annotation::DisposeDataFunction m_disposeFunc;
|
|
QVariant m_nativeId;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|