-
Notifications
You must be signed in to change notification settings - Fork 0
/
measurementdock.h
48 lines (35 loc) · 1.07 KB
/
measurementdock.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
#ifndef MEASUREMENTDOCK_H
#define MEASUREMENTDOCK_H
#include <QDockWidget>
#include <ui_measurementdock.h>
#include "packet.h"
#include "experiment.h"
class MeasurementDock : public QDockWidget, private Ui::MeasurementDock
{
Q_OBJECT
public:
explicit MeasurementDock(QWidget *parent = nullptr);
private:
void connectObjects();
void addNewExperiment(Experiment* experiment);
QList<Experiment *> experiments;
int currentExperimentIndex = -1;
bool isExperimentRunning = false;
void executeNextMeasurement();
public slots:
void save();
void onPacketReceived(std::shared_ptr<Packet>);
signals:
void sendPacket(std::shared_ptr<SendablePacket>);
void removeSeries(QList<QAbstractSeries *> series);
void addSeries(QList<QAbstractSeries *> series);
void setAxes(AxesRange range);
private slots:
void onNewClicked();
void onCurrentExperimentChanged(int index);
void onCellChanged(int row, int column);
void onLoadClicked();
void onSaveLocationClicked();
void onStartClicked();
};
#endif // MEASUREMENTDOCK_H