![]() |
Crossfire Resources Editor
|
#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 |
Definition at line 25 of file ArchetypesModel.h.
| ArchetypesModel::ArchetypesModel | ( | ResourcesManager * | resourcesManager | ) |
Definition at line 44 of file ArchetypesModel.cpp.
|
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.
| QVariant ArchetypesModel::data | ( | const QModelIndex & | index, |
| int | role = Qt::DisplayRole |
||
| ) | const |
Definition at line 65 of file ArchetypesModel.cpp.
References myMonsters, and properties.
| Qt::ItemFlags ArchetypesModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 89 of file ArchetypesModel.cpp.
References 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.
Here is the call graph for this function:| int ArchetypesModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 55 of file ArchetypesModel.cpp.
References myMonsters.
| bool ArchetypesModel::setData | ( | const QModelIndex & | index, |
| const QVariant & | value, | ||
| int | role = Qt::EditRole |
||
| ) |
Definition at line 107 of file ArchetypesModel.cpp.
References myMonsters, and properties.
|
private |
Definition at line 42 of file ArchetypesModel.h.
Referenced by data(), headerData(), rowCount(), and setData().