summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KPasteTextAction.java
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit90825e2392b2d70e43c7a25b8a3752299a933894 (patch)
treee33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/org/kde/koala/KPasteTextAction.java
downloadtdebindings-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/KPasteTextAction.java')
-rw-r--r--kdejava/koala/org/kde/koala/KPasteTextAction.java76
1 files changed, 76 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KPasteTextAction.java b/kdejava/koala/org/kde/koala/KPasteTextAction.java
new file mode 100644
index 00000000..9de17c12
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KPasteTextAction.java
@@ -0,0 +1,76 @@
+//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;
+import org.kde.qt.QWidget;
+
+/**
+
+ An action for pasting text from the clipboard.
+ It's useful for text handling applications as
+ when plugged into a toolbar it provides a menu
+ with the clipboard history if klipper is running.
+ If klipper is not running, the menu has only one
+ item: the current clipboard content.
+ @short An action for pasting text from the clipboard.
+
+*/
+public class KPasteTextAction extends KAction {
+ protected KPasteTextAction(Class dummy){super((Class) null);}
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Create a KPasteTextAction, with a text, an icon, an accelerator,
+ a slot connected to the action, parent and name.
+ If you do not want or have a keyboard accelerator, set the
+ <code>cut</code> param to 0.
+ @param text The text that will be displayed.
+ @param icon The icon to display.
+ @param cut The corresponding keyboard accelerator (shortcut).
+ @param receiver The SLOT's owner.
+ @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 Create a KPasteTextAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name.
+ */
+ public KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKPasteTextAction(text,icon,cut,receiver,slot,parent,name);
+ }
+ private native void newKPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKPasteTextAction(text,icon,cut,receiver,slot,parent);
+ }
+ private native void newKPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent);
+ public KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot) {
+ super((Class) null);
+ newKPasteTextAction(text,icon,cut,receiver,slot);
+ }
+ private native void newKPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot);
+ /**
+ Controls the behavior of the clipboard history menu popup.
+ @param mode If false and the clipboard contains a non-text object
+ the popup menu with the clipboard history will appear
+ immediately as the user clicks the toolbar action; if
+ true, the action works like the standard paste action
+ even if the current clipboard object is not text.
+ Default value is true.
+ @short Controls the behavior of the clipboard history menu popup.
+ */
+ public native void setMixedMode(boolean mode);
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget widget);
+ protected native void menuAboutToShow();
+ protected native void menuItemActivated(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();
+}