diff options
Diffstat (limited to 'config/colorpicker.h')
-rw-r--r-- | config/colorpicker.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/config/colorpicker.h b/config/colorpicker.h new file mode 100644 index 0000000..6f813b2 --- /dev/null +++ b/config/colorpicker.h @@ -0,0 +1,39 @@ +#ifndef COLORPICKER_H +#define COLORPICKER_H + +#include <qgroupbox.h> + +class KIntNumInput; +class QColor; + +class ColorPicker : public QGroupBox +{ + Q_OBJECT + +public: + ColorPicker( QWidget* parent = 0, const char* name = 0); + ~ColorPicker(); + QColor & color(); + +public slots: + void setColor(const QColor & color); + void setRed(int red); + void emitChange(); + void setGreen(int green); + void setBlue(int blue); + void reset(); + void init(); + +protected: + KIntNumInput *red; + KIntNumInput *green; + KIntNumInput *blue; + QColor color_; + QColor color__; + +signals: + void colorChanged(QColor color); + +}; + +#endif // COLORPICKER_H |