 |
Crossfire Resources Editor
|
Go to the documentation of this file.
14 #include "../ResourcesManager.h"
15 #include "../CREMapInformationManager.h"
16 #include "../scripts/ScriptFile.h"
17 #include "../archetypes/ArchetypeWrapper.h"
20 myResourcesManager(resources) {
33 for (
int idx = 0; idx <
myMaps.size(); idx++) {
53 std::sort(
myMaps.begin(),
myMaps.end(), [] (
const auto& left,
const auto& right) {
54 return (left->name().compare(right->name(), Qt::CaseInsensitive) < 0) ||
55 (left->name().compare(right->name(), Qt::CaseInsensitive) == 0 &&
56 left->path().compare(right->path(), Qt::CaseInsensitive) < 0);
RegionWrapper(AssetWrapper *parent, region *reg, ResourcesManager *resources)
Class managing all assets, tracking in which file they are, which are modified, and such.
virtual AssetWrapper * child(int index) override
CREMapInformationManager * getMapInformationManager()
virtual int childIndex(AssetWrapper *child) override
Base class for all assets that can be displayed or edited by CRE.
QList< CREMapInformation * > myMaps
Information about a script file.
void mapBrowsingFinished()
virtual int childrenCount() const override
ResourcesManager * myResourcesManager
void markModified(ChangeType change, int extra=0)
virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override
Base class for assets mapping to a native Crossfire structure.