2116 |
paro |
1 |
#ifndef SCOPE_H |
|
|
2 |
#define SCOPE_H |
|
|
3 |
|
|
|
4 |
#include <QWidget> |
|
|
5 |
#include <QTimer> |
|
|
6 |
#include <QSlider> |
|
|
7 |
|
|
|
8 |
class Scope : public QWidget |
|
|
9 |
{ |
|
|
10 |
Q_OBJECT |
|
|
11 |
|
|
|
12 |
public: |
|
|
13 |
Scope(QWidget *parent = 0); |
|
|
14 |
~Scope(); |
|
|
15 |
|
|
|
16 |
public slots: |
|
|
17 |
void getData(); |
|
|
18 |
void setScale(int val); |
|
|
19 |
void setShift(int val); |
|
|
20 |
|
|
|
21 |
protected: |
|
|
22 |
void paintEvent(QPaintEvent *event); |
|
|
23 |
|
|
|
24 |
private: |
|
|
25 |
signed long * data; |
|
|
26 |
char dataAquired; |
|
|
27 |
int head; |
|
|
28 |
|
|
|
29 |
long shift, scale; |
|
|
30 |
|
|
|
31 |
QTimer *updateTimer; |
|
|
32 |
QSlider *shiftSlider; |
|
|
33 |
QSlider *scaleSlider; |
|
|
34 |
}; |
|
|
35 |
|
|
|
36 |
#endif |