Crossfire Server, Trunk
|
#include <QuestWrapper.h>
Public Member Functions | |
virtual bool | canDrop (const QMimeData *, int) const override |
bool | canRestart () const |
virtual AssetWrapper * | child (int) override |
virtual int | childIndex (AssetWrapper *) override |
virtual int | childrenCount () const override |
QString | code () const |
QString | comment () const |
QString | description () const |
virtual QIcon | displayIcon () const override |
virtual QString | displayName () const override |
virtual void | drop (const QMimeData *, int) override |
const Face * | face () const |
virtual void | fillMenu (QMenu *menu) override |
bool | isSystem () const |
const quest_definition * | questParent () const |
QuestWrapper (AssetWrapper *parent, quest_definition *quest, ResourcesManager *resources) | |
void | setComment (const QString &comment) |
void | setDescription (const QString &description) |
void | setFace (const Face *face) |
void | setQuestParent (const quest_definition *parent) |
void | setRestart (bool restart) |
void | setSystem (bool system) |
void | setTitle (const QString &title) |
QString | title () const |
virtual PossibleUse | uses (const AssetWrapper *asset, std::string &) const override |
Public Member Functions inherited from AssetTWrapper< quest_definition > | |
AssetTWrapper (AssetWrapper *parent, const QString &panelName, quest_definition *wrappedItem) | |
quest_definition * | wrappedItem () const |
Public Member Functions inherited from AssetWrapper | |
AssetWrapper (AssetWrapper *parent, const QString &panelName="empty") | |
virtual bool | canDrag () const |
virtual QString | displayPanelName () const |
AssetWrapper * | displayParent () const |
virtual void | drag (QMimeData *) const |
void | markModified (ChangeType change, int extra=0) |
AssetWrapper * | self () |
void | setDisplayParent (AssetWrapper *parent) |
virtual | ~AssetWrapper () override |
Protected Member Functions | |
void | addStep () |
virtual void | removeChild (AssetWrapper *child) override |
virtual void | wasModified (AssetWrapper *asset, ChangeType type, int extra) override |
Protected Attributes | |
ResourcesManager * | myResources |
Protected Attributes inherited from AssetTWrapper< quest_definition > | |
quest_definition * | myWrappedItem |
Protected Attributes inherited from AssetWrapper | |
QString | myPanelName |
AssetWrapper * | myParent |
Properties | |
bool | canRestart |
QString | code |
QString | comment |
QString | description |
const Face | face |
bool | isSystem |
const quest_definition | questParent |
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 | |
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 66 of file QuestWrapper.h.
|
inline |
Definition at line 79 of file QuestWrapper.h.
|
protected |
Definition at line 144 of file QuestWrapper.cpp.
References AssetWrapper::AfterChildAdd, AssetWrapper::BeforeChildAdd, AssetWrapper::markModified(), say::max, AssetTWrapper< quest_definition >::myWrappedItem, quest_create_step(), and quest_definition::steps.
Referenced by fillMenu().
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 99 of file QuestWrapper.cpp.
References navar-midane_time::data, and MimeUtils::QuestStep.
|
inline |
Definition at line 101 of file QuestWrapper.h.
References AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_restart.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 78 of file QuestWrapper.cpp.
References npc_dialog::index, myResources, AssetTWrapper< quest_definition >::myWrappedItem, quest_definition::steps, and ResourcesManager::wrap().
Referenced by childIndex(), and removeChild().
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 85 of file QuestWrapper.cpp.
References child(), npc_dialog::index, myResources, AssetTWrapper< quest_definition >::myWrappedItem, quest_definition::steps, and ResourcesManager::wrap().
Referenced by QuestStepWrapper::drag(), and removeChild().
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 74 of file QuestWrapper.cpp.
References AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::steps.
|
inline |
Definition at line 95 of file QuestWrapper.h.
References AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_code.
|
inline |
Definition at line 100 of file QuestWrapper.h.
References AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_comment.
|
inline |
Definition at line 99 of file QuestWrapper.h.
References AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_description.
|
inlineoverridevirtual |
Reimplemented from AssetWrapper.
Definition at line 83 of file QuestWrapper.h.
References quest_definition::face, CREPixmap::getIcon(), and AssetTWrapper< quest_definition >::myWrappedItem.
|
inlineoverridevirtual |
Implements AssetWrapper.
Definition at line 82 of file QuestWrapper.h.
References AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_title.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 103 of file QuestWrapper.cpp.
References AssetWrapper::AfterChildAdd, AssetWrapper::AfterChildRemove, AssetWrapper::BeforeChildAdd, AssetWrapper::BeforeChildRemove, code, navar-midane_time::data, MimeUtils::extractQuestSteps(), AssetWrapper::markModified(), AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::steps.
|
inline |
Definition at line 97 of file QuestWrapper.h.
References quest_definition::face, and AssetTWrapper< quest_definition >::myWrappedItem.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 137 of file QuestWrapper.cpp.
References addStep(), AssetWrapper::fillMenu(), and AssetWrapper::myParent.
|
inline |
Definition at line 102 of file QuestWrapper.h.
References AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_is_system.
|
inline |
Definition at line 98 of file QuestWrapper.h.
References AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::parent.
|
overrideprotectedvirtual |
Reimplemented from AssetWrapper.
Definition at line 154 of file QuestWrapper.cpp.
References AssetWrapper::AfterChildRemove, AssetWrapper::BeforeChildRemove, child(), childIndex(), npc_dialog::index, AssetWrapper::markModified(), AssetTWrapper< quest_definition >::myWrappedItem, quest_destroy_step(), and quest_definition::steps.
|
inline |
Definition at line 142 of file QuestWrapper.h.
References add_string(), AssetWrapper::AssetUpdated, comment, FREE_AND_CLEAR_STR_IF, AssetWrapper::markModified(), AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_comment.
|
inline |
Definition at line 135 of file QuestWrapper.h.
References add_string(), AssetWrapper::AssetUpdated, description, FREE_AND_CLEAR_STR_IF, AssetWrapper::markModified(), AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_description.
|
inline |
Definition at line 111 of file QuestWrapper.h.
References AssetWrapper::AssetUpdated, quest_definition::face, face, AssetWrapper::markModified(), and AssetTWrapper< quest_definition >::myWrappedItem.
|
inline |
Definition at line 117 of file QuestWrapper.h.
References AssetWrapper::AssetUpdated, AssetWrapper::markModified(), AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::parent.
|
inline |
Definition at line 123 of file QuestWrapper.h.
References AssetWrapper::AssetUpdated, AssetWrapper::markModified(), AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_restart.
|
inline |
Definition at line 129 of file QuestWrapper.h.
References AssetWrapper::AssetUpdated, AssetWrapper::markModified(), AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_is_system.
|
inline |
Definition at line 104 of file QuestWrapper.h.
References add_string(), AssetWrapper::AssetUpdated, FREE_AND_CLEAR_STR_IF, AssetWrapper::markModified(), AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_title.
|
inline |
Definition at line 96 of file QuestWrapper.h.
References AssetTWrapper< quest_definition >::myWrappedItem, and quest_definition::quest_title.
|
overridevirtual |
Reimplemented from AssetWrapper.
Definition at line 66 of file QuestWrapper.cpp.
References AssetWrapper::DoesntUse, quest_definition::face, face, AssetTWrapper< quest_definition >::myWrappedItem, and AssetWrapper::Uses.
|
overrideprotectedvirtual |
Reimplemented from AssetWrapper.
Definition at line 94 of file QuestWrapper.cpp.
References myResources, AssetTWrapper< quest_definition >::myWrappedItem, ResourcesManager::questModified(), is_valid_types_gen::type, and AssetWrapper::wasModified().
|
protected |
Definition at line 151 of file QuestWrapper.h.
Referenced by child(), childIndex(), and wasModified().
|
readwrite |
Definition at line 72 of file QuestWrapper.h.
|
read |
Definition at line 69 of file QuestWrapper.h.
Referenced by QuestStepWrapper::drag(), and drop().
|
readwrite |
Definition at line 76 of file QuestWrapper.h.
Referenced by setComment().
|
readwrite |
Definition at line 75 of file QuestWrapper.h.
Referenced by setDescription().
|
readwrite |
Definition at line 71 of file QuestWrapper.h.
|
readwrite |
Definition at line 74 of file QuestWrapper.h.
|
readwrite |
Definition at line 72 of file QuestWrapper.h.
|
readwrite |
Definition at line 70 of file QuestWrapper.h.