Crossfire Server, Trunk
AssetTWrapper< T > Class Template Reference

#include <AssetWrapper.h>

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

Public Member Functions

 AssetTWrapper (AssetWrapper *parent, const QString &panelName, T *wrappedItem)
 
T * wrappedItem () 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 QIcon displayIcon () const
 
virtual QString displayName () const =0
 
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

T * myWrappedItem
 
- 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 AssetTWrapper< T >

Base class for assets mapping to a native Crossfire structure.

Definition at line 94 of file AssetWrapper.h.

Constructor & Destructor Documentation

◆ AssetTWrapper()

template<typename T >
AssetTWrapper< T >::AssetTWrapper ( AssetWrapper parent,
const QString &  panelName,
T *  wrappedItem 
)
inline

Definition at line 96 of file AssetWrapper.h.

Member Function Documentation

◆ wrappedItem()

template<typename T >
T* AssetTWrapper< T >::wrappedItem ( ) const
inline

Definition at line 101 of file AssetWrapper.h.

Referenced by AssetTWrapper< Animations >::AssetTWrapper().

+ Here is the caller graph for this function:

Field Documentation

◆ myWrappedItem

template<typename T >
T* AssetTWrapper< T >::myWrappedItem
protected

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