equal
deleted
inserted
replaced
19 #ifndef _TEAM_SELECT_INCLUDED |
19 #ifndef _TEAM_SELECT_INCLUDED |
20 #define _TEAM_SELECT_INCLUDED |
20 #define _TEAM_SELECT_INCLUDED |
21 |
21 |
22 #include <QGroupBox> |
22 #include <QGroupBox> |
23 #include <QVBoxLayout> |
23 #include <QVBoxLayout> |
24 class QFrame; |
|
25 |
24 |
26 #include <list> |
25 #include <list> |
27 #include <map> |
26 #include <map> |
28 |
27 |
29 #include "team.h" |
28 #include "team.h" |
30 |
29 |
31 class TeamSelWidget; |
30 class TeamSelWidget; |
32 class FrameTeams; |
31 class FrameTeams; |
|
32 class QFrame; |
|
33 class QPushButton; |
33 |
34 |
34 using namespace std; |
35 using namespace std; |
35 |
36 |
36 class TeamSelWidget : public QGroupBox |
37 class TeamSelWidget : public QGroupBox |
37 { |
38 { |
44 void resetPlayingTeams(const QList<HWTeam>& teamslist); |
45 void resetPlayingTeams(const QList<HWTeam>& teamslist); |
45 bool isPlaying(HWTeam team) const; |
46 bool isPlaying(HWTeam team) const; |
46 HWTeamTempParams getTeamParams(HWTeam team) const; |
47 HWTeamTempParams getTeamParams(HWTeam team) const; |
47 list<HWTeam> getPlayingTeams() const; |
48 list<HWTeam> getPlayingTeams() const; |
48 |
49 |
|
50 signals: |
|
51 void NewTeam(); |
|
52 |
49 private slots: |
53 private slots: |
50 void changeTeamStatus(HWTeam team); |
54 void changeTeamStatus(HWTeam team); |
|
55 void newTeamClicked(); |
51 |
56 |
52 private: |
57 private: |
53 void addScrArea(FrameTeams* pfteams, QColor color); |
58 void addScrArea(FrameTeams* pfteams, QColor color, int maxHeight); |
54 FrameTeams* frameDontPlaying; |
59 FrameTeams* frameDontPlaying; |
55 FrameTeams* framePlaying; |
60 FrameTeams* framePlaying; |
56 |
61 |
57 QVBoxLayout mainLayout; |
62 QVBoxLayout mainLayout; |
|
63 QPushButton * newTeam; |
58 |
64 |
59 list<HWTeam> curPlayingTeams; |
65 list<HWTeam> curPlayingTeams; |
60 list<HWTeam> curDontPlayingTeams; |
66 list<HWTeam> curDontPlayingTeams; |
61 }; |
67 }; |
62 |
68 |