![]() |
Crossfire Resources Editor
|
Represents an asset to which artifacts may be applied. More...
#include <AssetWithArtifacts.h>
Inheritance diagram for AssetWithArtifacts< T >:
Collaboration diagram for AssetWithArtifacts< T >:Public Member Functions | |
| AssetWithArtifacts (AssetWrapper *parent, const QString &panelName, T *item, ResourcesManager *resources) | |
| virtual AssetWrapper * | child (int child) override |
| virtual int | childIndex (AssetWrapper *child) override |
| virtual int | childrenCount () const override |
| virtual | ~AssetWithArtifacts () |
Public Member Functions inherited from AssetTWrapper< T > | |
| AssetTWrapper (AssetWrapper *parent, const QString &panelName, T *wrappedItem) | |
| T * | wrappedItem () const |
Public Member Functions inherited from AssetWrapper | |
| AssetWrapper (AssetWrapper *parent, const QString &panelName="empty") | |
| virtual bool | canDrag () const |
| virtual bool | canDrop (const QMimeData *, int) const |
| virtual bool | canExportAsCsv () 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 | exportAsCSV (const AssetWrapper *, QString &) const |
| virtual void | fillCsvHeader (QString &) const |
| virtual void | fillMenu (QMenu *) |
| void | markModified (ChangeType change, int extra=0) |
| AssetWrapper * | self () |
| void | setDisplayParent (AssetWrapper *parent) |
| virtual QString | tooltip () const |
| virtual PossibleUse | uses (const AssetWrapper *, std::string &) const |
| virtual | ~AssetWrapper () override |
Protected Member Functions | |
| void | setSpecificItem (const object *item, bool notify) |
| void | updateArtifacts (bool notify) |
Protected Member Functions inherited from AssetWrapper | |
| virtual void | wasModified (AssetWrapper *asset, ChangeType type, int extra) |
Protected Attributes | |
| std::vector< ArtifactWrapper * > | myArtifacts |
| ResourcesManager * | myResources |
| const object * | mySpecificItem |
Protected Attributes inherited from AssetTWrapper< T > | |
| T * | myWrappedItem |
Protected Attributes inherited from AssetWrapper | |
| QString | myPanelName |
| AssetWrapper * | myParent |
Additional Inherited Members | |
Public Types inherited from AssetWrapper | |
| enum | ChangeType { AssetUpdated, BeforeChildAdd, AfterChildAdd, BeforeChildRemove, AfterChildRemove, BeforeLayoutChange, AfterLayoutChange } |
| enum | PossibleUse { Uses, ChildrenMayUse, DoesntUse } |
Public Slots inherited from AssetWrapper | |
| virtual void | removeChild (AssetWrapper *) |
Signals inherited from AssetWrapper | |
| void | dataModified (AssetWrapper *asset, AssetWrapper::ChangeType type, int extra) |
| void | modified () |
Static Public Member Functions inherited from AssetWrapper | |
| static bool | compareByDisplayName (const AssetWrapper *left, const AssetWrapper *right) |
Static Public Attributes inherited from AssetWrapper | |
| static const char * | tipProperty = "_cre_internal" |
Properties inherited from AssetWrapper | |
| QString | displayName |
| AssetWrapper | self |
Represents an asset to which artifacts may be applied.
Definition at line 26 of file AssetWithArtifacts.h.
|
inline |
Definition at line 28 of file AssetWithArtifacts.h.
|
inlinevirtual |
Definition at line 32 of file AssetWithArtifacts.h.
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Reimplemented in ArchetypeWrapper, and TreasureWrapper.
Definition at line 42 of file AssetWithArtifacts.h.
Referenced by ArchetypeWrapper::child(), AssetWithArtifacts< archetype >::child(), TreasureWrapper::child(), and AssetWithArtifacts< archetype >::childIndex().
Here is the caller graph for this function:
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Reimplemented in TreasureWrapper, and ArchetypeWrapper.
Definition at line 48 of file AssetWithArtifacts.h.
Referenced by ArchetypeWrapper::childIndex(), and TreasureWrapper::childIndex().
Here is the caller graph for this function:
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Definition at line 38 of file AssetWithArtifacts.h.
Referenced by TreasureWrapper::childrenCount().
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 61 of file AssetWithArtifacts.h.
|
inlineprotected |
Definition at line 66 of file AssetWithArtifacts.h.
Referenced by AssetWithArtifacts< archetype >::setSpecificItem().
Here is the caller graph for this function:
|
protected |
Definition at line 59 of file AssetWithArtifacts.h.
Referenced by AssetWithArtifacts< archetype >::child(), AssetWithArtifacts< archetype >::childIndex(), AssetWithArtifacts< archetype >::childrenCount(), AssetWithArtifacts< archetype >::updateArtifacts(), and AssetWithArtifacts< archetype >::~AssetWithArtifacts().
|
protected |
Definition at line 58 of file AssetWithArtifacts.h.
Referenced by AssetWithArtifacts< archetype >::updateArtifacts().
|
protected |
Definition at line 57 of file AssetWithArtifacts.h.
Referenced by AssetWithArtifacts< archetype >::setSpecificItem(), and AssetWithArtifacts< archetype >::updateArtifacts().