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::NodePaletteTreeItem Class Reference

Inherits GraphCanvas::GraphCanvasTreeItem.

Inherited by GraphCanvas::IconDecoratedNodePaletteTreeItem.

Public Types

enum  Column { IndexForce = -1 , Name , Customization , Count }
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (NodePaletteTreeItem, AZ::SystemAllocator)
 
 AZ_RTTI (NodePaletteTreeItem, "{D1BAAF63-F823-4D2A-8F55-01AC2A659FF5}", GraphCanvas::GraphCanvasTreeItem)
 
 NodePaletteTreeItem (AZStd::string_view name, EditorId editorId)
 
const QString & GetName () const
 
int GetColumnCount () const override final
 
QVariant Data (const QModelIndex &index, int role) const override final
 
Qt::ItemFlags Flags (const QModelIndex &index) const override final
 
void SetToolTip (const QString &toolTip)
 
void SetItemOrdering (int ordering)
 
void SetStyleOverride (const AZStd::string &styleOverride)
 
const AZStd::string & GetStyleOverride () const
 
void SetTitlePalette (const AZStd::string &palette, bool force=false)
 
const AZStd::string & GetTitlePalette () const
 
void SetHovered (bool hovered)
 
bool IsHovered () const
 
void SetSelected (bool selected)
 
bool IsSelected () const
 
void SetEnabled (bool enabled)
 
bool IsEnabled () const
 
void SetHighlight (const AZStd::pair< int, int > &highlight)
 
bool HasHighlight () const
 
const AZStd::pair< int, int > & GetHighlight () const
 
void ClearHighlight ()
 
void SignalClicked (int row)
 
bool SignalDoubleClicked (int row)
 
void ClearError ()
 
bool HasError () const
 
void SetError (const AZStd::string &errorString)
 
virtual AZ::IO::Path GetTranslationDataPath () const
 
virtual void GenerateTranslationData ()
 
- Public Member Functions inherited from GraphCanvas::GraphCanvasTreeItem
 AZ_CLASS_ALLOCATOR (GraphCanvasTreeItem, AZ::SystemAllocator)
 
 AZ_RTTI (GraphCanvasTreeItem, "{BB2B829D-64B5-4D33-9390-85056AA0F3AA}")
 
void SetAllowPruneOnEmpty (bool allowsEmpty)
 
bool AllowPruneOnEmpty () const
 
void DetachItem ()
 
int GetChildCount () const
 
void ClearChildren ()
 
GraphCanvasTreeItemFindChildByRow (int row) const
 
int FindRowUnderParent () const
 
GraphCanvasTreeItemGetParent () const
 
void RegisterModel (GraphCanvasTreeModel *itemModel)
 
QModelIndex GetIndexFromModel ()
 
virtual bool SetData ([[maybe_unused]] const QModelIndex &index, [[maybe_unused]] const QVariant &value, [[maybe_unused]] int role)
 
virtual GraphCanvasMimeEventCreateMimeEvent () const
 
template<class NodeType , class... Params>
NodeType * CreateChildNode (Params &&... rest)
 
template<class NodeType , class... Params>
NodeType * CreateChildNodeWithoutAddSignal (Params &&... rest)
 

Static Public Attributes

static constexpr const char * DefaultNodeTitlePalette = "DefaultNodeTitlePalette"
 
static const int k_defaultItemOrdering
 

Protected Member Functions

void PreOnChildAdded (GraphCanvasTreeItem *item) override
 
void SetName (const QString &name)
 
const EditorId & GetEditorId () const
 
bool LessThan (const GraphCanvasTreeItem *graphItem) const override
 
virtual QVariant OnData (const QModelIndex &index, int role) const
 
virtual Qt::ItemFlags OnFlags () const
 
virtual void OnStyleOverrideChange ()
 
virtual void OnTitlePaletteChanged ()
 
virtual void OnHoverStateChanged ()
 
virtual void OnSelectionStateChanged ()
 
virtual void OnEnabledStateChanged ()
 
virtual void OnClicked (int row)
 
virtual bool OnDoubleClicked (int row)
 
- Protected Member Functions inherited from GraphCanvas::GraphCanvasTreeItem
int FindRowForChild (const GraphCanvasTreeItem *item) const
 
void RemoveParent (GraphCanvasTreeItem *item)
 
void AddChild (GraphCanvasTreeItem *item, bool signalAdd=true)
 
void RemoveChild (GraphCanvasTreeItem *item, bool deleteObject=true)
 
void SignalLayoutAboutToBeChanged ()
 
void SignalLayoutChanged ()
 
void SignalDataChanged ()
 
virtual void OnChildAdded (GraphCanvasTreeItem *item)
 
virtual void OnChildDataChanged (GraphCanvasTreeItem *item)
 

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