41 public: |
41 public: |
42 TeamSelWidget(QWidget* parent=0); |
42 TeamSelWidget(QWidget* parent=0); |
43 void removeNetTeam(const HWTeam& team); |
43 void removeNetTeam(const HWTeam& team); |
44 void resetPlayingTeams(const QList<HWTeam>& teamslist); |
44 void resetPlayingTeams(const QList<HWTeam>& teamslist); |
45 bool isPlaying(HWTeam team) const; |
45 bool isPlaying(HWTeam team) const; |
46 list<HWTeam> getPlayingTeams() const; |
46 QList<HWTeam> getPlayingTeams() const; |
47 |
47 |
48 public slots: |
48 public slots: |
49 void addTeam(HWTeam team); |
49 void addTeam(HWTeam team); |
50 void netTeamStatusChanged(const HWTeam& team); |
50 void netTeamStatusChanged(const HWTeam& team); |
|
51 void changeHHNum(const HWTeam&); |
51 |
52 |
52 signals: |
53 signals: |
53 void NewTeam(); |
54 void NewTeam(); |
54 void teamWillPlay(HWTeam team); |
55 void teamWillPlay(HWTeam team); |
55 void teamNotPlaying(const HWTeam& team); |
56 void teamNotPlaying(const HWTeam& team); |
|
57 void hhogsNumChanged(const HWTeam&); |
56 |
58 |
57 private slots: |
59 private slots: |
58 void changeTeamStatus(HWTeam team); |
60 void changeTeamStatus(HWTeam team); |
59 void newTeamClicked(); |
61 void newTeamClicked(); |
|
62 void hhNumChanged(const HWTeam& team); |
60 |
63 |
61 private: |
64 private: |
62 void addScrArea(FrameTeams* pfteams, QColor color, int maxHeight); |
65 void addScrArea(FrameTeams* pfteams, QColor color, int maxHeight); |
63 FrameTeams* frameDontPlaying; |
66 FrameTeams* frameDontPlaying; |
64 FrameTeams* framePlaying; |
67 FrameTeams* framePlaying; |
65 |
68 |
66 QVBoxLayout mainLayout; |
69 QVBoxLayout mainLayout; |
67 QPushButton * newTeam; |
70 QPushButton * newTeam; |
68 |
71 |
69 list<HWTeam> curPlayingTeams; |
72 QList<HWTeam> curPlayingTeams; |
70 list<HWTeam> curDontPlayingTeams; |
73 QList<HWTeam> curDontPlayingTeams; |
71 }; |
74 }; |
72 |
75 |
73 #endif // _TEAM_SELECT_INCLUDED |
76 #endif // _TEAM_SELECT_INCLUDED |