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

Last change on this file since 9 was 9, checked in by Sanahuja Guillaume, 7 years ago

gcs

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