summaryrefslogtreecommitdiff
path: root/src/outputwindow.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-08-23 20:23:19 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-08-23 20:23:19 +0200
commitdcecacbf52121d6f8adf076d2cebaeec1e141339 (patch)
tree04f36b2a55f221985108c1a3d701b184ac5dc52d /src/outputwindow.h
parent1fc6eb2c1a8500602f2c45662dabbf164210a5b3 (diff)
Implement automatic reset/reload when script file changes on disc.
Diffstat (limited to 'src/outputwindow.h')
-rw-r--r--src/outputwindow.h7
1 files changed, 5 insertions, 2 deletions
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<QPointF> points;
+
+ volatile bool stop;
};
#endif/*__KAIMAN_OUTPUTWINDOW_H__*/