Crossfire Server, Trunk
RegionWrapper Class Reference

#include <RegionWrapper.h>

+ Inheritance diagram for RegionWrapper:
+ Collaboration diagram for RegionWrapper:

Public Member Functions

virtual AssetWrapperchild (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)
 
regionwrappedItem () 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
 
AssetWrapperdisplayParent () const
 
virtual void drag (QMimeData *) const
 
virtual void drop (const QMimeData *, int)
 
virtual void fillMenu (QMenu *)
 
void markModified (ChangeType change, int extra=0)
 
AssetWrapperself ()
 
void setDisplayParent (AssetWrapper *parent)
 
virtual ~AssetWrapper () override
 

Protected Slots

void mapAdded (CREMapInformation *map)
 

Protected Attributes

QList< CREMapInformation * > myMaps
 
ResourcesManagermyResourcesManager
 
- Protected Attributes inherited from AssetTWrapper< region >
regionmyWrappedItem
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 

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)
 

Detailed Description

Definition at line 25 of file RegionWrapper.h.

Constructor & Destructor Documentation

◆ RegionWrapper()

RegionWrapper::RegionWrapper ( AssetWrapper parent,
region reg,
ResourcesManager resources 
)

Definition at line 19 of file RegionWrapper.cpp.

References ResourcesManager::getMapInformationManager(), and mapAdded().

+ Here is the call graph for this function:

Member Function Documentation

◆ child()

AssetWrapper * RegionWrapper::child ( int  index)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 28 of file RegionWrapper.cpp.

References npc_dialog::index, and myMaps.

Referenced by childIndex().

+ Here is the caller graph for this function:

◆ childIndex()

int RegionWrapper::childIndex ( AssetWrapper child)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 32 of file RegionWrapper.cpp.

References child(), and myMaps.

+ Here is the call graph for this function:

◆ childrenCount()

int RegionWrapper::childrenCount ( ) const
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 24 of file RegionWrapper.cpp.

References myMaps.

◆ displayName()

virtual QString RegionWrapper::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 37 of file RegionWrapper.h.

References region::longname, and AssetTWrapper< region >::myWrappedItem.

◆ jailPath()

QString RegionWrapper::jailPath ( ) const
inline

◆ jailX()

int RegionWrapper::jailX ( ) const
inline

◆ jailY()

int RegionWrapper::jailY ( ) const
inline

◆ longName()

QString RegionWrapper::longName ( ) const
inline

Definition at line 45 of file RegionWrapper.h.

References get_region_longname(), and AssetTWrapper< region >::myWrappedItem.

+ Here is the call graph for this function:

◆ mapAdded

void RegionWrapper::mapAdded ( CREMapInformation map)
protectedslot

◆ message()

QString RegionWrapper::message ( ) const
inline

Definition at line 46 of file RegionWrapper.h.

References get_region_msg(), and AssetTWrapper< region >::myWrappedItem.

+ Here is the call graph for this function:

◆ shortName()

QString RegionWrapper::shortName ( ) const
inline

Definition at line 44 of file RegionWrapper.h.

References AssetTWrapper< region >::myWrappedItem, and region::name.

◆ uses()

AssetWrapper::PossibleUse RegionWrapper::uses ( const AssetWrapper asset,
std::string &   
) const
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 41 of file RegionWrapper.cpp.

References AssetWrapper::ChildrenMayUse, and AssetWrapper::DoesntUse.

Field Documentation

◆ myMaps

QList<CREMapInformation *> RegionWrapper::myMaps
protected

Definition at line 53 of file RegionWrapper.h.

Referenced by child(), childIndex(), childrenCount(), and mapAdded().

◆ myResourcesManager

ResourcesManager* RegionWrapper::myResourcesManager
protected

Definition at line 52 of file RegionWrapper.h.

Referenced by mapAdded().

Property Documentation

◆ jailPath

QString RegionWrapper::jailPath
read

Definition at line 30 of file RegionWrapper.h.

◆ jailX

int RegionWrapper::jailX
read

Definition at line 31 of file RegionWrapper.h.

◆ jailY

int RegionWrapper::jailY
read

Definition at line 31 of file RegionWrapper.h.

◆ longName

QString RegionWrapper::longName
read

Definition at line 28 of file RegionWrapper.h.

◆ message

QString RegionWrapper::message
read

Definition at line 29 of file RegionWrapper.h.

◆ shortName

QString RegionWrapper::shortName
read

Definition at line 27 of file RegionWrapper.h.


The documentation for this class was generated from the following files: