Crossfire Server, Trunk
QuestStepWrapper Class Reference

#include <QuestWrapper.h>

+ Inheritance diagram for QuestStepWrapper:
+ Collaboration diagram for QuestStepWrapper:

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_definitionwrappedItem () const
 
- Public Member Functions inherited from AssetWrapper
 AssetWrapper (AssetWrapper *parent, const QString &panelName="empty")
 
virtual AssetWrapperchild (int)
 
virtual int childIndex (AssetWrapper *)
 
virtual int childrenCount () const
 
virtual QIcon displayIcon () const
 
virtual QString displayPanelName () const
 
AssetWrapperdisplayParent () const
 
void markModified (ChangeType change, int extra=0)
 
AssetWrapperself ()
 
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_definitionmyWrappedItem
 
- Protected Attributes inherited from AssetWrapper
QString myPanelName
 
AssetWrappermyParent
 

Detailed Description

Definition at line 25 of file QuestWrapper.h.

Constructor & Destructor Documentation

◆ QuestStepWrapper()

QuestStepWrapper::QuestStepWrapper ( AssetWrapper parent,
quest_step_definition step,
ResourcesManager  
)
inline

Definition at line 34 of file QuestWrapper.h.

Member Function Documentation

◆ canDrag()

virtual bool QuestStepWrapper::canDrag ( ) const
inlineoverridevirtual

Reimplemented from AssetWrapper.

Definition at line 42 of file QuestWrapper.h.

◆ canDrop()

bool QuestStepWrapper::canDrop ( const QMimeData *  data,
int   
) const
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 30 of file QuestWrapper.cpp.

References navar-midane_time::data, and MimeUtils::QuestStep.

◆ conditions()

QList<QStringList> QuestStepWrapper::conditions ( ) const

◆ description()

QString QuestStepWrapper::description ( ) const
inline

◆ displayName()

virtual QString QuestStepWrapper::displayName ( ) const
inlineoverridevirtual

◆ drag()

void QuestStepWrapper::drag ( QMimeData *  data) const
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.

+ Here is the call graph for this function:

◆ drop()

void QuestStepWrapper::drop ( const QMimeData *  data,
int  row 
)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 34 of file QuestWrapper.cpp.

References AssetWrapper::childIndex(), navar-midane_time::data, AssetWrapper::drop(), and AssetWrapper::myParent.

+ Here is the call graph for this function:

◆ fillMenu()

void QuestStepWrapper::fillMenu ( QMenu *  menu)
overridevirtual

Reimplemented from AssetWrapper.

Definition at line 19 of file QuestWrapper.cpp.

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

+ Here is the call graph for this function:

◆ isEnd()

bool QuestStepWrapper::isEnd ( ) const
inline

◆ setConditions()

void QuestStepWrapper::setConditions ( const QList< QStringList > &  conditions)

◆ setDescription()

void QuestStepWrapper::setDescription ( QString  description)
inline

◆ setEnd()

void QuestStepWrapper::setEnd ( bool  end)
inline

◆ setStep()

void QuestStepWrapper::setStep ( int  step)
inline

◆ step()

int QuestStepWrapper::step ( ) const
inline

Property Documentation

◆ conditions

QList< QStringList > QuestStepWrapper::conditions
readwrite

Definition at line 31 of file QuestWrapper.h.

Referenced by setConditions().

◆ description

QString QuestStepWrapper::description
readwrite

Definition at line 29 of file QuestWrapper.h.

Referenced by setDescription().

◆ isEnd

bool QuestStepWrapper::isEnd
readwrite

Definition at line 30 of file QuestWrapper.h.

◆ step

int QuestStepWrapper::step
readwrite

Definition at line 28 of file QuestWrapper.h.

Referenced by setStep().


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