author | displacer |
Mon, 18 Sep 2006 17:37:22 +0000 | |
changeset 151 | 9eb5a4cee35e |
parent 140 | 50ccde437ea1 |
child 152 | c558957ef644 |
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); |
|
151 | 26 |
void resetPlayingTeams(const QStringList& teamslist); |
140
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 |