2006-12-27 23:56:38 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* 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
|
|
|
|
|
2007-04-19 18:30:20 +00:00
|
|
|
#include <QtCore/QString>
|
|
|
|
|
2006-12-27 23:56:38 +00:00
|
|
|
namespace Okular {
|
|
|
|
class Annotation;
|
|
|
|
}
|
|
|
|
|
2007-09-08 14:44:21 +00:00
|
|
|
namespace AnnotationGuiUtils
|
2006-12-27 23:56:38 +00:00
|
|
|
{
|
2007-09-08 14:44:21 +00:00
|
|
|
/**
|
|
|
|
* Returns the translated string with the type of the given @p annotation.
|
|
|
|
*/
|
|
|
|
QString captionForAnnotation( const Okular::Annotation * annotation );
|
|
|
|
QString authorForAnnotation( const Okular::Annotation * annotation );
|
2006-12-28 00:40:09 +00:00
|
|
|
|
2007-09-08 14:44:21 +00:00
|
|
|
QString contents( const Okular::Annotation * annotation );
|
|
|
|
QString contentsHtml( const Okular::Annotation * annotation );
|
2007-07-17 20:58:38 +00:00
|
|
|
|
2007-09-08 14:44:21 +00:00
|
|
|
QString prettyToolTip( const Okular::Annotation * annotation );
|
2007-09-08 14:41:40 +00:00
|
|
|
|
2007-09-08 14:44:21 +00:00
|
|
|
bool canBeMoved( const Okular::Annotation * annotation );
|
|
|
|
}
|
2006-12-27 23:56:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|