From dcecacbf52121d6f8adf076d2cebaeec1e141339 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 23 Aug 2012 20:23:19 +0200 Subject: Implement automatic reset/reload when script file changes on disc. --- src/outputwindow.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/outputwindow.h') diff --git a/src/outputwindow.h b/src/outputwindow.h index 88b94c8..5f14099 100644 --- a/src/outputwindow.h +++ b/src/outputwindow.h @@ -40,13 +40,14 @@ Q_OBJECT public: OutputWindow(); - void reset(); - void forward(int x); void turn(int x); + void stopScript(); + public slots: void timeout(); + void reset(); protected: void paintEvent(QPaintEvent * event); @@ -57,6 +58,8 @@ private: QTimer timer; QSemaphore sem; QVector points; + + volatile bool stop; }; #endif/*__KAIMAN_OUTPUTWINDOW_H__*/ -- cgit v1.2.3