summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/TDEToggleAction.java
blob: e698d4228994372e9c3ad1befdecf2e14bff527e (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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQObject;
import org.trinitydesktop.qt.TQIconSet;
import org.trinitydesktop.qt.TQWidget;

/**

  Checkbox like action.
  This action provides two states: checked or not.
  See {@link TDEToggleActionSignals} for signals emitted by TDEToggleAction
		@short Checkbox like action.

*/
public class TDEToggleAction extends TDEAction  {
	protected TDEToggleAction(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Constructs a toggle action with text and potential keyboard
		 accelerator but nothing else. Use this only if you really
		 know what you are doing.
			@param text The text that will be displayed.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short    Constructs a toggle action with text and potential keyboard  accelerator but nothing else.
	*/
	public TDEToggleAction(String text, TDEShortcut cut, TQObject parent, String name) {
		super((Class) null);
		newTDEToggleAction(text,cut,parent,name);
	}
	private native void newTDEToggleAction(String text, TDEShortcut cut, TQObject parent, String name);
	public TDEToggleAction(String text, TDEShortcut cut, TQObject parent) {
		super((Class) null);
		newTDEToggleAction(text,cut,parent);
	}
	private native void newTDEToggleAction(String text, TDEShortcut cut, TQObject parent);
	public TDEToggleAction(String text, TDEShortcut cut) {
		super((Class) null);
		newTDEToggleAction(text,cut);
	}
	private native void newTDEToggleAction(String text, TDEShortcut cut);
	public TDEToggleAction(String text) {
		super((Class) null);
		newTDEToggleAction(text);
	}
	private native void newTDEToggleAction(String text);
	/**
			@param text The text that will be displayed.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param receiver The slot's parent.
			@param slot The slot to invoke to execute this action.
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short
	*/
	public TDEToggleAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) {
		super((Class) null);
		newTDEToggleAction(text,cut,receiver,slot,parent,name);
	}
	private native void newTDEToggleAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name);
	public TDEToggleAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) {
		super((Class) null);
		newTDEToggleAction(text,cut,receiver,slot,parent);
	}
	private native void newTDEToggleAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent);
	/**
			@param text The text that will be displayed.
			@param pix The icons that go with this action.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short
	*/
	public TDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent, String name) {
		super((Class) null);
		newTDEToggleAction(text,pix,cut,parent,name);
	}
	private native void newTDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent, String name);
	public TDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent) {
		super((Class) null);
		newTDEToggleAction(text,pix,cut,parent);
	}
	private native void newTDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent);
	public TDEToggleAction(String text, TQIconSet pix, TDEShortcut cut) {
		super((Class) null);
		newTDEToggleAction(text,pix,cut);
	}
	private native void newTDEToggleAction(String text, TQIconSet pix, TDEShortcut cut);
	public TDEToggleAction(String text, TQIconSet pix) {
		super((Class) null);
		newTDEToggleAction(text,pix);
	}
	private native void newTDEToggleAction(String text, TQIconSet pix);
	/**
			@param text The text that will be displayed.
			@param pix The dynamically loaded icon that goes with this action.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short
	*/
	public TDEToggleAction(String text, String pix, TDEShortcut cut, TQObject parent, String name) {
		super((Class) null);
		newTDEToggleAction(text,pix,cut,parent,name);
	}
	private native void newTDEToggleAction(String text, String pix, TDEShortcut cut, TQObject parent, String name);
	public TDEToggleAction(String text, String pix, TDEShortcut cut, TQObject parent) {
		super((Class) null);
		newTDEToggleAction(text,pix,cut,parent);
	}
	private native void newTDEToggleAction(String text, String pix, TDEShortcut cut, TQObject parent);
	public TDEToggleAction(String text, String pix, TDEShortcut cut) {
		super((Class) null);
		newTDEToggleAction(text,pix,cut);
	}
	private native void newTDEToggleAction(String text, String pix, TDEShortcut cut);
	public TDEToggleAction(String text, String pix) {
		super((Class) null);
		newTDEToggleAction(text,pix);
	}
	private native void newTDEToggleAction(String text, String pix);
	/**
			@param text The text that will be displayed.
			@param pix The icons that go with this action.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param receiver The slot's parent.
			@param slot The slot to invoke to execute this action.
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short
	*/
	public TDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) {
		super((Class) null);
		newTDEToggleAction(text,pix,cut,receiver,slot,parent,name);
	}
	private native void newTDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name);
	public TDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) {
		super((Class) null);
		newTDEToggleAction(text,pix,cut,receiver,slot,parent);
	}
	private native void newTDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent);
	/**
			@param text The text that will be displayed.
			@param pix The dynamically loaded icon that goes with this action.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param receiver The slot's parent.
			@param slot The slot to invoke to execute this action.
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short
	*/
	public TDEToggleAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) {
		super((Class) null);
		newTDEToggleAction(text,pix,cut,receiver,slot,parent,name);
	}
	private native void newTDEToggleAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name);
	public TDEToggleAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) {
		super((Class) null);
		newTDEToggleAction(text,pix,cut,receiver,slot,parent);
	}
	private native void newTDEToggleAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent);
	/**
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short
	*/
	public TDEToggleAction(TQObject parent, String name) {
		super((Class) null);
		newTDEToggleAction(parent,name);
	}
	private native void newTDEToggleAction(TQObject parent, String name);
	public TDEToggleAction(TQObject parent) {
		super((Class) null);
		newTDEToggleAction(parent);
	}
	private native void newTDEToggleAction(TQObject parent);
	public TDEToggleAction() {
		super((Class) null);
		newTDEToggleAction();
	}
	private native void newTDEToggleAction();
	/**
		  "Plug" or insert this action into a given widget.
			  This will typically be a menu or a toolbar.  From this point
		  on, you will never need to directly manipulate the item in the
		  menu or toolbar.  You do all enabling/disabling/manipulation
		  directly with your TDEToggleAction object.
			@param widget The GUI element to display this action.
			@param index The index of the item.
		     		@short     "Plug" or insert this action into a given widget.
	*/
	public native int plug(TQWidget widget, int index);
	public native int plug(TQWidget widget);
	/**
		  Returns the actual state of the action.
		     		@short     Returns the actual state of the action.
	*/
	public native boolean isChecked();
	/**
				@return which "exclusive group" this action is part of.

		@short
		@see #setExclusiveGroup
	*/
	public native String exclusiveGroup();
	/**
		 Defines which "exclusive group" this action is part of.
		 In a given exclusive group, only one toggle action can be checked
		 at a any moment. Checking an action unchecks the other actions
		 of the group.
		     		@short    Defines which "exclusive group" this action is part of.
	*/
	public native void setExclusiveGroup(String name);
	/**
		 Defines the text (and icon, tooltip, whatsthis) that should be displayed
		 instead of the normal text, when the action is checked.
		 This feature replaces the checkmark that usually appears in front of the text, in menus.
		 It is useful when the text is mainly a verb: e.g. "Show <foo>"
		 should turn into "Hide <foo>" when activated.
			 If hasIcon(), the icon is kept for the 'checked state', unless
		 <code>checkedItem</code> defines an icon explicitely. Same thing for tooltip and whatsthis.
				@short    Defines the text (and icon, tooltip, whatsthis) that should be displayed  instead of the normal text, when the action is checked.
	*/
	public native void setCheckedState(KGuiItem checkedItem);
	public native String toolTip();
	/**
		  Sets the state of the action.
		     		@short     Sets the state of the action.
	*/
	public native void setChecked(boolean arg1);
	protected native void updateChecked(int id);
	protected native void slotActivated();
	/** 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();
}