SHAPER
9.12.0
|
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_MenuGroup > | findGroup (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... | |
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.
XGUI_MenuWorkbench::XGUI_MenuWorkbench | ( | const std::string & | theName | ) |
Constructor.
|
inlinevirtual |
Destructor.
|
inline |
Returns a name of the workbench.
std::shared_ptr< XGUI_MenuGroup > XGUI_MenuWorkbench::findGroup | ( | const std::string & | theGroupName | ) |
Finds or creates a group for the given name.
theGroupName | a name defined in XML |
const std::list< std::shared_ptr< XGUI_MenuGroup > > & XGUI_MenuWorkbench::groups | ( | ) | const |
Returns container of existing groups.