-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcoloredit.h
More file actions
41 lines (33 loc) · 752 Bytes
/
Copy pathcoloredit.h
File metadata and controls
41 lines (33 loc) · 752 Bytes
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
#ifndef COLOREDIT_H
#define COLOREDIT_H
#include <QWidget>
#include <QSlider>
#include <QLabel>
#include <QGridLayout>
#include "roboimage.h"
class ColorEdit : public QWidget
{
Q_OBJECT
public:
enum Colors { Yellow, Blue, Orange, Green, White, Pink, Navy };
explicit ColorEdit(Colors c, RoboImage r1, QWidget *parent = 0);
signals:
public slots:
void grabHMin(int x);
void grabHMax(int x);
void grabSMin(int x);
void grabSMax(int x);
void grabZMin(int x);
void grabZMax(int x);
private:
QSlider *hMin;
QSlider *hMax;
QSlider *sMin;
QSlider *sMax;
QSlider *zMin;
QSlider *zMax;
int hLow, hHigh, sLow, sHigh, zLow, zHigh;
RoboImage r;
Colors color;
};
#endif // COLOREDIT_H