equal
deleted
inserted
replaced
8 |
8 |
9 class FrameTeams : public QWidget |
9 class FrameTeams : public QWidget |
10 { |
10 { |
11 Q_OBJECT |
11 Q_OBJECT |
12 |
12 |
|
13 friend class CHedgehogerWidget; |
|
14 |
13 public: |
15 public: |
14 FrameTeams(QWidget* parent=0); |
16 FrameTeams(QWidget* parent=0); |
15 QWidget* getTeamWidget(HWTeam team); |
17 QWidget* getTeamWidget(HWTeam team); |
|
18 bool isFullTeams() const; |
16 |
19 |
17 public slots: |
20 public slots: |
18 void addTeam(HWTeam team, bool willPlay); |
21 void addTeam(HWTeam team, bool willPlay); |
19 void removeTeam(HWTeam team); |
22 void removeTeam(HWTeam team); |
20 |
23 |
21 private: |
24 private: |
|
25 const int maxHedgehogsPerGame; |
|
26 int overallHedgehogs; |
22 QVBoxLayout mainLayout; |
27 QVBoxLayout mainLayout; |
23 typedef map<HWTeam, QWidget*> tmapTeamToWidget; |
28 typedef map<HWTeam, QWidget*> tmapTeamToWidget; |
24 tmapTeamToWidget teamToWidget; |
29 tmapTeamToWidget teamToWidget; |
25 }; |
30 }; |
26 |
31 |