Crossfire Server, Trunk
|
#include <ArchetypeWrapper.h>
Public Member Functions | |
ArchetypeWrapper (AssetWrapper *parent, archetype *arch, ResourcesManager *resourcesManager) | |
virtual bool | canDrag () const override |
virtual AssetWrapper * | child (int index) override |
virtual int | childIndex (AssetWrapper *child) override |
virtual int | childrenCount () const override |
QObject * | clone () |
virtual QIcon | displayIcon () const override |
virtual QString | displayName () const override |
virtual void | drag (QMimeData *) const override |
QObject * | head () const |
QObject * | more () const |
QString | name () const |
virtual PossibleUse | uses (const AssetWrapper *asset, std::string &) const override |
![]() | |
AssetWithArtifacts (AssetWrapper *parent, const QString &panelName, archetype *item, ResourcesManager *resources) | |
virtual int | childrenCount () const override |
virtual | ~AssetWithArtifacts () |
![]() | |
AssetTWrapper (AssetWrapper *parent, const QString &panelName, archetype *wrappedItem) | |
virtual void | displayFillPanel (QWidget *panel) override |
archetype * | wrappedItem () const |
![]() | |
AssetWrapper (AssetWrapper *parent, const QString &panelName="empty") | |
virtual bool | canDrop (const QMimeData *, int) const |
virtual QString | displayPanelName () const |
AssetWrapper * | displayParent () const |
virtual void | drop (const QMimeData *, int) |
virtual void | fillMenu (QMenu *) |
void | markModified (ChangeType change, int extra=0) |
void | setDisplayParent (AssetWrapper *parent) |
virtual | ~AssetWrapper () override |
Protected Member Functions | |
bool | appearsOnTreasureList () const |
![]() | |
void | setSpecificItem (const object *item, bool notify) |
void | updateArtifacts (bool notify) |
![]() | |
virtual void | wasModified (AssetWrapper *asset, ChangeType type, int extra) |
Properties | |
QObject | clone |
QObject | head |
QObject | more |
QString | name |
Definition at line 16 of file ArchetypeWrapper.h.
ArchetypeWrapper::ArchetypeWrapper | ( | AssetWrapper * | parent, |
archetype * | arch, | ||
ResourcesManager * | resourcesManager | ||
) |
Definition at line 11 of file ArchetypeWrapper.cpp.
References appearsOnTreasureList(), archininventory::arch, and AssetWithArtifacts< archetype >::setSpecificItem().
|
protected |
Definition at line 147 of file ArchetypeWrapper.cpp.
References AssetsCollection< T, Key >::first(), getManager(), say::item, AssetTWrapper< archetype >::myWrappedItem, and AssetsManager::treasures().
Referenced by ArchetypeWrapper().
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Definition at line 35 of file ArchetypeWrapper.h.
|
overridevirtual |
Reimplemented from AssetWithArtifacts< archetype >.
Definition at line 47 of file ArchetypeWrapper.cpp.
References AssetWithArtifacts< T >::child(), npc_dialog::index, archt::more, AssetWithArtifacts< archetype >::myResources, AssetTWrapper< archetype >::myWrappedItem, and ResourcesManager::wrap().
Referenced by childIndex().
|
overridevirtual |
Reimplemented from AssetWithArtifacts< archetype >.
Definition at line 59 of file ArchetypeWrapper.cpp.
References child(), AssetWithArtifacts< T >::childIndex(), archt::head, npc_dialog::index, archt::more, AssetWithArtifacts< archetype >::myResources, AssetTWrapper< archetype >::myWrappedItem, and ResourcesManager::wrap().
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 34 of file ArchetypeWrapper.cpp.
References disinfect::count, archt::head, AssetWithArtifacts< archetype >::myArtifacts, and AssetTWrapper< archetype >::myWrappedItem.
QObject* ArchetypeWrapper::clone | ( | ) |
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Definition at line 28 of file ArchetypeWrapper.h.
References archt::clone, obj::face, CREPixmap::getIcon(), and AssetTWrapper< archetype >::myWrappedItem.
|
inlineoverridevirtual |
Implements AssetWrapper.
Definition at line 27 of file ArchetypeWrapper.h.
References AssetTWrapper< archetype >::myWrappedItem, and archt::name.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 143 of file ArchetypeWrapper.cpp.
References MimeUtils::addMime(), MimeUtils::Archetype, navar-midane_time::data, AssetTWrapper< archetype >::myWrappedItem, and archt::name.
QObject* ArchetypeWrapper::head | ( | ) | const |
QObject* ArchetypeWrapper::more | ( | ) | const |
QString ArchetypeWrapper::name | ( | ) | const |
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 113 of file ArchetypeWrapper.cpp.
References animate::anim, obj::animation, AssetWrapper::ChildrenMayUse, archt::clone, AssetWrapper::DoesntUse, obj::face, AssetsManager::faces(), AssetsCollection< T, Key >::find(), getManager(), isValidArchFlesh(), castle_read::key, AssetTWrapper< archetype >::myWrappedItem, archt::name, object_get_value(), and AssetWrapper::Uses.
|
read |
Definition at line 20 of file ArchetypeWrapper.h.
|
read |
Definition at line 21 of file ArchetypeWrapper.h.
|
read |
Definition at line 22 of file ArchetypeWrapper.h.
|
read |
Definition at line 19 of file ArchetypeWrapper.h.