Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_spacing_selection_widget.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2014 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_SPACING_SELECTION_WIDGET_H
8#define __KIS_SPACING_SELECTION_WIDGET_H
9
10#include <QWidget>
11#include <QScopedPointer>
12
13#include <kritawidgets_export.h>
14
15class KRITAWIDGETS_EXPORT KisSpacingSelectionWidget : public QWidget
16{
17 Q_OBJECT
18public:
19 KisSpacingSelectionWidget(QWidget *parent);
21
22 void setSpacing(bool isAuto, qreal spacing);
23
24 qreal spacing() const;
25 bool autoSpacingActive() const;
26 qreal autoSpacingCoeff() const;
27
28Q_SIGNALS:
30
31private:
32 Q_PRIVATE_SLOT(m_d, void slotSpacingChanged(qreal value));
33 Q_PRIVATE_SLOT(m_d, void slotAutoSpacing(bool value));
34
35private:
36 struct Private;
37 const QScopedPointer<Private> m_d;
38};
39
40#endif /* __KIS_SPACING_SELECTION_WIDGET_H */
float value(const T *src, size_t ch)
const QScopedPointer< Private > m_d
Q_PRIVATE_SLOT(m_d, void slotSpacingChanged(qreal value))
Q_PRIVATE_SLOT(m_d, void slotAutoSpacing(bool value))