-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
72 lines (55 loc) · 1.71 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//
// Created by ahmee on 4/9/2024.
//
#ifndef PLOTTING_MAINWINDOW_H
#define PLOTTING_MAINWINDOW_H
#include <QWidget>
#include <QtCharts/QLineSeries>
#include <QtCharts/qchartview.h>
#include <QtCharts/QAbstractAxis>
#include <QtCharts/QValueAxis>
#include <QtCharts/QScatterSeries>
#include <QtCharts/QBarSeries>
#include <QtCharts/QBarSet>
#include <QtCharts/QBarCategoryAxis>
#include "QtWidgets"
#include "QThread"
#include <thread>
#include <chrono>
QT_BEGIN_NAMESPACE
namespace Ui { class main_window; }
QT_END_NAMESPACE
class main_window : public QWidget {
Q_OBJECT
public:
explicit main_window(QWidget *parent = nullptr);
QLineSeries *first_line = new QLineSeries();
QChart *mychart = new QChart();
QValueAxis *axisX = new QValueAxis();
QValueAxis *axisY = new QValueAxis();
QScatterSeries *my_scatter = new QScatterSeries();
QChart *second_chart = new QChart();
QValueAxis * second_X = new QValueAxis();
QValueAxis * second_y = new QValueAxis();
QBarSeries *my_bar = new QBarSeries();
QChart *third_chart = new QChart();
QBarCategoryAxis * third_X = new QBarCategoryAxis();
QValueAxis * third_y = new QValueAxis();
QChart *my_charts[3] = {mychart, second_chart,third_chart };
~main_window() override;
private:
Ui::main_window *ui;
public slots:
void on_pushButton_clicked();
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
void on_pushButton_4_clicked();
void set_page_to_brake_bias_cone();
void print_int(int index);
void set_page_to_brake_general();
void set_page_to_susp_pos();
void set_page_to_susp_his();
void set_page_to_tuning();
void set_page_to_gps();
};
#endif //PLOTTING_MAINWINDOW_H