-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
58 lines (49 loc) · 1.33 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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QVector>
#include <qwt_plot_curve.h>
#include "processorthread.h"
#include "storagethread.h"
#include "resultswindow.h"
#include "configurationwindow.h"
#include "ui_configurationwindow.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
QwtPlotCurve avgCurve1;
QwtPlotCurve avgCurve2;
QwtPlotCurve avgCurve3;
QwtPlotCurve mtCurve;
QwtPlotCurve dtCurve;
QVector<double> xs1;
QVector<double> ys1;
QVector<double> xs2;
QVector<double> ys2;
QVector<double> xs3;
QVector<double> ys3;
QVector<double> xsmt;
QVector<double> ysmt;
QVector<double> xsdt;
QVector<double> ysdt;
ResultsWindow resultsWindow;
ConfigurationWindow configurationWindow;
ProcessorThread *processor;
StorageThread *storage;
public slots:
void newPointArrived(double res1, double res2, double res3, double mt, double dt);
void usedMemoryChanged(int preprocessor_blocks_count, int processor_blocks_count, int temp_buffer_position);
private slots:
void on_settingsButton_clicked();
void on_stopButton_clicked();
void on_startButton_clicked();
};
#endif // MAINWINDOW_H