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

Inherits QAbstractTableModel, ScriptCanvas::GraphVariableManagerNotificationBus::Handler, and ScriptCanvas::VariableNotificationBus::MultiHandler.

Public Types

enum  ColumnIndex {
  Name , Type , DefaultValue , Scope ,
  InitialValueSource , Count
}
 
enum  CustomRole { VarIdRole = Qt::UserRole }
 

Signals

void VariableAdded (QModelIndex modelIndex)
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (GraphVariablesModel, AZ::SystemAllocator)
 
 GraphVariablesModel (QObject *parent=nullptr)
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QStringList mimeTypes () const override
 
QMimeData * mimeData (const QModelIndexList &indexes) const override
 
void SetActiveScene (const ScriptCanvas::ScriptCanvasId &scriptCanvasId)
 
ScriptCanvas::ScriptCanvasId GetScriptCanvasId () const
 
void OnVariableAddedToGraph (const ScriptCanvas::VariableId &variableId, AZStd::string_view variableName) override
 
void OnVariableRemovedFromGraph (const ScriptCanvas::VariableId &variableId, AZStd::string_view variableName) override
 
void OnVariableNameChangedInGraph (const ScriptCanvas::VariableId &variableId, AZStd::string_view variableName) override
 
void OnVariableValueChanged () override
 
void OnVariableScopeChanged () override
 
void OnVariableInitialValueSourceChanged () override
 
void OnVariablePriorityChanged () override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
ScriptCanvas::VariableId FindVariableIdForIndex (const QModelIndex &index) const
 
ScriptCanvas::GraphScopedVariableId FindScopedVariableIdForIndex (const QModelIndex &index) const
 
int FindRowForVariableId (const ScriptCanvas::VariableId &variableId) const
 
bool IsFunction () const
 

Static Public Member Functions

static const char * GetMimeType ()
 

Static Public Attributes

static const char * m_columnNames [static_cast< int >(ColumnIndex::Count)]
 

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