Last change
on this file since 427 was 399, checked in by Sanahuja Guillaume, 4 years ago |
change color of status bar in gcs if high bandwidth usage is detected
|
File size:
1.5 KB
|
Rev | Line | |
---|
[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>
|
---|
[247] | 9 | #include <QIcon>
|
---|
[9] | 10 | #include <udt.h>
|
---|
| 11 | #include <qdom.h>
|
---|
| 12 |
|
---|
| 13 | class UdtSocket;
|
---|
| 14 | class ConnectionLayout;
|
---|
| 15 | class QVBoxLayout;
|
---|
| 16 | class QTabBar;
|
---|
| 17 | class QPushButton;
|
---|
[15] | 18 | class QGridLayout;
|
---|
[234] | 19 | class QStatusBar;
|
---|
[9] | 20 |
|
---|
[15] | 21 | class Manager : public QWidget {
|
---|
| 22 | Q_OBJECT
|
---|
[9] | 23 |
|
---|
[15] | 24 | public:
|
---|
| 25 | Manager(QString name, int port);
|
---|
| 26 | ~Manager();
|
---|
[9] | 27 |
|
---|
[15] | 28 | private:
|
---|
| 29 | UDTSOCKET serv;
|
---|
| 30 | QVBoxLayout *managerLayout;
|
---|
[247] | 31 | typedef struct {
|
---|
| 32 | ConnectionLayout *layout;
|
---|
| 33 | QWidget *widget;
|
---|
| 34 | UdtSocket *socket;
|
---|
| 35 | } connections_t;
|
---|
| 36 | QList<connections_t> connections;
|
---|
| 37 | //QList<ConnectionLayout *> connectionsLayout;
|
---|
| 38 | //QList<UdtSocket *> udtSockets;
|
---|
[15] | 39 | QTabBar *tabBar;
|
---|
| 40 | QString name, hiddenTabName;
|
---|
| 41 | int currentTab;
|
---|
| 42 |
|
---|
| 43 | QPushButton *send_button;
|
---|
| 44 | QPushButton *reset_button;
|
---|
| 45 | QPushButton *load_button;
|
---|
| 46 | QPushButton *save_button;
|
---|
| 47 | QGridLayout *button_layout;
|
---|
[30] | 48 | QStatusBar *status;
|
---|
[248] | 49 | QIcon icon_red,icon_green,icon_orange;
|
---|
[15] | 50 |
|
---|
| 51 | private slots:
|
---|
| 52 | void acceptConnections(void);
|
---|
| 53 | void load(void);
|
---|
| 54 | void send(void);
|
---|
| 55 | void save(void);
|
---|
| 56 | void reset(void);
|
---|
[234] | 57 | void tabBarCurrentChanged(int index);
|
---|
[399] | 58 | void printUDTStats(QString stats,QString stylesheet,bool loosingPackets);
|
---|
[234] | 59 | void newFileUI(UDTSOCKET socket);
|
---|
| 60 | void deleteFileUI(void);
|
---|
| 61 | void newConnectionLayout(QString name);
|
---|
[244] | 62 | void udtSocketDestroyed(QObject *obj);
|
---|
[15] | 63 | void layoutDestroyed(QObject *obj);
|
---|
| 64 |
|
---|
| 65 | protected:
|
---|
| 66 | };
|
---|
| 67 |
|
---|
| 68 | #endif // MANAGER_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.