mainwindow.h
727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#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