Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_dlg_stroke_selection_properties.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Alexey Kapustin <akapust1n@yandex.ru>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6#ifndef KIS_DLG_STROKE_SELECTION_PROPERTIES_H_
7#define KIS_DLG_STROKE_SELECTION_PROPERTIES_H_
8
9#include <KoDialog.h>
11#include <kis_types.h>
12#include "KisViewManager.h"
14#include "ui_wdgstrokeselectionproperties.h"
15#include <kis_canvas2.h>
16#include <KisToolShapeUtils.h>
17
18class KoColorSpace;
20
25
26enum class DrawType
27{
29};
30
32{
34};
35
39
55
56class WdgStrokeSelection : public QWidget, public Ui::WdgStrokeSelection
57{
58 Q_OBJECT
59
60
61public:
62 WdgStrokeSelection(QWidget *parent) ;
64
65 bool m_isVectorLayer {false};
67
68 void enableControls();
69
70Q_SIGNALS:
73
74private Q_SLOTS:
75 void on_fillBox_currentIndexChanged(int index);
76 void on_typeBox_currentIndexChanged(int index);
78
79};
80
81
83{
84
85 Q_OBJECT
86
87public:
88 KisDlgStrokeSelection(KisImageWSP image, KisViewManager *view, bool isVectorLayer);
89 ~KisDlgStrokeSelection() override;
90
91 int getLineSize() const;
94 bool isBrushSelected() const;
97
98private:
103 bool m_isVectorLayer {false};
104
105private Q_SLOTS:
106 void setColorFillButton();
107 void setColorButton();
108 void colorChanged(const QColor &newColor);
109 void colorFillChanged(const QColor &newColor);
110};
111
112
113
114#endif // KIS_DLG_STROKE_SEL_PROPERTIES_H_
KisDlgStrokeSelection(KisImageWSP image, KisViewManager *view, bool isVectorLayer)
StrokeSelectionOptions getParams() const
KoCanvasResourceProvider * m_resourceManager
void colorFillChanged(const QColor &newColor)
void colorChanged(const QColor &newColor)
A dialog base class with standard buttons and predefined layouts.
Definition KoDialog.h:116
void colorFillSelectorChanged()
void colorSelectorChanged()
KisPropertiesConfigurationSP m_cfg
KisToolShapeUtils::FillStyle fillStyle() const