Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/specificcolorselector/kis_color_input.h
Show All 19 Lines | |||||
20 | 20 | | |||
21 | #include <QWidget> | 21 | #include <QWidget> | ||
22 | 22 | | |||
23 | class KoChannelInfo; | 23 | class KoChannelInfo; | ||
24 | class KoColor; | 24 | class KoColor; | ||
25 | class QWidget; | 25 | class QWidget; | ||
26 | class QSpinBox; | 26 | class QSpinBox; | ||
27 | class QDoubleSpinBox; | 27 | class QDoubleSpinBox; | ||
28 | class KisIntParseSpinBox; | ||||
29 | class KisDoubleParseSpinBox; | ||||
28 | class KoColorSlider; | 30 | class KoColorSlider; | ||
29 | class QLineEdit; | 31 | class QLineEdit; | ||
30 | #include "KoColorDisplayRendererInterface.h" | 32 | #include "KoColorDisplayRendererInterface.h" | ||
31 | 33 | | |||
32 | 34 | | |||
33 | class KisColorInput : public QWidget | 35 | class KisColorInput : public QWidget | ||
34 | { | 36 | { | ||
35 | Q_OBJECT | 37 | Q_OBJECT | ||
Show All 17 Lines | |||||
53 | public: | 55 | public: | ||
54 | KisIntegerColorInput(QWidget* parent, const KoChannelInfo*, KoColor* color, KoColorDisplayRendererInterface *displayRenderer); | 56 | KisIntegerColorInput(QWidget* parent, const KoChannelInfo*, KoColor* color, KoColorDisplayRendererInterface *displayRenderer); | ||
55 | protected: | 57 | protected: | ||
56 | virtual QWidget* createInput(); | 58 | virtual QWidget* createInput(); | ||
57 | public Q_SLOTS: | 59 | public Q_SLOTS: | ||
58 | void setValue(int); | 60 | void setValue(int); | ||
59 | void update(); | 61 | void update(); | ||
60 | private: | 62 | private: | ||
61 | QSpinBox* m_intNumInput; | 63 | KisIntParseSpinBox* m_intNumInput; | ||
62 | }; | 64 | }; | ||
63 | 65 | | |||
64 | 66 | | |||
65 | class KisFloatColorInput : public KisColorInput | 67 | class KisFloatColorInput : public KisColorInput | ||
66 | { | 68 | { | ||
67 | Q_OBJECT | 69 | Q_OBJECT | ||
68 | public: | 70 | public: | ||
69 | KisFloatColorInput(QWidget* parent, const KoChannelInfo*, KoColor* color, KoColorDisplayRendererInterface *displayRenderer); | 71 | KisFloatColorInput(QWidget* parent, const KoChannelInfo*, KoColor* color, KoColorDisplayRendererInterface *displayRenderer); | ||
70 | protected: | 72 | protected: | ||
71 | virtual QWidget* createInput(); | 73 | virtual QWidget* createInput(); | ||
72 | public Q_SLOTS: | 74 | public Q_SLOTS: | ||
73 | void setValue(double); | 75 | void setValue(double); | ||
74 | void sliderChanged(int); | 76 | void sliderChanged(int); | ||
75 | void update(); | 77 | void update(); | ||
76 | private: | 78 | private: | ||
77 | QDoubleSpinBox* m_dblNumInput; | 79 | KisDoubleParseSpinBox* m_dblNumInput; | ||
78 | qreal m_minValue; | 80 | qreal m_minValue; | ||
79 | qreal m_maxValue; | 81 | qreal m_maxValue; | ||
80 | }; | 82 | }; | ||
81 | 83 | | |||
82 | class KisHexColorInput : public KisColorInput | 84 | class KisHexColorInput : public KisColorInput | ||
83 | { | 85 | { | ||
84 | Q_OBJECT | 86 | Q_OBJECT | ||
85 | public: | 87 | public: | ||
Show All 11 Lines |