Manages setting up the context menu that is shown when the user right-clicks or accesses the ContextMenu for an object, selection, or scene.
More...
Manages setting up the context menu that is shown when the user right-clicks or accesses the ContextMenu for an object, selection, or scene.
Definition at line 68 of file ContextMenuManager.h.
◆ ContextMenuManager()
Constructs a ContextMenuManager.
- Parameters
-
| [in] | manager | The model manager providing data context. |
◆ actionType()
Determines the built-in action type for the given QAction.
- Parameters
-
| [in] | action | The action to identify. |
- Returns
- The corresponding ContextMenuActions enum value.
◆ addContextMenuCallback()
Registers a custom context menu callback for a specific object.
- Parameters
-
| [in] | id | The UUID to associate with the callback. |
| [in] | callback | The callback to invoke for context menu events. |
◆ addContextMenuItems()
Populates the menu with context-appropriate items for the given selection.
- Parameters
-
| [in] | menu | The menu to populate. |
| [in] | ids | The UUIDs of the selected objects. |
| [in] | selection_info | The selection context information. |
◆ contextMenu()
Handles execution of a triggered context menu action.
- Parameters
-
| [in] | action | The action that was triggered. |
| [in] | ids | The UUIDs of the selected objects. |
| [in] | selection_info | The selection context information. |
| [in] | origin | The popup origin for positioning result dialogs. |
◆ hasContextMenuCallback()
| virtual bool ContextMenuManager::hasContextMenuCallback |
( |
const UUID & | id | ) |
const |
|
virtual |
Checks whether a custom context menu callback exists for the given UUID.
- Parameters
-
- Returns
- True if a callback is registered for the UUID.
◆ removeContextMenuCallback()
| virtual void ContextMenuManager::removeContextMenuCallback |
( |
const UUID & | id | ) |
|
|
virtual |
Removes a custom context menu callback by UUID.
- Parameters
-
| [in] | id | The UUID of the callback to remove. |
The documentation for this class was generated from the following file: