A class which represents an implementation of ActionContainer in the form of a menu.
More...
#include <ActionContainer.h>
List of all members.
Public Member Functions |
void | addAction (Command *command, const QString &before=QString()) |
| Adds an action to the action container. If the action container is a menu bar, this call does nothing.
|
void | addMenu (ActionContainer *menu, const QString &before=QString()) |
| Adds a menu to the action container. If the action container is a menu, the menu is inserted as a sub menu in the current menu.
|
void | addSeperator (const QString &before=QString()) |
| Adds a seperator to the action container. If the action container is a menu bar, this call does nothing.
|
QMenu * | menu () const |
| The menu associated with this action container. If the action container is a menu, 0 is returned.
|
QMenuBar * | menuBar () const |
| The menu bar associated with this action container. If the action container is a menu bar, 0 is returned.
|
Detailed Description
A class which represents an implementation of ActionContainer in the form of a menu.
For more information see the Action Management article.
Member Function Documentation
void Qtilities::CoreGui::MenuContainer::addAction |
( |
Command * |
action, |
|
|
const QString & |
before = QString() |
|
) |
| |
|
virtual |
Adds an action to the action container. If the action container is a menu bar, this call does nothing.
- Parameters:
-
before | Inserts the action before the action represented by before. |
Implements Qtilities::CoreGui::ActionContainer.
void Qtilities::CoreGui::MenuContainer::addMenu |
( |
ActionContainer * |
menu, |
|
|
const QString & |
before = QString() |
|
) |
| |
|
virtual |
Adds a menu to the action container. If the action container is a menu, the menu is inserted as a sub menu in the current menu.
- Parameters:
-
before | Inserts the menu before the action/menu represented by before. |
Implements Qtilities::CoreGui::ActionContainer.
void Qtilities::CoreGui::MenuContainer::addSeperator |
( |
const QString & |
before = QString() | ) |
|
|
virtual |
Adds a seperator to the action container. If the action container is a menu bar, this call does nothing.
- Parameters:
-
before | Inserts the seperator before the action represented by before. |
Implements Qtilities::CoreGui::ActionContainer.