forked from MX-Linux/mx-tweak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
brightness_small.h
59 lines (52 loc) · 1.49 KB
/
brightness_small.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
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef BRIGHTNESS_SMALL_H
#define BRIGHTNESS_SMALL_H
#include <QMainWindow>
#include <QProcess>
#include <QFile>
#include <QApplication>
#include <unistd.h>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QKeyEvent>
namespace Ui {
class brightness_small;
}
class brightness_small : public QMainWindow
{
Q_OBJECT
public:
explicit brightness_small(QWidget *parent = 0, const QStringList &args = QStringList());
~brightness_small();
void setmissingxfconfvariables(const QString &activeprofile, const QString &resolution);
void setupbacklight();
void setbacklight();
void setupBrightness();
void setupGamma();
void setBrightness();
void saveBrightness();
void setupDisplay();
bool brightnessflag = false;
static void launchfulldisplaydialog();
QString g1;
QString g2;
QString g3;
bool expand;
private slots:
void changeEvent(QEvent *event);
void iconActivated(QSystemTrayIcon::ActivationReason reason);
void keyPressEvent(QKeyEvent *event);
void messageClicked();
void on_buttonSave_clicked();
void on_comboBoxDisplay_currentIndexChanged(int index);
void on_horizontalSliderBrightness_valueChanged(int value);
void on_horizsliderhardwarebacklight_actionTriggered(int action);
void on_toolButtonExpandBacklight_clicked();
void setPosition();
private:
Ui::brightness_small *ui;
QSystemTrayIcon *trayicon;
QAction *quitAction;
QAction *full;
QMenu *menu;
};
#endif // BRIGHTNESS_SMALL_H