Go to the documentation of this file.
13 #ifndef ASSETWRAPPER_H
14 #define ASSETWRAPPER_H
60 virtual bool canDrag()
const {
return false; }
61 virtual void drag(QMimeData *)
const { }
62 virtual bool canDrop(
const QMimeData *,
int)
const {
return false; }
63 virtual void drop(
const QMimeData *,
int) { }
114 #define ATW_RPROP(type_, name_, field_) \
116 type_ name_() const { return myWrappedItem->field_; } \
117 Q_PROPERTY(type_ name_ READ name_)
126 #define ATW_PROP(type_, name_, field_) \
128 type_ name_() const { return myWrappedItem->field_; } \
129 void name_(const type_ &val) { myWrappedItem->field_ = val; } \
130 Q_PROPERTY(type_ name_ READ name_ WRITE name_)
virtual void drag(QMimeData *) const
AssetWrapper(AssetWrapper *parent, const QString &panelName="empty")
void setDisplayParent(AssetWrapper *parent)
virtual void removeChild(AssetWrapper *)
virtual AssetWrapper * child(int)
static const char * tipProperty
virtual bool canDrag() const
virtual int childrenCount() const
virtual bool canDrop(const QMimeData *, int) const
virtual ~AssetWrapper() override
virtual void fillMenu(QMenu *)
virtual int childIndex(AssetWrapper *)
virtual void drop(const QMimeData *, int)
virtual QIcon displayIcon() const
virtual PossibleUse uses(const AssetWrapper *, std::string &) const
virtual void wasModified(AssetWrapper *asset, ChangeType type, int extra)
void dataModified(AssetWrapper *asset, AssetWrapper::ChangeType type, int extra)
AssetTWrapper(AssetWrapper *parent, const QString &panelName, T *wrappedItem)
void markModified(ChangeType change, int extra=0)
virtual QString displayPanelName() const
static bool compareByDisplayName(const AssetWrapper *left, const AssetWrapper *right)
AssetWrapper * displayParent() const