summaryrefslogtreecommitdiffstats
path: root/deco/config/colorpicker.h
blob: 3b4ec4877abf52610ccf833737d8b83d973cc73a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef COLORPICKER_H
#define COLORPICKER_H

//#include <qvariant.h>
#include <qgroupbox.h>

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