diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-05-05 21:57:03 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2020-05-10 18:43:07 +0900 |
commit | 3c70b34ae35cd22d6b7424e4f8523a2c6a1a62e5 (patch) | |
tree | ef50fcfe5a65d7b11fa16c2b0ace195894c7fb51 /kmilo/generic/generic_monitor.h | |
parent | eabfd64e7420dad4f3ef847ed6a5e5833dfb789c (diff) | |
download | tdeutils-3c70b34ae35cd22d6b7424e4f8523a2c6a1a62e5.tar.gz tdeutils-3c70b34ae35cd22d6b7424e4f8523a2c6a1a62e5.zip |
KMilo: added keyboard support for screen brightness up/down.
This is inspired and partially include code from Roman Savochenko
proposed in bug 2783 and tdeutils #8.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kmilo/generic/generic_monitor.h')
-rw-r--r-- | kmilo/generic/generic_monitor.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kmilo/generic/generic_monitor.h b/kmilo/generic/generic_monitor.h index 44ff970..9305ac3 100644 --- a/kmilo/generic/generic_monitor.h +++ b/kmilo/generic/generic_monitor.h @@ -65,6 +65,8 @@ public slots: void fastVolumeUp(); void fastVolumeDown(); void mute(); + void brightnessUp(); + void brightnessDown(); void launchMail(); void launchBrowser(); void launchSearch(); @@ -83,12 +85,13 @@ private: bool retrieveMute(); bool retrieveVolume(); void displayVolume(); + void brightnessChange(int direction, int step); void launch(TQString configKey, TQString defaultApplication); TDEGlobalAccel *ga; TDEConfig* config; - DCOPRef *kmixClient, *kmixWindow; + DCOPRef *kmixClient, *kmixWindow, *tdepowersave; int m_progress; long m_volume; |