]> Shamusworld >> Repos - wozmaker/blob - src/waveformwidget.h
Flesh out the disk settings dialog.
[wozmaker] / src / waveformwidget.h
1 #ifndef __WAVEFORMWIDGET_H__
2 #define __WAVEFORMWIDGET_H__
3
4 #include <QtWidgets>
5 #include <stdint.h>
6
7 class WaveformWidget: public QWidget
8 {
9         Q_OBJECT
10
11         public:
12                 WaveformWidget(QWidget * parent = 0);
13                 ~WaveformWidget();
14
15         protected:
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);
26
27         signals:
28                 void UpdateInfo(void);
29
30         public slots:
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);
41 };
42
43 #endif  // __WAVEFORMWIDGET_H__
44