okular/ui/annotationguiutils.h
Pino Toscano 668dcad8da Now the annotations can be dragged and moved after being placed on a page, even if the page is rotated.
Ctrl+right mouse button is what is needed to do that.
At the moment, only line, stamp and geometric annotations can be moved with mouse dragging.

svn path=/trunk/KDE/kdegraphics/okular/; revision=689185
2007-07-17 20:58:38 +00:00

35 lines
1.2 KiB
C++

/***************************************************************************
* Copyright (C) 2006 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 ANNOTATIONGUIUTILS_H
#define ANNOTATIONGUIUTILS_H
#include <QtCore/QString>
namespace Okular {
class Annotation;
}
class AnnotationGuiUtils
{
public:
/**
* Returns the translated string with the type of the given @p annotation.
*/
static QString captionForAnnotation( Okular::Annotation * annotation );
static QString contents( const Okular::Annotation * annotation );
static QString contentsHtml( const Okular::Annotation * annotation );
static bool canBeMoved( Okular::Annotation * annotation );
};
#endif