summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/TDEIconViewItem.java
blob: 1ebbaddf73d1c5cad90e49fd7d7a4264fb0b73ee (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQIconViewItem;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQPixmap;
import org.trinitydesktop.qt.TQSize;
import org.trinitydesktop.qt.TQPainter;
import org.trinitydesktop.qt.TQIconView;
import org.trinitydesktop.qt.TQPicture;
import org.trinitydesktop.qt.TQColorGroup;
import org.trinitydesktop.qt.TQIconViewItem;

/**

 TDEIconViewItem exists to improve the word-wrap functionality of TQIconViewItem
 Use TDEIconViewItem instead of TQIconViewItem for any iconview item you might have :)
		@author David Faure <david@mandrakesoft.com>

		@short A variant of TQIconViewItem that wraps words better.

*/
public class TDEIconViewItem extends TQIconViewItem  {
	protected TDEIconViewItem(Class dummy){super((Class) null);}
	public TDEIconViewItem(TQIconView parent) {
		super((Class) null);
		newTDEIconViewItem(parent);
	}
	private native void newTDEIconViewItem(TQIconView parent);
	public TDEIconViewItem(TQIconView parent, TQIconViewItem after) {
		super((Class) null);
		newTDEIconViewItem(parent,after);
	}
	private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after);
	public TDEIconViewItem(TQIconView parent, String text) {
		super((Class) null);
		newTDEIconViewItem(parent,text);
	}
	private native void newTDEIconViewItem(TQIconView parent, String text);
	public TDEIconViewItem(TQIconView parent, TQIconViewItem after, String text) {
		super((Class) null);
		newTDEIconViewItem(parent,after,text);
	}
	private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after, String text);
	public TDEIconViewItem(TQIconView parent, String text, TQPixmap icon) {
		super((Class) null);
		newTDEIconViewItem(parent,text,icon);
	}
	private native void newTDEIconViewItem(TQIconView parent, String text, TQPixmap icon);
	public TDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPixmap icon) {
		super((Class) null);
		newTDEIconViewItem(parent,after,text,icon);
	}
	private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPixmap icon);
	public TDEIconViewItem(TQIconView parent, String text, TQPicture picture) {
		super((Class) null);
		newTDEIconViewItem(parent,text,picture);
	}
	private native void newTDEIconViewItem(TQIconView parent, String text, TQPicture picture);
	public TDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPicture picture) {
		super((Class) null);
		newTDEIconViewItem(parent,after,text,picture);
	}
	private native void newTDEIconViewItem(TQIconView parent, TQIconViewItem after, String text, TQPicture 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(TQSize size);
	/**
				@return The size set by setPixmapSize() or TQSize( 0, 0 )

		@short
	*/
	public native TQSize pixmapSize();
	protected native void init();
	protected native void calcRect(String text_);
	protected native void calcRect();
	protected native void paintItem(TQPainter p, TQColorGroup c);
	protected native KWordWrap wordWrap();
	protected native void paintPixmap(TQPainter p, TQColorGroup c);
	protected native void paintText(TQPainter p, TQColorGroup 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();
}