Crossfire Server, Trunk
|
#include <RegionWrapper.h>
Public Member Functions | |
virtual AssetWrapper * | child (int index) override |
virtual int | childIndex (AssetWrapper *child) override |
virtual int | childrenCount () const override |
virtual QString | displayName () const override |
QString | jailPath () const |
int | jailX () const |
int | jailY () const |
QString | longName () const |
QString | message () const |
RegionWrapper (AssetWrapper *parent, region *reg, ResourcesManager *resources) | |
QString | shortName () const |
virtual PossibleUse | uses (const AssetWrapper *asset, std::string &) const override |
Public Member Functions inherited from AssetTWrapper< region > | |
AssetTWrapper (AssetWrapper *parent, const QString &panelName, region *wrappedItem) | |
region * | 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 QIcon | displayIcon () const |
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 | ~AssetWrapper () override |
Protected Slots | |
void | mapAdded (CREMapInformation *map) |
Protected Attributes | |
QList< CREMapInformation * > | myMaps |
ResourcesManager * | myResourcesManager |
Protected Attributes inherited from AssetTWrapper< region > | |
region * | myWrappedItem |
Protected Attributes inherited from AssetWrapper | |
QString | myPanelName |
AssetWrapper * | myParent |
Properties | |
QString | jailPath |
int | jailX |
int | jailY |
QString | longName |
QString | message |
QString | shortName |
Properties inherited from AssetWrapper | |
QString | displayName |
AssetWrapper | self |
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" |
Protected Member Functions inherited from AssetWrapper | |
virtual void | wasModified (AssetWrapper *asset, ChangeType type, int extra) |
Definition at line 25 of file RegionWrapper.h.
RegionWrapper::RegionWrapper | ( | AssetWrapper * | parent, |
region * | reg, | ||
ResourcesManager * | resources | ||
) |
Definition at line 19 of file RegionWrapper.cpp.
References ResourcesManager::getMapInformationManager(), and mapAdded().
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 28 of file RegionWrapper.cpp.
References npc_dialog::index, and myMaps.
Referenced by childIndex().
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 32 of file RegionWrapper.cpp.
References child(), and myMaps.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 24 of file RegionWrapper.cpp.
References myMaps.
|
inlineoverridevirtual |
Implements AssetWrapper.
Definition at line 37 of file RegionWrapper.h.
References region::longname, and AssetTWrapper< region >::myWrappedItem.
|
inline |
Definition at line 47 of file RegionWrapper.h.
References region::jailmap, AssetTWrapper< region >::myWrappedItem, and region::parent.
|
inline |
Definition at line 48 of file RegionWrapper.h.
References region::jailx, AssetTWrapper< region >::myWrappedItem, and region::parent.
|
inline |
Definition at line 49 of file RegionWrapper.h.
References region::jaily, AssetTWrapper< region >::myWrappedItem, and region::parent.
|
inline |
Definition at line 45 of file RegionWrapper.h.
References get_region_longname(), and AssetTWrapper< region >::myWrappedItem.
|
protectedslot |
Definition at line 50 of file RegionWrapper.cpp.
References AssetWrapper::AfterLayoutChange, AssetWrapper::BeforeLayoutChange, ResourcesManager::getMapInformationManager(), CREMapInformationManager::getMapsForRegion(), disinfect::map, AssetWrapper::markModified(), myMaps, myResourcesManager, AssetTWrapper< region >::myWrappedItem, and region::name.
Referenced by RegionWrapper().
|
inline |
Definition at line 46 of file RegionWrapper.h.
References get_region_msg(), and AssetTWrapper< region >::myWrappedItem.
|
inline |
Definition at line 44 of file RegionWrapper.h.
References AssetTWrapper< region >::myWrappedItem, and region::name.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 41 of file RegionWrapper.cpp.
References AssetWrapper::ChildrenMayUse, and AssetWrapper::DoesntUse.
|
protected |
Definition at line 53 of file RegionWrapper.h.
Referenced by child(), childIndex(), childrenCount(), and mapAdded().
|
protected |
Definition at line 52 of file RegionWrapper.h.
Referenced by mapAdded().
|
read |
Definition at line 30 of file RegionWrapper.h.
|
read |
Definition at line 31 of file RegionWrapper.h.
|
read |
Definition at line 31 of file RegionWrapper.h.
|
read |
Definition at line 28 of file RegionWrapper.h.
|
read |
Definition at line 29 of file RegionWrapper.h.
|
read |
Definition at line 27 of file RegionWrapper.h.