Crossfire Server, Trunk
ArchetypesWrapper Class Reference

#include <ArchetypesWrapper.h>

+ Inheritance diagram for ArchetypesWrapper:
+ Collaboration diagram for ArchetypesWrapper:

Public Member Functions

 ArchetypesWrapper (AssetWrapper *parent, ResourcesManager *resourcesManager)
 
virtual AssetWrapperchild (int index) override
 
virtual int childIndex (AssetWrapper *child) override
 
virtual int childrenCount () const override
 
virtual QString displayName () const override
 
virtual PossibleUse uses (const AssetWrapper *, 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 void displayFillPanel (QWidget *)
 
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)
 
void setDisplayParent (AssetWrapper *parent)
 
virtual ~AssetWrapper () override
 

Protected Attributes

QVector< AssetWrapper * > myArch
 
ResourcesManagermyResourcesManager
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 

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 14 of file ArchetypesWrapper.h.

Constructor & Destructor Documentation

◆ ArchetypesWrapper()

ArchetypesWrapper::ArchetypesWrapper ( AssetWrapper parent,
ResourcesManager resourcesManager 
)

Member Function Documentation

◆ child()

virtual AssetWrapper* ArchetypesWrapper::child ( int  index)
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 22 of file ArchetypesWrapper.h.

References npc_dialog::index, and myArch.

Referenced by childIndex().

+ Here is the caller graph for this function:

◆ childIndex()

virtual int ArchetypesWrapper::childIndex ( AssetWrapper child)
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 23 of file ArchetypesWrapper.h.

References child(), and myArch.

+ Here is the call graph for this function:

◆ childrenCount()

virtual int ArchetypesWrapper::childrenCount ( ) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 21 of file ArchetypesWrapper.h.

References myArch.

◆ displayName()

virtual QString ArchetypesWrapper::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 20 of file ArchetypesWrapper.h.

◆ uses()

virtual PossibleUse ArchetypesWrapper::uses ( const AssetWrapper ,
std::string &   
) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 25 of file ArchetypesWrapper.h.

References AssetWrapper::ChildrenMayUse.

Field Documentation

◆ myArch

QVector<AssetWrapper *> ArchetypesWrapper::myArch
protected

Definition at line 30 of file ArchetypesWrapper.h.

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

◆ myResourcesManager

ResourcesManager* ArchetypesWrapper::myResourcesManager
protected

Definition at line 31 of file ArchetypesWrapper.h.


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