Debian Codegraph @

qwt/playground/rescaler/MainWindow.h

raw
1 /*****************************************************************************
2 * Qwt Examples - Copyright (C) 2002 Uwe Rathmann
3 * This file may be used under the terms of the 3-clause BSD License
4 *****************************************************************************/
5
6 #pragma once
7
8 #include <QMainWindow>
9
10 class QwtPlotRescaler;
11 class QLabel;
12 class Plot;
13
14 class MainWindow : public QMainWindow
15 {
16 Q_OBJECT
17
18 public:
19 enum RescaleMode
20 {
21 KeepScales,
22 Fixed,
23 Expanding,
24 Fitting
25 };
26
27 MainWindow();
28
29 private Q_SLOTS:
30 void setRescaleMode( int );
31 void showRatio( double, double );
32
33 private:
34 QWidget* createPanel( QWidget* );
35 Plot* createPlot( QWidget* );
36
37 QwtPlotRescaler* m_rescaler;
38 QLabel* m_rescaleInfo;
39
40 Plot* m_plot;
41 };