equal
deleted
inserted
replaced
1 #ifndef _HEDGEHOGER_WIDGET |
1 #ifndef _HEDGEHOGER_WIDGET |
2 #define _HEDGEHOGER_WIDGET |
2 #define _HEDGEHOGER_WIDGET |
3 |
3 |
4 #include <QWidget> |
4 #include <QWidget> |
|
5 |
|
6 class FrameTeams; |
5 |
7 |
6 class CHedgehogerWidget : public QWidget |
8 class CHedgehogerWidget : public QWidget |
7 { |
9 { |
8 Q_OBJECT |
10 Q_OBJECT |
9 |
11 |
10 public: |
12 public: |
11 CHedgehogerWidget(QWidget * parent = 0); |
13 CHedgehogerWidget(QWidget * parent); |
12 ~CHedgehogerWidget(); |
14 ~CHedgehogerWidget(); |
13 unsigned char getHedgehogsNum(); |
15 unsigned char getHedgehogsNum(); |
14 |
16 |
15 protected: |
17 protected: |
16 virtual void paintEvent(QPaintEvent* event); |
18 virtual void paintEvent(QPaintEvent* event); |
17 virtual void mousePressEvent ( QMouseEvent * event ); |
19 virtual void mousePressEvent ( QMouseEvent * event ); |
18 |
20 |
19 private: |
21 private: |
|
22 CHedgehogerWidget(); |
20 unsigned char numHedgehogs; |
23 unsigned char numHedgehogs; |
|
24 FrameTeams* pOurFrameTeams; |
21 }; |
25 }; |
22 |
26 |
23 #endif // _HEDGEHOGER_WIDGET |
27 #endif // _HEDGEHOGER_WIDGET |