summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/TDESelectAction.java
blob: bdf93d4fd4f88324320d69de1d446f82f906ac01 (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
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
//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.TQPopupMenu;
import java.util.ArrayList;
import org.trinitydesktop.qt.TQIconSet;
import org.trinitydesktop.qt.TQWidget;

/**

  Action for selecting one of several items.
  This action shows up a submenu with a list of items.
  One of them can be checked. If the user clicks on an item
  this item will automatically be checked,
  the formerly checked item becomes unchecked.
  There can be only one item checked at a time.
  See {@link TDESelectActionSignals} for signals emitted by TDESelectAction
		@short Action for selecting one of several items.

*/
public class TDESelectAction extends TDEAction  {
	protected TDESelectAction(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Constructs a select 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 select action with text and potential keyboard  accelerator but nothing else.
	*/
	public TDESelectAction(String text, TDEShortcut cut, TQObject parent, String name) {
		super((Class) null);
		newTDESelectAction(text,cut,parent,name);
	}
	private native void newTDESelectAction(String text, TDEShortcut cut, TQObject parent, String name);
	public TDESelectAction(String text, TDEShortcut cut, TQObject parent) {
		super((Class) null);
		newTDESelectAction(text,cut,parent);
	}
	private native void newTDESelectAction(String text, TDEShortcut cut, TQObject parent);
	public TDESelectAction(String text, TDEShortcut cut) {
		super((Class) null);
		newTDESelectAction(text,cut);
	}
	private native void newTDESelectAction(String text, TDEShortcut cut);
	public TDESelectAction(String text) {
		super((Class) null);
		newTDESelectAction(text);
	}
	private native void newTDESelectAction(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 TDESelectAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) {
		super((Class) null);
		newTDESelectAction(text,cut,receiver,slot,parent,name);
	}
	private native void newTDESelectAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name);
	public TDESelectAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) {
		super((Class) null);
		newTDESelectAction(text,cut,receiver,slot,parent);
	}
	private native void newTDESelectAction(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 TDESelectAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent, String name) {
		super((Class) null);
		newTDESelectAction(text,pix,cut,parent,name);
	}
	private native void newTDESelectAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent, String name);
	public TDESelectAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent) {
		super((Class) null);
		newTDESelectAction(text,pix,cut,parent);
	}
	private native void newTDESelectAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent);
	public TDESelectAction(String text, TQIconSet pix, TDEShortcut cut) {
		super((Class) null);
		newTDESelectAction(text,pix,cut);
	}
	private native void newTDESelectAction(String text, TQIconSet pix, TDEShortcut cut);
	public TDESelectAction(String text, TQIconSet pix) {
		super((Class) null);
		newTDESelectAction(text,pix);
	}
	private native void newTDESelectAction(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 TDESelectAction(String text, String pix, TDEShortcut cut, TQObject parent, String name) {
		super((Class) null);
		newTDESelectAction(text,pix,cut,parent,name);
	}
	private native void newTDESelectAction(String text, String pix, TDEShortcut cut, TQObject parent, String name);
	public TDESelectAction(String text, String pix, TDEShortcut cut, TQObject parent) {
		super((Class) null);
		newTDESelectAction(text,pix,cut,parent);
	}
	private native void newTDESelectAction(String text, String pix, TDEShortcut cut, TQObject parent);
	public TDESelectAction(String text, String pix, TDEShortcut cut) {
		super((Class) null);
		newTDESelectAction(text,pix,cut);
	}
	private native void newTDESelectAction(String text, String pix, TDEShortcut cut);
	public TDESelectAction(String text, String pix) {
		super((Class) null);
		newTDESelectAction(text,pix);
	}
	private native void newTDESelectAction(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 TDESelectAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) {
		super((Class) null);
		newTDESelectAction(text,pix,cut,receiver,slot,parent,name);
	}
	private native void newTDESelectAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name);
	public TDESelectAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) {
		super((Class) null);
		newTDESelectAction(text,pix,cut,receiver,slot,parent);
	}
	private native void newTDESelectAction(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 TDESelectAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) {
		super((Class) null);
		newTDESelectAction(text,pix,cut,receiver,slot,parent,name);
	}
	private native void newTDESelectAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name);
	public TDESelectAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) {
		super((Class) null);
		newTDESelectAction(text,pix,cut,receiver,slot,parent);
	}
	private native void newTDESelectAction(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 TDESelectAction(TQObject parent, String name) {
		super((Class) null);
		newTDESelectAction(parent,name);
	}
	private native void newTDESelectAction(TQObject parent, String name);
	public TDESelectAction(TQObject parent) {
		super((Class) null);
		newTDESelectAction(parent);
	}
	private native void newTDESelectAction(TQObject parent);
	public TDESelectAction() {
		super((Class) null);
		newTDESelectAction();
	}
	private native void newTDESelectAction();
	/**
		  "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 TDESelectAction 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);
	/**
		 When this action is plugged into a toolbar, it creates a combobox.
				@return true if the combo editable.

		@short    When this action is plugged into a toolbar, it creates a combobox.
	*/
	public native boolean isEditable();
	/**
				@return the items that can be selected with this action.
 Use setItems to set them.

		@short
	*/
	public native ArrayList items();
	/**
		 Changes the text of item @param index to @param text .
		     		@short    Changes the text of item @param index to @param text .
	*/
	public native void changeItem(int index, String text);
	/**
		 Returns the text of the currently selected item.
		     		@short    Returns the text of the currently selected item.
	*/
	public native String currentText();
	/**
		 Returns the index of the current item.
				@short    Returns the index of the current item.
		@see #setCurrentItem
	*/
	public native int currentItem();
	/**
		 When this action is plugged into a toolbar, it creates a combobox.
		 This returns the maximum width set by setComboWidth
		     		@short    When this action is plugged into a toolbar, it creates a combobox.
	*/
	public native int comboWidth();
	/**
		 Sets the maximum items that are visible at once if the action
		 is a combobox, that is the number of items in the combobox's viewport
		 Only works before the action is plugged
				@short    Sets the maximum items that are visible at once if the action   is a combobox, that is the number of items in the combobox's viewport  Only works before the action is plugged
	*/
	public native void setMaxComboViewCount(int n);
	/**
		 Returns a pointer to the popup menu used by this action.
		     		@short    Returns a pointer to the popup menu used by this action.
	*/
	public native TQPopupMenu popupMenu();
	public native boolean removeAmpersandsInCombo();
	/**
		 Sets whether any occurrence of the ampersand character ( & ) in items
		 should be interpreted as keyboard accelerator for items displayed in a
		 menu or not.
				@short    Sets whether any occurrence of the ampersand character ( & ) in items  should be interpreted as keyboard accelerator for items displayed in a  menu or not.
	*/
	public native void setMenuAccelsEnabled(boolean b);
	public native boolean menuAccelsEnabled();
	/**
		  Sets the currently checked item.
			@param index Index of the item (remember the first item is zero).
		     		@short     Sets the currently checked item.
	*/
	public native void setCurrentItem(int index);
	/**
		 Sets the items to be displayed in this action
		 You need to call this.
		     		@short    Sets the items to be displayed in this action  You need to call this.
	*/
	public native void setItems(String[] lst);
	/**
		 Clears up all the items in this action
		     		@short    Clears up all the items in this action
	*/
	public native void clear();
	/**
		 When this action is plugged into a toolbar, it creates a combobox.
		 This makes the combo editable or read-only.
		     		@short    When this action is plugged into a toolbar, it creates a combobox.
	*/
	public native void setEditable(boolean arg1);
	/**
		 When this action is plugged into a toolbar, it creates a combobox.
		 This gives a _maximum_ size to the combobox.
		 The minimum size is automatically given by the contents (the items).
		     		@short    When this action is plugged into a toolbar, it creates a combobox.
	*/
	public native void setComboWidth(int width);
	protected native void changeItem(int id, int index, String text);
	/**
		 Depending on the menuAccelsEnabled property this method will return the
		 actions items in a way for inclusion in a combobox with the ampersand
		 character removed from all items or not.
				@short    Depending on the menuAccelsEnabled property this method will return the  actions items in a way for inclusion in a combobox with the ampersand  character removed from all items or not.
	*/
	protected native ArrayList comboItems();
	protected native void updateCurrentItem(int id);
	protected native void updateComboWidth(int id);
	protected native void updateItems(int id);
	protected native void updateClear(int id);
	protected native void slotActivated(int id);
	protected native void slotActivated(String text);
	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();
}