|
SHAPER
9.15.0
|
A class for management of module specific menu. More...

Public Slots | |
| void | onAction (bool isChecked) |
| Processes the context menu action click. More... | |
Public Member Functions | |
| PartSet_MenuMgr (PartSet_Module *theModule) | |
| Constructor. More... | |
| QAction * | action (const QString &theId) const |
| Returns action according to the given ID. More... | |
| bool | addViewerMenu (const QMap< QString, QAction * > &theStdActions, QWidget *theParent, QMap< int, QAction * > &theMenuActions) const |
| Add menu items for viewer into the actions map. More... | |
| void | updateViewerMenu (const QMap< QString, QAction * > &theStdActions) |
| Update state of pop-up menu items in viewer. More... | |
| void | activatePartSet () const |
| Activates a PartSet document. More... | |
| virtual void | grantedOperationIds (ModuleBase_Operation *theOperation, QStringList &theIds) const |
| Returns list of granted operation indices. More... | |
| void | activatePart (ResultPartPtr thePart) const |
| Activates a Part document. More... | |
Protected Member Functions | |
| virtual bool | eventFilter (QObject *theObj, QEvent *theEvent) |
| Redefinition of virtual method. More... | |
A class for management of module specific menu.
| PartSet_MenuMgr::PartSet_MenuMgr | ( | PartSet_Module * | theModule | ) |
Constructor.
| theModule | a parent module |
| QAction * PartSet_MenuMgr::action | ( | const QString & | theId | ) | const |
Returns action according to the given ID.
| theId | an action identifier, it should be uniqued in the bounds of the module |
| bool PartSet_MenuMgr::addViewerMenu | ( | const QMap< QString, QAction * > & | theStdActions, |
| QWidget * | theParent, | ||
| QMap< int, QAction * > & | theMenuActions | ||
| ) | const |
Add menu items for viewer into the actions map.
| theStdActions | a map of standard actions |
| theParent | a parent widget for the |
| theMenuActions | map of action/menu for the desirable index in the viewer menu |
| void PartSet_MenuMgr::updateViewerMenu | ( | const QMap< QString, QAction * > & | theStdActions | ) |
Update state of pop-up menu items in viewer.
| theStdActions | - a map of standard actions |
| void PartSet_MenuMgr::activatePartSet | ( | ) | const |
Activates a PartSet document.
|
virtual |
Returns list of granted operation indices.
| void PartSet_MenuMgr::activatePart | ( | ResultPartPtr | thePart | ) | const |
Activates a Part document.
|
slot |
Processes the context menu action click.
| isChecked | a state of toggle if the action is checkable |