From 41c30cdf376730a68fcda69b57b1139f143a5543 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 26 Dec 2018 19:53:20 +0100 Subject: Fix indentation and code-style. --- src/outputwindow.h | 72 +++++++++++++++++++++++++++--------------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'src/outputwindow.h') 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 #include @@ -35,53 +34,54 @@ #include #include -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 lines; - QVector 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 lines; + QVector 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__*/ -- cgit v1.2.3