Crossfire Server, Trunk
QuestsWrapper Class Reference

#include <QuestsWrapper.h>

+ Inheritance diagram for QuestsWrapper:
+ Collaboration diagram for QuestsWrapper:

Public Member Functions

virtual void fillMenu (QMenu *menu) override
 
 QuestsWrapper (AssetWrapper *parent, ResourcesManager *resources)
 
virtual PossibleUse uses (const AssetWrapper *asset, std::string &) const override
 
- Public Member Functions inherited from AssetsCollectionWrapper< quest_definition >
 AssetsCollectionWrapper (AssetWrapper *parent, const QString &name, AssetsCollection< quest_definition > *collection, ResourcesManager *resources, const QString &tip)
 
virtual bool canDrop (const QMimeData *, int) const override
 
virtual AssetWrapperchild (int index) override
 
virtual int childIndex (AssetWrapper *child) override
 
virtual int childrenCount () const override
 
virtual QString displayName () const
 
- Public Member Functions inherited from AssetWrapper
 AssetWrapper (AssetWrapper *parent, const QString &panelName="empty")
 
virtual bool canDrag () const
 
virtual int childrenCount () const
 
virtual QIcon displayIcon () const
 
virtual QString displayName () const =0
 
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 ~AssetWrapper () override
 

Protected Member Functions

void addQuest ()
 
- Protected Member Functions inherited from AssetWrapper
virtual void wasModified (AssetWrapper *asset, ChangeType type, int extra)
 

Protected Attributes

ResourcesManagermyResources
 
- Protected Attributes inherited from AssetsCollectionWrapper< quest_definition >
QVector< AssetWrapper * > myAssets
 
QString myName
 
- 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
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"
 
- Properties inherited from AssetWrapper
QString displayName
 
AssetWrapper self
 

Detailed Description

Asset wrapper representing all quests.

Definition at line 23 of file QuestsWrapper.h.

Constructor & Destructor Documentation

◆ QuestsWrapper()

QuestsWrapper::QuestsWrapper ( AssetWrapper parent,
ResourcesManager resources 
)
inline

Definition at line 26 of file QuestsWrapper.h.

References myResources.

Member Function Documentation

◆ addQuest()

◆ fillMenu()

void QuestsWrapper::fillMenu ( QMenu *  menu)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 19 of file QuestsWrapper.cpp.

References addQuest().

+ Here is the call graph for this function:

◆ uses()

virtual PossibleUse QuestsWrapper::uses ( const AssetWrapper asset,
std::string &   
) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 30 of file QuestsWrapper.h.

References AssetWrapper::ChildrenMayUse, and AssetWrapper::DoesntUse.

Field Documentation

◆ myResources

ResourcesManager* QuestsWrapper::myResources
protected

Resources manager, used in quest creation.

Definition at line 40 of file QuestsWrapper.h.

Referenced by addQuest(), and QuestsWrapper().


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