qt_demoe/third/qwtdemo/examples/oscilloscope/mainwindow.h

33 lines
545 B
C
Raw Normal View History

2019-11-07 02:55:57 +00:00
#include <qwidget.h>
class Plot;
class Knob;
class WheelBox;
class MainWindow : public QWidget
{
Q_OBJECT
public:
MainWindow( QWidget * = NULL );
void start();
double amplitude() const;
double frequency() const;
double signalInterval() const;
Q_SIGNALS:
void amplitudeChanged( double );
void frequencyChanged( double );
void signalIntervalChanged( double );
private:
Knob *d_frequencyKnob;
Knob *d_amplitudeKnob;
WheelBox *d_timerWheel;
WheelBox *d_intervalWheel;
Plot *d_plot;
};