2021-03-29 18:47:21 -07:00
|
|
|
#ifndef BRIGHTNESSDIALOG_H
|
|
|
|
#define BRIGHTNESSDIALOG_H
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class brightnessDialog;
|
|
|
|
}
|
|
|
|
|
|
|
|
class brightnessDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
QString checkconfig_str_val;
|
|
|
|
int oldValue;
|
2021-07-16 13:41:36 -07:00
|
|
|
int oldWarmthValue;
|
2021-06-25 19:09:42 -07:00
|
|
|
void pre_set_brightness(int brightnessValue);
|
2021-03-29 18:47:21 -07:00
|
|
|
explicit brightnessDialog(QWidget *parent = nullptr);
|
|
|
|
~brightnessDialog();
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_quitBtn_clicked();
|
|
|
|
void on_horizontalSlider_valueChanged(int value);
|
|
|
|
void on_incBtn_clicked();
|
|
|
|
void on_decBtn_clicked();
|
|
|
|
void on_okBtn_clicked();
|
2021-07-16 13:41:36 -07:00
|
|
|
void on_warmthSlider_valueChanged(int value);
|
|
|
|
void on_warmthDecBtn_clicked();
|
|
|
|
void on_warmthIncBtn_clicked();
|
2021-03-29 18:47:21 -07:00
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::brightnessDialog *ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // BRIGHTNESSDIALOG_H
|