Crossfire Server, Trunk
RegionsWrapper Class Reference

#include <RegionsWrapper.h>

+ Inheritance diagram for RegionsWrapper:
+ Collaboration diagram for RegionsWrapper:

Public Member Functions

virtual AssetWrapperchild (int index)
 
virtual int childIndex (AssetWrapper *child)
 
virtual int childrenCount () const
 
virtual QString displayName () const
 
 RegionsWrapper (AssetWrapper *parent, ResourcesManager *resources)
 
virtual PossibleUse uses (const AssetWrapper *asset, std::string &) const override
 
- 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
 

Private Attributes

QVector< AssetWrapper * > myRegions
 

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)
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 
- Properties inherited from AssetWrapper
AssetWrapper self
 

Detailed Description

Definition at line 20 of file RegionsWrapper.h.

Constructor & Destructor Documentation

◆ RegionsWrapper()

RegionsWrapper::RegionsWrapper ( AssetWrapper parent,
ResourcesManager resources 
)

Definition at line 18 of file RegionsWrapper.cpp.

References AssetWrapper::compareByDisplayName(), first_region, myRegions, regiondef::next, AssetWrapper::tipProperty, and ResourcesManager::wrap().

+ Here is the call graph for this function:

Member Function Documentation

◆ child()

virtual AssetWrapper* RegionsWrapper::child ( int  index)
inlinevirtual

Reimplemented from AssetWrapper.

Definition at line 26 of file RegionsWrapper.h.

References npc_dialog::index, and myRegions.

Referenced by childIndex().

+ Here is the caller graph for this function:

◆ childIndex()

virtual int RegionsWrapper::childIndex ( AssetWrapper child)
inlinevirtual

Reimplemented from AssetWrapper.

Definition at line 27 of file RegionsWrapper.h.

References child(), and myRegions.

+ Here is the call graph for this function:

◆ childrenCount()

virtual int RegionsWrapper::childrenCount ( ) const
inlinevirtual

Reimplemented from AssetWrapper.

Definition at line 25 of file RegionsWrapper.h.

References myRegions.

◆ displayName()

virtual QString RegionsWrapper::displayName ( ) const
inlinevirtual

Implements AssetWrapper.

Definition at line 23 of file RegionsWrapper.h.

◆ uses()

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

Reimplemented from AssetWrapper.

Definition at line 26 of file RegionsWrapper.cpp.

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

Field Documentation

◆ myRegions

QVector<AssetWrapper *> RegionsWrapper::myRegions
private

Definition at line 32 of file RegionsWrapper.h.

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


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