Crossfire Server, Trunk
TreasureYesNo Class Reference

#include <TreasureWrapper.h>

+ Inheritance diagram for TreasureYesNo:
+ Collaboration diagram for TreasureYesNo:

Public Member Functions

virtual AssetWrapperchild (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
 
AssetWrapperdisplayParent () const
 
virtual void drag (QMimeData *) const
 
virtual void drop (const QMimeData *, int)
 
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

bool myIsYes
 
AssetWrappermyWrapped
 
- 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
- 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
AssetWrapper self
 

Detailed Description

Definition at line 93 of file TreasureWrapper.h.

Constructor & Destructor Documentation

◆ TreasureYesNo()

TreasureYesNo::TreasureYesNo ( TreasureWrapper parent,
treasure tr,
ResourcesManager resources,
bool  isYes 
)

Definition at line 335 of file TreasureWrapper.cpp.

References myWrapped, and ResourcesManager::wrap().

+ Here is the call graph for this function:

Member Function Documentation

◆ child()

virtual AssetWrapper* TreasureYesNo::child ( int  child)
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 101 of file TreasureWrapper.h.

References TreasureWrapper::child().

+ Here is the call graph for this function:

◆ childIndex()

virtual int TreasureYesNo::childIndex ( AssetWrapper child)
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 102 of file TreasureWrapper.h.

References TreasureWrapper::child().

+ Here is the call graph for this function:

◆ childrenCount()

virtual int TreasureYesNo::childrenCount ( ) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 100 of file TreasureWrapper.h.

◆ displayIcon()

virtual QIcon TreasureYesNo::displayIcon ( ) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 98 of file TreasureWrapper.h.

References CREPixmap::getTreasureNoIcon(), and CREPixmap::getTreasureYesIcon().

+ Here is the call graph for this function:

◆ displayName()

virtual QString TreasureYesNo::displayName ( ) const
inlineoverridevirtual

Implements AssetWrapper.

Definition at line 97 of file TreasureWrapper.h.

◆ fillMenu()

void TreasureYesNo::fillMenu ( QMenu *  menu)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 340 of file TreasureWrapper.cpp.

References AssetWrapper::myParent, AssetWrapper::removeChild(), and TreasureWrapper::swapYesNo().

+ Here is the call graph for this function:

◆ removeChild()

virtual void TreasureYesNo::removeChild ( AssetWrapper )
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 103 of file TreasureWrapper.h.

References AssetWrapper::myParent, and AssetWrapper::removeChild().

+ Here is the call graph for this function:

◆ setIsYes()

void TreasureYesNo::setIsYes ( bool  isYes)
inline

Definition at line 106 of file TreasureWrapper.h.

Referenced by TreasureWrapper::swapYesNo().

+ Here is the caller graph for this function:

Field Documentation

◆ myIsYes

bool TreasureYesNo::myIsYes
protected

Definition at line 109 of file TreasureWrapper.h.

◆ myWrapped

AssetWrapper* TreasureYesNo::myWrapped
protected

Definition at line 110 of file TreasureWrapper.h.

Referenced by TreasureYesNo().


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