org.kde.koala

Class KActionMenu

public class KActionMenu extends KAction

A KActionMenu is an action that holds a sub-menu of other actions. insert() and remove() allow to insert and remove actions into this action-menu. Plugged in a popupmenu, it will create a submenu. Plugged in a toolbar, it will create a button with a popup menu. This is the action used by the XMLGUI since it holds other actions. If you want a submenu for selecting one tool among many (without icons), see KSelectAction. See also setDelayed about the main action.

UNKNOWN: A KActionMenu is an action that holds a sub-menu of other actions.

Constructor Summary
protected KActionMenu(Class dummy)
KActionMenu(String text, QObject parent, String name)
KActionMenu(String text, QObject parent)
KActionMenu(String text)
KActionMenu(String text, QIconSet icon, QObject parent, String name)
KActionMenu(String text, QIconSet icon, QObject parent)
KActionMenu(String text, QIconSet icon)
KActionMenu(String text, String icon, QObject parent, String name)
KActionMenu(String text, String icon, QObject parent)
KActionMenu(String text, String icon)
KActionMenu(QObject parent, String name)
KActionMenu(QObject parent)
KActionMenu()
Method Summary
StringclassName()
booleandelayed()
Returns true if this action creates a delayed popup menu when plugged in a KToolbar.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
voidinsert(KAction arg1, int index)
voidinsert(KAction arg1)
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
intplug(QWidget widget, int index)
intplug(QWidget widget)
voidpopup(QPoint global)
KPopupMenupopupMenu()
voidremove(KAction arg1)
voidsetDelayed(boolean _delayed)
If set to true, this action will create a delayed popup menu when plugged in a KToolbar.
voidsetStickyMenu(boolean sticky)
If set to true, this action will create a sticky popup menu when plugged in a KToolbar.
booleanstickyMenu()
Returns true if this action creates a sticky popup menu.

Constructor Detail

KActionMenu

protected KActionMenu(Class dummy)

KActionMenu

public KActionMenu(String text, QObject parent, String name)

KActionMenu

public KActionMenu(String text, QObject parent)

KActionMenu

public KActionMenu(String text)

KActionMenu

public KActionMenu(String text, QIconSet icon, QObject parent, String name)

KActionMenu

public KActionMenu(String text, QIconSet icon, QObject parent)

KActionMenu

public KActionMenu(String text, QIconSet icon)

KActionMenu

public KActionMenu(String text, String icon, QObject parent, String name)

KActionMenu

public KActionMenu(String text, String icon, QObject parent)

KActionMenu

public KActionMenu(String text, String icon)

KActionMenu

public KActionMenu(QObject parent, String name)

KActionMenu

public KActionMenu(QObject parent)

KActionMenu

public KActionMenu()

Method Detail

className

public String className()

delayed

public boolean delayed()
Returns true if this action creates a delayed popup menu when plugged in a KToolbar.

UNKNOWN: Returns true if this action creates a delayed popup menu when plugged in a KToolbar.

dispose

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

finalize

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

insert

public void insert(KAction arg1, int index)

insert

public void insert(KAction arg1)

isDisposed

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

metaObject

public QMetaObject metaObject()

plug

public int plug(QWidget widget, int index)

plug

public int plug(QWidget widget)

popup

public void popup(QPoint global)

popupMenu

public KPopupMenu popupMenu()

remove

public void remove(KAction arg1)

setDelayed

public void setDelayed(boolean _delayed)
If set to true, this action will create a delayed popup menu when plugged in a KToolbar. Otherwise it creates a normal popup. Default: delayed Remember that if the "main" action (the toolbar button itself) cannot be clicked, then you should call setDelayed(false). On the opposite, if the main action can be clicked, it can only happen in a toolbar: in a menu, the parent of a submenu can't be activated. To get a "normal" menu item when plugged a menu (and no submenu) use KToolBarPopupAction.

UNKNOWN: If set to true, this action will create a delayed popup menu when plugged in a KToolbar.

setStickyMenu

public void setStickyMenu(boolean sticky)
If set to true, this action will create a sticky popup menu when plugged in a KToolbar. "Sticky", means it's visible until a selection is made or the mouse is clicked elsewhere. This feature allows you to make a selection without having to press and hold down the mouse while making a selection. Default: sticky.

UNKNOWN: If set to true, this action will create a sticky popup menu when plugged in a KToolbar.

stickyMenu

public boolean stickyMenu()
Returns true if this action creates a sticky popup menu. See setStickyMenu().

UNKNOWN: Returns true if this action creates a sticky popup menu.