Save/load trace and graph setup

This commit is contained in:
Jan Käberich 2020-12-04 23:49:52 +01:00
parent b91f431473
commit 9ad8def2ea
33 changed files with 605 additions and 28 deletions

View file

@ -4,8 +4,9 @@
#include <QWidget>
#include <complex>
#include <vector>
#include "savable.h"
class WindowFunction : public QObject
class WindowFunction : public QObject, public Savable
{
Q_OBJECT;
public:
@ -31,6 +32,9 @@ public:
Type getType() const;
QString getDescription();
virtual nlohmann::json toJSON() override;
virtual void fromJSON(nlohmann::json j) override;
signals:
void changed();