Changeset View
Changeset View
Standalone View
Standalone View
ui/guiutils.h
Show All 33 Lines | 31 | { | |||
---|---|---|---|---|---|
34 | */ | 34 | */ | ||
35 | QString captionForAnnotation( const Okular::Annotation * annotation ); | 35 | QString captionForAnnotation( const Okular::Annotation * annotation ); | ||
36 | QString authorForAnnotation( const Okular::Annotation * annotation ); | 36 | QString authorForAnnotation( const Okular::Annotation * annotation ); | ||
37 | 37 | | |||
38 | QString contentsHtml( const Okular::Annotation * annotation ); | 38 | QString contentsHtml( const Okular::Annotation * annotation ); | ||
39 | 39 | | |||
40 | QString prettyToolTip( const Okular::Annotation * annotation ); | 40 | QString prettyToolTip( const Okular::Annotation * annotation ); | ||
41 | 41 | | |||
42 | QPixmap loadStamp( const QString& name, const QSize& size, int iconSize = 0 ); | 42 | /** | ||
43 | * Returns a pixmap for a stamp symbol | ||||
44 | * | ||||
45 | * @p name Name of a Okular stamp symbol, icon or path to an image | ||||
46 | * @p size Size of the pixmap (ignore aspect ratio). Takes precedence over @p iconSize | ||||
47 | * @p iconSize Maximum size of the pixmap (keep aspect ratio) | ||||
48 | */ | ||||
49 | QPixmap loadStamp( const QString& nameOrPath, int size, bool keepAspectRatio = true ); | ||||
43 | 50 | | |||
44 | void addIconLoader( KIconLoader * loader ); | 51 | void addIconLoader( KIconLoader * loader ); | ||
45 | void removeIconLoader( KIconLoader * loader ); | 52 | void removeIconLoader( KIconLoader * loader ); | ||
46 | KIconLoader* iconLoader(); | 53 | KIconLoader* iconLoader(); | ||
47 | 54 | | |||
48 | void saveEmbeddedFile( Okular::EmbeddedFile *ef, QWidget *parent ); | 55 | void saveEmbeddedFile( Okular::EmbeddedFile *ef, QWidget *parent ); | ||
49 | void writeEmbeddedFile( Okular::EmbeddedFile *ef, QWidget *parent, QFile& targetFile ); | 56 | void writeEmbeddedFile( Okular::EmbeddedFile *ef, QWidget *parent, QFile& targetFile ); | ||
50 | 57 | | |||
Show All 13 Lines |