SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / ui / guiutils.h
blobbbbf85c08a6ee4251707c8d97920d674cc591a66
1 /***************************************************************************
2 * Copyright (C) 2006-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 ***************************************************************************/
10 #ifndef OKULAR_GUIUTILS_H
11 #define OKULAR_GUIUTILS_H
13 #include <QtCore/QString>
15 class QPixmap;
16 class QSize;
17 class QWidget;
18 class KIconLoader;
20 namespace Okular {
21 class Annotation;
22 class EmbeddedFile;
25 namespace GuiUtils
27 /**
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 );
47 #endif