summaryrefslogtreecommitdiffstats
path: root/config/colorpicker.h
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-03-21 20:35:05 +0100
committerSlávek Banko <slavek.banko@axis.cz>2016-03-21 20:35:05 +0100
commit066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce (patch)
tree4cb26eb8ace976f7d0c8607dc2d3de2b5107670c /config/colorpicker.h
downloadtde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.tar.gz
tde-style-baghira-066aaaeb73a8bb908b1c0d8c45f110b2f799f7ce.zip
Initial import of baghira 0.8
Diffstat (limited to 'config/colorpicker.h')
-rw-r--r--config/colorpicker.h39
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