1 /***************************************************************************
2 * Copyright (C) 2006-2007 by Pino Toscano <pino@kde.org> *
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 OKULAR_GUIUTILS_H
11 #define OKULAR_GUIUTILS_H
13 #include <QtCore/QString>
28 * Returns the translated string with the type of the given @p annotation.
30 QString
captionForAnnotation( const Okular::Annotation
* annotation
);
31 QString
authorForAnnotation( const Okular::Annotation
* annotation
);
33 QString
contents( const Okular::Annotation
* annotation
);
34 QString
contentsHtml( const Okular::Annotation
* annotation
);
36 QString
prettyToolTip( const Okular::Annotation
* annotation
);
38 QPixmap
loadStamp( const QString
& name
, const QSize
& size
, int iconSize
= 0 );
40 void setIconLoader( KIconLoader
* loader
);
41 KIconLoader
* iconLoader();
43 void saveEmbeddedFile( Okular::EmbeddedFile
*ef
, QWidget
*parent
);