|
SHAPER
9.15.0
|
A class which manages the context menu. More...

Signals | |
| void | actionTriggered (const QString &theId, bool isChecked) |
| Signal aabout triggered action. More... | |
| void | beforeContextMenu () |
| A signal which is sent before context menu show. More... | |
| void | afterContextMenu () |
| A signal which is sent after context menu show. More... | |
Public Member Functions | |
| XGUI_ContextMenuMgr (XGUI_Workshop *theParent) | |
| Constructor. More... | |
| void | createActions () |
| Create all actions for context menus. It is called on creation of application. More... | |
| QAction * | action (const QString &theId) const |
| Returns action according to the given ID. More... | |
| QAction * | actionByName (const QString &theName) const |
| Returns action object by its Id (name) More... | |
| QStringList | actionIds () const |
| Returns list of registered actions Ids. More... | |
| void | updateCommandsStatus () |
| update state of internal commands More... | |
| void | connectObjectBrowser () |
| Connect to object browser from workshop. Has to called at creation of viewer. More... | |
| void | connectViewer () |
| Connect to viewer from workshop. Has to called at creation of viewer. More... | |
| void | connectConstraintsBrowser () |
| Connect to viewer from workshop. Has to called at creation of viewer. More... | |
| void | addObjBrowserMenu (QMenu *) const |
| Add menu items for Object browser pop-up. More... | |
| void | addConstrBrowserMenu (QMenu *) const |
| Add menu items for Object browser pop-up. More... | |
| void | addViewerMenu (QMenu *) const |
| Add menu items for Viewer pop-up. More... | |
| QStringList | actionObjectGroups (const QString &theName) |
| Returns a list of object group names of the action. More... | |
| void | updateObjectBrowserMenu () |
| Updates menu for object browser. More... | |
| void | updateViewerMenu () |
| Updates menu for viewer. More... | |
A class which manages the context menu.
| XGUI_ContextMenuMgr::XGUI_ContextMenuMgr | ( | XGUI_Workshop * | theParent | ) |
Constructor.
| theParent | a parent object |
| void XGUI_ContextMenuMgr::createActions | ( | ) |
Create all actions for context menus. It is called on creation of application.
| QAction * XGUI_ContextMenuMgr::action | ( | const QString & | theId | ) | const |
Returns action according to the given ID.
| theId | an id of an action |
| QAction * XGUI_ContextMenuMgr::actionByName | ( | const QString & | theName | ) | const |
Returns action object by its Id (name)
| theName | is an Id of the action |
| QStringList XGUI_ContextMenuMgr::actionIds | ( | ) | const |
Returns list of registered actions Ids.
| void XGUI_ContextMenuMgr::updateCommandsStatus | ( | ) |
update state of internal commands
| void XGUI_ContextMenuMgr::connectObjectBrowser | ( | ) |
Connect to object browser from workshop. Has to called at creation of viewer.
| void XGUI_ContextMenuMgr::connectViewer | ( | ) |
Connect to viewer from workshop. Has to called at creation of viewer.
| void XGUI_ContextMenuMgr::connectConstraintsBrowser | ( | ) |
Connect to viewer from workshop. Has to called at creation of viewer.
| void XGUI_ContextMenuMgr::addObjBrowserMenu | ( | QMenu * | theMenu | ) | const |
Add menu items for Object browser pop-up.
| void XGUI_ContextMenuMgr::addConstrBrowserMenu | ( | QMenu * | theMenu | ) | const |
Add menu items for Object browser pop-up.
| void XGUI_ContextMenuMgr::addViewerMenu | ( | QMenu * | theMenu | ) | const |
Add menu items for Viewer pop-up.
| QStringList XGUI_ContextMenuMgr::actionObjectGroups | ( | const QString & | theName | ) |
Returns a list of object group names of the action.
| theName | a name of the action |
| void XGUI_ContextMenuMgr::updateObjectBrowserMenu | ( | ) |
Updates menu for object browser.
| void XGUI_ContextMenuMgr::updateViewerMenu | ( | ) |
Updates menu for viewer.
|
signal |
Signal aabout triggered action.
| theId | an id of triggered action |
| isChecked | is checked flag |
|
signal |
A signal which is sent before context menu show.
|
signal |
A signal which is sent after context menu show.