7#ifndef _KIS_COLOR_INPUT_H_
8#define _KIS_COLOR_INPUT_H_
26#include "kritawidgets_export.h"
34 return m_usePercentage;
37 m_usePercentage = val;
50 bool m_usePercentage {
false};
59 QWidget* createInput()
override;
60 void updateMaximums();
61 void setPercentageWise(
bool val)
override;
66 void onColorSliderChanged(
int);
67 void onNumInputChanged(
int);
79 QWidget* createInput()
override;
81 void setValue(
double);
82 void sliderChanged(
int);
86 qreal m_minValue {0.0};
87 qreal m_maxValue {0.0};
96 QWidget* createInput()
override;
101 QLineEdit* m_hexInput {
nullptr};
102 QLabel* m_colorPreview=
nullptr;
117 void setValue(
double);
119 void hueSliderChanged(
int);
120 void saturationSliderChanged(
int);
121 void valueSliderChanged(
int);
130 void recolorSliders();
131 void fillColor(QColor& color);
132 void fillColor(QColor& color,
const qreal& h,
const qreal& s,
const qreal& x);
133 void getHsxF(
const QColor& color, qreal* h, qreal* s, qreal* x);
void setSaturation(TReal &r, TReal &g, TReal &b, TReal sat)
The KisDoubleParseSpinBox class is a cleverer doubleSpinBox, able to parse arithmetic expressions.
The KisIntParseSpinBox class is a cleverer SpinBox, able to parse arithmetic expressions.
static KoColorDisplayRendererInterface * instance()