Open 3D Engine GraphCanvas Gem API Reference  24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
GraphCanvas::EditorContextMenu Class Reference

Inherits QMenu.

Inherited by GraphCanvas::BookmarkContextMenu, GraphCanvas::CollapsedNodeGroupContextMenu, GraphCanvas::CommentContextMenu, GraphCanvas::ConnectionContextMenu, GraphCanvas::NodeContextMenu, GraphCanvas::NodeGroupContextMenu, GraphCanvas::SceneContextMenu, and GraphCanvas::SlotContextMenu.

Public Types

enum class  MenuActionSection { Front , Default , Back }
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (EditorContextMenu, AZ::SystemAllocator)
 
 EditorContextMenu (EditorId editorId, QWidget *parent=nullptr)
 
void SetIsToolBarMenu (bool isToolBarMenu)
 
bool IsToolBarMenu () const
 
EditorId GetEditorId () const
 
void AddActionGroup (const ActionGroupId &actionGroup)
 
void AddMenuAction (QAction *contextMenuAction, MenuActionSection section=MenuActionSection::Default)
 
void AddMenuActionFront (QAction *contextMenuAction)
 
void AddMenuActionBack (QAction *contextMenuAction)
 
void AddNodePaletteMenuAction (const NodePaletteConfig &config)
 
bool IsFinalized () const
 
QMenu * FindSubMenu (AZStd::string_view subMenuPath)
 
void RefreshActions (const GraphId &graphId, const AZ::EntityId &targetMemberId)
 
void showEvent (QShowEvent *showEvent) override
 
const NodePaletteWidgetGetNodePalette () const
 
void ResetSourceSlotFilter ()
 
void FilterForSourceSlot (const GraphId &graphId, const AZ::EntityId &sourceSlotId)
 

Protected Slots

virtual void SetupDisplay ()
 
virtual void HandleContextMenuSelection ()
 

Protected Member Functions

virtual void OnRefreshActions (const GraphId &graphId, const AZ::EntityId &targetMemberId)
 
void keyPressEvent (QKeyEvent *keyEvent) override
 
void ConstructMenu ()
 
void AddUnprocessedActions (AZStd::vector< QAction * > &actions)
 

Protected Attributes

NodePaletteWidgetm_nodePalette = nullptr
 
bool m_finalized
 
bool m_isToolBarMenu
 
AZ::u32 m_userNodePaletteWidth = 300
 
EditorId m_editorId
 
AZStd::vector< ActionGroupId > m_actionGroupOrdering
 
AZStd::unordered_set< ActionGroupId > m_actionGroups
 
AZStd::vector< QAction * > m_unprocessedFrontActions
 
AZStd::vector< QAction * > m_unprocessedActions
 
AZStd::vector< QAction * > m_unprocessedBackActions
 
AZStd::unordered_map< AZStd::string, QMenu * > m_subMenuMap
 

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