Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/colorslider/kis_color_slider_input.h
Show All 21 Lines | |||||
22 | #include <QWidget> | 22 | #include <QWidget> | ||
23 | #include "KoColorDisplayRendererInterface.h" | 23 | #include "KoColorDisplayRendererInterface.h" | ||
24 | #include "kis_canvas2.h" | 24 | #include "kis_canvas2.h" | ||
25 | 25 | | |||
26 | 26 | | |||
27 | class KoColor; | 27 | class KoColor; | ||
28 | class QWidget; | 28 | class QWidget; | ||
29 | class QDoubleSpinBox; | 29 | class QDoubleSpinBox; | ||
30 | class KisDoubleParseSpinBox; | ||||
30 | class KisHSVSlider; | 31 | class KisHSVSlider; | ||
31 | class KisDisplayColorConverter; | 32 | class KisDisplayColorConverter; | ||
32 | 33 | | |||
33 | 34 | | |||
34 | 35 | | |||
35 | class KisColorSliderInput : public QWidget | 36 | class KisColorSliderInput : public QWidget | ||
36 | { | 37 | { | ||
37 | Q_OBJECT | 38 | Q_OBJECT | ||
Show All 33 Lines | 65 | public Q_SLOTS: | |||
71 | void sliderIn(); | 72 | void sliderIn(); | ||
72 | void sliderOut(); | 73 | void sliderOut(); | ||
73 | void numInputChanged(double v); | 74 | void numInputChanged(double v); | ||
74 | Q_SIGNALS: | 75 | Q_SIGNALS: | ||
75 | void hueUpdated(int); | 76 | void hueUpdated(int); | ||
76 | void satUpdated(int, int); | 77 | void satUpdated(int, int); | ||
77 | void toneUpdated(int, int); | 78 | void toneUpdated(int, int); | ||
78 | private: | 79 | private: | ||
79 | QDoubleSpinBox* m_NumInput; | 80 | KisDoubleParseSpinBox* m_NumInput; | ||
80 | qreal m_hue; | 81 | qreal m_hue; | ||
81 | qreal m_sat; | 82 | qreal m_sat; | ||
82 | qreal m_val; | 83 | qreal m_val; | ||
83 | qreal R, G, B, Gamma; | 84 | qreal R, G, B, Gamma; | ||
84 | bool m_hueupdating; | 85 | bool m_hueupdating; | ||
85 | bool m_satupdating; | 86 | bool m_satupdating; | ||
86 | bool m_toneupdating; | 87 | bool m_toneupdating; | ||
87 | bool m_sliderisupdating; | 88 | bool m_sliderisupdating; | ||
88 | }; | 89 | }; | ||
89 | 90 | | |||
90 | #endif | 91 | #endif |