Krita Source Code Documentation
Loading...
Searching...
No Matches
MyPaintPaintOpPreset.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Ashwin Dhakaita <ashwingpdhakaita@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KIS_MYPAINT_BRUSH_H
8#define KIS_MYPAINT_BRUSH_H
9
10#include <libmypaint/mypaint-brush.h>
11#include <KoColor.h>
13#include <kis_painter.h>
14#include <KoResource.h>
15#include <KisResourceTypes.h>
16#include <kis_paintop_preset.h>
17
19{
20public:
21
22 KisMyPaintPaintOpPreset(const QString &fileName="");
25
26 KoResourceSP clone() const override;
27
28 void setColor(const KoColor color, const KoColorSpace *colorSpace);
30 MyPaintBrush* brush();
31
32 bool loadFromDevice(QIODevice *dev, KisResourcesInterfaceSP resourcesInterface) override;
33
34 QPair<QString, QString> resourceType() const override {
36 }
37
38 void updateThumbnail() override;
39 QString thumbnailPath() const override;
40
41 QByteArray getJsonData();
42
43private:
44 class Private;
45 Private* const d;
46};
47
48#endif // KIS_MYPAINT_BRUSH_H
void apply(KisPaintOpSettingsSP settings)
bool loadFromDevice(QIODevice *dev, KisResourcesInterfaceSP resourcesInterface) override
void updateThumbnail() override
updateThumbnail updates the thumbnail for this resource. Reimplement if your thumbnail is something e...
QPair< QString, QString > resourceType() const override
KoResourceSP clone() const override
void setColor(const KoColor color, const KoColorSpace *colorSpace)
KisMyPaintPaintOpPreset(const QString &fileName="")
QString thumbnailPath() const override
thumbnailPath returns the path to a separate thumbnail image, outside the actual resource file itself...
const QString MyPaintPaintOpPresets
const QString PaintOpPresets
KisResourcesInterfaceSP resourcesInterface() const
KisPaintOpSettingsSP settings