diff options
Diffstat (limited to 'kdejava/koala/org/kde/koala/KPixmapProvider.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KPixmapProvider.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KPixmapProvider.java b/kdejava/koala/org/kde/koala/KPixmapProvider.java new file mode 100644 index 00000000..66765669 --- /dev/null +++ b/kdejava/koala/org/kde/koala/KPixmapProvider.java @@ -0,0 +1,35 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; +import org.kde.qt.QPixmap; + +/** + + A tiny abstract class with just one method: + pixmapFor() + It will be called whenever an icon is searched for <code>text.</code> + Used e.g. by KHistoryCombo + @author Carsten Pfeiffer <pfeiffer@kde.org> + + @short an abstract interface for looking up icons. + +*/ +public class KPixmapProvider implements QtSupport { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected KPixmapProvider(Class dummy){} + + /** + You may subclass this and return a pixmap of size <code>size</code> for <code>text.</code> + @param text the text that is associated with the pixmap + @param size the size of the icon in pixels, 0 for defaylt size. + See KIcon.StdSize. + @return the pixmap for the arguments, or null if there is none + + @short You may subclass this and return a pixmap of size <code>size</code> for <code>text.</code> + */ + public native QPixmap pixmapFor(String text, int size); + public native QPixmap pixmapFor(String text); +} |