All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions
Qtilities::CoreGui::MenuContainer Class Reference

A class which represents an implementation of ActionContainer in the form of a menu. More...

#include <ActionContainer.h>

Inheritance diagram for Qtilities::CoreGui::MenuContainer:
Inheritance graph
[legend]

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:
beforeInserts 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:
beforeInserts 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:
beforeInserts the seperator before the action represented by before.

Implements Qtilities::CoreGui::ActionContainer.



Qtilities : Reference Documentation Back to top Copyright © 2009-2013, Jaco Naudé