-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathtweak_plasma.h
More file actions
47 lines (39 loc) · 1.29 KB
/
tweak_plasma.h
File metadata and controls
47 lines (39 loc) · 1.29 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
#ifndef TWEAK_PLASMA_H
#define TWEAK_PLASMA_H
#include <QObject>
namespace Ui {
class Tweak;
}
class TweakPlasma : public QObject
{
Q_OBJECT
public:
TweakPlasma() = delete;
TweakPlasma(Ui::Tweak *ui, bool verbose, QObject *parent = nullptr) noexcept;
void setup() noexcept;
bool checkPlasma() const noexcept;
private:
Ui::Tweak *ui;
bool verbose;
QString panelID;
QString taskManagerID;
struct {
bool placement : 1;
bool workspaces : 1;
bool singleClick : 1;
bool reset : 1;
bool sysTrayIconSize : 1;
bool autoStartDiscover : 1;
} flags = {};
void pushApplyPlasma_clicked() noexcept;
void comboPlasmaPanelLocation_currentIndexChanged(int) noexcept;
void checkPlasmaSingleClick_clicked() noexcept;
void checkPlasmaShowAllWorkspaces_clicked() noexcept;
void checkPlasmaResetDock_clicked() noexcept;
void checkPlasmaDiscoverUpdater_clicked() noexcept;
QString readPlasmaPanelConfig(const QString &Key) const noexcept;
QString readTaskmanagerConfig(const QString &Key) const noexcept;
void writePlasmaPanelConfig(const QString &key, const QString &value) const noexcept;
void writeTaskmanagerConfig(const QString &key, const QString &value) const noexcept;
};
#endif // TWEAK_PLASMA_H