Back to index

salome-gui  6.5.0
Classes
QtxActionMgr Class Reference

Manages a set of actions accessible by unique identifier. More...

Inheritance diagram for QtxActionMgr:
Inheritance graph
[legend]

Classes

class  Creator
 Generic actions creator class. More...
class  Reader
 Generic actions description files reader class. More...
class  SeparatorAction
 Separator action class. More...
class  XMLReader
 XML file reader. More...

Detailed Description

Manages a set of actions accessible by unique identifier.

Base class for menu, toolbar actions containers and popup menu creators.

Actions are registered in the manager with the registerAction() method and unregistered from it with the unRegisterAction() method.

Functions action() and actionId() allow getting action by its identifier and vice versa. Method contains() returns true if the action with the specified identifier is already registered.

To get total number of the registered actions can be retrieved by the method count(). Function isEmpty() returns true if manager does not contains any actions. The list of all actions identifiers can be retrieved with the idList() function.

The method separator() allows creating a separator action which can be used in the menus or toolbars to separate logical groups of actions.

To enable/disable any action by its identifier, use setEnabled() method.


Class Documentation

class QtxActionMgr::Reader

Generic actions description files reader class.

This class is used to read files of some format to create actions and fill an action manager with the actions automatically.

class QtxActionMgr::XMLReader

XML file reader.

This class is used to read files of XML format to create actions and fill an action manager with actions automatically.


The documentation for this class was generated from the following file: