Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_paintop_settings_widget.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2008 Boudewijn Rempt <boud@valdyas.org>
3 * SPDX-FileCopyrightText: 2021 L. E. Segovia <amy@amyspark.me>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7#ifndef KIS_PAINTOP_SETTINGS_WIDGET_H
8#define KIS_PAINTOP_SETTINGS_WIDGET_H
9
10#include <kritaui_export.h>
11
13
14#include <lager/reader.hpp>
15#include "kis_paintop_option.h"
16
20
27{
28 Q_OBJECT
29
30public:
31
32 KisPaintOpSettingsWidget(QWidget * parent = 0);
34
35 void addPaintOpOption(KisPaintOpOption *option);
36 void addPaintOpOption(KisPaintOpOption *option, KisPaintOpOption::PaintopCategory category);
37
39 void setConfiguration(const KisPropertiesConfigurationSP config) override;
40
42 void writeConfiguration(KisPropertiesConfigurationSP config) const override;
43
45 lager::reader<KisPaintopLodLimitations> lodLimitationsReader() const override;
46 lager::reader<qreal> effectiveBrushSize() const override;
47
49 void setImage(KisImageWSP image) override;
50
52 void setNode(KisNodeWSP node) override;
53
54 void setResourcesInterface(KisResourcesInterfaceSP resourcesInterface) override;
55 void setCanvasResourcesInterface(KoCanvasResourcesInterfaceSP canvasResourcesInterface) override;
56
57private Q_SLOTS:
58
59 void changePage(const QModelIndex&);
60 void lockProperties(const QModelIndex& index);
61 void slotLockPropertiesDrop();
62 void slotLockPropertiesSave();
63 void slotEntryChecked(const QModelIndex &index);
64
65protected:
66 void addPaintOpOption(KisPaintOpOption *option, QString category);
67 virtual void notifyPageChanged();
68 bool eventFilter(QObject *obj, QEvent *event) override;
69
70private:
71
72 struct Private;
73 Private* const m_d;
75
76};
77
78#endif
virtual void setCanvasResourcesInterface(KoCanvasResourcesInterfaceSP canvasResourcesInterface)
void setConfiguration(const KisPropertiesConfigurationSP config) override=0
virtual lager::reader< qreal > effectiveBrushSize() const =0
virtual KisPaintopLodLimitations lodLimitations() const =0
virtual lager::reader< KisPaintopLodLimitations > lodLimitationsReader() const =0
virtual void setImage(KisImageWSP image)
virtual void setResourcesInterface(KisResourcesInterfaceSP resourcesInterface)
virtual void writeConfiguration(KisPropertiesConfigurationSP config) const =0
virtual void setNode(KisNodeWSP node)