Summary Files Commits Branches @commit @diff @stats
path: root / src / sensor.h
diff options
context:
space:
mode:
Commit959357b391dc5d561788f50d0b84ddc11fefd478 (patch)
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
Filese4061246005f71644512f4ff6402a34814816faf /src/sensor.h
lead-959357b391dc5d561788f50d0b84ddc11fefd478.tar
lead-959357b391dc5d561788f50d0b84ddc11fefd478.tar.gz
lead-959357b391dc5d561788f50d0b84ddc11fefd478.zip
Parentd843e6a66a11e07595c8c4964fb8a1d343172990 (diff)
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>
1 files changed, 2 insertions, 1 deletions
-rw-r--r--src/sensor.h3
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();