source: flair-src/trunk/tools/FlairGCS/src/Manager.h@ 170

Last change on this file since 170 was 30, checked in by Sanahuja Guillaume, 8 years ago

show rx rate in GCS

File size: 1.2 KB
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 MANAGER_H
6#define MANAGER_H
7
8#include <QWidget>
9#include <udt.h>
10#include <qdom.h>
11#include <QStatusBar>
12
13class UdtSocket;
14class ConnectionLayout;
15class QVBoxLayout;
16class QTabBar;
17class QPushButton;
18class QGridLayout;
19
20class Manager : public QWidget {
21 Q_OBJECT
22
23public:
24 Manager(QString name, int port);
25 ~Manager();
26
27private:
28 UDTSOCKET serv;
29 QVBoxLayout *managerLayout;
30 QList<ConnectionLayout *> connectionsLayout;
31 QList<QWidget *> connectionsWidget;
32 QTabBar *tabBar;
33 QString name, hiddenTabName;
34 int currentTab;
35
36 QPushButton *send_button;
37 QPushButton *reset_button;
38 QPushButton *load_button;
39 QPushButton *save_button;
40 QGridLayout *button_layout;
41 QStatusBar *status;
42
43 void newConnection(UdtSocket *socket);
44
45private slots:
46 void acceptConnections(void);
47 void load(void);
48 void send(void);
49 void save(void);
50 void reset(void);
51 void layoutDestroyed(QObject *obj);
52 void tabBarCurrentChanged(int index);
53 void tabName(QString name);
54 void printRxRates(float rxRate);
55
56signals:
57 void killUdtSockets(void);
58
59protected:
60};
61
62#endif // MANAGER_H
Note: See TracBrowser for help on using the repository browser.