Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
QtxActionMenuMgr::MenuCreator Class Reference

Menu actions creator. More...

#include <QtxActionMenuMgr.h>

Inheritance diagram for QtxActionMenuMgr::MenuCreator:
Inheritance graph

Public Member Functions

 MenuCreator (QtxActionMgr::Reader *, QtxActionMenuMgr *)
 Constructor. More...
 
virtual ~MenuCreator ()
 Destructor. More...
 
virtual int append (const QString &, const bool, const ItemAttributes &, const int)
 Create and append to the action manager a new action. More...
 
- Public Member Functions inherited from QtxActionMgr::Creator
 Creator (QtxActionMgr::Reader *)
 Constructor. More...
 
virtual ~Creator ()
 Destructor. More...
 
Readerreader () const
 Get actions reader. More...
 
virtual void connect (QAction *) const
 Connect action to some specific slot(s). More...
 
virtual bool loadPixmap (const QString &, QPixmap &) const
 Load pixmap from the file. More...
 

Private Attributes

QtxActionMenuMgrmyMgr
 menu manager More...
 

Additional Inherited Members

- Static Protected Member Functions inherited from QtxActionMgr::Creator
static int intValue (const ItemAttributes &, const QString &, const int)
 Get integer attribute value from the attribute map. More...
 
static QString strValue (const ItemAttributes &, const QString &, const QString &=QString())
 Get string attribute value from the attribute map. More...
 

Detailed Description

Used by Reader to create actions by reading descriptions from the file and fill in the action manager with the actions.

Constructor & Destructor Documentation

QtxActionMenuMgr::MenuCreator::MenuCreator ( QtxActionMgr::Reader r,
QtxActionMenuMgr mgr 
)
Parameters
rmenu actions reader
mgrmenu manager
QtxActionMenuMgr::MenuCreator::~MenuCreator ( )
virtual

Member Function Documentation

int QtxActionMenuMgr::MenuCreator::append ( const QString &  tag,
const bool  subMenu,
const ItemAttributes attr,
const int  pId 
)
virtual
Parameters
tagitem tag name
subMenutrue if this item is submenu
attrattributes map
pIdparent action ID
Returns
menu action ID

Implements QtxActionMgr::Creator.

References QtxActionMgr::separator().

Member Data Documentation

QtxActionMenuMgr* QtxActionMenuMgr::MenuCreator::myMgr
private

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