From 959357b391dc5d561788f50d0b84ddc11fefd478 Mon Sep 17 00:00:00 2001 From: Alexis Maiquez Murcia Date: Wed, 20 Feb 2019 09:57:51 +0100 Subject: Added debug mode This allows the user to display the screen names, the sensors activated and the status of those sensors: red -> waiting for mouse to enter yellow -> waiting for delay timer to reach 0 green -> fired the command Signed-off-by: Alexis Maiquez Murcia --- src/app.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app.h') diff --git a/src/app.h b/src/app.h index 0906d5b..93393aa 100644 --- a/src/app.h +++ b/src/app.h @@ -29,6 +29,7 @@ SOFTWARE. #include "sensor.h" +#include "screenname.h" #include #include #include @@ -51,6 +52,8 @@ private: QSettings settings; QFileSystemWatcher watcher; QList sensors; + QList screenNames; + bool debugMode; void screenAdded(QScreen* screen); void screenRemoved(QScreen* screen); @@ -58,6 +61,7 @@ private: void loadScreens(); void loadScreen(QScreen* screen); void loadSensor(QScreen* screen, QString name, int x, int y, int w, int h); + void loadScreenNameDisplay(QScreen* screen); void reloadScreens(); public slots: -- cgit v1.2.3