summaryrefslogtreecommitdiffstats
path: root/deco/config/colorpicker.h
blob: 7e4f77623ac8a967ae4ef28b8fd16b47f2fe8b73 (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 <tqvariant.h>
#include <tqgroupbox.h>

class TQSlider;
class TQSpinBox;
class TQColor;
//class TQGroupBox;

class ColorPicker : public TQGroupBox
{
    Q_OBJECT

public:
    ColorPicker( TQWidget* parent = 0, const char* name = 0);
    ~ColorPicker();
    TQColor Color();

public slots:
    void setColor(TQColor color);
    void setRed(int red);
    void setGreen(int green);
    void setBlue(int blue);
    void reset();
    void init();
    
protected:
    TQSlider *redSlider;
    TQSlider *greenSlider;
    TQSlider *blueSlider;
    TQSpinBox *redValue;
    TQSpinBox *greenValue;
    TQSpinBox *blueValue;
    TQColor color_;
//    TQGroupBox *box;

signals:
    void colorChanged(TQColor color);

};

#endif // COLORPICKER_H