~ubuntu-branches/ubuntu/saucy/goldencheetah/saucy

« back to all changes in this revision

Viewing changes to qwt/examples/friedberg/plot.h

  • Committer: Package Import Robot
  • Author(s): KURASHIKI Satoru
  • Date: 2013-08-18 07:02:45 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130818070245-zgdvb47e1k3mtgil
Tags: 3.0-3
debian/control: remove needless dependency. (Closes: #719571)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _PLOT_H_
 
2
#define _PLOT_H_
 
3
 
 
4
#include <qwt_plot.h>
 
5
#include <qwt_scale_div.h>
 
6
#include <qwt_series_data.h>
 
7
 
 
8
class QwtPlotCurve;
 
9
class QwtPlotIntervalCurve;
 
10
 
 
11
class Plot: public QwtPlot
 
12
{
 
13
    Q_OBJECT
 
14
 
 
15
public:
 
16
    enum Mode
 
17
    {
 
18
        Bars,
 
19
        Tube
 
20
    };
 
21
 
 
22
    Plot( QWidget * = NULL );
 
23
 
 
24
public Q_SLOTS:
 
25
    void setMode( int );
 
26
    void exportPlot();
 
27
 
 
28
private:
 
29
    void insertCurve( const QString &title,
 
30
        const QVector<QPointF> &, const QColor & );
 
31
 
 
32
    void insertErrorBars( const QString &title,
 
33
        const QVector<QwtIntervalSample> &,
 
34
        const QColor &color );
 
35
 
 
36
 
 
37
    QwtScaleDiv yearScaleDiv() const;
 
38
 
 
39
    QwtPlotIntervalCurve *d_intervalCurve;
 
40
    QwtPlotCurve *d_curve;
 
41
};
 
42
 
 
43
#endif