SHAPER  9.12.0
XGUI_MenuWorkbench Class Reference

A class for management of menu actions (features). More...

Public Member Functions

 XGUI_MenuWorkbench (const std::string &theName)
 Constructor. More...
 
virtual ~XGUI_MenuWorkbench ()
 Destructor. More...
 
std::string getName () const
 Returns a name of the workbench. More...
 
std::shared_ptr< XGUI_MenuGroupfindGroup (const std::string &theGroupName)
 Finds or creates a group for the given name. More...
 
const std::list< std::shared_ptr< XGUI_MenuGroup > > & groups () const
 Returns container of existing groups. More...
 

Detailed Description

A class for management of menu actions (features).

The actions should be arranged like they are in XML file. It listens the read feature of XML and fills internal structure of menu workbenches and groups of feature. After, it creates menues and tools in the module.

Constructor & Destructor Documentation

◆ XGUI_MenuWorkbench()

XGUI_MenuWorkbench::XGUI_MenuWorkbench ( const std::string &  theName)

Constructor.

◆ ~XGUI_MenuWorkbench()

virtual XGUI_MenuWorkbench::~XGUI_MenuWorkbench ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ getName()

std::string XGUI_MenuWorkbench::getName ( ) const
inline

Returns a name of the workbench.

Returns
workbench name

◆ findGroup()

std::shared_ptr< XGUI_MenuGroup > XGUI_MenuWorkbench::findGroup ( const std::string &  theGroupName)

Finds or creates a group for the given name.

Parameters
theGroupNamea name defined in XML
Returns
an instance of group

◆ groups()

const std::list< std::shared_ptr< XGUI_MenuGroup > > & XGUI_MenuWorkbench::groups ( ) const

Returns container of existing groups.

Returns
list