summaryrefslogtreecommitdiffstats
path: root/kmilo/generic/generic_monitor.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-05-05 21:57:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-05-10 18:45:44 +0900
commit88fd5db6abc089d22ef4918c012f4008629417ef (patch)
tree700447f60260c854a6a23ef90f3ca4e3630703bf /kmilo/generic/generic_monitor.h
parentc7fd6c0c06b0fb5926a63b51c1b972b8b5e7465e (diff)
downloadtdeutils-88fd5db6abc089d22ef4918c012f4008629417ef.tar.gz
tdeutils-88fd5db6abc089d22ef4918c012f4008629417ef.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> (cherry picked from commit 3c70b34ae35cd22d6b7424e4f8523a2c6a1a62e5)
Diffstat (limited to 'kmilo/generic/generic_monitor.h')
-rw-r--r--kmilo/generic/generic_monitor.h5
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;