diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 90825e2392b2d70e43c7a25b8a3752299a933894 (patch) | |
tree | e33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/org/kde/koala/KDataToolAction.java | |
download | tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/koala/org/kde/koala/KDataToolAction.java')
-rw-r--r-- | kdejava/koala/org/kde/koala/KDataToolAction.java | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KDataToolAction.java b/kdejava/koala/org/kde/koala/KDataToolAction.java new file mode 100644 index 00000000..3296dceb --- /dev/null +++ b/kdejava/koala/org/kde/koala/KDataToolAction.java @@ -0,0 +1,78 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.QObject; + +/** + + 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 QMetaObject 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, QObject parent, String name) { + super((Class) null); + newKDataToolAction(text,info,command,parent,name); + } + private native void newKDataToolAction(String text, KDataToolInfo info, String command, QObject parent, String name); + public KDataToolAction(String text, KDataToolInfo info, String command, QObject parent) { + super((Class) null); + newKDataToolAction(text,info,command,parent); + } + private native void newKDataToolAction(String text, KDataToolInfo info, String command, QObject 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. + */ + // QPtrList<KAction> dataToolActionList(const QValueList<KDataToolInfo>& arg1,const QObject* 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(); +} |