10 #include <QMouseEvent>
12 #include <QFontMetricsF>
14 #include <QApplication>
15 #include <QMessageBox>
22 void set_linedata(
int cset,
int* cc,
double** xdata,
double** ydata);
23 void set_pointdata(
int cset,
int* cc,
double** xdata,
double** ydata);
24 void set_linedata(
int xcount,
int ycount,
double* xdata,
double** ydata);
25 void set_pointdata(
int xcount,
int ycount,
double* xdata,
double** ydata);
26 void update_linedata(
double** ydata,
int ycount);
27 void set_labels(QString title, QString xbarlabel, QString ybarlabel);
28 void set_legend(QStringList* labels);
29 QSize sizeHint()
const;
30 QSize minimumSizeHint()
const;
32 void set_linewidth(
double linewidth);
33 void set_range(
double plotxmin,
double plotxmax,
34 double plotymin,
double plotymax);
35 void data_to_clipboard();
37 unsigned char** get_bits();
42 double **xpdata, **ypdata, **xldata, **yldata;
43 int psets,lsets,*pcc,*lcc, freep, freel;
44 int showResiduum,resheight;
47 QStringList leglabels;
48 void refresh_pixmap();
50 int margin, ticklength, xsteps, ysteps;
51 double xmin,xmax,ymin,ymax;
52 double xstep, ystep, xstep0, ystep0;
53 double xprecission, yprecission;
57 QString title, xbarlabel, ybarlabel;
62 double xtoxdata(
int x);
63 double ytoydata(
int y);
64 double xdatatox(
double x);
65 double ydatatoy(
double y);
67 void add_axis_labels(QPainter* p);
68 void add_grid(QPainter* p);
69 void add_data(QPainter* p);
70 void add_residuum(QPainter* p);
71 void add_legend(QPainter* p);
72 void plot_single_set(
int i);
73 QColor colorgradient(
double x,
double xmin,
double xmax);
75 void keypressed(QKeyEvent *event);
77 void mouseMoveEvent(QMouseEvent *event);
78 void paintEvent(QPaintEvent *);
79 void resizeEvent(QResizeEvent *);
80 void mousePressEvent(QMouseEvent *event);
81 void wheelEvent(QWheelEvent * event );
82 void mouseReleaseEvent(QMouseEvent *event);
83 void keyPressEvent(QKeyEvent *event);