From 066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 21 Mar 2016 20:35:05 +0100 Subject: Initial import of baghira 0.8 --- deco/config/colorpicker.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 deco/config/colorpicker.h (limited to 'deco/config/colorpicker.h') diff --git a/deco/config/colorpicker.h b/deco/config/colorpicker.h new file mode 100644 index 0000000..3b4ec48 --- /dev/null +++ b/deco/config/colorpicker.h @@ -0,0 +1,44 @@ +#ifndef COLORPICKER_H +#define COLORPICKER_H + +//#include +#include + +class QSlider; +class QSpinBox; +class QColor; +//class QGroupBox; + +class ColorPicker : public QGroupBox +{ + Q_OBJECT + +public: + ColorPicker( QWidget* parent = 0, const char* name = 0); + ~ColorPicker(); + QColor Color(); + +public slots: + void setColor(QColor color); + void setRed(int red); + void setGreen(int green); + void setBlue(int blue); + void reset(); + void init(); + +protected: + QSlider *redSlider; + QSlider *greenSlider; + QSlider *blueSlider; + QSpinBox *redValue; + QSpinBox *greenValue; + QSpinBox *blueValue; + QColor color_; +// QGroupBox *box; + +signals: + void colorChanged(QColor color); + +}; + +#endif // COLORPICKER_H -- cgit v1.2.1