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

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

show rx rate in GCS

File size: 1.2 KB
RevLine 
[10]1// %flair:license{
[15]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[10]4// %flair:license}
[15]5#ifndef MANAGER_H
[9]6#define MANAGER_H
[15]7
[9]8#include <QWidget>
9#include <udt.h>
10#include <qdom.h>
[30]11#include <QStatusBar>
[9]12
13class UdtSocket;
14class ConnectionLayout;
15class QVBoxLayout;
16class QTabBar;
17class QPushButton;
[15]18class QGridLayout;
[9]19
[15]20class Manager : public QWidget {
21 Q_OBJECT
[9]22
[15]23public:
24 Manager(QString name, int port);
25 ~Manager();
[9]26
[15]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;
[30]41 QStatusBar *status;
[15]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);
[30]54 void printRxRates(float rxRate);
[15]55
56signals:
57 void killUdtSockets(void);
58
59protected:
60};
61
62#endif // MANAGER_H
Note: See TracBrowser for help on using the repository browser.