Emergency 20 Dokumentation  4.2.0
em5::editor::FireComponentListModel Class Reference

Fire component list model. More...

#include <FireComponentListModel.h>

Inheritance diagram for em5::editor::FireComponentListModel:

Public Types

enum  FireComponentListModelRoles { FireEntityIdRole = Qt::UserRole+1 }
 

Public Member Functions

 FireComponentListModel (QObject *parent)
 
virtual ~FireComponentListModel ()
 
void updateFireComponentList (const std::vector< em5::FireComponent * > &fireComponentList)
 
void onUndoOperationExecuted (const qsf::editor::base::Operation &operation)
 
void onRedoOperationExecuted (const qsf::editor::base::Operation &operation)
 

Protected Member Functions

virtual int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 

Detailed Description

Fire component list model.

Member Enumeration Documentation

Constructor & Destructor Documentation

em5::editor::FireComponentListModel::FireComponentListModel ( QObject *  parent)
explicit
virtual em5::editor::FireComponentListModel::~FireComponentListModel ( )
virtual

Member Function Documentation

virtual QVariant em5::editor::FireComponentListModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
overrideprotectedvirtual
void em5::editor::FireComponentListModel::onRedoOperationExecuted ( const qsf::editor::base::Operation operation)
void em5::editor::FireComponentListModel::onUndoOperationExecuted ( const qsf::editor::base::Operation operation)
virtual int em5::editor::FireComponentListModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
overrideprotectedvirtual
void em5::editor::FireComponentListModel::updateFireComponentList ( const std::vector< em5::FireComponent * > &  fireComponentList)

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