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

Last change on this file since 15 was 15, checked in by Bayard Gildas, 6 years ago

sources reformatted with flair-format-dir script

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