okular/ui/guiutils.h
Pino Toscano 44aa2d7088 Globally store an icon loader different that the global one (eg the KPart one);
this way we can load our custom icons when embedded in other shells than ours.

svn path=/trunk/KDE/kdegraphics/okular/; revision=752473
2007-12-24 15:02:32 +00:00

42 lines
1.3 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 KIconLoader;
namespace Okular {
class Annotation;
}
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 );
bool canBeMoved( const Okular::Annotation * annotation );
void setIconLoader( KIconLoader * loader );
KIconLoader* iconLoader();
}
#endif