Files
GoldenCheetah/qwt/examples/navigation/mainwindow.h
Damien c44758c5ad Qwt 6.0.1 Support
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.
2012-02-12 10:43:15 +00:00

50 lines
727 B
C++

#ifndef _MAINWINDOW_H_
#define _MAINWINDOW_H_ 1
#include <qwidget.h>
#include <qmainwindow.h>
class QwtPlotRescaler;
class QLabel;
class Plot;
class MainWindow: public QMainWindow
{
Q_OBJECT
public:
enum MouseMode
{
Tracking,
Zooming,
Panning
};
enum RescaleMode
{
KeepScales,
Fixed,
Expanding,
Fitting
};
MainWindow();
private Q_SLOTS:
void setMouseMode(int);
void setRescaleMode(int);
void showRatio(double, double);
private:
QWidget *createPanel(QWidget *);
Plot *createPlot(QWidget *);
QwtPlotRescaler *d_rescaler;
QLabel *d_navigationInfo;
QLabel *d_rescaleInfo;
Plot *d_plot;
};
#endif