diff options
| author | Alexis Maiquez Murcia <almamu@almamu.com> | 2019-02-20 09:57:51 +0100 |
|---|---|---|
| committer | Alexis Maiquez Murcia <almamu@almamu.com> | 2019-02-20 09:57:51 +0100 |
| commit | 959357b391dc5d561788f50d0b84ddc11fefd478 (patch) | |
| tree | e4061246005f71644512f4ff6402a34814816faf /src/app.h | |
| parent | d843e6a66a11e07595c8c4964fb8a1d343172990 (diff) | |
| download | lead-959357b391dc5d561788f50d0b84ddc11fefd478.tar lead-959357b391dc5d561788f50d0b84ddc11fefd478.tar.gz lead-959357b391dc5d561788f50d0b84ddc11fefd478.zip | |
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 <almamu@almamu.com>
Diffstat (limited to 'src/app.h')
| -rw-r--r-- | src/app.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -29,6 +29,7 @@ SOFTWARE. #include "sensor.h" +#include "screenname.h" #include <QApplication> #include <QList> #include <QSettings> @@ -51,6 +52,8 @@ private: QSettings settings; QFileSystemWatcher watcher; QList<Sensor*> sensors; + QList<ScreenName*> 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: |
