mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 23:13:43 +00:00
Option to display only the current span in smithchart
This commit is contained in:
parent
c3bcb70d87
commit
1dab72238b
12 changed files with 194 additions and 60 deletions
|
|
@ -11,12 +11,12 @@ class TracePlot : public QWidget
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
TracePlot( QWidget *parent = nullptr);
|
||||
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){Q_UNUSED(min);Q_UNUSED(max)};
|
||||
virtual void updateSpan(double min, double max);
|
||||
|
||||
static std::set<TracePlot *> getPlots();
|
||||
|
||||
|
|
@ -25,14 +25,11 @@ signals:
|
|||
void deleted(TracePlot*);
|
||||
|
||||
protected:
|
||||
// static const QColor Background;// = QColor(0,0,0);
|
||||
// static const QColor Border;// = QColor(255,255,255);
|
||||
// static const QColor Divisions;// = QColor(255,255,255);
|
||||
static constexpr int MinUpdateInterval = 100;
|
||||
// need to be called in derived class constructor
|
||||
void initializeTraceInfo(TraceModel &model);
|
||||
void initializeTraceInfo();
|
||||
void contextMenuEvent(QContextMenuEvent *event) override;
|
||||
virtual void updateContextMenu();
|
||||
virtual void updateContextMenu(){};
|
||||
virtual bool supported(Trace *t) = 0;
|
||||
virtual void replot(){};
|
||||
std::map<Trace*, bool> traces;
|
||||
|
|
@ -48,6 +45,9 @@ protected slots:
|
|||
void triggerReplot();
|
||||
virtual void markerAdded(TraceMarker *m);
|
||||
virtual void markerRemoved(TraceMarker *m);
|
||||
protected:
|
||||
double sweep_fmin, sweep_fmax;
|
||||
TraceModel &model;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue