 |
Crossfire Resources Editor
|
Go to the documentation of this file.
13 #ifndef ASSETS_COLLECTION_WRAPPER_H
14 #define ASSETS_COLLECTION_WRAPPER_H
17 #include "../ResourcesManager.h"
18 #include "AssetsCollection.h"
25 collection->each([&] (T *asset) {
37 virtual bool canDrop(
const QMimeData *,
int)
const override {
return true; }
Class managing all assets, tracking in which file they are, which are modified, and such.
ArchetypeWrapper * wrap(archetype *arch, AssetWrapper *parent)
AssetsCollectionWrapper(AssetWrapper *parent, const QString &name, AssetsCollection< T > *collection, ResourcesManager *resources, const QString &tip)
static const char * tipProperty
virtual bool canDrop(const QMimeData *, int) const override
virtual AssetWrapper * child(int index) override
Base class for all assets that can be displayed or edited by CRE.
virtual QString displayName() const
virtual int childIndex(AssetWrapper *child) override
virtual int childrenCount() const override
QVector< AssetWrapper * > myAssets
static bool compareByDisplayName(const AssetWrapper *left, const AssetWrapper *right)