#ifndef _PLOT_H_ #define _PLOT_H_ #include #include #include class QwtPlotCurve; class QwtPlotIntervalCurve; class Plot: public QwtPlot { Q_OBJECT public: enum Mode { Bars, Tube }; Plot( QWidget * = NULL ); public Q_SLOTS: void setMode( int ); void exportPlot(); private: void insertCurve( const QString &title, const QVector &, const QColor & ); void insertErrorBars( const QString &title, const QVector &, const QColor &color ); QwtScaleDiv yearScaleDiv() const; QwtPlotIntervalCurve *d_intervalCurve; QwtPlotCurve *d_curve; }; #endif