org.kde.koala

Class KPasteTextAction

public class KPasteTextAction extends KAction

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.

UNKNOWN: An action for pasting text from the clipboard.

Constructor Summary
protected KPasteTextAction(Class dummy)
KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent, String name)
Create a KPasteTextAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name.
KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent)
KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot)
Method Summary
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisDisposed()
Has the wrapped C++ instance been deleted?
protected voidmenuAboutToShow()
protected voidmenuItemActivated(int id)
QMetaObjectmetaObject()
intplug(QWidget widget, int index)
intplug(QWidget widget)
voidsetMixedMode(boolean mode)
Controls the behavior of the clipboard history menu popup.
protected voidslotActivated()

Constructor Detail

KPasteTextAction

protected KPasteTextAction(Class dummy)

KPasteTextAction

public KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent, String name)
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 cut param to 0.

Parameters: text The text that will be displayed. icon The icon to display. cut The corresponding keyboard accelerator (shortcut). receiver The SLOT's owner. slot The SLOT to invoke to execute this action. parent This action's parent. name An internal name for this action.

UNKNOWN: Create a KPasteTextAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name.

KPasteTextAction

public KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent)

KPasteTextAction

public KPasteTextAction(String text, String icon, KShortcut cut, QObject receiver, String slot)

Method Detail

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

menuAboutToShow

protected void menuAboutToShow()

menuItemActivated

protected void menuItemActivated(int id)

metaObject

public QMetaObject metaObject()

plug

public int plug(QWidget widget, int index)

plug

public int plug(QWidget widget)

setMixedMode

public void setMixedMode(boolean mode)
Controls the behavior of the clipboard history menu popup.

Parameters: 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.

UNKNOWN: Controls the behavior of the clipboard history menu popup.

slotActivated

protected void slotActivated()