Version: 9.12.0
QtxActionToolMgr::ToolCreator Class Reference

Toolbars creator. More...

#include <QtxActionToolMgr.h>

Inheritance diagram for QtxActionToolMgr::ToolCreator:
Inheritance graph

Public Member Functions

 ToolCreator (QtxActionMgr::Reader *, QtxActionToolMgr *)
 Constructor. More...
 
virtual ~ToolCreator ()
 Destructor. More...
 
virtual int append (const QString &, const bool, const ItemAttributes &, const int)
 Create and append to the action manager a new toolbar or toolbar 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

QtxActionToolMgrmyMgr
 toolbar 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

Toolbars creator.

Used by Reader to create actions by reading descriptions from the file, create toolbars and fill in the toolbara with the actions.

Constructor & Destructor Documentation

◆ ToolCreator()

QtxActionToolMgr::ToolCreator::ToolCreator ( QtxActionMgr::Reader r,
QtxActionToolMgr mgr 
)

Constructor.

Parameters
ractions reader
mgrtoolbar manager

◆ ~ToolCreator()

QtxActionToolMgr::ToolCreator::~ToolCreator ( )
virtual

Destructor.

Member Function Documentation

◆ append()

int QtxActionToolMgr::ToolCreator::append ( const QString &  tag,
const bool  ,
const ItemAttributes attr,
const int  tid 
)
virtual

Create and append to the action manager a new toolbar or toolbar action.

Parameters
tagitem tag name
subMenutrue if this item is submenu (not used)
attrattributes map
tidtoolbar ID
Returns
toolbar or toolbar action ID

Implements QtxActionMgr::Creator.

References QtxActionMgr::separator().

Member Data Documentation

◆ myMgr

QtxActionToolMgr* QtxActionToolMgr::ToolCreator::myMgr
private

toolbar manager


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