![]() |
Crossfire Resources Editor
|
Qt model representing all items in CRE, with the exception of experience. More...
#include <AssetModel.h>
Public Member Functions | |
AssetModel (AssetWrapper *assets, QObject *parent) | |
virtual bool | canDropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override |
virtual int | columnCount (const QModelIndex &parent) const override |
virtual QVariant | data (const QModelIndex &index, int role) const override |
virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override |
virtual Qt::ItemFlags | flags (const QModelIndex &index) const override |
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
virtual QModelIndex | index (int row, int column, const QModelIndex &parent) const override |
virtual QMimeData * | mimeData (const QModelIndexList &indexes) const override |
virtual QModelIndex | parent (const QModelIndex &index) const override |
virtual int | rowCount (const QModelIndex &parent) const override |
virtual | ~AssetModel () |
Protected Slots | |
void | assetModified (AssetWrapper *asset, AssetWrapper::ChangeType type, int extra) |
Private Attributes | |
AssetWrapper * | myAssets |
Qt model representing all items in CRE, with the exception of experience.
Definition at line 29 of file AssetModel.h.
AssetModel::AssetModel | ( | AssetWrapper * | assets, |
QObject * | parent | ||
) |
Definition at line 18 of file AssetModel.cpp.
References assetModified(), and myAssets.
|
virtual |
Definition at line 23 of file AssetModel.cpp.
|
protectedslot |
Definition at line 155 of file AssetModel.cpp.
References AssetWrapper::AfterChildAdd, AssetWrapper::AfterChildRemove, AssetWrapper::AfterLayoutChange, AssetWrapper::AssetUpdated, AssetWrapper::BeforeChildAdd, AssetWrapper::BeforeChildRemove, AssetWrapper::BeforeLayoutChange, AssetWrapper::child(), AssetWrapper::childrenCount(), AssetWrapper::displayParent(), and parent().
Referenced by AssetModel().
|
overridevirtual |
Definition at line 128 of file AssetModel.cpp.
References AssetWrapper::canDrop(), data(), and parent().
|
overridevirtual |
Definition at line 26 of file AssetModel.cpp.
|
overridevirtual |
Definition at line 70 of file AssetModel.cpp.
References AssetWrapper::displayIcon(), and index().
Referenced by canDropMimeData(), CREResourcesWindow::CREResourcesWindow(), dropMimeData(), and mimeData().
|
overridevirtual |
Definition at line 141 of file AssetModel.cpp.
References data(), AssetWrapper::drop(), and parent().
|
overridevirtual |
Definition at line 101 of file AssetModel.cpp.
References index().
|
overridevirtual |
Definition at line 89 of file AssetModel.cpp.
|
overridevirtual |
Definition at line 30 of file AssetModel.cpp.
References AssetWrapper::child(), AssetWrapper::childrenCount(), myAssets, and parent().
Referenced by data(), CREMainWindow::doResourceWindow(), flags(), mimeData(), and parent().
|
overridevirtual |
Definition at line 112 of file AssetModel.cpp.
References data(), and index().
|
overridevirtual |
Definition at line 47 of file AssetModel.cpp.
References index().
Referenced by assetModified(), canDropMimeData(), dropMimeData(), index(), and rowCount().
|
overridevirtual |
Definition at line 63 of file AssetModel.cpp.
References AssetWrapper::childrenCount(), myAssets, and parent().
|
private |
Definition at line 52 of file AssetModel.h.
Referenced by AssetModel(), index(), and rowCount().