author | unc0rr |
Wed, 13 Sep 2006 19:26:16 +0000 | |
changeset 144 | e6084b0c9316 |
parent 140 | 50ccde437ea1 |
child 151 | 9eb5a4cee35e |
permissions | -rw-r--r-- |
50 | 1 |
#ifndef _TEAM_SELECT_INCLUDED |
2 |
#define _TEAM_SELECT_INCLUDED |
|
3 |
||
4 |
#include <QWidget> |
|
5 |
#include <QVBoxLayout> |
|
63 | 6 |
class QFrame; |
50 | 7 |
|
8 |
#include <list> |
|
9 |
#include <map> |
|
10 |
||
117 | 11 |
#include "team.h" |
12 |
||
63 | 13 |
class TeamSelWidget; |
14 |
class FrameTeams; |
|
15 |
||
50 | 16 |
using namespace std; |
17 |
||
18 |
class TeamSelWidget : public QWidget |
|
19 |
{ |
|
20 |
Q_OBJECT |
|
21 |
||
22 |
public: |
|
61 | 23 |
TeamSelWidget(QWidget* parent=0); |
117 | 24 |
void addTeam(HWTeam team); |
25 |
//void removeTeam(HWTeam team); |
|
140
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
117
diff
changeset
|
26 |
void resetPlayingTeams(); |
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
117
diff
changeset
|
27 |
bool isPlaying(HWTeam team); |
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
117
diff
changeset
|
28 |
unsigned char numHedgedogs(HWTeam team); |
50 | 29 |
|
30 |
private slots: |
|
117 | 31 |
void changeTeamStatus(HWTeam team); |
50 | 32 |
|
33 |
private: |
|
63 | 34 |
void addScrArea(FrameTeams* pfteams, QColor color); |
35 |
FrameTeams* frameDontPlaying; |
|
36 |
FrameTeams* framePlaying; |
|
61 | 37 |
|
63 | 38 |
QVBoxLayout mainLayout; |
50 | 39 |
|
117 | 40 |
list<HWTeam> curPlayingTeams; |
41 |
list<HWTeam> curDontPlayingTeams; |
|
50 | 42 |
}; |
43 |
||
44 |
#endif // _TEAM_SELECT_INCLUDED |