Automatically adjust domain of graph to dropped trace

This commit is contained in:
Jan Käberich 2021-02-22 13:39:47 +01:00
parent 20b0b336bb
commit f6cc46781e
7 changed files with 43 additions and 4 deletions

View file

@ -55,7 +55,7 @@ public slots:
protected:
virtual void updateContextMenu() override;
virtual bool supported(Trace *t) override;
virtual bool dropSupported(Trace *t) override;
virtual void draw(QPainter &p) override;
private slots:
@ -69,6 +69,7 @@ private:
YAxisType YAxisTypeFromName(QString name);
XAxisMode AxisModeFromName(QString name);
void enableTraceAxis(Trace *t, int axis, bool enabled);
bool supported(Trace *t) override;
bool supported(Trace *t, YAxisType type);
void removeUnsupportedTraces();
QPointF traceToCoordinate(Trace *t, unsigned int sample, YAxisType type);