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);
|
152
|
27 |
bool isPlaying(HWTeam team) const;
|
|
28 |
unsigned char numHedgedogs(HWTeam team) const;
|
|
29 |
list<HWTeam> getPlayingTeams() const;
|
50
|
30 |
|
|
31 |
private slots:
|
117
|
32 |
void changeTeamStatus(HWTeam team);
|
50
|
33 |
|
|
34 |
private:
|
63
|
35 |
void addScrArea(FrameTeams* pfteams, QColor color);
|
|
36 |
FrameTeams* frameDontPlaying;
|
|
37 |
FrameTeams* framePlaying;
|
61
|
38 |
|
63
|
39 |
QVBoxLayout mainLayout;
|
50
|
40 |
|
117
|
41 |
list<HWTeam> curPlayingTeams;
|
|
42 |
list<HWTeam> curDontPlayingTeams;
|
50
|
43 |
};
|
|
44 |
|
|
45 |
#endif // _TEAM_SELECT_INCLUDED
|