 |
Crossfire Resources Editor
|
Go to the documentation of this file.
16 #include "../archetypes/ArchetypeWrapper.h"
56 for (linked_char* ing =
myWrappedItem->ingred; ing; ing = ing->next)
80 return QString(
"%1 (no archetype?)").arg(
myWrappedItem->title);
84 return QString(
"%1 (no archetype?)").arg(
myWrappedItem->title);
88 if (base->clone.title) {
89 return QString(
"%1 %2").arg(base->clone.name, base->clone.title);
91 return base->clone.name;
93 return QString(
"%1 of %2").arg(base->clone.name,
myWrappedItem->title);
103 const archetype* base = NULL;
107 if (!face && base != NULL) {
116 for (
size_t i = 0; i <
wrappedItem()->arch_names; i++) {
117 if (strcmp(
wrappedItem()->arch_name[i], arch->wrappedItem()->name) == 0) {
118 hint =
"alchemy product";
const recipe * myWrappedItem
virtual QString displayName() const override
Class managing all assets, tracking in which file they are, which are modified, and such.
static QIcon getIcon(uint16_t faceNumber)
RecipeWrapper(AssetWrapper *parent, const recipe *rp, ResourcesManager *resources)
virtual QIcon displayIcon() const override
Base class for all assets that can be displayed or edited by CRE.
static std::unique_ptr< QMutexLocker > lockCrossfireData()
virtual PossibleUse uses(const AssetWrapper *asset, std::string &hint) const override
const recipe * wrappedItem() const
Base class for assets mapping to a native Crossfire structure.