1 #ifndef __WAVEFORMWIDGET_H__
2 #define __WAVEFORMWIDGET_H__
7 class WaveformWidget: public QWidget
12 WaveformWidget(QWidget * parent = 0);
16 void paintEvent(QPaintEvent * event);
17 void DrawPulse(QPainter * painter, QPen * pen, float lastx, float x, float y, float height = 1.0);
18 void DrawPulse(QPainter * painter, Qt::GlobalColor color, float lastx, float x, float y, float height = 1.0);
19 void mousePressEvent(QMouseEvent * event);
20 void mouseMoveEvent(QMouseEvent * event);
21 void mouseReleaseEvent(QMouseEvent * event);
22 void mouseDoubleClickEvent(QMouseEvent * event);
23 void keyPressEvent(QKeyEvent * event);
24 void keyReleaseEvent(QKeyEvent * event);
25 void resizeEvent(QResizeEvent * event);
28 void UpdateInfo(void);
31 void HandleUpdate(void);
32 void HandleInitSync(void);
33 void HandleStepBack(void);
34 void HandleManualSync(void);
35 void HandleZeroAll(void);
36 void HandleSynthesize(void);
37 void HandleSynthesize2(void);
38 void HandleSync(int, int);
39 void HandleWaveSync(int);
40 void HandleRatio(int, int);
43 #endif // __WAVEFORMWIDGET_H__