You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
3.7 KiB
97 lines
3.7 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
package org.kde.koala;
|
|
|
|
import org.kde.qt.Qt;
|
|
import org.kde.qt.QIconViewItem;
|
|
import org.kde.qt.QtSupport;
|
|
import org.kde.qt.QPixmap;
|
|
import org.kde.qt.QSize;
|
|
import org.kde.qt.QPainter;
|
|
import org.kde.qt.QIconView;
|
|
import org.kde.qt.QPicture;
|
|
import org.kde.qt.QColorGroup;
|
|
import org.kde.qt.QIconViewItem;
|
|
|
|
/**
|
|
|
|
KIconViewItem exists to improve the word-wrap functionality of QIconViewItem
|
|
Use KIconViewItem instead of QIconViewItem for any iconview item you might have :)
|
|
@author David Faure <david@mandrakesoft.com>
|
|
|
|
@short A variant of QIconViewItem that wraps words better.
|
|
|
|
*/
|
|
public class KIconViewItem extends QIconViewItem {
|
|
protected KIconViewItem(Class dummy){super((Class) null);}
|
|
public KIconViewItem(QIconView parent) {
|
|
super((Class) null);
|
|
newKIconViewItem(parent);
|
|
}
|
|
private native void newKIconViewItem(QIconView parent);
|
|
public KIconViewItem(QIconView parent, QIconViewItem after) {
|
|
super((Class) null);
|
|
newKIconViewItem(parent,after);
|
|
}
|
|
private native void newKIconViewItem(QIconView parent, QIconViewItem after);
|
|
public KIconViewItem(QIconView parent, String text) {
|
|
super((Class) null);
|
|
newKIconViewItem(parent,text);
|
|
}
|
|
private native void newKIconViewItem(QIconView parent, String text);
|
|
public KIconViewItem(QIconView parent, QIconViewItem after, String text) {
|
|
super((Class) null);
|
|
newKIconViewItem(parent,after,text);
|
|
}
|
|
private native void newKIconViewItem(QIconView parent, QIconViewItem after, String text);
|
|
public KIconViewItem(QIconView parent, String text, QPixmap icon) {
|
|
super((Class) null);
|
|
newKIconViewItem(parent,text,icon);
|
|
}
|
|
private native void newKIconViewItem(QIconView parent, String text, QPixmap icon);
|
|
public KIconViewItem(QIconView parent, QIconViewItem after, String text, QPixmap icon) {
|
|
super((Class) null);
|
|
newKIconViewItem(parent,after,text,icon);
|
|
}
|
|
private native void newKIconViewItem(QIconView parent, QIconViewItem after, String text, QPixmap icon);
|
|
public KIconViewItem(QIconView parent, String text, QPicture picture) {
|
|
super((Class) null);
|
|
newKIconViewItem(parent,text,picture);
|
|
}
|
|
private native void newKIconViewItem(QIconView parent, String text, QPicture picture);
|
|
public KIconViewItem(QIconView parent, QIconViewItem after, String text, QPicture picture) {
|
|
super((Class) null);
|
|
newKIconViewItem(parent,after,text,picture);
|
|
}
|
|
private native void newKIconViewItem(QIconView parent, QIconViewItem after, String text, QPicture picture);
|
|
/**
|
|
Using this function, you can specify a custom size for the pixmap. The
|
|
geometry of the item will be calculated to let a pixmap of the given size
|
|
fit in the iconView without needing an update.
|
|
This may be useful if you want to change the pixmap later without breaking
|
|
the layout. A possible use of this function is to replace a fileItem icon
|
|
by a larger pixmap (preview).
|
|
@param size The size to use
|
|
@short Using this function, you can specify a custom size for the pixmap.
|
|
*/
|
|
public native void setPixmapSize(QSize size);
|
|
/**
|
|
@return The size set by setPixmapSize() or QSize( 0, 0 )
|
|
|
|
@short
|
|
*/
|
|
public native QSize pixmapSize();
|
|
protected native void init();
|
|
protected native void calcRect(String text_);
|
|
protected native void calcRect();
|
|
protected native void paintItem(QPainter p, QColorGroup c);
|
|
protected native KWordWrap wordWrap();
|
|
protected native void paintPixmap(QPainter p, QColorGroup c);
|
|
protected native void paintText(QPainter p, QColorGroup c);
|
|
/** 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();
|
|
}
|