aboutsummaryrefslogtreecommitdiff
path: root/src/app.h
diff options
context:
space:
mode:
authorAlexis Maiquez Murcia <almamu@almamu.com>2019-02-20 09:57:51 +0100
committerAlexis Maiquez Murcia <almamu@almamu.com>2019-02-20 09:57:51 +0100
commit959357b391dc5d561788f50d0b84ddc11fefd478 (patch)
treee4061246005f71644512f4ff6402a34814816faf /src/app.h
parentd843e6a66a11e07595c8c4964fb8a1d343172990 (diff)
downloadlead-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.h4
1 files changed, 4 insertions, 0 deletions
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 <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: