author | unc0rr |
Sat, 10 Feb 2007 17:59:30 +0000 | |
changeset 426 | 7523417d84d6 |
parent 362 | b28e0dd48269 |
child 486 | 7ea71cd3acd5 |
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); |
362
b28e0dd48269
hedgehogs num modification now allowed to chief client only
displacer
parents:
352
diff
changeset
|
35 |
void setNonInteractive(); |
352 | 36 |
|
37 |
signals: |
|
38 |
void hedgehogsNumChanged(); |
|
132 | 39 |
|
40 |
protected: |
|
41 |
virtual void paintEvent(QPaintEvent* event); |
|
42 |
virtual void mousePressEvent ( QMouseEvent * event ); |
|
43 |
||
44 |
private: |
|
150 | 45 |
CHedgehogerWidget(); |
140
50ccde437ea1
teams and hedgedogs num selection added to HWgame
displacer
parents:
132
diff
changeset
|
46 |
unsigned char numHedgehogs; |
150 | 47 |
FrameTeams* pOurFrameTeams; |
362
b28e0dd48269
hedgehogs num modification now allowed to chief client only
displacer
parents:
352
diff
changeset
|
48 |
bool nonInteractive; |
132 | 49 |
}; |
50 |
||
51 |
#endif // _HEDGEHOGER_WIDGET |