-
Notifications
You must be signed in to change notification settings - Fork 9
/
rgbadjustments.h
43 lines (31 loc) · 850 Bytes
/
rgbadjustments.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
#ifndef RGBADJUSTMENTS_H
#define RGBADJUSTMENTS_H
#include <QDialog>
namespace Ui {
class rgbAdjustments;
}
class rgbAdjustments : public QDialog
{
Q_OBJECT
public:
explicit rgbAdjustments(QWidget *parent = nullptr);
~rgbAdjustments();
public slots:
void setRGBLevels(double r, double g, double b, double gamma);
signals:
void haveRGBLevels(double r, double g, double b, double gamma, bool reprocess);
private slots:
void on_gammaSpin_valueChanged(double arg1);
void on_gammaEnableChk_clicked();
void on_closeBtn_clicked();
void on_reprocessBtn_clicked();
private:
Ui::rgbAdjustments *ui;
double redLevel = 1.0;
double greenLevel = 1.0;
double blueLevel = 1.0;
double gammaLevel = 1.0;
double oldGammaLevel = 1.0;
bool emitUpdateSignal = true;
};
#endif // RGBADJUSTMENTS_H