Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_tool_lazy_brush_options_widget.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_TOOL_LAZY_BRUSH_OPTIONS_WIDGET_H
8#define __KIS_TOOL_LAZY_BRUSH_OPTIONS_WIDGET_H
9
10#include <QScopedPointer>
11#include <QWidget>
12#include <QModelIndex>
13
14#include "kis_types.h"
15#include "KisSwatchGroup.h"
16
18class KoColor;
19
20
24class KisToolLazyBrushOptionsWidget : public QWidget
25{
26 Q_OBJECT
27public:
30
31private Q_SLOTS:
32 void entrySelected(QModelIndex index);
33 void slotCurrentFgColorChanged(const KoColor &color);
36
37 void slotMakeTransparent(bool value);
38 void slotRemove();
39
40 void slotUpdate();
41 void slotSetAutoUpdates(bool value);
43 void slotSetShowOutput(bool value);
44
47 void slotRadiusChanged(int value);
48 void slotCleanUpChanged(int value);
50
51
53
54protected:
55 void showEvent(QShowEvent *event) override;
56 void hideEvent(QHideEvent *event) override;
57
58private /* methods */:
59 static bool sortSwatchInfo(const KisSwatchGroup::SwatchInfo &first, const KisSwatchGroup::SwatchInfo &second);
60
61private /* member variables */:
62 friend struct PaletteEventFilter;
63
64 struct Private;
65 const QScopedPointer<Private> m_d;
66};
67
68#endif /* __KIS_TOOL_LAZY_BRUSH_OPTIONS_WIDGET_H */
float value(const T *src, size_t ch)
The KisToolLazyBrushOptionsWidget class.
KisToolLazyBrushOptionsWidget(KisCanvasResourceProvider *provider, QWidget *parent)
const KisSwatchGroup::SwatchInfo & second