mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +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.
50 lines
727 B
C++
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
|