Instrument doxyCluster
Loading...
Searching...
No Matches
speed.h
Go to the documentation of this file.
1#ifndef SPEED_H
2#define SPEED_H
3
4#include <QWidget>
5#include <QPainter>
6#include <QPen>
7#include <QBrush>
8#include <QTimer>
9#include <QFontDatabase>
10#include <QtMath>
11#include <QStyleOptionSlider>
12#include <QStylePainter>
13#include <QTimer>
14#include <QCoreApplication>
15#include <QDir>
16#include <QSettings>
17#include <QTimer>
18#include <iostream>
19#include <QDebug>
20
21class Speed : public QWidget
22{
23 Q_OBJECT
24public:
25 Speed(QWidget *parent = nullptr);
26 ~Speed();
27 void set_current(float n);
28 void paint_text(QPainter &painter);
29 void animation();
30 bool get_is_animating();
31 float get_current();
32 int get_max();
33 float get_current_angle();
34 float get_target_angle();
35
36protected:
37 void paintEvent(QPaintEvent *event) override;
38
39private:
40 int current;
41 const int max;
42 float current_angle;
43 float target_angle;
44 bool is_animating;
45 int font_id;
46 int font_id2;
47 QFontDatabase font;
48 QFontDatabase font2;
49};
50
51#endif // Speed_H
Definition speed.h:22
void set_current(float n)
Definition speed.cpp:72
float get_current()
Definition speed.cpp:107
void animation()
Definition speed.cpp:84
void paint_text(QPainter &painter)
Definition speed.cpp:59
~Speed()
Definition speed.cpp:123
float get_target_angle()
Definition speed.cpp:115
void paintEvent(QPaintEvent *event) override
Definition speed.cpp:21
int get_max()
Definition speed.cpp:119
float get_current_angle()
Definition speed.cpp:111
bool get_is_animating()
Definition speed.cpp:103