Crossfire Server, Trunk
ArchetypesModel Class Reference

#include <ArchetypesModel.h>

+ Inheritance diagram for ArchetypesModel:
+ Collaboration diagram for ArchetypesModel:

Signals

void archetypeModified (archetype *arch)
 

Public Member Functions

 ArchetypesModel ()
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
virtual ~ArchetypesModel ()
 

Private Attributes

std::vector< CREWrapperObject * > myMonsters
 

Detailed Description

Definition at line 14 of file ArchetypesModel.h.

Constructor & Destructor Documentation

◆ ArchetypesModel()

ArchetypesModel::ArchetypesModel ( )

Definition at line 19 of file ArchetypesModel.cpp.

References archininventory::arch, AssetsManager::archetypes(), AssetsCollection< T, Key >::each(), FLAG_MONSTER, getManager(), and QUERY_FLAG.

+ Here is the call graph for this function:

◆ ~ArchetypesModel()

ArchetypesModel::~ArchetypesModel ( )
virtual

Definition at line 29 of file ArchetypesModel.cpp.

References myMonsters.

Member Function Documentation

◆ archetypeModified

void ArchetypesModel::archetypeModified ( archetype arch)
signal

Referenced by setData().

+ Here is the caller graph for this function:

◆ columnCount()

int ArchetypesModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 38 of file ArchetypesModel.cpp.

References PROPERTY_COUNT, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ data()

QVariant ArchetypesModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const

Definition at line 43 of file ArchetypesModel.cpp.

References npc_dialog::index, myMonsters, and properties.

◆ flags()

Qt::ItemFlags ArchetypesModel::flags ( const QModelIndex &  index) const

Definition at line 67 of file ArchetypesModel.cpp.

References flags, npc_dialog::index, properties, and PROPERTY_COUNT.

◆ headerData()

QVariant ArchetypesModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Definition at line 51 of file ArchetypesModel.cpp.

References CREPixmap::getIcon(), myMonsters, and properties.

+ Here is the call graph for this function:

◆ rowCount()

int ArchetypesModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 33 of file ArchetypesModel.cpp.

References myMonsters, and nlohmann::detail::void().

+ Here is the call graph for this function:

◆ setData()

bool ArchetypesModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Field Documentation

◆ myMonsters

std::vector<CREWrapperObject *> ArchetypesModel::myMonsters
private

Definition at line 31 of file ArchetypesModel.h.

Referenced by data(), headerData(), rowCount(), setData(), and ~ArchetypesModel().


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