equal
deleted
inserted
replaced
18 |
18 |
19 #include <QLabel> |
19 #include <QLabel> |
20 #include <QPixmap> |
20 #include <QPixmap> |
21 #include <QPushButton> |
21 #include <QPushButton> |
22 #include <QFrame> |
22 #include <QFrame> |
23 #include <QDebug> |
|
24 |
23 |
25 #include <vertScrollArea.h> |
24 #include <vertScrollArea.h> |
26 #include "teamselect.h" |
25 #include "teamselect.h" |
27 #include "teamselhelper.h" |
26 #include "teamselhelper.h" |
28 #include "frameTeam.h" |
27 #include "frameTeam.h" |
102 { |
101 { |
103 list<HWTeam>::iterator it; |
102 list<HWTeam>::iterator it; |
104 for(it=curPlayingTeams.begin(); it!=curPlayingTeams.end(); it++) { |
103 for(it=curPlayingTeams.begin(); it!=curPlayingTeams.end(); it++) { |
105 framePlaying->removeTeam(*it); |
104 framePlaying->removeTeam(*it); |
106 } |
105 } |
|
106 framePlaying->resetColors(); |
107 curPlayingTeams.clear(); |
107 curPlayingTeams.clear(); |
108 for(it=curDontPlayingTeams.begin(); it!=curDontPlayingTeams.end(); it++) { |
108 for(it=curDontPlayingTeams.begin(); it!=curDontPlayingTeams.end(); it++) { |
109 frameDontPlaying->removeTeam(*it); |
109 frameDontPlaying->removeTeam(*it); |
110 } |
110 } |
111 curDontPlayingTeams.clear(); |
111 curDontPlayingTeams.clear(); |
123 list<HWTeam> TeamSelWidget::getPlayingTeams() const |
123 list<HWTeam> TeamSelWidget::getPlayingTeams() const |
124 { |
124 { |
125 return curPlayingTeams; |
125 return curPlayingTeams; |
126 } |
126 } |
127 |
127 |
128 unsigned char TeamSelWidget::numHedgedogs(HWTeam team) const |
128 HWTeamTempParams TeamSelWidget::getTeamParams(HWTeam team) const |
129 { |
129 { |
130 const TeamShowWidget* tsw=dynamic_cast<TeamShowWidget*>(framePlaying->getTeamWidget(team)); |
130 const TeamShowWidget* tsw=dynamic_cast<TeamShowWidget*>(framePlaying->getTeamWidget(team)); |
131 if(!tsw) return 0; |
131 if(!tsw) throw; |
132 return tsw->getHedgehogsNum(); |
132 return tsw->getTeamParams(); |
133 } |
133 } |