qwt-cmake/playground/rescaler/mainwindow.h
2018-08-02 11:01:31 -04:00

39 lines
572 B
C++

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