Crossfire Server, Trunk
|
#include <GeneralMessageWrapper.h>
Public Member Functions | |
int | chance () const |
virtual QIcon | displayIcon () const override |
virtual QString | displayName () const override |
const Face * | face () 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) | |
GeneralMessage * | 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 AssetWrapper * | child (int) |
virtual int | childIndex (AssetWrapper *) |
virtual int | childrenCount () const |
virtual QString | displayPanelName () const |
AssetWrapper * | displayParent () const |
virtual void | drag (QMimeData *) const |
virtual void | drop (const QMimeData *, int) |
virtual void | fillMenu (QMenu *) |
void | markModified (ChangeType change, int extra=0) |
AssetWrapper * | self () |
void | setDisplayParent (AssetWrapper *parent) |
virtual | ~AssetWrapper () override |
Protected Attributes | |
ResourcesManager * | myResources |
Protected Attributes inherited from AssetTWrapper< GeneralMessage > | |
GeneralMessage * | myWrappedItem |
Protected Attributes inherited from AssetWrapper | |
QString | myPanelName |
AssetWrapper * | myParent |
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" |
Definition at line 26 of file GeneralMessageWrapper.h.
|
inline |
Definition at line 37 of file GeneralMessageWrapper.h.
|
inline |
Definition at line 52 of file GeneralMessageWrapper.h.
References GeneralMessage::chance, and AssetTWrapper< GeneralMessage >::myWrappedItem.
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Definition at line 42 of file GeneralMessageWrapper.h.
References GeneralMessage::face, CREPixmap::getIcon(), and AssetTWrapper< GeneralMessage >::myWrappedItem.
|
inlineoverridevirtual |
Implements AssetWrapper.
Definition at line 41 of file GeneralMessageWrapper.h.
References GeneralMessage::identifier, AssetTWrapper< GeneralMessage >::myWrappedItem, and GeneralMessage::title.
|
inline |
Definition at line 54 of file GeneralMessageWrapper.h.
References GeneralMessage::face, and AssetTWrapper< GeneralMessage >::myWrappedItem.
|
inline |
Definition at line 49 of file GeneralMessageWrapper.h.
References GeneralMessage::identifier, and AssetTWrapper< GeneralMessage >::myWrappedItem.
|
inline |
Definition at line 56 of file GeneralMessageWrapper.h.
References GeneralMessage::message, and AssetTWrapper< GeneralMessage >::myWrappedItem.
|
inline |
Definition at line 50 of file GeneralMessageWrapper.h.
References AssetTWrapper< GeneralMessage >::myWrappedItem, and GeneralMessage::quest_code.
void GeneralMessageWrapper::setChance | ( | int | chance | ) |
Definition at line 49 of file GeneralMessageWrapper.cpp.
References AssetWrapper::AssetUpdated, chance, GeneralMessage::chance, AssetWrapper::markModified(), and AssetTWrapper< GeneralMessage >::myWrappedItem.
void GeneralMessageWrapper::setFace | ( | const Face * | face | ) |
Definition at line 56 of file GeneralMessageWrapper.cpp.
References AssetWrapper::AssetUpdated, face, GeneralMessage::face, AssetWrapper::markModified(), and AssetTWrapper< GeneralMessage >::myWrappedItem.
void GeneralMessageWrapper::setMessage | ( | const QString & | message | ) |
Definition at line 63 of file GeneralMessageWrapper.cpp.
References AssetWrapper::AssetUpdated, FREE_AND_COPY_IF, AssetWrapper::markModified(), message, GeneralMessage::message, navar-midane_pickup::msg, and AssetTWrapper< GeneralMessage >::myWrappedItem.
void GeneralMessageWrapper::setQuest | ( | const QString & | quest | ) |
Definition at line 42 of file GeneralMessageWrapper.cpp.
References AssetWrapper::AssetUpdated, FREE_AND_COPY_IF, AssetWrapper::markModified(), AssetTWrapper< GeneralMessage >::myWrappedItem, and GeneralMessage::quest_code.
void GeneralMessageWrapper::setTitle | ( | const QString & | title | ) |
Definition at line 35 of file GeneralMessageWrapper.cpp.
References AssetWrapper::AssetUpdated, FREE_AND_COPY_IF, AssetWrapper::markModified(), AssetTWrapper< GeneralMessage >::myWrappedItem, and GeneralMessage::title.
|
inline |
Definition at line 47 of file GeneralMessageWrapper.h.
References AssetTWrapper< GeneralMessage >::myWrappedItem, and GeneralMessage::title.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 16 of file GeneralMessageWrapper.cpp.
References AssetWrapper::DoesntUse, face, GeneralMessage::face, AssetTWrapper< GeneralMessage >::myWrappedItem, give::name, GeneralMessage::quest_code, and AssetWrapper::Uses.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 30 of file GeneralMessageWrapper.cpp.
References ResourcesManager::generalMessageModified(), myResources, AssetTWrapper< GeneralMessage >::myWrappedItem, is_valid_types_gen::type, and AssetWrapper::wasModified().
|
protected |
Definition at line 60 of file GeneralMessageWrapper.h.
Referenced by wasModified().
|
readwrite |
Definition at line 32 of file GeneralMessageWrapper.h.
Referenced by setChance().
|
readwrite |
Definition at line 33 of file GeneralMessageWrapper.h.
|
read |
Definition at line 30 of file GeneralMessageWrapper.h.
|
readwrite |
Definition at line 34 of file GeneralMessageWrapper.h.
Referenced by setMessage().
|
readwrite |
Definition at line 31 of file GeneralMessageWrapper.h.
|
readwrite |
Definition at line 29 of file GeneralMessageWrapper.h.