Last change
on this file since 88 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 |
|
---|
13 | class UdtSocket;
|
---|
14 | class ConnectionLayout;
|
---|
15 | class QVBoxLayout;
|
---|
16 | class QTabBar;
|
---|
17 | class QPushButton;
|
---|
18 | class QGridLayout;
|
---|
19 |
|
---|
20 | class Manager : public QWidget {
|
---|
21 | Q_OBJECT
|
---|
22 |
|
---|
23 | public:
|
---|
24 | Manager(QString name, int port);
|
---|
25 | ~Manager();
|
---|
26 |
|
---|
27 | private:
|
---|
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 |
|
---|
45 | private 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 |
|
---|
56 | signals:
|
---|
57 | void killUdtSockets(void);
|
---|
58 |
|
---|
59 | protected:
|
---|
60 | };
|
---|
61 |
|
---|
62 | #endif // MANAGER_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.