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 |
String | className() |
boolean | delayed()
Returns true if this action creates a delayed popup menu
when plugged in a KToolbar. |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
void | insert(KAction arg1, int index) |
void | insert(KAction arg1) |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
QMetaObject | metaObject() |
int | plug(QWidget widget, int index) |
int | plug(QWidget widget) |
void | popup(QPoint global) |
KPopupMenu | popupMenu() |
void | remove(KAction arg1) |
void | setDelayed(boolean _delayed)
If set to true, this action will create a delayed popup menu
when plugged in a KToolbar. |
void | setStickyMenu(boolean sticky)
If set to true, this action will create a sticky popup menu
when plugged in a KToolbar.
|
boolean | stickyMenu()
Returns true if this action creates a sticky popup menu.
|
protected KActionMenu(Class dummy)
public KActionMenu(String text, QObject parent, String name)
public KActionMenu(String text, QObject parent)
public KActionMenu(String text)
public KActionMenu(String text, QIconSet icon, QObject parent, String name)
public KActionMenu(String text, QIconSet icon, QObject parent)
public KActionMenu(String text, QIconSet icon)
public KActionMenu(String text, String icon, QObject parent, String name)
public KActionMenu(String text, String icon, QObject parent)
public KActionMenu(String text, String icon)
public KActionMenu(QObject parent, String name)
public KActionMenu(QObject parent)
public KActionMenu()
public String className()
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.
public void dispose()
Delete the wrapped C++ instance ahead of finalize()
protected void finalize()
Deletes the wrapped C++ instance
public void insert(
KAction arg1, int index)
public boolean isDisposed()
Has the wrapped C++ instance been deleted?
public QMetaObject metaObject()
public int plug(QWidget widget, int index)
public int plug(QWidget widget)
public void popup(QPoint global)
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.
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.
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.