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::Widget::CommandListDataModel Class Reference

Inherits QAbstractTableModel, and ScriptCanvasCommandLineRequestBus::Handler.

Classes

struct  Entry
 

Public Types

enum  ColumnIndex { CommandIndex , DescriptionIndex , TrailIndex , Count }
 
enum  CustomRole {
  Node = Qt::UserRole , Types , EBusSender , EBusHandler ,
  Commands
}
 

Public Member Functions

 AZ_CLASS_ALLOCATOR (CommandListDataModel, AZ::SystemAllocator)
 
 CommandListDataModel (QWidget *parent=nullptr)
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
QModelIndex parent (const QModelIndex &child) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
bool HasMatches (const AZStd::string &input)
 

Protected Member Functions

void AddCommand (const AZStd::string commandName, const AZStd::string description, Command::Functor f) override
 
void Invoke (const char *commandName) override
 
void InvokeWithArguments (const char *commandName, const AZStd::vector< AZStd::string > &args) override
 
ScriptCanvasCommandLineRequests::CommandNameList GetCommands () override
 

Protected Attributes

AZStd::vector< Entrym_entries
 

Static Protected Attributes

static CommandRegistry m_commands
 

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