Last change
on this file since 239 was 15, checked in by Bayard Gildas, 9 years ago |
sources reformatted with flair-format-dir script
|
File size:
911 bytes
|
Rev | Line | |
---|
[10] | 1 | // %flair:license{
|
---|
[15] | 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
[10] | 4 | // %flair:license}
|
---|
[9] | 5 | #ifndef PICTURE_H
|
---|
| 6 | #define PICTURE_H
|
---|
| 7 |
|
---|
| 8 | #include <stdint.h>
|
---|
| 9 | #include "DataRemote.h"
|
---|
| 10 | #include <QRgb>
|
---|
| 11 | #include <QVector>
|
---|
| 12 |
|
---|
| 13 | class Layout;
|
---|
| 14 | class QGroupBox;
|
---|
| 15 | class QMouseEvent;
|
---|
| 16 | class QLabel;
|
---|
| 17 | class QVBoxLayout;
|
---|
| 18 |
|
---|
[15] | 19 | class Picture : public DataRemote {
|
---|
| 20 | Q_OBJECT
|
---|
[9] | 21 |
|
---|
[15] | 22 | public:
|
---|
| 23 | Picture(Layout *parent, int row, int col, QString name, uint16_t width,
|
---|
| 24 | uint16_t height, bool enabled, int period);
|
---|
| 25 | ~Picture();
|
---|
[9] | 26 |
|
---|
[15] | 27 | protected:
|
---|
| 28 | void mousePressEvent(QMouseEvent *event);
|
---|
[9] | 29 |
|
---|
[15] | 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;
|
---|
[9] | 37 |
|
---|
[15] | 38 | bool eventFilter(QObject *, QEvent *);
|
---|
| 39 | void BufEvent(char **buf, int *buf_size, uint16_t period, bool big_endian);
|
---|
| 40 | void XmlEvent(QDomElement dom);
|
---|
[9] | 41 | };
|
---|
| 42 |
|
---|
| 43 | #endif // PICTURE_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.