API Documentation
Loading...
Searching...
No Matches
ContextMenuManager Class Reference

#include <ContextMenuManager.h>

Collaboration diagram for ContextMenuManager:
[legend]

Public Member Functions

virtual ContextMenuActions actionType (QAction *action)
 
virtual void addContextMenuCallback (const UUID &id, ContextMenuCallback *callback)
 
virtual void addContextMenuItems (QMenu &menu, const Buffer< UUID > &ids=Buffer< UUID >(), const SelectionInfo &selection_info=SelectionInfo())
 
virtual void contextMenu (QAction *action, const Buffer< UUID > &ids, const SelectionInfo &selection_info=SelectionInfo(), PopupInfo origin=PopupInfo())
 
 ContextMenuManager (QTModelManager *manager)
 
virtual bool hasContextMenuCallback (const UUID &id) const
 
virtual void removeContextMenuCallback (const UUID &id)
 

Protected Attributes

Dictionary< UUID, ContextMenuCallback * > m_custom_context_callbacks
 
QTModelManagerm_manager
 

Constructor & Destructor Documentation

◆ ContextMenuManager()

Member Function Documentation

◆ actionType()

virtual ContextMenuActions actionType ( QAction * action)
virtual

◆ addContextMenuCallback()

virtual void addContextMenuCallback ( const UUID & id,
ContextMenuCallback * callback )
virtual

◆ addContextMenuItems()

virtual void addContextMenuItems ( QMenu & menu,
const Buffer< UUID > & ids = BufferUUID >(),
const SelectionInfo & selection_info = SelectionInfo() )
virtual

◆ contextMenu()

virtual void contextMenu ( QAction * action,
const Buffer< UUID > & ids,
const SelectionInfo & selection_info = SelectionInfo(),
PopupInfo origin = PopupInfo() )
virtual

◆ hasContextMenuCallback()

virtual bool hasContextMenuCallback ( const UUID & id) const
virtual

◆ removeContextMenuCallback()

virtual void removeContextMenuCallback ( const UUID & id)
virtual

Member Data Documentation

◆ m_custom_context_callbacks

Dictionary<UUID, ContextMenuCallback*> m_custom_context_callbacks
protected

◆ m_manager

QTModelManager* m_manager
protected

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