Crossfire Server, Trunk
|
#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 148 of file AssetModel.cpp.
References AssetWrapper::AfterChildAdd, AssetWrapper::AfterChildRemove, AssetWrapper::AfterLayoutChange, AssetWrapper::AssetUpdated, AssetWrapper::BeforeChildAdd, AssetWrapper::BeforeChildRemove, AssetWrapper::BeforeLayoutChange, AssetWrapper::child(), AssetWrapper::childrenCount(), disinfect::count, AssetWrapper::displayParent(), parent(), and is_valid_types_gen::type.
Referenced by AssetModel().
|
overridevirtual |
Definition at line 121 of file AssetModel.cpp.
References convert::action, AssetWrapper::canDrop(), data(), parent(), and nlohmann::detail::void().
|
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 134 of file AssetModel.cpp.
References convert::action, data(), AssetWrapper::drop(), parent(), and nlohmann::detail::void().
|
overridevirtual |
Definition at line 94 of file AssetModel.cpp.
References index().
|
overridevirtual |
Definition at line 82 of file AssetModel.cpp.
References nlohmann::detail::void().
|
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 105 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().