]> rtime.felk.cvut.cz Git - orte.git/blob - orte/contrib/shape/FPublisher.h
Android Shape: Add locks for synchronization of the receive callback and GUI draw...
[orte.git] / orte / contrib / shape / FPublisher.h
1 #ifndef FPUBLISHER_H
2 #define FPUBLISHER_H
3
4 #include <QDialog>
5 #include <QLabel>
6 #include <QTimer>
7 #include <QCloseEvent>
8 #include "ui_FPublisher.h"
9 #include "BoxType.h"
10
11 #include <orte.h>
12
13 class FPublisher : public QDialog , public Ui::FPublisher
14 {
15     Q_OBJECT
16
17     int strength;
18     ORTEPublication *publisher;
19     ORTEDomain *domain;
20     int color;
21     int stepx;
22     int stepy;
23     int incx;
24     int incy;
25     int shape;
26     BoxType boxType;
27     QRect rect;
28
29  protected:
30      void closeEvent(QCloseEvent *event);
31
32 public:
33     FPublisher(QWidget *parent = 0);
34
35     bool initPublisher(int icolor,int istrength);
36
37 private slots:
38     void Timer();
39     void destroy();
40     void strengthChanged();
41
42 private:
43     QTimer *timer;
44 };
45
46 #endif