//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 clipper 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();
}
