org.kde.koala

Class KToggleAction

public class KToggleAction extends KAction

Checkbox like action. This action provides two states: checked or not. See KToggleActionSignals for signals emitted by KToggleAction

UNKNOWN: Checkbox like action.

Constructor Summary
protected KToggleAction(Class dummy)
KToggleAction(String text, KShortcut cut, QObject parent, String name)
Constructs a toggle action with text and potential keyboard accelerator but nothing else.
KToggleAction(String text, KShortcut cut, QObject parent)
KToggleAction(String text, KShortcut cut)
KToggleAction(String text)
KToggleAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name)
KToggleAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent)
KToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name)
KToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent)
KToggleAction(String text, QIconSet pix, KShortcut cut)
KToggleAction(String text, QIconSet pix)
KToggleAction(String text, String pix, KShortcut cut, QObject parent, String name)
KToggleAction(String text, String pix, KShortcut cut, QObject parent)
KToggleAction(String text, String pix, KShortcut cut)
KToggleAction(String text, String pix)
KToggleAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name)
KToggleAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent)
KToggleAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name)
KToggleAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent)
KToggleAction(QObject parent, String name)
KToggleAction(QObject parent)
KToggleAction()
Method Summary
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
StringexclusiveGroup()
protected voidfinalize()
Deletes the wrapped C++ instance
booleanisChecked()
Returns the actual state of the action.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
intplug(QWidget widget, int index)
"Plug" or insert this action into a given widget.
intplug(QWidget widget)
voidsetChecked(boolean arg1)
Sets the state of the action.
voidsetCheckedState(KGuiItem checkedItem)
Defines the text (and icon, tooltip, whatsthis) that should be displayed instead of the normal text, when the action is checked.
voidsetExclusiveGroup(String name)
Defines which "exclusive group" this action is part of.
protected voidslotActivated()
StringtoolTip()
protected voidupdateChecked(int id)

Constructor Detail

KToggleAction

protected KToggleAction(Class dummy)

KToggleAction

public KToggleAction(String text, KShortcut cut, QObject parent, String name)
Constructs a toggle action with text and potential keyboard accelerator but nothing else. Use this only if you really know what you are doing.

Parameters: text The text that will be displayed. cut The corresponding keyboard accelerator (shortcut). parent This action's parent. name An internal name for this action.

UNKNOWN: Constructs a toggle action with text and potential keyboard accelerator but nothing else.

KToggleAction

public KToggleAction(String text, KShortcut cut, QObject parent)

KToggleAction

public KToggleAction(String text, KShortcut cut)

KToggleAction

public KToggleAction(String text)

KToggleAction

public KToggleAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name)

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

UNKNOWN:

KToggleAction

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

KToggleAction

public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name)

Parameters: text The text that will be displayed. pix The icons that go with this action. cut The corresponding keyboard accelerator (shortcut). parent This action's parent. name An internal name for this action.

UNKNOWN:

KToggleAction

public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent)

KToggleAction

public KToggleAction(String text, QIconSet pix, KShortcut cut)

KToggleAction

public KToggleAction(String text, QIconSet pix)

KToggleAction

public KToggleAction(String text, String pix, KShortcut cut, QObject parent, String name)

Parameters: text The text that will be displayed. pix The dynamically loaded icon that goes with this action. cut The corresponding keyboard accelerator (shortcut). parent This action's parent. name An internal name for this action.

UNKNOWN:

KToggleAction

public KToggleAction(String text, String pix, KShortcut cut, QObject parent)

KToggleAction

public KToggleAction(String text, String pix, KShortcut cut)

KToggleAction

public KToggleAction(String text, String pix)

KToggleAction

public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name)

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

UNKNOWN:

KToggleAction

public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent)

KToggleAction

public KToggleAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name)

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

UNKNOWN:

KToggleAction

public KToggleAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent)

KToggleAction

public KToggleAction(QObject parent, String name)

Parameters: parent This action's parent. name An internal name for this action.

UNKNOWN:

KToggleAction

public KToggleAction(QObject parent)

KToggleAction

public KToggleAction()

Method Detail

className

public String className()

dispose

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

exclusiveGroup

public String exclusiveGroup()

Returns: which "exclusive group" this action is part of.

See Also: KToggleAction

UNKNOWN:

finalize

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

isChecked

public boolean isChecked()
Returns the actual state of the action.

UNKNOWN: Returns the actual state of the action.

isDisposed

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

metaObject

public QMetaObject metaObject()

plug

public int plug(QWidget widget, int index)
"Plug" or insert this action into a given widget. This will typically be a menu or a toolbar. From this point on, you will never need to directly manipulate the item in the menu or toolbar. You do all enabling/disabling/manipulation directly with your KToggleAction object.

Parameters: widget The GUI element to display this action. index The index of the item.

UNKNOWN: "Plug" or insert this action into a given widget.

plug

public int plug(QWidget widget)

setChecked

public void setChecked(boolean arg1)
Sets the state of the action.

UNKNOWN: Sets the state of the action.

setCheckedState

public void setCheckedState(KGuiItem checkedItem)
Defines the text (and icon, tooltip, whatsthis) that should be displayed instead of the normal text, when the action is checked. This feature replaces the checkmark that usually appears in front of the text, in menus. It is useful when the text is mainly a verb: e.g. "Show " should turn into "Hide " when activated. If hasIcon(), the icon is kept for the 'checked state', unless checkedItem defines an icon explicitely. Same thing for tooltip and whatsthis.

UNKNOWN: Defines the text (and icon, tooltip, whatsthis) that should be displayed instead of the normal text, when the action is checked.

setExclusiveGroup

public void setExclusiveGroup(String name)
Defines which "exclusive group" this action is part of. In a given exclusive group, only one toggle action can be checked at a any moment. Checking an action unchecks the other actions of the group.

UNKNOWN: Defines which "exclusive group" this action is part of.

slotActivated

protected void slotActivated()

toolTip

public String toolTip()

updateChecked

protected void updateChecked(int id)