新增qwt源码版本
This commit is contained in:
32
qwtdemo/examples/oscilloscope/mainwindow.h
Normal file
32
qwtdemo/examples/oscilloscope/mainwindow.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#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;
|
||||
};
|
||||
Reference in New Issue
Block a user