Crossfire Server, Trunk
AssetsCollectionWrapper< T > Class Template Reference

#include <AssetsCollectionWrapper.h>

+ Inheritance diagram for AssetsCollectionWrapper< T >:
+ Collaboration diagram for AssetsCollectionWrapper< T >:

Public Member Functions

 AssetsCollectionWrapper (AssetWrapper *parent, const QString &name, AssetsCollection< T > *collection, ResourcesManager *resources, const QString &tip)
 
virtual bool canDrop (const QMimeData *, int) const override
 
virtual AssetWrapperchild (int index) override
 
virtual int childIndex (AssetWrapper *child) override
 
virtual int childrenCount () const override
 
virtual QString displayName () const
 
- Public Member Functions inherited from AssetWrapper
 AssetWrapper (AssetWrapper *parent, const QString &panelName="empty")
 
virtual bool canDrag () 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 PossibleUse uses (const AssetWrapper *, std::string &) const
 
virtual ~AssetWrapper () override
 

Protected Attributes

QVector< AssetWrapper * > myAssets
 
QString myName
 
- 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)
 
- Properties inherited from AssetWrapper
QString displayName
 
AssetWrapper self
 

Detailed Description

template<typename T>
class AssetsCollectionWrapper< T >

Definition at line 21 of file AssetsCollectionWrapper.h.

Constructor & Destructor Documentation

◆ AssetsCollectionWrapper()

template<typename T >
AssetsCollectionWrapper< T >::AssetsCollectionWrapper ( AssetWrapper parent,
const QString &  name,
AssetsCollection< T > *  collection,
ResourcesManager resources,
const QString &  tip 
)
inline

Definition at line 23 of file AssetsCollectionWrapper.h.

Member Function Documentation

◆ canDrop()

template<typename T >
virtual bool AssetsCollectionWrapper< T >::canDrop ( const QMimeData *  ,
int   
) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 37 of file AssetsCollectionWrapper.h.

◆ child()

template<typename T >
virtual AssetWrapper* AssetsCollectionWrapper< T >::child ( int  index)
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 34 of file AssetsCollectionWrapper.h.

Referenced by AssetsCollectionWrapper< Animations >::childIndex().

+ Here is the caller graph for this function:

◆ childIndex()

template<typename T >
virtual int AssetsCollectionWrapper< T >::childIndex ( AssetWrapper child)
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 35 of file AssetsCollectionWrapper.h.

◆ childrenCount()

template<typename T >
virtual int AssetsCollectionWrapper< T >::childrenCount ( ) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 33 of file AssetsCollectionWrapper.h.

◆ displayName()

template<typename T >
virtual QString AssetsCollectionWrapper< T >::displayName ( ) const
inlinevirtual

Implements AssetWrapper.

Definition at line 32 of file AssetsCollectionWrapper.h.

Field Documentation

◆ myAssets

◆ myName

template<typename T >
QString AssetsCollectionWrapper< T >::myName
protected

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