author | displacer |
Sat, 16 Sep 2006 17:24:41 +0000 | |
changeset 150 | d9e8a336195c |
parent 140 | 50ccde437ea1 |
child 152 | c558957ef644 |
permissions | -rw-r--r-- |
80 | 1 |
#ifndef _TEAMSEL_HELPER_INCLUDED |
2 |
#define _TEAMSEL_HELPER_INCLUDED |
|
3 |
||
4 |
#include <QLabel> |
|
5 |
#include <QWidget> |
|
6 |
#include <QString> |
|
7 |
||
8 |
#include "teamselect.h" |
|
140
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
132
diff
changeset
|
9 |
#include "hedgehogerWidget.h" |
80 | 10 |
|
11 |
class TeamLabel : public QLabel |
|
12 |
{ |
|
13 |
Q_OBJECT |
|
14 |
||
15 |
public: |
|
16 |
TeamLabel(const QString& inp_str) : QLabel(inp_str) {}; |
|
17 |
||
18 |
signals: |
|
19 |
void teamActivated(QString team_name); |
|
20 |
||
21 |
public slots: |
|
22 |
void teamButtonClicked(); |
|
23 |
||
24 |
}; |
|
25 |
||
26 |
class TeamShowWidget : public QWidget |
|
27 |
{ |
|
28 |
Q_OBJECT |
|
29 |
||
30 |
private slots: |
|
31 |
void activateTeam(); |
|
32 |
||
33 |
public: |
|
150 | 34 |
TeamShowWidget(HWTeam team, bool isPlaying, QWidget * parent); |
132 | 35 |
void setPlaying(bool isPlaying); |
140
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
132
diff
changeset
|
36 |
unsigned char getHedgehogsNum(); |
80 | 37 |
|
38 |
private: |
|
150 | 39 |
TeamShowWidget(); |
80 | 40 |
QHBoxLayout mainLayout; |
117 | 41 |
HWTeam m_team; |
132 | 42 |
bool m_isPlaying; |
140
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
132
diff
changeset
|
43 |
CHedgehogerWidget* phhoger; |
80 | 44 |
|
45 |
signals: |
|
117 | 46 |
void teamStatusChanged(HWTeam team); |
80 | 47 |
}; |
48 |
||
49 |
#endif // _TEAMSEL_HELPER_INCLUDED |