diff --git a/src/zoomer.h b/src/zoomer.h --- a/src/zoomer.h +++ b/src/zoomer.h @@ -24,16 +24,18 @@ #include #include "scrollzoomer.h" -#include "stream.h" +#include "streamchannel.h" class Zoomer : public ScrollZoomer { Q_OBJECT public: - Zoomer(QWidget*, const Stream* stream, bool doReplot=true); + Zoomer(QWidget*, bool doReplot=true); void zoom(int up); void zoom(const QRectF&); + /// Set displayed channels for value tracking (can be null) + void setDispChannels(QVector channels); signals: void unzoomed(); @@ -59,7 +61,8 @@ protected: private: bool is_panning; QPointF pan_point; - const Stream* _stream; + /// displayed channels for value tracking + QVector dispChannels; /// Draw sample values void drawValues(QPainter* painter) const;