author | displacer |
Sun, 21 Jan 2007 19:53:25 +0000 | |
changeset 352 | 4665bfe25470 |
parent 207 | 287077789132 |
child 362 | b28e0dd48269 |
permissions | -rw-r--r-- |
153 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
3 |
* Copyright (c) 2006 Ulyanov Igor <iulyanov@gmail.com> |
|
4 |
* |
|
184 | 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 |
* |
184 | 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 |
* |
184 | 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 |
||
132 | 19 |
#ifndef _HEDGEHOGER_WIDGET |
20 |
#define _HEDGEHOGER_WIDGET |
|
21 |
||
22 |
#include <QWidget> |
|
23 |
||
150 | 24 |
class FrameTeams; |
25 |
||
132 | 26 |
class CHedgehogerWidget : public QWidget |
27 |
{ |
|
28 |
Q_OBJECT |
|
29 |
||
30 |
public: |
|
150 | 31 |
CHedgehogerWidget(QWidget * parent); |
147 | 32 |
~CHedgehogerWidget(); |
207 | 33 |
unsigned char getHedgehogsNum() const; |
352 | 34 |
void setHHNum (unsigned int num); |
35 |
||
36 |
signals: |
|
37 |
void hedgehogsNumChanged(); |
|
132 | 38 |
|
39 |
protected: |
|
40 |
virtual void paintEvent(QPaintEvent* event); |
|
41 |
virtual void mousePressEvent ( QMouseEvent * event ); |
|
42 |
||
43 |
private: |
|
150 | 44 |
CHedgehogerWidget(); |
140
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
132
diff
changeset
|
45 |
unsigned char numHedgehogs; |
150 | 46 |
FrameTeams* pOurFrameTeams; |
132 | 47 |
}; |
48 |
||
49 |
#endif // _HEDGEHOGER_WIDGET |