mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-14 16:39:57 +00:00
Upgrade to QWT 6.0.1, but still uses a locally patched copy since support for 8 axes has not been included, despite it being a relatively simple patch. Fixes #634. Fixes #567.
39 lines
760 B
C++
39 lines
760 B
C++
#ifndef _PLOT_MATRIX_H_
|
|
#define _PLOT_MATRIX_H_
|
|
|
|
#include <qframe.h>
|
|
#include <qwt_plot.h>
|
|
|
|
class PlotMatrix: public QFrame
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
PlotMatrix( int rows, int columns, QWidget * parent = NULL);
|
|
virtual ~PlotMatrix();
|
|
|
|
int numRows() const;
|
|
int numColumns() const;
|
|
|
|
QwtPlot* plot(int row, int column);
|
|
const QwtPlot* plot(int row, int column) const;
|
|
|
|
void enableAxis(int axisId, bool tf = true);
|
|
bool axisEnabled(int axisId) const;
|
|
|
|
void setAxisScale(int axisId, int rowOrColumn,
|
|
double min, double max, double step = 0);
|
|
|
|
private Q_SLOTS:
|
|
void scaleDivChanged();
|
|
|
|
private:
|
|
void updateLayout();
|
|
void alignVAxes(int col, int axis);
|
|
|
|
class PrivateData;
|
|
PrivateData *d_data;
|
|
};
|
|
|
|
#endif
|