Crossfire Server, Trunk
FaceWrapper Class Reference

#include <FaceWrapper.h>

+ Inheritance diagram for FaceWrapper:
+ Collaboration diagram for FaceWrapper:

Public Member Functions

virtual QIcon displayIcon () const override
 
virtual QString displayName () const override
 
 FaceWrapper (AssetWrapper *parent, Face *face, ResourcesManager *resourcesManager)
 
QString name () const
 
virtual PossibleUse uses (const AssetWrapper *asset, std::string &) const override
 
- Public Member Functions inherited from AssetTWrapper< Face >
 AssetTWrapper (AssetWrapper *parent, const QString &panelName, Face *wrappedItem)
 
FacewrappedItem () 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 AssetWrapperchild (int)
 
virtual int childIndex (AssetWrapper *)
 
virtual int childrenCount () 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 Attributes

ResourcesManagermyResourcesManager
 
- Protected Attributes inherited from AssetTWrapper< Face >
FacemyWrappedItem
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 

Properties

QString name
 
- 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 24 of file FaceWrapper.h.

Constructor & Destructor Documentation

◆ FaceWrapper()

FaceWrapper::FaceWrapper ( AssetWrapper parent,
Face face,
ResourcesManager resourcesManager 
)

Definition at line 17 of file FaceWrapper.cpp.

Member Function Documentation

◆ displayIcon()

virtual QIcon FaceWrapper::displayIcon ( ) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 33 of file FaceWrapper.h.

References CREPixmap::getIcon(), and AssetTWrapper< Face >::myWrappedItem.

+ Here is the call graph for this function:

◆ displayName()

virtual QString FaceWrapper::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 32 of file FaceWrapper.h.

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

◆ name()

QString FaceWrapper::name ( ) const
inline

Definition at line 37 of file FaceWrapper.h.

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

◆ uses()

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

Field Documentation

◆ myResourcesManager

ResourcesManager* FaceWrapper::myResourcesManager
protected

Definition at line 40 of file FaceWrapper.h.

Property Documentation

◆ name

QString FaceWrapper::name
read

Definition at line 27 of file FaceWrapper.h.


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