summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/TDEActionCollection.java
blob: 245790c7c964de9aadc1b32b0dfe6a1192d2a004 (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
//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.TQObject;
import java.util.ArrayList;
import org.kde.qt.TQWidget;
import org.kde.qt.TQObject;

/**

 A managed set of TDEAction objects.
 If you set the tooltips on TDEActions and want the tooltip to show in statusbar
 (recommended) then you will need to connect a couple of the actionclass signals
 to the toolbar.
 The easiest way of doing this is in your TDEMainWindow subclass, where you create
 a statusbar, do:
 <pre>
 actionCollection().setHighlightingEnabled(true);  
 connect(actionCollection(), SIGNAL("actionStatusText( String )"),
           statusBar(), SLOT("message( String )") );
 connect(actionCollection(), SIGNAL("clearStatusText()"),
           statusBar(), SLOT("clear()") );
 </pre>
  See {@link TDEActionCollectionSignals} for signals emitted by TDEActionCollection
		@short    A managed set of TDEAction objects.

*/
public class TDEActionCollection extends TQObject  {
	protected TDEActionCollection(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	public TDEActionCollection(TQWidget parent, String name, TDEInstanceInterface instance) {
		super((Class) null);
		newTDEActionCollection(parent,name,instance);
	}
	private native void newTDEActionCollection(TQWidget parent, String name, TDEInstanceInterface instance);
	public TDEActionCollection(TQWidget parent, String name) {
		super((Class) null);
		newTDEActionCollection(parent,name);
	}
	private native void newTDEActionCollection(TQWidget parent, String name);
	public TDEActionCollection(TQWidget parent) {
		super((Class) null);
		newTDEActionCollection(parent);
	}
	private native void newTDEActionCollection(TQWidget parent);
	/**	
		 Use this constructor if you want the collection's actions to restrict
		 their accelerator keys to <code>watch</code> rather than the <code>parent.</code>  If
		 you don't require shortcuts, you can pass a null to the <code>watch</code> parameter.
		   		@short    Use this constructor if you want the collection's actions to restrict  their accelerator keys to <code>watch</code> rather than the <code>parent.</code>
	*/
	public TDEActionCollection(TQWidget watch, TQObject parent, String name, TDEInstanceInterface instance) {
		super((Class) null);
		newTDEActionCollection(watch,parent,name,instance);
	}
	private native void newTDEActionCollection(TQWidget watch, TQObject parent, String name, TDEInstanceInterface instance);
	public TDEActionCollection(TQWidget watch, TQObject parent, String name) {
		super((Class) null);
		newTDEActionCollection(watch,parent,name);
	}
	private native void newTDEActionCollection(TQWidget watch, TQObject parent, String name);
	public TDEActionCollection(TQWidget watch, TQObject parent) {
		super((Class) null);
		newTDEActionCollection(watch,parent);
	}
	private native void newTDEActionCollection(TQWidget watch, TQObject parent);
	public TDEActionCollection(TDEActionCollection copy) {
		super((Class) null);
		newTDEActionCollection(copy);
	}
	private native void newTDEActionCollection(TDEActionCollection copy);
	/**	
		 This sets the widget to which the keyboard shortcuts should be attached.
		 You only need to call this if a null pointer was passed in the constructor.
		   		@short    This sets the widget to which the keyboard shortcuts should be attached.
	*/
	public native void setWidget(TQWidget widget);
	/**	
		 This indicates whether new actions which are created in this collection
		 should have their keyboard shortcuts automatically connected on
		 construction.  Set to 'false' if you will be loading XML-based settings.
		 This is automatically done by KParts.  The default is 'true'.
				@short    This indicates whether new actions which are created in this collection  should have their keyboard shortcuts automatically connected on  construction.
		@see #isAutoConnectShortcuts
	*/
	public native void setAutoConnectShortcuts(boolean arg1);
	/**	
		 This indicates whether new actions which are created in this collection
		 have their keyboard shortcuts automatically connected on
		 construction.
				@short    This indicates whether new actions which are created in this collection  have their keyboard shortcuts automatically connected on  construction.
		@see #setAutoConnectShortcuts
	*/
	public native boolean isAutoConnectShortcuts();
	/**	
		 Doc/View model.  This lets you add the action collection of a document
		 to a view's action collection.
		   		@short    Doc/View model.
	*/
	public native boolean addDocCollection(TDEActionCollection pDoc);
	/**	 Returns the TDEAccel object of the most recently set widget. 		@short   Returns the TDEAccel object of the most recently set widget.
	*/
	public native TDEAccel tdeaccel();
	/**	 @internal, for TDEAction.tdeaccelCurrent() 		@short   @internal, for TDEAction.tdeaccelCurrent()
	*/
	public native TDEAccel builderTDEAccel();
	/**	 Returns the number of actions in the collection 		@short   Returns the number of actions in the collection
	*/
	public native int count();
	public native boolean isEmpty();
	/**	
		 Return the TDEAction at position "index" in the action collection.
				@short    Return the TDEAction  at position "index" in the action collection.
		@see #count
	*/
	public native TDEAction action(int index);
	/**	
		 Find an action (optionally, of a given subclass of TDEAction) in the action collection.
			@param name Name of the TDEAction.
			@param classname Name of the TDEAction subclass.
				@return A pointer to the first TDEAction in the collection which matches the parameters or
 null if nothing matches.
   
		@short    Find an action (optionally, of a given subclass of TDEAction) in the action collection.
	*/
	public native TDEAction action(String name, String classname);
	public native TDEAction action(String name);
	/**	 Returns a list of all the groups of all the TDEActions in this action collection.
				@short   Returns a list of all the groups of all the TDEActions in this action collection.
		@see TDEAction#group
		@see TDEAction#setGroup
	*/
	public native ArrayList groups();
	/**	
		 Returns the list of actions in a particular group managed by this action collection.
			@param group The name of the group.
		   		@short    Returns the list of actions in a particular group managed by this action collection.
	*/
	// TDEActionPtrList actions(const TQString& arg1); >>>> NOT CONVERTED
	/**	 Returns the list of actions managed by this action collection. 		@short   Returns the list of actions managed by this action collection.
	*/
	// TDEActionPtrList actions(); >>>> NOT CONVERTED
	/**	
		 Used for reading shortcut configuration from a non-XML rc file.
		   		@short    Used for reading shortcut configuration from a non-XML rc file.
	*/
	public native boolean readShortcutSettings(String sConfigGroup, TDEConfigBase pConfig);
	public native boolean readShortcutSettings(String sConfigGroup);
	public native boolean readShortcutSettings();
	/**	
		 Used for writing shortcut configuration to a non-XML rc file.
		   		@short    Used for writing shortcut configuration to a non-XML rc file.
	*/
	public native boolean writeShortcutSettings(String sConfigGroup, TDEConfigBase pConfig);
	public native boolean writeShortcutSettings(String sConfigGroup);
	public native boolean writeShortcutSettings();
	public native void setInstance(TDEInstanceInterface instance);
	/**	 The instance with which this class is associated. 		@short   The instance with which this class is associated.
	*/
	public native TDEInstanceInterface instance();
	/**	
		 Enable highlighting notification for specific TDEActions.
		 This is false by default, so, by default, the highlighting
		 signals will not be emitted.
				@short    Enable highlighting notification for specific TDEActions.
		@see #connectHighlight
		@see #disconnectHighlight
		@see #actionHighlighted
		@see #actionHighlighted
		@see #highlightingEnabled
	*/
	public native void setHighlightingEnabled(boolean enable);
	/**	
		 Return whether highlighting notifications are enabled.
				@short    Return whether highlighting notifications are enabled.
		@see #connectHighlight
		@see #disconnectHighlight
		@see #actionHighlighted
		@see #setHighlightingEnabled
		@see #actionHighlighted
	*/
	public native boolean highlightingEnabled();
	/**	
		 Call this function if you want to receive a signal whenever a TDEAction is highlighted in a menu or a toolbar.
		 This is only needed if you do not add this action to this container.
		 You will generally not need to call this function.
			@param container A container in which the TDEAction is plugged (must inherit TQPopupMenu or TDEToolBar)
			@param action The action you are interested in
				@short    Call this function if you want to receive a signal whenever a TDEAction is highlighted in a menu or a toolbar.
		@see #disconnectHighlight
		@see #actionHighlighted
		@see #setHighlightingEnabled
		@see #highlightingEnabled
		@see #actionHighlighted
	*/
	public native void connectHighlight(TQWidget container, TDEAction action);
	/**	
		 Disconnect highlight notifications for a particular pair of contianer and action.
		 This is only needed if you do not add this action to this container.
		 You will generally not need to call this function.
			@param container A container in which the TDEAction is plugged (must inherit TQPopupMenu or TDEToolBar)
			@param action The action you are interested in
				@short    Disconnect highlight notifications for a particular pair of contianer and action.
		@see #connectHighlight
		@see #actionHighlighted
		@see #setHighlightingEnabled
		@see #highlightingEnabled
		@see #actionHighlighted
	*/
	public native void disconnectHighlight(TQWidget container, TDEAction action);
	/**	
		 The parent KXMLGUIClient, return null if not available.
		   		@short    The parent KXMLGUIClient, return 0L if not available.
	*/
	public native KXMLGUIClientInterface parentGUIClient();
	public TDEActionCollection(TQObject parent, String name, TDEInstanceInterface instance) {
		super((Class) null);
		newTDEActionCollection(parent,name,instance);
	}
	private native void newTDEActionCollection(TQObject parent, String name, TDEInstanceInterface instance);
	public TDEActionCollection(TQObject parent, String name) {
		super((Class) null);
		newTDEActionCollection(parent,name);
	}
	private native void newTDEActionCollection(TQObject parent, String name);
	public TDEActionCollection(TQObject parent) {
		super((Class) null);
		newTDEActionCollection(parent);
	}
	private native void newTDEActionCollection(TQObject parent);
	/**	
		 Add an action to the collection.
		 Generally you don't have to call this. The action inserts itself automatically
		 into its parent collection. This can be useful however for a short-lived
		 collection (e.g. for a popupmenu, where the signals from the collection are needed too).
		 (don't forget that in the simple case, a list of actions should be a simple TDEActionPtrList).
		 If you manually insert actions into a 2nd collection, don't forget to take them out
		 again before destroying the collection.
			@param action The TDEAction to add.
		   		@short    Add an action to the collection.
	*/
	public native void insert(TDEAction action);
	/**	
		 Removes an action from the collection and deletes it.
		 Since the TDEAction destructor removes the action from the collection, you generally
		 don't have to call this.
			@param action The TDEAction to remove.
		   		@short    Removes an action from the collection and deletes it.
	*/
	public native void remove(TDEAction action);
	/**	
		 Removes an action from the collection.
		 Since the TDEAction destructor removes the action from the collection, you generally
		 don't have to call this.
			@param action the TDEAction to remove.
		   		@return NULL if not found else returns action.

		@short    Removes an action from the collection.
	*/
	public native TDEAction take(TDEAction action);
	public native TDEActionCollection op_plus(TDEActionCollection arg1);
	public native TDEActionCollection op_plus_assign(TDEActionCollection arg1);
	/**	
		 Clears the entire actionCollection, deleting all actions.
				@short    Clears the entire actionCollection, deleting all actions.
		@see #remove
	*/
	public native void clear();
	/** 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();
}