summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/TDEPasteTextAction.java
blob: 8cab5d46cab01dcba0928fe971a9303e4c4d4e3b (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
//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.TQWidget;

/**

 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 TDEPasteTextAction extends TDEAction  {
	protected TDEPasteTextAction(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Create a TDEPasteTextAction, 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 TDEPasteTextAction, with a text, an icon, an accelerator,  a slot connected to the action, parent and name.
	*/
	public TDEPasteTextAction(String text, String icon, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) {
		super((Class) null);
		newTDEPasteTextAction(text,icon,cut,receiver,slot,parent,name);
	}
	private native void newTDEPasteTextAction(String text, String icon, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name);
	public TDEPasteTextAction(String text, String icon, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) {
		super((Class) null);
		newTDEPasteTextAction(text,icon,cut,receiver,slot,parent);
	}
	private native void newTDEPasteTextAction(String text, String icon, TDEShortcut cut, TQObject receiver, String slot, TQObject parent);
	public TDEPasteTextAction(String text, String icon, TDEShortcut cut, TQObject receiver, String slot) {
		super((Class) null);
		newTDEPasteTextAction(text,icon,cut,receiver,slot);
	}
	private native void newTDEPasteTextAction(String text, String icon, TDEShortcut cut, TQObject 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(TQWidget widget, int index);
	public native int plug(TQWidget 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();
}