]> rtime.felk.cvut.cz Git - orte.git/blob - orte/contrib/shape/FSubscriber.h
ortedemo checks for errors in publisher/subscriber creation
[orte.git] / orte / contrib / shape / FSubscriber.h
1 #ifndef FSUBSCRIBER_H
2 #define FSUBSCRIBER_H
3
4 #include <QDialog>
5 #include <QLabel>
6 #include <QCloseEvent>
7 #include "ui_FSubscriber.h"
8 #include "BoxType.h"
9
10 #include <orte.h>
11
12 class FSubscriber : public QDialog , public Ui::FSubscriber
13 {
14     Q_OBJECT
15
16     BoxType boxTypeYellow;
17     BoxType boxTypeBlack;
18     BoxType boxTypeRed;
19     BoxType boxTypeBlue;
20     BoxType boxTypeGreen;
21     ORTEDomain *domain;
22     ORTESubscription *subscriberGreen;
23     ORTESubscription *subscriberBlue;
24     ORTESubscription *subscriberRed;
25     ORTESubscription *subscriberBlack;
26     ORTESubscription *subscriberYellow;
27     NtpTime msGreen;
28     NtpTime msBlue;
29     NtpTime msRed;
30     NtpTime msBlack;
31     NtpTime msYellow;
32
33  protected:
34      void closeEvent(QCloseEvent *event);
35
36 public:
37     FSubscriber(QWidget *parent = 0);
38
39     bool initSubscribers( int iBlue, int iGreen, int iRed, int iBlack, int iYellow );
40
41
42 private slots:
43     void destroy();
44     void comboActivated( int );
45     void sliderValueChanged( int  value);
46
47 };
48
49 #endif