Crossfire Server, Trunk
|
#include <TreasureWrapper.h>
Public Member Functions | |
virtual AssetWrapper * | child (int child) override |
virtual int | childIndex (AssetWrapper *child) override |
virtual int | childrenCount () const override |
virtual QIcon | displayIcon () const override |
virtual QString | displayName () const override |
virtual void | fillMenu (QMenu *menu) override |
virtual void | removeChild (AssetWrapper *) override |
void | setIsYes (bool isYes) |
TreasureYesNo (TreasureWrapper *parent, treasure *tr, ResourcesManager *resources, bool isYes) | |
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 QString | displayPanelName () const |
AssetWrapper * | displayParent () const |
virtual void | drag (QMimeData *) const |
virtual void | drop (const QMimeData *, int) |
void | markModified (ChangeType change, int extra=0) |
AssetWrapper * | self () |
void | setDisplayParent (AssetWrapper *parent) |
virtual PossibleUse | uses (const AssetWrapper *, std::string &) const |
virtual | ~AssetWrapper () override |
Protected Attributes | |
bool | myIsYes |
AssetWrapper * | myWrapped |
Protected Attributes inherited from AssetWrapper | |
QString | myPanelName |
AssetWrapper * | myParent |
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 | |
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 |
Definition at line 93 of file TreasureWrapper.h.
TreasureYesNo::TreasureYesNo | ( | TreasureWrapper * | parent, |
treasure * | tr, | ||
ResourcesManager * | resources, | ||
bool | isYes | ||
) |
Definition at line 335 of file TreasureWrapper.cpp.
References myWrapped, and ResourcesManager::wrap().
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Definition at line 102 of file TreasureWrapper.h.
References TreasureWrapper::child().
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Definition at line 103 of file TreasureWrapper.h.
References TreasureWrapper::child().
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Definition at line 101 of file TreasureWrapper.h.
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Definition at line 99 of file TreasureWrapper.h.
References CREPixmap::getTreasureNoIcon(), and CREPixmap::getTreasureYesIcon().
|
inlineoverridevirtual |
Implements AssetWrapper.
Definition at line 98 of file TreasureWrapper.h.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 340 of file TreasureWrapper.cpp.
References AssetWrapper::myParent, AssetWrapper::removeChild(), and TreasureWrapper::swapYesNo().
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Definition at line 104 of file TreasureWrapper.h.
References AssetWrapper::myParent, and AssetWrapper::removeChild().
|
inline |
Definition at line 107 of file TreasureWrapper.h.
Referenced by TreasureWrapper::swapYesNo().
|
protected |
Definition at line 110 of file TreasureWrapper.h.
|
protected |
Definition at line 111 of file TreasureWrapper.h.
Referenced by TreasureYesNo().