diff --git a/plot.h b/plot.h --- a/plot.h +++ b/plot.h @@ -20,11 +20,16 @@ #ifndef PLOT_H #define PLOT_H +#include +#include +#include #include #include #include + #include "zoomer.h" #include "scalezoomer.h" +#include "plotsnapshotoverlay.h" class Plot : public QwtPlot { @@ -32,8 +37,13 @@ class Plot : public QwtPlot public: Plot(QWidget* parent = 0); + ~Plot(); void setAxis(bool autoScaled, double yMin = 0, double yMax = 1); + QList menuActions(); + + static QColor makeColor(unsigned int channelIndex); + private: bool isAutoScaled; double yMin, yMax; @@ -41,6 +51,12 @@ private: ScaleZoomer sZoomer; QwtPlotGrid grid; QwtPlotShapeItem rectItem; + PlotSnapshotOverlay* snapshotOverlay; + + QAction _showGridAction; + QAction _showMinorGridAction; + QAction _unzoomAction; + QAction _darkBackgroundAction; void resetAxes(); @@ -50,6 +66,8 @@ public slots: void unzoom(); void darkBackground(bool enabled = true); + void flashSnapshotOverlay(); + private slots: void unzoomed(); };