Debian Codegraph @

plugins/tools/tool_enclose_and_fill/subtools/KisEllipseEnclosingProducer.h

raw symbols SCIP
1 /*
2 * KDE. Krita Project.
3 *
4 * SPDX-FileCopyrightText: 2022 Deif Lou <[email protected]>
5 *
6 * SPDX-License-Identifier: GPL-2.0-or-later
7 */
8
9 #ifndef KISELLIPSEENCLOSINGPRODUCER
10 #define KISELLIPSEENCLOSINGPRODUCER
11
12 #include <kis_tool_ellipse_base.h>
13 #include <kis_pixel_selection.h>
14
15 #include "KisDynamicDelegatedTool.h"
16
17 class KisEllipseEnclosingProducer : public KisDynamicDelegateTool<KisToolEllipseBase>
18 {
19 Q_OBJECT
20
21 public:
22 KisEllipseEnclosingProducer(KoCanvasBase *canvas);
23 ~KisEllipseEnclosingProducer() override;
24
25 bool hasUserInteractionRunning() const;
26
27 protected:
28 void finishRect(const QRectF& rect, qreal roundCornersX, qreal roundCornersY) override;
29 void beginShape() override;
30 void endShape() override;
31
32 Q_SIGNALS:
33 void enclosingMaskProduced(KisPixelSelectionSP enclosingMask);
34
35 private:
36 bool m_hasUserInteractionRunning {false};
37
38 protected Q_SLOTS:
39 void resetCursorStyle() override;
40 };
41
42 #endif