blob: 69d4dc4ab700a6ba312061ff5cb7f31f7a64e17b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;
import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQPixmap;
/**
Implementation of KPixmapProvider.
Uses KMimeType.pixmapForURL() to resolve icons.
Instatiate this class and supply it to the desired class, e.g.
<pre>
KHistoryCombo combo = new KHistoryCombo( this );
combo.setPixmapProvider( new KURLPixmapProvider );
[...]
</pre>
@author Carsten Pfeiffer <pfeiffer@kde.org>
@short Resolves pixmaps for URLs.
*/
public class KURLPixmapProvider extends KPixmapProvider {
protected KURLPixmapProvider(Class dummy){super((Class) null);}
/**
Returns a pixmap for <code>url</code> with size <code>size.</code>
Uses KMimeType.pixmapForURL().
@param url the URL to fetch a pixmap for
@param size the size of the pixmap in pixels, or 0 for default.
@return the resulting pixmap
@short Returns a pixmap for <code>url</code> with size <code>size.</code>
@see TDEIcon#StdSizes
*/
public native TQPixmap pixmapFor(String url, int size);
public native TQPixmap pixmapFor(String url);
public KURLPixmapProvider() {
super((Class) null);
newKURLPixmapProvider();
}
private native void newKURLPixmapProvider();
/** Deletes the wrapped C++ instance */
protected native void finalize() throws InternalError;
/** Delete the wrapped C++ instance ahead of finalize() */
public native void dispose();
/** Has the wrapped C++ instance been deleted? */
public native boolean isDisposed();
}
|