equal
deleted
inserted
replaced
26 #include <QPushButton> |
26 #include <QPushButton> |
27 |
27 |
28 #include "teamselect.h" |
28 #include "teamselect.h" |
29 #include "hedgehogerWidget.h" |
29 #include "hedgehogerWidget.h" |
30 |
30 |
|
31 class ColorWidget; |
|
32 |
31 class TeamLabel : public QLabel |
33 class TeamLabel : public QLabel |
32 { |
34 { |
33 Q_OBJECT |
35 Q_OBJECT |
34 |
36 |
35 public: |
37 public: |
46 class TeamShowWidget : public QWidget |
48 class TeamShowWidget : public QWidget |
47 { |
49 { |
48 Q_OBJECT |
50 Q_OBJECT |
49 |
51 |
50 public slots: |
52 public slots: |
51 void incrementTeamColor(); |
53 void changeTeamColor(int color = 0); |
52 void decrementTeamColor(); |
|
53 void changeTeamColor(QColor color=QColor()); |
|
54 void hhNumChanged(); |
54 void hhNumChanged(); |
55 |
55 |
56 private slots: |
56 private slots: |
57 void activateTeam(); |
57 void activateTeam(); |
|
58 void onColorChanged(int color); |
58 |
59 |
59 public: |
60 public: |
60 TeamShowWidget(HWTeam team, bool isPlaying, FrameTeams * parent); |
61 TeamShowWidget(HWTeam team, bool isPlaying, FrameTeams * parent); |
61 void setPlaying(bool isPlaying); |
62 void setPlaying(bool isPlaying); |
62 void setHHNum(unsigned int num); |
63 void setHHNum(unsigned int num); |
67 TeamShowWidget(); |
68 TeamShowWidget(); |
68 QHBoxLayout mainLayout; |
69 QHBoxLayout mainLayout; |
69 HWTeam m_team; |
70 HWTeam m_team; |
70 bool m_isPlaying; |
71 bool m_isPlaying; |
71 CHedgehogerWidget* phhoger; |
72 CHedgehogerWidget* phhoger; |
72 QPushButton* colorButt; |
73 ColorWidget* colorWidget; |
73 QPushButton* butt; |
74 QPushButton* butt; |
74 FrameTeams * m_parentFrameTeams; |
75 FrameTeams * m_parentFrameTeams; |
75 // QPushButton* bText; |
|
76 |
76 |
77 signals: |
77 signals: |
78 void teamStatusChanged(HWTeam team); |
78 void teamStatusChanged(HWTeam team); |
79 void hhNmChanged(const HWTeam&); |
79 void hhNmChanged(const HWTeam&); |
80 void teamColorChanged(const HWTeam&); |
80 void teamColorChanged(const HWTeam&); |