// %flair:license{ // This file is part of the Flair framework distributed under the // CECILL-C License, Version 1.0. // %flair:license} #ifndef PICTURE_H #define PICTURE_H #include #include "DataRemote.h" #include #include class Layout; class QGroupBox; class QMouseEvent; class QLabel; class QVBoxLayout; class Picture : public DataRemote { Q_OBJECT public: Picture(Layout *parent, int row, int col, QString name, uint16_t width, uint16_t height, bool enabled, uint16_t period); ~Picture(); protected: void mousePressEvent(QMouseEvent *event); private: QGroupBox *box; QLabel *label; QVBoxLayout *layout; QVector color_table; uint16_t im_width; uint16_t im_height; bool eventFilter(QObject *, QEvent *); void BufEvent(char **buf, int *buf_size, uint16_t period,uint16_t nb_buffering, bool big_endian); void XmlEvent(QDomElement *dom); }; #endif // PICTURE_H