Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_small_color_widget.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2008 Cyrille Berger <cberger@cberger.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef _KIS_SMALL_COLOR_WIDGET_H_
8#define _KIS_SMALL_COLOR_WIDGET_H_
9
10#include <QWidget>
11
12class KoColor;
15
16class KisSmallColorWidget : public QWidget
17{
18 Q_OBJECT
19public:
20 KisSmallColorWidget(QWidget* parent);
21 ~KisSmallColorWidget() override;
22public:
23 void resizeEvent(QResizeEvent * event) override;
24
26
27public:
28
29public Q_SLOTS:
30 void setHue(qreal h);
31 void setHSV(qreal h, qreal s, qreal v, bool notifyChanged = true);
32 void setColor(const KoColor &color);
33
34 void slotUpdatePalettes();
35 void updateSVPalette();
36
37Q_SIGNALS:
38 void colorChanged(const KoColor&);
39
41
42private Q_SLOTS:
43 void slotHueSliderChanged(const QPointF &pos);
44 void slotValueSliderChanged(const QPointF &pos);
45 void slotInitiateUpdateDynamicRange(int maxLuminance);
48
49private:
50 void updateDynamicRange(int maxLuminance);
51
52private:
53
54 void updateHuePalette();
55
56 template<class FillPolicy>
57 void uploadPaletteData(KisGLImageWidget *widget, const QSize &size);
58
59
60private:
61 struct Private;
62 Private* const d;
63};
64
65#endif
qreal v
void resizeEvent(QResizeEvent *event) override
void sigTellColorChangedInternal()
void colorChanged(const KoColor &)
void slotHueSliderChanged(const QPointF &pos)
void setDisplayColorConverter(KisDisplayColorConverter *converter)
KisSmallColorWidget(QWidget *parent)
void slotInitiateUpdateDynamicRange(int maxLuminance)
void slotValueSliderChanged(const QPointF &pos)
void setHSV(qreal h, qreal s, qreal v, bool notifyChanged=true)
void setColor(const KoColor &color)
void updateDynamicRange(int maxLuminance)
void uploadPaletteData(KisGLImageWidget *widget, const QSize &size)