summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/TDEIconButton.java
blob: a8b2697a5862ed38b84c8dffd90b4ac0ecb1be56 (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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQWidget;
import org.kde.qt.TQPushButton;

/**

 A pushbutton for choosing an icon. Pressing on the button will open a
 TDEIconDialog for the user to select an icon. The current icon will be
 displayed on the button.
 See {@link TDEIconButtonSignals} for signals emitted by TDEIconButton
		@short A push button that allows selection of an icon.  
		@see TDEIconDialog

*/
public class TDEIconButton extends TQPushButton  {
	protected TDEIconButton(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a TDEIconButton using the global iconloader.
		     		@short    Constructs a TDEIconButton using the global iconloader.
	*/
	public TDEIconButton(TQWidget parent, String name) {
		super((Class) null);
		newTDEIconButton(parent,name);
	}
	private native void newTDEIconButton(TQWidget parent, String name);
	public TDEIconButton(TQWidget parent) {
		super((Class) null);
		newTDEIconButton(parent);
	}
	private native void newTDEIconButton(TQWidget parent);
	public TDEIconButton() {
		super((Class) null);
		newTDEIconButton();
	}
	private native void newTDEIconButton();
	/**	
		 Constructs a TDEIconButton using a specific TDEIconLoader.
		     		@short    Constructs a TDEIconButton using a specific TDEIconLoader.
	*/
	public TDEIconButton(TDEIconLoader loader, TQWidget parent, String name) {
		super((Class) null);
		newTDEIconButton(loader,parent,name);
	}
	private native void newTDEIconButton(TDEIconLoader loader, TQWidget parent, String name);
	public TDEIconButton(TDEIconLoader loader, TQWidget parent) {
		super((Class) null);
		newTDEIconButton(loader,parent);
	}
	private native void newTDEIconButton(TDEIconLoader loader, TQWidget parent);
	/**	
		 Sets a strict icon size policy for allowed icons. When true,
		 only icons of the specified group's size in setIconType are allowed,
		 and only icons of that size will be shown in the icon dialog.
		     		@short    Sets a strict icon size policy for allowed icons.
	*/
	public native void setStrictIconSize(boolean b);
	/**	
		 Returns true if a strict icon size policy is set.
		     		@short    Returns true if a strict icon size policy is set.
	*/
	public native boolean strictIconSize();
	/**	
		 Sets the icon group and context. Use TDEIcon.NoGroup if you want to
		 allow icons for any group in the given context.
		     		@short    Sets the icon group and context.
	*/
	public native void setIconType(int group, int context, boolean user);
	public native void setIconType(int group, int context);
	/**	
		 Sets the button's initial icon.
		     		@short    Sets the button's initial icon.
	*/
	public native void setIcon(String icon);
	/**	
		 Resets the icon (reverts to an empty button).
		     		@short    Resets the icon (reverts to an empty button).
	*/
	public native void resetIcon();
	/**	
		 Returns the name of the selected icon.
		     		@short    Returns the name of the selected icon.
	*/
	public native String iconName();
	/**	
		 Sets the size of the icon to be shown / selected.
				@short    Sets the size of the icon to be shown / selected.
		@see TDEIcon#StdSizes
		@see #iconSize
	*/
	public native void setIconSize(int size);
	/**	
		 Returns the iconsize set via setIconSize() or 0, if the default
		 iconsize will be used.
		     		@short    Returns the iconsize set via setIconSize() or 0, if the default  iconsize will be used.
	*/
	public native int iconSize();
	/** 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();
}