mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
Save/load trace and graph setup
This commit is contained in:
parent
b91f431473
commit
9ad8def2ea
33 changed files with 605 additions and 28 deletions
|
|
@ -7,17 +7,24 @@
|
|||
#include <QContextMenuEvent>
|
||||
#include <QTime>
|
||||
#include <QLabel>
|
||||
#include "savable.h"
|
||||
|
||||
class TracePlot : public QWidget
|
||||
class TracePlot : public QWidget, public Savable
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
enum class Type {
|
||||
SmithChart,
|
||||
XYPlot,
|
||||
};
|
||||
|
||||
TracePlot(TraceModel &model, QWidget *parent = nullptr);
|
||||
~TracePlot();
|
||||
|
||||
virtual void enableTrace(Trace *t, bool enabled);
|
||||
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||
virtual void updateSpan(double min, double max);
|
||||
virtual Type getType() = 0;
|
||||
|
||||
static std::set<TracePlot *> getPlots();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue