Version: 9.12.0
QtxPopupMgr::PopupCreator Class Reference

Popup menu actions creator. More...

Inheritance diagram for QtxPopupMgr::PopupCreator:
Inheritance graph

Public Member Functions

 PopupCreator (QtxActionMgr::Reader *, QtxPopupMgr *)
 Constructor. More...
 
virtual ~PopupCreator ()
 Destructor. More...
 
virtual int append (const QString &, const bool, const ItemAttributes &, const int)
 Create and append new action to the action manager. More...
 
virtual QString rule (const ItemAttributes &, const QtxPopupMgr::RuleType=VisibleRule) const
 Get the rule for the menu item. 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

QtxPopupMgrmyMgr
 

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

Popup menu actions creator.

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

Constructor & Destructor Documentation

◆ PopupCreator()

QtxPopupMgr::PopupCreator::PopupCreator ( QtxActionMgr::Reader r,
QtxPopupMgr mgr 
)

Constructor.

Parameters
rmenu action reader
mgrpopup menu manager

◆ ~PopupCreator()

QtxPopupMgr::PopupCreator::~PopupCreator ( )
virtual

Destructor.

Member Function Documentation

◆ append()

int QtxPopupMgr::PopupCreator::append ( const QString &  tag,
const bool  subMenu,
const ItemAttributes attr,
const int  pId 
)
virtual

Create and append new action to the action manager.

Parameters
tagitem tag name
subMenutrue if this item is submenu
attrattributes map
pIdparent action ID
Returns
menu action ID

Implements QtxActionMgr::Creator.

References QtxPopupMgr::EnableRule, QtxActionMenuMgr::insert(), QtxActionMgr::registerAction(), QtxPopupMgr::rule(), QtxActionMgr::separator(), QtxPopupMgr::ToggleRule, and QtxPopupMgr::VisibleRule.

◆ rule()

QString QtxPopupMgr::PopupCreator::rule ( const ItemAttributes ,
const QtxPopupMgr::RuleType  = VisibleRule 
) const
virtual

Get the rule for the menu item.

Default implementation returns empty rule.

Parameters
attrattributes map
ruleTyperule type (QtxPopupMgr::RuleType)
Returns
rule for the menu item corresponding to the rule type

Member Data Documentation

◆ myMgr

QtxPopupMgr* QtxPopupMgr::PopupCreator::myMgr
private

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