QTfrontend/hedgehogerWidget.h
author displacer
Sat, 16 Sep 2006 17:24:41 +0000
changeset 150 d9e8a336195c
parent 147 52a3c431db8a
child 153 dc10da2a73f9
permissions -rw-r--r--
team hedgehogs number improved
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
132
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
     1
#ifndef _HEDGEHOGER_WIDGET
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
     2
#define _HEDGEHOGER_WIDGET
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
     3
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
     4
#include <QWidget>
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
     5
150
d9e8a336195c team hedgehogs number improved
displacer
parents: 147
diff changeset
     6
class FrameTeams;
d9e8a336195c team hedgehogs number improved
displacer
parents: 147
diff changeset
     7
132
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
     8
class CHedgehogerWidget : public QWidget
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
     9
{
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    10
  Q_OBJECT
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    11
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    12
 public:
150
d9e8a336195c team hedgehogs number improved
displacer
parents: 147
diff changeset
    13
  CHedgehogerWidget(QWidget * parent);
147
52a3c431db8a maximum number of teams and hedgehogs
displacer
parents: 140
diff changeset
    14
  ~CHedgehogerWidget();
140
50ccde437ea1 teams and hedgedogs num selection added to HWgame
displacer
parents: 132
diff changeset
    15
  unsigned char getHedgehogsNum();
132
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    16
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    17
 protected:
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    18
  virtual void paintEvent(QPaintEvent* event);
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    19
  virtual void mousePressEvent ( QMouseEvent * event );
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    20
  
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    21
 private:
150
d9e8a336195c team hedgehogs number improved
displacer
parents: 147
diff changeset
    22
  CHedgehogerWidget();
140
50ccde437ea1 teams and hedgedogs num selection added to HWgame
displacer
parents: 132
diff changeset
    23
  unsigned char numHedgehogs;
150
d9e8a336195c team hedgehogs number improved
displacer
parents: 147
diff changeset
    24
  FrameTeams* pOurFrameTeams;
132
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    25
};
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    26
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    27
#endif // _HEDGEHOGER_WIDGET