summaryrefslogtreecommitdiff
path: root/src/outputwindow.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-12-26 19:53:20 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2018-12-26 19:53:20 +0100
commit41c30cdf376730a68fcda69b57b1139f143a5543 (patch)
treea109688cfa7d7a946d6a5268e484e220ed994af5 /src/outputwindow.h
parent1d1b1e025087fc99702beb14d70ead9291ed6470 (diff)
Fix indentation and code-style.
Diffstat (limited to 'src/outputwindow.h')
-rw-r--r--src/outputwindow.h72
1 files changed, 36 insertions, 36 deletions
diff --git a/src/outputwindow.h b/src/outputwindow.h
index bd8bf27..5e91f71 100644
--- a/src/outputwindow.h
+++ b/src/outputwindow.h
@@ -25,8 +25,7 @@
* along with Kaiman; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
*/
-#ifndef __KAIMAN_OUTPUTWINDOW_H__
-#define __KAIMAN_OUTPUTWINDOW_H__
+#pragma once
#include <QGLWidget>
#include <QTimer>
@@ -35,53 +34,54 @@
#include <QPoint>
#include <QSemaphore>
-class OutputWindow : public QGLWidget {
-Q_OBJECT
+class OutputWindow
+ : public QGLWidget
+{
+ Q_OBJECT
public:
- OutputWindow();
+ OutputWindow();
- void forward(double x);
- void turn(double x);
+ void forward(double x);
+ void turn(double x);
- void stopScript();
+ void stopScript();
- void setSpeed(int s);
- void setScale(double s);
- void setColour(int r, int g, int b, int a);
+ void setSpeed(int s);
+ void setScale(double s);
+ void setColour(int r, int g, int b, int a);
- void loadPen(QString file);
+ void loadPen(QString file);
- double coordX();
- double coordY();
+ double coordX();
+ double coordY();
public slots:
- void timeout();
- void reset();
+ void timeout();
+ void reset();
protected:
- void paintEvent(QPaintEvent * event);
+ void paintEvent(QPaintEvent * event);
private:
- class ColLine {
- public:
- QColor colour;
- QLine line;
- };
- QImage kaiman;
- double x, y, r;
- QTimer timer;
- QSemaphore sem;
- QVector<ColLine> lines;
- QVector<QPointF> current_points;
- QColor colour;
- volatile bool stop;
+ class ColLine
+ {
+ public:
+ QColor colour;
+ QLine line;
+ };
+ QImage kaiman;
+ double x, y, r;
+ QTimer timer;
+ QSemaphore sem;
+ QVector<ColLine> lines;
+ QVector<QPointF> current_points;
+ QColor colour;
+ volatile bool stop;
- volatile int speed;
+ volatile int speed;
- volatile bool loadpen;
- QString penfile;
+ volatile bool loadpen;
+ QString penfile;
- volatile float scale;
+ volatile float scale;
};
-
-#endif/*__KAIMAN_OUTPUTWINDOW_H__*/