Mercurial > hg > dmlib
annotate edwaveform.h @ 382:371edff7dc3d
Fix extern variables to match what are actually declared in dmengine.c
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 17 Oct 2012 18:15:53 +0300 |
parents | 40e33ad0d153 |
children | e5220ff48bc8 |
rev | line source |
---|---|
357 | 1 #ifndef EDWAVEFORM_H |
2 #define EDWAVEFORM_H | |
3 | |
4 #include <QWidget> | |
5 #include "dmengine.h" | |
6 | |
7 class WaveformView : public QWidget | |
8 { | |
9 Q_OBJECT | |
10 | |
11 public: | |
12 WaveformView(QWidget *parent = 0); | |
376
40e33ad0d153
Work towards a working editor .. some day.
Matti Hamalainen <ccr@tnsp.org>
parents:
357
diff
changeset
|
13 void setWaveform(qint16 *mdata, int mlen); |
357 | 14 |
15 void setTime(const int mtime); | |
16 void setOffset(const int moffs); | |
17 void setScale(const float mscale); | |
18 | |
19 protected: | |
20 void mousePressEvent(QMouseEvent *event); | |
21 void mouseMoveEvent(QMouseEvent *event); | |
22 void mouseReleaseEvent(QMouseEvent *event); | |
23 | |
24 void paintEvent(QPaintEvent *event); | |
25 | |
26 private: | |
27 float scale; | |
28 int time, offs, len; | |
29 qint16 *data; | |
30 }; | |
31 | |
32 #endif |