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 (ResourcesManager *resourcesManager)
 
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< ObjectWrapper * > myMonsters
 

Detailed Description

Definition at line 25 of file ArchetypesModel.h.

Constructor & Destructor Documentation

◆ ArchetypesModel()

ArchetypesModel::ArchetypesModel ( ResourcesManager resourcesManager)

Definition at line 44 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 52 of file ArchetypesModel.cpp.

Member Function Documentation

◆ archetypeModified

void ArchetypesModel::archetypeModified ( archetype arch)
signal

◆ columnCount()

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

Definition at line 60 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 65 of file ArchetypesModel.cpp.

References npc_dialog::index, myMonsters, and properties.

◆ flags()

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

Definition at line 89 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 73 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 55 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 
)

Definition at line 107 of file ArchetypesModel.cpp.

References npc_dialog::index, myMonsters, properties, and autojail::value.

Field Documentation

◆ myMonsters

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

Definition at line 42 of file ArchetypesModel.h.

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


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