summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KGuiItem.java
blob: 529a6b611e791241cc1f21679f0b201105351932 (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
//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.TQIconSet;

/**

		@author Holger Freyther <freyher@yahoo.com>

		@short An abstract class for GUI data such as ToolTip and Icon.

*/
public class KGuiItem implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected KGuiItem(Class dummy){}

	public KGuiItem() {
		newKGuiItem();
	}
	private native void newKGuiItem();
	public KGuiItem(String text, String iconName, String toolTip, String whatsThis) {
		newKGuiItem(text,iconName,toolTip,whatsThis);
	}
	private native void newKGuiItem(String text, String iconName, String toolTip, String whatsThis);
	public KGuiItem(String text, String iconName, String toolTip) {
		newKGuiItem(text,iconName,toolTip);
	}
	private native void newKGuiItem(String text, String iconName, String toolTip);
	public KGuiItem(String text, String iconName) {
		newKGuiItem(text,iconName);
	}
	private native void newKGuiItem(String text, String iconName);
	public KGuiItem(String text) {
		newKGuiItem(text);
	}
	private native void newKGuiItem(String text);
	public KGuiItem(String text, TQIconSet iconSet, String toolTip, String whatsThis) {
		newKGuiItem(text,iconSet,toolTip,whatsThis);
	}
	private native void newKGuiItem(String text, TQIconSet iconSet, String toolTip, String whatsThis);
	public KGuiItem(String text, TQIconSet iconSet, String toolTip) {
		newKGuiItem(text,iconSet,toolTip);
	}
	private native void newKGuiItem(String text, TQIconSet iconSet, String toolTip);
	public KGuiItem(String text, TQIconSet iconSet) {
		newKGuiItem(text,iconSet);
	}
	private native void newKGuiItem(String text, TQIconSet iconSet);
	public KGuiItem(KGuiItem rhs) {
		newKGuiItem(rhs);
	}
	private native void newKGuiItem(KGuiItem rhs);
	public native String text();
	public native String plainText();
	public native TQIconSet iconSet(int arg1, int size, TDEInstanceInterface instance);
	public native TQIconSet iconSet(int arg1, int size);
	public native TQIconSet iconSet(int arg1);
	public native TQIconSet iconSet();
	public native String iconName();
	public native String toolTip();
	public native String whatsThis();
	public native boolean isEnabled();
	/**
		 returns whether an icon is defined, doesn't tell if it really exists
		     		@short    returns whether an icon is defined, doesn't tell if it really exists
	*/
	public native boolean hasIcon();
	public native boolean hasIconSet();
	public native void setText(String text);
	public native void setIconSet(TQIconSet iconset);
	public native void setIconName(String iconName);
	public native void setToolTip(String tooltip);
	public native void setWhatsThis(String whatsThis);
	public native void setEnabled(boolean enable);
	/** 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();
}