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 |
|
150
|
13 |
friend class CHedgehogerWidget;
|
|
14 |
|
63
|
15 |
public:
|
|
16 |
FrameTeams(QWidget* parent=0);
|
117
|
17 |
QWidget* getTeamWidget(HWTeam team);
|
150
|
18 |
bool isFullTeams() const;
|
63
|
19 |
|
|
20 |
public slots:
|
132
|
21 |
void addTeam(HWTeam team, bool willPlay);
|
117
|
22 |
void removeTeam(HWTeam team);
|
63
|
23 |
|
|
24 |
private:
|
150
|
25 |
const int maxHedgehogsPerGame;
|
|
26 |
int overallHedgehogs;
|
63
|
27 |
QVBoxLayout mainLayout;
|
117
|
28 |
typedef map<HWTeam, QWidget*> tmapTeamToWidget;
|
63
|
29 |
tmapTeamToWidget teamToWidget;
|
|
30 |
};
|
|
31 |
|
|
32 |
#endif // _FRAME_TAM_INCLUDED
|