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

A class which represents an action container. More...

#include <ActionContainer.h>

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

List of all members.

Public Member Functions

virtual void addAction (Command *action, const QString &before=QString())=0
 Adds an action to the action container. If the action container is a menu bar, this call does nothing.
virtual void addMenu (ActionContainer *menu, const QString &before=QString())=0
 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.
virtual void addSeperator (const QString &before=QString())=0
 Adds a seperator to the action container. If the action container is a menu bar, this call does nothing.
virtual QMenu * menu () const =0
 The menu associated with this action container. If the action container is a menu, 0 is returned.
virtual QMenuBar * menuBar () const =0
 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 action container.

For more information see the Action Management article.


Member Function Documentation

virtual void Qtilities::CoreGui::ActionContainer::addAction ( Command action,
const QString &  before = QString() 
)
pure 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.

Implemented in Qtilities::CoreGui::MenuBarContainer, and Qtilities::CoreGui::MenuContainer.

virtual void Qtilities::CoreGui::ActionContainer::addMenu ( ActionContainer menu,
const QString &  before = QString() 
)
pure 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.

Implemented in Qtilities::CoreGui::MenuBarContainer, and Qtilities::CoreGui::MenuContainer.

virtual void Qtilities::CoreGui::ActionContainer::addSeperator ( const QString &  before = QString())
pure 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.

Implemented in Qtilities::CoreGui::MenuBarContainer, and Qtilities::CoreGui::MenuContainer.



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