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
|
//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;
/**
This class helps applications implement support for KDataTool.
The steps to follow are simple:
<li>
query for the available tools using KDataToolInfo.query
</li>
<li>
pass the result to KDataToolAction.dataToolActionList (with a slot)
</li>
<li>
plug the resulting actions, either using KXMLGUIClient.plugActionList, or by hand.
</li>
The slot defined for step 2 is called when the action is activated, and
that's where the tool should be created and run.
See {@link KDataToolActionSignals} for signals emitted by KDataToolAction
@short This class helps applications implement support for KDataTool.
*/
public class KDataToolAction extends KAction {
protected KDataToolAction(Class dummy){super((Class) null);}
public native TQMetaObject metaObject();
public native String className();
/**
Constructs a new KDataToolAction.
@param text The text that will be displayed.
@param info the corresponding KDataToolInfo
@param command the command of the action
@param parent This action's parent.
@param name An internal name for this action.
@short Constructs a new KDataToolAction.
*/
public KDataToolAction(String text, KDataToolInfo info, String command, TQObject parent, String name) {
super((Class) null);
newKDataToolAction(text,info,command,parent,name);
}
private native void newKDataToolAction(String text, KDataToolInfo info, String command, TQObject parent, String name);
public KDataToolAction(String text, KDataToolInfo info, String command, TQObject parent) {
super((Class) null);
newKDataToolAction(text,info,command,parent);
}
private native void newKDataToolAction(String text, KDataToolInfo info, String command, TQObject parent);
public KDataToolAction(String text, KDataToolInfo info, String command) {
super((Class) null);
newKDataToolAction(text,info,command);
}
private native void newKDataToolAction(String text, KDataToolInfo info, String command);
/**
Creates a list of actions from a list of information about data-tools.
The slot must have a signature corresponding to the toolActivated signal.
Note that it's the caller's responsibility to delete the actions when they're not needed anymore.
@param tools the list of data tool descriptions
@param receiver the receiver for toolActivated() signals
@param slot the slot that will receive the toolActivated() signals
@return the KActions
@short Creates a list of actions from a list of information about data-tools.
*/
// TQPtrList<KAction> dataToolActionList(const TQValueList<KDataToolInfo>& arg1,const TQObject* arg2,const char* arg3); >>>> NOT CONVERTED
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();
}
|