okular/ui/guiutils.h
Pino Toscano 40a0b9b9a5 adapt loadStamp() to:
- load .svg images when asked to load "stamp-something" names (a bit crude, but working for now)
- take a (optional) different size for the icon

svn path=/trunk/KDE/kdegraphics/okular/; revision=862804
2008-09-19 22:43:41 +00:00

47 lines
1.5 KiB
C++

/***************************************************************************
* Copyright (C) 2006-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_GUIUTILS_H
#define OKULAR_GUIUTILS_H
#include <QtCore/QString>
class QPixmap;
class QSize;
class QWidget;
class KIconLoader;
namespace Okular {
class Annotation;
class EmbeddedFile;
}
namespace GuiUtils
{
/**
* Returns the translated string with the type of the given @p annotation.
*/
QString captionForAnnotation( const Okular::Annotation * annotation );
QString authorForAnnotation( const Okular::Annotation * annotation );
QString contents( const Okular::Annotation * annotation );
QString contentsHtml( const Okular::Annotation * annotation );
QString prettyToolTip( const Okular::Annotation * annotation );
QPixmap loadStamp( const QString& name, const QSize& size, int iconSize = 0 );
void setIconLoader( KIconLoader * loader );
KIconLoader* iconLoader();
void saveEmbeddedFile( Okular::EmbeddedFile *ef, QWidget *parent );
}
#endif