Crossfire Server, Trunk
|
#include <AssetWrapper.h>
Public Types | |
enum | ChangeType { AssetUpdated, BeforeChildAdd, AfterChildAdd, BeforeChildRemove, AfterChildRemove, BeforeLayoutChange, AfterLayoutChange } |
enum | PossibleUse { Uses, ChildrenMayUse, DoesntUse } |
Public Slots | |
virtual void | removeChild (AssetWrapper *) |
Signals | |
void | dataModified (AssetWrapper *asset, AssetWrapper::ChangeType type, int extra) |
void | modified () |
Public Member Functions | |
AssetWrapper (AssetWrapper *parent, const QString &panelName="empty") | |
virtual bool | canDrag () const |
virtual bool | canDrop (const QMimeData *, int) const |
virtual AssetWrapper * | child (int) |
virtual int | childIndex (AssetWrapper *) |
virtual int | childrenCount () const |
virtual QIcon | displayIcon () const |
virtual QString | displayName () const =0 |
virtual QString | displayPanelName () const |
AssetWrapper * | displayParent () const |
virtual void | drag (QMimeData *) const |
virtual void | drop (const QMimeData *, int) |
virtual void | fillMenu (QMenu *) |
void | markModified (ChangeType change, int extra=0) |
AssetWrapper * | self () |
void | setDisplayParent (AssetWrapper *parent) |
virtual PossibleUse | uses (const AssetWrapper *, std::string &) const |
virtual | ~AssetWrapper () override |
Static Public Member Functions | |
static bool | compareByDisplayName (const AssetWrapper *left, const AssetWrapper *right) |
Static Public Attributes | |
static const char * | tipProperty = "_cre_internal" |
Protected Member Functions | |
virtual void | wasModified (AssetWrapper *asset, ChangeType type, int extra) |
Protected Attributes | |
QString | myPanelName |
AssetWrapper * | myParent |
Properties | |
QString | displayName |
AssetWrapper | self |
Base class for all assets that can be displayed or edited by CRE.
Definition at line 25 of file AssetWrapper.h.
Enumerator | |
---|---|
AssetUpdated | |
BeforeChildAdd | |
AfterChildAdd | |
BeforeChildRemove | |
AfterChildRemove | |
BeforeLayoutChange | |
AfterLayoutChange |
Definition at line 33 of file AssetWrapper.h.
Enumerator | |
---|---|
Uses | |
ChildrenMayUse | |
DoesntUse |
Definition at line 32 of file AssetWrapper.h.
|
inline |
Definition at line 36 of file AssetWrapper.h.
|
inlineoverridevirtual |
Definition at line 39 of file AssetWrapper.h.
|
inlinevirtual |
Reimplemented in ArchetypeWrapper, TreasureListWrapper, and QuestStepWrapper.
Definition at line 60 of file AssetWrapper.h.
|
inlinevirtual |
Reimplemented in TreasureWrapper, TreasureListWrapper, QuestWrapper, QuestStepWrapper, AssetsCollectionWrapper< T >, AssetsCollectionWrapper< treasurelist >, AssetsCollectionWrapper< GeneralMessage >, AssetsCollectionWrapper< quest_definition >, AssetsCollectionWrapper< Face >, AssetsCollectionWrapper< archetype >, and AssetsCollectionWrapper< Animations >.
Definition at line 62 of file AssetWrapper.h.
Referenced by AssetModel::canDropMimeData().
|
inlinevirtual |
Reimplemented in QuestWrapper, ArtifactListWrapper, ArtifactsWrapper, RecipesWrapper, RecipeListWrapper, ArchetypeWrapper, RegionWrapper, AssetsCollectionWrapper< T >, AssetsCollectionWrapper< treasurelist >, AssetsCollectionWrapper< GeneralMessage >, AssetsCollectionWrapper< quest_definition >, AssetsCollectionWrapper< Face >, AssetsCollectionWrapper< archetype >, AssetsCollectionWrapper< Animations >, SoundFiles, AttackMessagesWrapper, AllAssets, RegionsWrapper, TreasureYesNo, TreasureWrapper, AssetWithArtifacts< T >, TreasureListWrapper, AssetWithArtifacts< treasure >, AssetWithArtifacts< archetype >, MessageManager, RandomMaps, GameSounds, and ScriptFileManager.
Definition at line 50 of file AssetWrapper.h.
Referenced by AssetModel::assetModified(), and AssetModel::index().
|
inlinevirtual |
Reimplemented in TreasureYesNo, TreasureWrapper, AssetWithArtifacts< T >, AssetWithArtifacts< treasure >, AssetWithArtifacts< archetype >, TreasureListWrapper, ArchetypeWrapper, RegionWrapper, AssetsCollectionWrapper< T >, MessageManager, AssetsCollectionWrapper< treasurelist >, AssetsCollectionWrapper< GeneralMessage >, AssetsCollectionWrapper< quest_definition >, AssetsCollectionWrapper< Face >, AssetsCollectionWrapper< archetype >, AssetsCollectionWrapper< Animations >, SoundFiles, RandomMaps, GameSounds, ScriptFileManager, AllAssets, RegionsWrapper, AttackMessagesWrapper, QuestWrapper, ArtifactListWrapper, ArtifactsWrapper, RecipesWrapper, and RecipeListWrapper.
Definition at line 51 of file AssetWrapper.h.
Referenced by QuestStepWrapper::drop().
|
inlinevirtual |
Reimplemented in TreasureYesNo, QuestWrapper, TreasureWrapper, TreasureListWrapper, ArchetypeWrapper, AssetWithArtifacts< T >, RegionWrapper, ArtifactListWrapper, AssetsCollectionWrapper< T >, MessageManager, ArtifactsWrapper, RecipesWrapper, SoundFiles, RandomMaps, RecipeListWrapper, GameSounds, AttackMessagesWrapper, ScriptFileManager, AllAssets, and RegionsWrapper.
Definition at line 49 of file AssetWrapper.h.
Referenced by AssetModel::assetModified(), AssetModel::index(), and AssetModel::rowCount().
|
inlinestatic |
Definition at line 66 of file AssetWrapper.h.
References displayName.
Referenced by AssetsCollectionWrapper< Animations >::AssetsCollectionWrapper(), and RegionsWrapper::RegionsWrapper().
|
signal |
|
inlinevirtual |
Reimplemented in TreasureYesNo, QuestWrapper, TreasureWrapper, RecipeWrapper, GeneralMessageWrapper, TreasureListWrapper, ArchetypeWrapper, ArtifactWrapper, FaceWrapper, and AnimationWrapper.
Definition at line 44 of file AssetWrapper.h.
Referenced by AssetModel::data().
|
pure virtual |
Implemented in TreasureYesNo, ObjectWrapper, MessageFile, QuestWrapper, ScriptFile, TreasureWrapper, CREMapInformation, RecipeWrapper, GeneralMessageWrapper, QuestStepWrapper, TreasureListWrapper, ArchetypeWrapper, FacesetsWrapper, RegionWrapper, ArtifactWrapper, ScriptFileManager, AnimationWrapper, FaceWrapper, MessageManager, ArtifactListWrapper, ArtifactsWrapper, RandomMap, RecipeListWrapper, RandomMaps, GameSounds, SoundFiles, SoundFile, AttackMessagesWrapper, AssetsCollectionWrapper< T >, RecipesWrapper, AllAssets, GameSound, RegionsWrapper, and SingleAttackWrapper.
|
inlinevirtual |
Definition at line 45 of file AssetWrapper.h.
References myPanelName.
|
inline |
Definition at line 46 of file AssetWrapper.h.
References myParent.
Referenced by AssetModel::assetModified(), and TreasureWrapper::displayName().
|
inlinevirtual |
Reimplemented in TreasureListWrapper, ArchetypeWrapper, and QuestStepWrapper.
Definition at line 61 of file AssetWrapper.h.
|
inlinevirtual |
Reimplemented in TreasureWrapper, TreasureListWrapper, QuestWrapper, and QuestStepWrapper.
Definition at line 63 of file AssetWrapper.h.
Referenced by QuestStepWrapper::drop(), and AssetModel::dropMimeData().
|
inlinevirtual |
Reimplemented in TreasureYesNo, QuestWrapper, TreasureWrapper, ArchetypeWrapper, QuestStepWrapper, ArchetypesWrapper, and QuestsWrapper.
Definition at line 64 of file AssetWrapper.h.
Referenced by ArchetypeWrapper::fillMenu(), and QuestWrapper::fillMenu().
|
inline |
Definition at line 55 of file AssetWrapper.h.
References modified(), and wasModified().
Referenced by ArchetypesWrapper::addArchetype(), QuestsWrapper::addQuest(), QuestWrapper::addStep(), TreasureWrapper::doAddChild(), TreasureWrapper::doRemoveChild(), TreasureListWrapper::drop(), QuestWrapper::drop(), ScriptFileManager::getFile(), RegionWrapper::mapAdded(), SoundFiles::refreshSounds(), TreasureListWrapper::removeChild(), QuestWrapper::removeChild(), TreasureWrapper::setArch(), TreasureWrapper::setArtifact(), ArtifactWrapper::setChance(), GeneralMessageWrapper::setChance(), TreasureWrapper::setChance(), QuestWrapper::setComment(), QuestStepWrapper::setConditions(), QuestStepWrapper::setDescription(), QuestWrapper::setDescription(), QuestStepWrapper::setEnd(), GeneralMessageWrapper::setFace(), QuestWrapper::setFace(), TreasureWrapper::setList(), TreasureWrapper::setListMagicAdjustment(), TreasureWrapper::setListMagicValue(), TreasureWrapper::setMagic(), GeneralMessageWrapper::setMessage(), TreasureWrapper::setNrof(), GeneralMessageWrapper::setQuest(), QuestWrapper::setQuestParent(), ArchetypeWrapper::setRaw(), QuestWrapper::setRestart(), TreasureListWrapper::setSingleItem(), QuestStepWrapper::setStep(), QuestWrapper::setSystem(), GeneralMessageWrapper::setTitle(), QuestWrapper::setTitle(), TreasureWrapper::swapYesNo(), AssetWithArtifacts< archetype >::updateArtifacts(), ArtifactListWrapper::wasModified(), and TreasureListWrapper::wasModified().
|
signal |
Referenced by TreasureListWrapper::drop(), markModified(), MessageFile::setModified(), and ResourcesManager::wrap().
|
inlinevirtualslot |
Reimplemented in QuestWrapper, TreasureWrapper, TreasureListWrapper, and TreasureYesNo.
Definition at line 71 of file AssetWrapper.h.
Referenced by QuestStepWrapper::fillMenu(), TreasureWrapper::fillMenu(), TreasureYesNo::fillMenu(), and TreasureYesNo::removeChild().
|
inline |
Definition at line 41 of file AssetWrapper.h.
|
inline |
Definition at line 47 of file AssetWrapper.h.
References myParent.
Referenced by CREMainWindow::CREMainWindow().
|
inlinevirtual |
Reimplemented in RecipeWrapper, QuestWrapper, MessageFile, TreasureWrapper, CREMapInformation, GeneralMessageWrapper, ArchetypeWrapper, RegionWrapper, ArtifactListWrapper, ArtifactWrapper, MessageManager, ArtifactsWrapper, RecipesWrapper, AnimationsWrapper, AnimationWrapper, FaceWrapper, RecipeListWrapper, GeneralMessagesWrapper, GameSounds, TreasuresWrapper, QuestsWrapper, RegionsWrapper, GameSound, FacesWrapper, TreasureListWrapper, and ArchetypesWrapper.
Definition at line 53 of file AssetWrapper.h.
References DoesntUse.
|
inlineprotectedvirtual |
Reimplemented in QuestWrapper, TreasureListWrapper, ArchetypeWrapper, GeneralMessageWrapper, and ArtifactListWrapper.
Definition at line 78 of file AssetWrapper.h.
References dataModified(), myParent, is_valid_types_gen::type, and wasModified().
Referenced by markModified(), ArtifactListWrapper::wasModified(), GeneralMessageWrapper::wasModified(), ArchetypeWrapper::wasModified(), TreasureListWrapper::wasModified(), wasModified(), and QuestWrapper::wasModified().
|
protected |
Definition at line 87 of file AssetWrapper.h.
Referenced by displayPanelName().
|
protected |
Definition at line 86 of file AssetWrapper.h.
Referenced by displayParent(), QuestStepWrapper::drag(), QuestStepWrapper::drop(), QuestStepWrapper::fillMenu(), ArchetypeWrapper::fillMenu(), TreasureWrapper::fillMenu(), QuestWrapper::fillMenu(), TreasureYesNo::fillMenu(), TreasureYesNo::removeChild(), setDisplayParent(), and wasModified().
|
static |
Definition at line 34 of file AssetWrapper.h.
Referenced by ArtifactsWrapper::ArtifactsWrapper(), AssetsCollectionWrapper< Animations >::AssetsCollectionWrapper(), AttackMessagesWrapper::AttackMessagesWrapper(), CREMainWindow::createMenus(), GameSounds::GameSounds(), MessageManager::MessageManager(), RandomMaps::RandomMaps(), RecipesWrapper::RecipesWrapper(), RegionsWrapper::RegionsWrapper(), ScriptFileManager::ScriptFileManager(), and SoundFiles::SoundFiles().
|
read |
Definition at line 29 of file AssetWrapper.h.
Referenced by compareByDisplayName(), and CREMainWindow::createMenus().
|
read |
Definition at line 28 of file AssetWrapper.h.