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 |
7 |
7 #include <list> |
8 #include <list> |
8 #include <map> |
9 #include <map> |
9 |
10 |
10 using namespace std; |
11 using namespace std; |
25 class TeamSelWidget : public QWidget |
26 class TeamSelWidget : public QWidget |
26 { |
27 { |
27 Q_OBJECT |
28 Q_OBJECT |
28 |
29 |
29 public: |
30 public: |
30 TeamSelWidget(const vector<QString>& teams, QWidget* parent=0); |
31 TeamSelWidget(QWidget* parent=0); |
31 void addTeam(tmprop team); |
32 void addTeam(tmprop team); |
32 void removeTeam(tmprop team); |
33 void removeTeam(tmprop team); |
33 |
34 |
34 private slots: |
35 private slots: |
35 void changeTeamStatus(tmprop team); |
36 void changeTeamStatus(tmprop team); |
36 |
37 |
37 private: |
38 private: |
38 QVBoxLayout mainLayout; |
39 QVBoxLayout mainLayout; |
39 QGridLayout playingLayout; |
40 |
40 QGridLayout dontPlayingLayout; |
41 QFrame* playingColorFrame; |
|
42 QFrame* dontPlayingColorFrame; |
|
43 QGridLayout* playingLayout; |
|
44 QGridLayout* dontPlayingLayout; |
41 |
45 |
42 list<tmprop> curPlayingTeams; |
46 list<tmprop> curPlayingTeams; |
43 list<tmprop> curDontPlayingTeams; |
47 list<tmprop> curDontPlayingTeams; |
44 map<tmprop, QWidget*> teamToWidget; |
48 map<tmprop, QWidget*> teamToWidget; |
45 }; |
49 }; |