-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbrightness_small.h
More file actions
53 lines (47 loc) · 1.44 KB
/
brightness_small.h
File metadata and controls
53 lines (47 loc) · 1.44 KB
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
#pragma once
#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 = nullptr, const QStringList &args = QStringList()) noexcept;
~brightness_small() noexcept;
void setmissingxfconfvariables(const QString &activeprofile, const QString &resolution) noexcept;
void setupbacklight() noexcept;
void setbacklight() noexcept;
void setupBrightness() noexcept;
void setupGamma() noexcept;
void setBrightness() noexcept;
void setupDisplay() noexcept;
bool brightnessflag = false;
static void launchfulldisplaydialog() noexcept;
QString g1;
QString g2;
QString g3;
bool closetrayapp = false;
bool expand;
private:
Ui::brightness_small *ui;
QSystemTrayIcon *trayicon;
QAction *quitAction;
QAction *full;
QMenu *menu;
void setPosition() noexcept;
void changeEvent(QEvent *event) noexcept;
void keyPressEvent(QKeyEvent *event) noexcept;
void iconActivated(QSystemTrayIcon::ActivationReason reason) noexcept;
void pushSave_clicked() noexcept;
void comboDisplay_currentIndexChanged(int index) noexcept;
void sliderBrightness_valueChanged(int value) noexcept;
void pushExpandBacklight_clicked() noexcept;
};