source: flair-src/trunk/tools/FlairGCS/src/Picture.h @ 9

Last change on this file since 9 was 9, checked in by Sanahuja Guillaume, 5 years ago

gcs

File size: 842 bytes
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
9class Layout;
10class QGroupBox;
11class QMouseEvent;
12class QLabel;
13class QVBoxLayout;
14
15class 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.