NDEVR
API Documentation
ContextMenuCallbackabstract

Allows for customization of what is shown when the user right-clicks or accesses the ContextMenu for an object, selection, or scene. More...

Inheritance diagram for ContextMenuCallback:
[legend]
Collaboration diagram for ContextMenuCallback:
[legend]

Public Member Functions

virtual ~ContextMenuCallback ()
 Destructor.
virtual void addContextMenuItems (QTModelManager *manager, QMenu &menu, const Buffer< UUID > &ids, const SelectionInfo &cursor_location)=0
 Adds custom menu items to the context menu.
virtual void contextMenu (QTModelManager *manager, QAction *action, const Buffer< UUID > &ids, const SelectionInfo &cursor_location, PopupInfo origin)=0
 Handles execution of a context menu action.

Detailed Description

Allows for customization of what is shown when the user right-clicks or accesses the ContextMenu for an object, selection, or scene.


Definition at line 39 of file ContextMenuManager.h.

Member Function Documentation

◆ addContextMenuItems()

virtual void ContextMenuCallback::addContextMenuItems ( QTModelManager * manager,
QMenu & menu,
const Buffer< UUID > & ids,
const SelectionInfo & cursor_location )
pure virtual

Adds custom menu items to the context menu.

Parameters
[in]managerThe model manager providing data context.
[in]menuThe menu to populate with items.
[in]idsThe UUIDs of the selected objects.
[in]cursor_locationThe selection info describing the cursor context.

◆ contextMenu()

virtual void ContextMenuCallback::contextMenu ( QTModelManager * manager,
QAction * action,
const Buffer< UUID > & ids,
const SelectionInfo & cursor_location,
PopupInfo origin )
pure virtual

Handles execution of a context menu action.

Parameters
[in]managerThe model manager providing data context.
[in]actionThe action that was triggered.
[in]idsThe UUIDs of the selected objects.
[in]cursor_locationThe selection info describing the cursor context.
[in]originThe popup origin information for positioning dialogs.

The documentation for this class was generated from the following file: