You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tde-style-baghira/deco/config/colorpicker.h

45 lines
789 B

#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