Crossfire Server, Trunk
GeneralMessageWrapper Class Reference

#include <GeneralMessageWrapper.h>

+ Inheritance diagram for GeneralMessageWrapper:
+ Collaboration diagram for GeneralMessageWrapper:

Public Member Functions

int chance () const
 
virtual QIcon displayIcon () const override
 
virtual QString displayName () const override
 
const Faceface () const
 
 GeneralMessageWrapper (AssetWrapper *parent, GeneralMessage *message, ResourcesManager *resources)
 
QString identifier () const
 
QString message () const
 
QString quest () const
 
void setChance (int chance)
 
void setFace (const Face *face)
 
void setMessage (const QString &message)
 
void setQuest (const QString &quest)
 
void setTitle (const QString &title)
 
QString title () const
 
virtual PossibleUse uses (const AssetWrapper *asset, std::string &) const override
 
virtual void wasModified (AssetWrapper *asset, ChangeType type, int extra) override
 
- Public Member Functions inherited from AssetTWrapper< GeneralMessage >
 AssetTWrapper (AssetWrapper *parent, const QString &panelName, GeneralMessage *wrappedItem)
 
GeneralMessagewrappedItem () 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

ResourcesManagermyResources
 
- Protected Attributes inherited from AssetTWrapper< GeneralMessage >
GeneralMessagemyWrappedItem
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 

Properties

int chance
 
const Face face
 
QString identifier
 
QString message
 
QString quest
 
QString title
 
- 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"
 

Detailed Description

Definition at line 26 of file GeneralMessageWrapper.h.

Constructor & Destructor Documentation

◆ GeneralMessageWrapper()

GeneralMessageWrapper::GeneralMessageWrapper ( AssetWrapper parent,
GeneralMessage message,
ResourcesManager resources 
)
inline

Definition at line 37 of file GeneralMessageWrapper.h.

Member Function Documentation

◆ chance()

int GeneralMessageWrapper::chance ( ) const
inline

◆ displayIcon()

virtual QIcon GeneralMessageWrapper::displayIcon ( ) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 42 of file GeneralMessageWrapper.h.

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

+ Here is the call graph for this function:

◆ displayName()

virtual QString GeneralMessageWrapper::displayName ( ) const
inlineoverridevirtual

◆ face()

const Face* GeneralMessageWrapper::face ( ) const
inline

◆ identifier()

QString GeneralMessageWrapper::identifier ( ) const
inline

◆ message()

QString GeneralMessageWrapper::message ( ) const
inline

◆ quest()

QString GeneralMessageWrapper::quest ( ) const
inline

◆ setChance()

void GeneralMessageWrapper::setChance ( int  chance)

◆ setFace()

void GeneralMessageWrapper::setFace ( const Face face)

◆ setMessage()

void GeneralMessageWrapper::setMessage ( const QString &  message)

◆ setQuest()

void GeneralMessageWrapper::setQuest ( const QString &  quest)

◆ setTitle()

void GeneralMessageWrapper::setTitle ( const QString &  title)

◆ title()

QString GeneralMessageWrapper::title ( ) const
inline

◆ uses()

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

◆ wasModified()

void GeneralMessageWrapper::wasModified ( AssetWrapper asset,
ChangeType  type,
int  extra 
)
overridevirtual

Field Documentation

◆ myResources

ResourcesManager* GeneralMessageWrapper::myResources
protected

Definition at line 60 of file GeneralMessageWrapper.h.

Referenced by wasModified().

Property Documentation

◆ chance

int GeneralMessageWrapper::chance
readwrite

Definition at line 32 of file GeneralMessageWrapper.h.

Referenced by setChance().

◆ face

const Face GeneralMessageWrapper::face
readwrite

Definition at line 33 of file GeneralMessageWrapper.h.

Referenced by setFace(), and uses().

◆ identifier

QString GeneralMessageWrapper::identifier
read

Definition at line 30 of file GeneralMessageWrapper.h.

◆ message

QString GeneralMessageWrapper::message
readwrite

Definition at line 34 of file GeneralMessageWrapper.h.

Referenced by setMessage().

◆ quest

QString GeneralMessageWrapper::quest
readwrite

Definition at line 31 of file GeneralMessageWrapper.h.

◆ title

QString GeneralMessageWrapper::title
readwrite

Definition at line 29 of file GeneralMessageWrapper.h.


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