-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
52 lines (39 loc) · 922 Bytes
/
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "piestimator.h"
#include <QMainWindow>
#include <QtCore>
#include <QHBoxLayout>
#include <QFrame>
#include <QLineSeries>
#include <QtCharts>
#include <QChart>
class DrawingWidget;
namespace Ui
{
class MainWindowForm;
}
class MainWindow570 : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow570(QWidget *parent = 0);
~MainWindow570();
void setup_chart();
void setup_drawing();
void clear_chart();
void replot_line();
public slots:
void actionExit_triggered();
private slots:
void calculateButton_clicked();
void clearButton_clicked();
private:
Ui::MainWindowForm *mMainWindowUI;
DrawingWidget* drawing;
QChart *chartForViewingPiEstimate;
PiEstimator piEstimation;
QLineSeries *piSeries;
int amountSamples{0};
};
#endif // MAINWINDOW_H