author | unc0rr |
Thu, 05 Oct 2006 16:33:18 +0000 | |
changeset 183 | 57c2ef19f719 |
parent 153 | dc10da2a73f9 |
child 184 | f97a7a3dc8f6 |
permissions | -rw-r--r-- |
153 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
3 |
* Copyright (c) 2006 Ulyanov Igor <iulyanov@gmail.com> |
|
4 |
* |
|
183 | 5 |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
153 | 8 |
* |
183 | 9 |
* This program is distributed in the hope that it will be useful, |
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
153 | 13 |
* |
183 | 14 |
* You should have received a copy of the GNU General Public License |
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
153 | 17 |
*/ |
18 |
||
80 | 19 |
#ifndef _TEAMSEL_HELPER_INCLUDED |
20 |
#define _TEAMSEL_HELPER_INCLUDED |
|
21 |
||
22 |
#include <QLabel> |
|
23 |
#include <QWidget> |
|
24 |
#include <QString> |
|
25 |
||
26 |
#include "teamselect.h" |
|
140
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
132
diff
changeset
|
27 |
#include "hedgehogerWidget.h" |
80 | 28 |
|
29 |
class TeamLabel : public QLabel |
|
30 |
{ |
|
31 |
Q_OBJECT |
|
32 |
||
33 |
public: |
|
34 |
TeamLabel(const QString& inp_str) : QLabel(inp_str) {}; |
|
35 |
||
36 |
signals: |
|
37 |
void teamActivated(QString team_name); |
|
38 |
||
39 |
public slots: |
|
40 |
void teamButtonClicked(); |
|
41 |
||
42 |
}; |
|
43 |
||
44 |
class TeamShowWidget : public QWidget |
|
45 |
{ |
|
46 |
Q_OBJECT |
|
47 |
||
48 |
private slots: |
|
49 |
void activateTeam(); |
|
50 |
||
51 |
public: |
|
150 | 52 |
TeamShowWidget(HWTeam team, bool isPlaying, QWidget * parent); |
132 | 53 |
void setPlaying(bool isPlaying); |
152 | 54 |
unsigned char getHedgehogsNum() const; |
80 | 55 |
|
56 |
private: |
|
150 | 57 |
TeamShowWidget(); |
80 | 58 |
QHBoxLayout mainLayout; |
117 | 59 |
HWTeam m_team; |
132 | 60 |
bool m_isPlaying; |
140
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
132
diff
changeset
|
61 |
CHedgehogerWidget* phhoger; |
80 | 62 |
|
63 |
signals: |
|
117 | 64 |
void teamStatusChanged(HWTeam team); |
80 | 65 |
}; |
66 |
||
67 |
#endif // _TEAMSEL_HELPER_INCLUDED |