DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Loading...
Searching...
No Matches
SignalPlotterBackend.h
Go to the documentation of this file.
1// This file is part of DynExp.
2
8#pragma once
9
10#include <qqml.h>
11
12#include "stdafx.h"
14
16{
17 class SignalPlotterBackend : public QObject
18 {
19 Q_OBJECT
20 QML_ELEMENT
21
22 Q_PROPERTY(bool Running READ IsRunning WRITE SetRunning NOTIFY runningChanged)
23
24 public:
25 SignalPlotterBackend(QObject* parent = nullptr);
27
28 bool IsRunning() const noexcept { return Running; }
29 void SetRunning(bool Running) noexcept;
30
33
34 void SetRollingView(bool State) { emit qrollingViewChanged(State); }
35 void SetAutoscale(bool State) { emit qautoscaleChanged(State); }
36
37 Q_INVOKABLE void SetGraphBackend(QObject* Object);
38
39 signals:
40 void runningChanged(bool);
41
42 // to QML
45
46 // from QML
47 void saveData();
49 void autoscaleChanged(bool);
51
52 private:
53 bool Running = true;
54
56 };
57}
C++ backend of the QDynExpLineGraph QML component.
DynExpQuick::DynExpLineGraphBackend * GetGraph() const
DynExpQuick::DynExpLineGraphBackend * Graph
Accumulates include statements to provide a precompiled header.