Fixed NetSend so it can be used in debug mode.
[qt/compvision.git] / ColorPicker.h
1 #ifndef COLORPICKER_H
2 #define COLORPICKER_H
3
4 #include "ui_ColorPicker.h"
5
6 #include <QColor>
7 #include <QPixmap>
8
9 class ColorPicker : public QDialog, private Ui::ColorPicker
10 {
11         Q_OBJECT
12
13         public:
14                 ColorPicker(QWidget *parent=0);\r
15         \r
16         public slots:\r
17                 void setColor(int color);
18
19         private slots:
20                 void setR(int r);
21                 void setG(int g);
22                 void setB(int b);
23
24                 void setH(int h);
25                 void setS(int s);
26                 void setV(int v);\r
27         \r
28                 void setDefault();\r
29                 void restoreDefault();
30
31         private:
32                 QPixmap *preview;\r
33                 QColor lastColor;
34                 int r,g,b;
35                 int h,s,v;\r
36                 void refresh(int color);
37 };
38
39 #endif