Line | |
---|
1 | #ifndef PICTURE_H
|
---|
2 | #define PICTURE_H
|
---|
3 |
|
---|
4 | #include <stdint.h>
|
---|
5 | #include "DataRemote.h"
|
---|
6 | #include <QRgb>
|
---|
7 | #include <QVector>
|
---|
8 |
|
---|
9 | class Layout;
|
---|
10 | class QGroupBox;
|
---|
11 | class QMouseEvent;
|
---|
12 | class QLabel;
|
---|
13 | class QVBoxLayout;
|
---|
14 |
|
---|
15 | class Picture: public DataRemote
|
---|
16 | {
|
---|
17 | Q_OBJECT
|
---|
18 |
|
---|
19 | public:
|
---|
20 | Picture(Layout* parent,int row, int col,QString name,uint16_t width, uint16_t height,bool enabled,int period);
|
---|
21 | ~Picture();
|
---|
22 |
|
---|
23 | protected:
|
---|
24 | void mousePressEvent(QMouseEvent *event);
|
---|
25 |
|
---|
26 | private:
|
---|
27 | QGroupBox* box;
|
---|
28 | QLabel *label;
|
---|
29 | QVBoxLayout *layout;
|
---|
30 | QVector<QRgb> color_table;
|
---|
31 | uint16_t im_width;
|
---|
32 | uint16_t im_height;
|
---|
33 |
|
---|
34 | bool eventFilter(QObject *, QEvent *);
|
---|
35 | void BufEvent(char** buf,int *buf_size,uint16_t period,bool big_endian);
|
---|
36 | void XmlEvent(QDomElement dom);
|
---|
37 |
|
---|
38 |
|
---|
39 | };
|
---|
40 |
|
---|
41 | #endif // PICTURE_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.