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/sensor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sensor.h') diff --git a/src/sensor.h b/src/sensor.h index bc4857b..4b86690 100644 --- a/src/sensor.h +++ b/src/sensor.h @@ -41,7 +41,7 @@ class Sensor : public QWidget Q_OBJECT public: - explicit Sensor(int x, int y, int w, int h, QString enterAction, QString exitAction, int enterInterval, int exitInterval); + explicit Sensor(int x, int y, int w, int h, QString enterAction, QString exitAction, int enterInterval, int exitInterval, bool debugMode); ~Sensor(); protected: @@ -56,6 +56,7 @@ private: int enterInterval; int exitInterval; bool canTriggerExit; + bool debugMode; public slots: void activateEnter(); -- cgit v1.2.3