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

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

lic

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