diff --git a/src/barplot.h b/src/barplot.h --- a/src/barplot.h +++ b/src/barplot.h @@ -23,6 +23,7 @@ #include #include "channelmanager.h" +#include "plotmenu.h" #include "barchart.h" class BarPlot : public QwtPlot @@ -30,14 +31,19 @@ class BarPlot : public QwtPlot Q_OBJECT public: - explicit BarPlot(ChannelManager* channelMan, QWidget* parent = 0); + explicit BarPlot(ChannelManager* channelMan, + PlotMenu* menu, + QWidget* parent = 0); public slots: /// Set the Y axis void setYAxis(bool autoScaled, double yMin = 0, double yMax = 1); + /// Enable/disable dark background + void darkBackground(bool enabled); private: ChannelManager* _channelMan; + PlotMenu* _menu; BarChart barChart; QVector chartData() const;