28 #include "teamselect.h" |
28 #include "teamselect.h" |
29 #include "hedgehogerWidget.h" |
29 #include "hedgehogerWidget.h" |
30 |
30 |
31 class TeamLabel : public QLabel |
31 class TeamLabel : public QLabel |
32 { |
32 { |
33 Q_OBJECT |
33 Q_OBJECT |
34 |
34 |
35 public: |
35 public: |
36 TeamLabel(const QString& inp_str) : QLabel(inp_str) {}; |
36 TeamLabel(const QString& inp_str) : QLabel(inp_str) {}; |
37 |
37 |
38 signals: |
38 signals: |
39 void teamActivated(QString team_name); |
39 void teamActivated(QString team_name); |
40 |
40 |
41 public slots: |
41 public slots: |
42 void teamButtonClicked(); |
42 void teamButtonClicked(); |
43 |
43 |
44 }; |
44 }; |
45 |
45 |
46 class TeamShowWidget : public QWidget |
46 class TeamShowWidget : public QWidget |
47 { |
47 { |
48 Q_OBJECT |
48 Q_OBJECT |
49 |
49 |
50 public slots: |
50 public slots: |
51 void changeTeamColor(QColor color=QColor()); |
51 void changeTeamColor(QColor color=QColor()); |
52 void hhNumChanged(); |
52 void hhNumChanged(); |
53 |
53 |
54 private slots: |
54 private slots: |
55 void activateTeam(); |
55 void activateTeam(); |
56 |
56 |
57 public: |
57 public: |
58 TeamShowWidget(HWTeam team, bool isPlaying, QWidget * parent); |
58 TeamShowWidget(HWTeam team, bool isPlaying, QWidget * parent); |
59 void setPlaying(bool isPlaying); |
59 void setPlaying(bool isPlaying); |
60 void setHHNum(unsigned int num); |
60 void setHHNum(unsigned int num); |
61 void setInteractivity(bool interactive); |
61 void setInteractivity(bool interactive); |
62 HWTeam getTeam() const; |
62 HWTeam getTeam() const; |
63 |
63 |
64 private: |
64 private: |
65 TeamShowWidget(); |
65 TeamShowWidget(); |
66 QHBoxLayout mainLayout; |
66 QHBoxLayout mainLayout; |
67 HWTeam m_team; |
67 HWTeam m_team; |
68 bool m_isPlaying; |
68 bool m_isPlaying; |
69 CHedgehogerWidget* phhoger; |
69 CHedgehogerWidget* phhoger; |
70 QPushButton* colorButt; |
70 QPushButton* colorButt; |
71 QPushButton* butt; |
71 QPushButton* butt; |
72 // QPushButton* bText; |
72 // QPushButton* bText; |
73 |
73 |
74 signals: |
74 signals: |
75 void teamStatusChanged(HWTeam team); |
75 void teamStatusChanged(HWTeam team); |
76 void hhNmChanged(const HWTeam&); |
76 void hhNmChanged(const HWTeam&); |
77 void teamColorChanged(const HWTeam&); |
77 void teamColorChanged(const HWTeam&); |
78 }; |
78 }; |
79 |
79 |
80 #endif // _TEAMSEL_HELPER_INCLUDED |
80 #endif // _TEAMSEL_HELPER_INCLUDED |