mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 02:42:52 +00:00

there is always only one icon loader and it is KIconLoader::global() Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
50 lines
1.6 KiB
C++
50 lines
1.6 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>
|
|
|
|
#include <QColor>
|
|
#include <QImage>
|
|
#include <QPixmap>
|
|
#include <QSize>
|
|
#include <QWidget>
|
|
class KIconLoader;
|
|
|
|
namespace Okular {
|
|
class Annotation;
|
|
class EmbeddedFile;
|
|
class Movie;
|
|
class ScreenAnnotation;
|
|
}
|
|
|
|
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 contentsHtml( const Okular::Annotation * annotation );
|
|
|
|
QString prettyToolTip( const Okular::Annotation * annotation );
|
|
|
|
QPixmap loadStamp( const QString& name, const QSize& size, int iconSize = 0 );
|
|
|
|
void saveEmbeddedFile( Okular::EmbeddedFile *ef, QWidget *parent );
|
|
|
|
// colorize a gray image to the given color
|
|
void colorizeImage( QImage & image, const QColor & color, unsigned int alpha = 255 );
|
|
}
|
|
|
|
|
|
#endif
|