Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_shade_selector_line_editor.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2010 Adam Celarek <kdedev at xibo dot at>
3 * SPDX-FileCopyrightText: 2013 Dmitry Kazakov <dimula73@gmail.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
7
8#ifndef __KIS_SHADE_SELECTOR_LINE_EDITOR_H
9#define __KIS_SHADE_SELECTOR_LINE_EDITOR_H
10
11#include <QVBoxLayout>
12#include <QHBoxLayout>
13#include <QDoubleSpinBox>
14
15#include <klocalizedstring.h>
16
18
20
22 Q_OBJECT
23public:
24 KisShadeSelectorLineEditor(QWidget* parent, KisShadeSelectorLine *preview);
25
26 QString toString() const override;
27 void fromString(const QString &string) override;
28
29 void mousePressEvent(QMouseEvent* e) override;
30
31private:
32 void updatePreview();
33
34private Q_SLOTS:
35 void valueChanged();
36
37Q_SIGNALS:
38 void requestActivateLine(QWidget *widget);
39
40private:
42
49};
50
51#endif /* __KIS_SHADE_SELECTOR_LINE_EDITOR_H */
The KisDoubleParseSpinBox class is a cleverer doubleSpinBox, able to parse arithmetic expressions.
void mousePressEvent(QMouseEvent *e) override
KisShadeSelectorLineEditor(QWidget *parent, KisShadeSelectorLine *preview)
void fromString(const QString &string) override
void requestActivateLine(QWidget *widget)