equal
deleted
inserted
replaced
1 #ifndef _TEAM_SELECT_INCLUDED |
1 #ifndef _TEAM_SELECT_INCLUDED |
2 #define _TEAM_SELECT_INCLUDED |
2 #define _TEAM_SELECT_INCLUDED |
3 |
3 |
4 #include <QWidget> |
4 #include <QWidget> |
5 #include <QVBoxLayout> |
5 #include <QVBoxLayout> |
6 #include <QFrame> |
6 class QFrame; |
7 |
7 |
8 #include <list> |
8 #include <list> |
9 #include <map> |
9 #include <map> |
|
10 |
|
11 class TeamSelWidget; |
|
12 class FrameTeams; |
10 |
13 |
11 using namespace std; |
14 using namespace std; |
12 |
15 |
13 struct tmprop |
16 struct tmprop |
14 { |
17 { |
15 tmprop(QString nm) : teamName(nm){}; |
18 tmprop(QString nm) : teamName(nm) {}; |
16 QString teamName; |
19 QString teamName; |
17 QString pixmapFileName; |
20 QString pixmapFileName; |
18 bool operator==(const tmprop& t1) const { |
21 bool operator==(const tmprop& t1) const { |
19 return teamName==t1.teamName; |
22 return teamName==t1.teamName; |
20 }; |
23 }; |
34 |
37 |
35 private slots: |
38 private slots: |
36 void changeTeamStatus(tmprop team); |
39 void changeTeamStatus(tmprop team); |
37 |
40 |
38 private: |
41 private: |
|
42 void addScrArea(FrameTeams* pfteams, QColor color); |
|
43 FrameTeams* frameDontPlaying; |
|
44 FrameTeams* framePlaying; |
|
45 |
39 QVBoxLayout mainLayout; |
46 QVBoxLayout mainLayout; |
40 |
|
41 QFrame* playingColorFrame; |
|
42 QFrame* dontPlayingColorFrame; |
|
43 QGridLayout* playingLayout; |
|
44 QGridLayout* dontPlayingLayout; |
|
45 |
47 |
46 list<tmprop> curPlayingTeams; |
48 list<tmprop> curPlayingTeams; |
47 list<tmprop> curDontPlayingTeams; |
49 list<tmprop> curDontPlayingTeams; |
48 map<tmprop, QWidget*> teamToWidget; |
|
49 }; |
50 }; |
50 |
51 |
51 #endif // _TEAM_SELECT_INCLUDED |
52 #endif // _TEAM_SELECT_INCLUDED |