Crossfire Server, Trunk
AnimationWrapper Class Reference

#include <AnimationWrapper.h>

+ Inheritance diagram for AnimationWrapper:
+ Collaboration diagram for AnimationWrapper:

Public Member Functions

 AnimationWrapper (AssetWrapper *parent, Animations *anim, ResourcesManager *resourcesManager)
 
virtual QIcon displayIcon () const
 
virtual QString displayName () const override
 
QString name () const
 
virtual PossibleUse uses (const AssetWrapper *asset, std::string &) const override
 
- Public Member Functions inherited from AssetTWrapper< Animations >
 AssetTWrapper (AssetWrapper *parent, const QString &panelName, Animations *wrappedItem)
 
AnimationswrappedItem () 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< Animations >
AnimationsmyWrappedItem
 
- 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 AnimationWrapper.h.

Constructor & Destructor Documentation

◆ AnimationWrapper()

AnimationWrapper::AnimationWrapper ( AssetWrapper parent,
Animations anim,
ResourcesManager resourcesManager 
)

Definition at line 18 of file AnimationWrapper.cpp.

Member Function Documentation

◆ displayIcon()

virtual QIcon AnimationWrapper::displayIcon ( ) const
inlinevirtual

Reimplemented from AssetWrapper.

Definition at line 33 of file AnimationWrapper.h.

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

+ Here is the call graph for this function:

◆ displayName()

virtual QString AnimationWrapper::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 32 of file AnimationWrapper.h.

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

◆ name()

QString AnimationWrapper::name ( ) const
inline

◆ uses()

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

Field Documentation

◆ myResourcesManager

ResourcesManager* AnimationWrapper::myResourcesManager
protected

Definition at line 40 of file AnimationWrapper.h.

Property Documentation

◆ name

QString AnimationWrapper::name
read

Definition at line 27 of file AnimationWrapper.h.


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