63
|
1 |
#ifndef _FRAME_TEAM_INCLUDED
|
|
2 |
#define _FRAME_TEAM_INCLUDED
|
|
3 |
|
|
4 |
#include <QWidget>
|
|
5 |
|
|
6 |
#include "teamselect.h"
|
|
7 |
#include <map>
|
|
8 |
|
|
9 |
class FrameTeams : public QWidget
|
|
10 |
{
|
|
11 |
Q_OBJECT
|
|
12 |
|
|
13 |
public:
|
|
14 |
FrameTeams(QWidget* parent=0);
|
117
|
15 |
QWidget* getTeamWidget(HWTeam team);
|
63
|
16 |
|
|
17 |
public slots:
|
117
|
18 |
void addTeam(HWTeam team);
|
|
19 |
void removeTeam(HWTeam team);
|
63
|
20 |
|
|
21 |
private:
|
|
22 |
QVBoxLayout mainLayout;
|
117
|
23 |
typedef map<HWTeam, QWidget*> tmapTeamToWidget;
|
63
|
24 |
tmapTeamToWidget teamToWidget;
|
|
25 |
};
|
|
26 |
|
|
27 |
#endif // _FRAME_TAM_INCLUDED
|