Go to the documentation of this file.
14 #include "../ResourcesManager.h"
15 #include "../CREPixmap.h"
98 QDataStream df(&ba, QIODevice::WriteOnly);
118 for (
auto arch : archs) {
void treasureModified(treasurelist *treasure)
static const char * Archetype
treasurelist * myWrappedItem
ResourcesManager * myResources
TreasureListWrapper(AssetWrapper *parent, treasurelist *list, ResourcesManager *resources)
arch
DIALOGCHECK MINARGS 1 MAXARGS 1
virtual void wasModified(AssetWrapper *asset, ChangeType type, int extra) override
ArchetypeWrapper * wrap(archetype *arch, AssetWrapper *parent)
void setSingleItem(bool isSingle)
virtual void drag(QMimeData *data) const override
virtual AssetWrapper * child(int child) override
AssetsManager * getManager()
virtual PossibleUse uses(const AssetWrapper *, std::string &) const override
static const char * TreasureList
sstring add_string(const char *str)
virtual void removeChild(AssetWrapper *child) override
virtual int childrenCount() const override
static QList< T * > extract(const QMimeData *data, const QString &mime, AssetsCollection< T > *assets)
void treasure_remove_item(treasurelist *list, int position)
virtual bool canDrop(const QMimeData *data, int row) const override
void remove(treasure *tr)
virtual void wasModified(AssetWrapper *asset, ChangeType type, int extra)
treasure * treasure_insert(treasurelist *list, int position)
void markModified(ChangeType change, int extra=0)
virtual void drop(const QMimeData *data, int row) override
virtual int childIndex(AssetWrapper *child) override