Crossfire Server, Trunk
AttackMessagesWrapper Class Reference

#include <AttackMessagesWrapper.h>

+ Inheritance diagram for AttackMessagesWrapper:
+ Collaboration diagram for AttackMessagesWrapper:

Public Member Functions

 AttackMessagesWrapper (AssetWrapper *parent)
 
virtual AssetWrapperchild (int index)
 
virtual int childIndex (AssetWrapper *asset)
 
virtual int childrenCount () const
 
virtual QString displayName () 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 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
 

Data Fields

std::vector< SingleAttackWrapper * > myChildren
 

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)
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 
- Properties inherited from AssetWrapper
QString displayName
 
AssetWrapper self
 

Detailed Description

Definition at line 32 of file AttackMessagesWrapper.h.

Constructor & Destructor Documentation

◆ AttackMessagesWrapper()

AttackMessagesWrapper::AttackMessagesWrapper ( AssetWrapper parent)

Definition at line 39 of file AttackMessagesWrapper.cpp.

References myChildren, AssetWrapper::tipProperty, is_valid_types_gen::type, and types().

+ Here is the call graph for this function:

Member Function Documentation

◆ child()

virtual AssetWrapper* AttackMessagesWrapper::child ( int  index)
inlinevirtual

Reimplemented from AssetWrapper.

Definition at line 40 of file AttackMessagesWrapper.h.

References npc_dialog::index, and myChildren.

◆ childIndex()

int AttackMessagesWrapper::childIndex ( AssetWrapper asset)
virtual

Reimplemented from AssetWrapper.

Definition at line 46 of file AttackMessagesWrapper.cpp.

References myChildren.

◆ childrenCount()

virtual int AttackMessagesWrapper::childrenCount ( ) const
inlinevirtual

Reimplemented from AssetWrapper.

Definition at line 39 of file AttackMessagesWrapper.h.

References myChildren.

◆ displayName()

virtual QString AttackMessagesWrapper::displayName ( ) const
inlinevirtual

Implements AssetWrapper.

Definition at line 37 of file AttackMessagesWrapper.h.

Field Documentation

◆ myChildren

std::vector<SingleAttackWrapper *> AttackMessagesWrapper::myChildren

Definition at line 43 of file AttackMessagesWrapper.h.

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


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