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