Go to the documentation of this file.
13 #ifndef QUEST_WRAPPER_H
14 #define QUEST_WRAPPER_H
38 virtual QString
displayName()
const override {
return tr(
"%1 (%2)%3")
41 virtual void fillMenu(QMenu *menu)
override;
42 virtual bool canDrag()
const override {
return true; }
43 virtual void drag(QMimeData *)
const override;
44 virtual bool canDrop(
const QMimeData *,
int)
const override;
45 virtual void drop(
const QMimeData *,
int)
override;
89 virtual bool canDrop(
const QMimeData *,
int)
const override;
90 virtual void drop(
const QMimeData *,
int)
override;
91 virtual void fillMenu(QMenu *menu)
override;
158 #endif // QUEST_WRAPPER_H
quest_step_definition * myWrappedItem
#define FREE_AND_CLEAR_STR_IF(xyz)
virtual int childrenCount() const override
virtual QString displayName() const override
void setTitle(const QString &title)
static const char * QuestStep
sstring quest_description
static QIcon getIcon(uint16_t faceNumber)
void setComment(const QString &comment)
void setFace(const Face *face)
virtual void drop(const QMimeData *, int) override
virtual QIcon displayIcon() const override
virtual bool canDrop(const QMimeData *, int) const override
QString description() const
QString description() const
virtual void removeChild(AssetWrapper *child) override
sstring add_string(const char *str)
void setSystem(bool system)
const Face * face() const
virtual AssetWrapper * child(int) override
virtual void wasModified(AssetWrapper *asset, ChangeType type, int extra) override
struct quest_definition * parent
void setDescription(const QString &description)
virtual bool canDrag() const override
ResourcesManager * myResources
virtual bool canDrop(const QMimeData *, int) const override
virtual void fillMenu(QMenu *menu) override
void setQuestParent(const quest_definition *parent)
virtual void fillMenu(QMenu *menu) override
const quest_definition questParent
QList< QStringList > conditions
void setConditions(const QList< QStringList > &conditions)
virtual PossibleUse uses(const AssetWrapper *asset, std::string &) const override
virtual QString displayName() const override
virtual void drop(const QMimeData *, int) override
void markModified(ChangeType change, int extra=0)
const quest_definition * questParent() const
void setRestart(bool restart)
virtual int childIndex(AssetWrapper *) override
void setDescription(QString description)
virtual void drag(QMimeData *) const override