16#include <QCryptographicHash>
18#include <klocalizedstring.h>
27#define DEFAULT_SPACING 0.25
63 Q_UNUSED(resourcesInterface);
83 e.setAttribute(
"name",
name());
QImage brushTipImage() const override
brushImage the image the brush tip can paint with. Not all brush types have a single image.
bool saveToDevice(QIODevice *dev) const override
void toXML(QDomDocument &d, QDomElement &e) const override
KisAbrBrush(const QString &filename, KisAbrBrushCollection *parent)
Construct brush to load filename later as brush.
void setBrushTipImage(const QImage &image) override
bool loadFromDevice(QIODevice *dev, KisResourcesInterfaceSP resourcesInterface) override
bool isSerializable() const override
KisAbrBrushCollection * m_parent
KoResourceSP clone() const override
QString defaultFileExtension() const override
virtual void setSpacing(double spacing)
virtual QImage brushTipImage() const
brushImage the image the brush tip can paint with. Not all brush types have a single image.
virtual void setBrushType(enumBrushType type)
void predefinedBrushToXML(const QString &type, QDomElement &e) const
virtual void toXML(QDomDocument &, QDomElement &) const
virtual void setBrushTipImage(const QImage &image)
QSharedPointer< KoResource > KoResourceSP
void setValid(bool valid)