Crossfire Server, Trunk
|
#include <ArchetypesModel.h>
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 |
Definition at line 25 of file ArchetypesModel.h.
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.
|
virtual |
Definition at line 52 of file ArchetypesModel.cpp.
|
signal |
int ArchetypesModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 60 of file ArchetypesModel.cpp.
References PROPERTY_COUNT, and nlohmann::detail::void().
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.
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.
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.
int ArchetypesModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 55 of file ArchetypesModel.cpp.
References myMonsters, and nlohmann::detail::void().
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.
|
private |
Definition at line 42 of file ArchetypesModel.h.
Referenced by data(), headerData(), rowCount(), and setData().