Crossfire Server, Trunk
|
#include <QuestWrapper.h>
Public Member Functions | |
virtual bool | canDrag () const override |
virtual bool | canDrop (const QMimeData *, int) const override |
QList< QStringList > | conditions () const |
QString | description () const |
virtual QString | displayName () const override |
virtual void | drag (QMimeData *) const override |
virtual void | drop (const QMimeData *, int) override |
virtual void | fillMenu (QMenu *menu) override |
bool | isEnd () const |
QuestStepWrapper (AssetWrapper *parent, quest_step_definition *step, ResourcesManager *) | |
void | setConditions (const QList< QStringList > &conditions) |
void | setDescription (QString description) |
void | setEnd (bool end) |
void | setStep (int step) |
int | step () const |
Public Member Functions inherited from AssetTWrapper< quest_step_definition > | |
AssetTWrapper (AssetWrapper *parent, const QString &panelName, quest_step_definition *wrappedItem) | |
quest_step_definition * | wrappedItem () const |
Public Member Functions inherited from AssetWrapper | |
AssetWrapper (AssetWrapper *parent, const QString &panelName="empty") | |
virtual AssetWrapper * | child (int) |
virtual int | childIndex (AssetWrapper *) |
virtual int | childrenCount () const |
virtual QIcon | displayIcon () const |
virtual QString | displayPanelName () const |
AssetWrapper * | displayParent () const |
void | markModified (ChangeType change, int extra=0) |
AssetWrapper * | self () |
void | setDisplayParent (AssetWrapper *parent) |
virtual PossibleUse | uses (const AssetWrapper *, std::string &) const |
virtual | ~AssetWrapper () override |
Properties | |
QList< QStringList > | conditions |
QString | description |
bool | isEnd |
int | step |
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" |
Protected Member Functions inherited from AssetWrapper | |
virtual void | wasModified (AssetWrapper *asset, ChangeType type, int extra) |
Protected Attributes inherited from AssetTWrapper< quest_step_definition > | |
quest_step_definition * | myWrappedItem |
Protected Attributes inherited from AssetWrapper | |
QString | myPanelName |
AssetWrapper * | myParent |
Definition at line 25 of file QuestWrapper.h.
|
inline |
Definition at line 34 of file QuestWrapper.h.
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Definition at line 42 of file QuestWrapper.h.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 30 of file QuestWrapper.cpp.
References navar-midane_time::data, and MimeUtils::QuestStep.
QList<QStringList> QuestStepWrapper::conditions | ( | ) | const |
|
inline |
Definition at line 48 of file QuestWrapper.h.
References AssetTWrapper< quest_step_definition >::myWrappedItem, and quest_step_definition::step_description.
|
inlineoverridevirtual |
Implements AssetWrapper.
Definition at line 38 of file QuestWrapper.h.
References quest_step_definition::is_completion_step, AssetTWrapper< quest_step_definition >::myWrappedItem, quest_step_definition::step, and quest_step_definition::step_description.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 23 of file QuestWrapper.cpp.
References MimeUtils::addQuestStep(), QuestWrapper::childIndex(), QuestWrapper::code, navar-midane_time::data, and AssetWrapper::myParent.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 34 of file QuestWrapper.cpp.
References AssetWrapper::childIndex(), navar-midane_time::data, AssetWrapper::drop(), and AssetWrapper::myParent.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 19 of file QuestWrapper.cpp.
References AssetWrapper::myParent, and AssetWrapper::removeChild().
|
inline |
Definition at line 49 of file QuestWrapper.h.
References quest_step_definition::is_completion_step, and AssetTWrapper< quest_step_definition >::myWrappedItem.
void QuestStepWrapper::setConditions | ( | const QList< QStringList > & | conditions | ) |
Definition at line 49 of file QuestWrapper.cpp.
References AssetWrapper::AssetUpdated, conditions, quest_step_definition::conditions, AssetWrapper::markModified(), AssetTWrapper< quest_step_definition >::myWrappedItem, quest_condition_from_string(), quest_create_condition(), and quest_destroy_condition().
|
inline |
Definition at line 52 of file QuestWrapper.h.
References add_string(), AssetWrapper::AssetUpdated, description, FREE_AND_CLEAR_STR_IF, AssetWrapper::markModified(), AssetTWrapper< quest_step_definition >::myWrappedItem, and quest_step_definition::step_description.
|
inline |
Definition at line 57 of file QuestWrapper.h.
References AssetWrapper::AssetUpdated, quest_step_definition::is_completion_step, AssetWrapper::markModified(), and AssetTWrapper< quest_step_definition >::myWrappedItem.
|
inline |
Definition at line 51 of file QuestWrapper.h.
References AssetWrapper::AssetUpdated, AssetWrapper::markModified(), AssetTWrapper< quest_step_definition >::myWrappedItem, step, and quest_step_definition::step.
|
inline |
Definition at line 47 of file QuestWrapper.h.
References AssetTWrapper< quest_step_definition >::myWrappedItem, and quest_step_definition::step.
|
readwrite |
Definition at line 31 of file QuestWrapper.h.
Referenced by setConditions().
|
readwrite |
Definition at line 29 of file QuestWrapper.h.
Referenced by setDescription().
|
readwrite |
Definition at line 30 of file QuestWrapper.h.
|
readwrite |
Definition at line 28 of file QuestWrapper.h.
Referenced by setStep().