-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathColorPanel.h
46 lines (42 loc) · 923 Bytes
/
ColorPanel.h
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
45
46
#ifndef COLORPANEL_H
#define COLORPANEL_H
#include "ColorCompare.h"
#include "ColorPickor.h"
#include "HSPanel.h"
#include "PickerIcon.h"
#include "LSlider.h"
#include "ColorBlock.h"
#include <QPushButton>
#include <QWidget>
#include <Adjuster/Control.h>
class ColorPanel : public QWidget
{
Q_OBJECT
public:
explicit ColorPanel(QWidget *parent = nullptr);
HSPanel hsPanel;
LSlider lSlider;
ColorCompare colorCmp;
Control mode;
Control RH;
Control GS;
Control BL;
Control alpha;
Control binary;
PickerIcon btPicker;
ColorPickor colorPickor;
bool ignoreSignal;
public:
void setColor(QColor color);
private:
void createUI();
void connectUI();
void changeMode(QVariant mode);
void flushHSL(QVariant);
void setHS(QPoint HS);
void setL(int L);
void setColorFromString();
signals:
void colorChanged(QColor);
};
#endif // COLORPANEL_H