QTfrontend/hedgehogerWidget.h
author unc0rr
Fri, 15 Sep 2006 20:38:25 +0000
changeset 148 c0355acf07c8
parent 147 52a3c431db8a
child 150 d9e8a336195c
permissions -rw-r--r--
Don't save demos in 'bin' dir
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
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
     6
class CHedgehogerWidget : public QWidget
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
     7
{
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
     8
  Q_OBJECT
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
     9
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    10
 public:
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    11
  CHedgehogerWidget(QWidget * parent = 0);
147
52a3c431db8a maximum number of teams and hedgehogs
displacer
parents: 140
diff changeset
    12
  ~CHedgehogerWidget();
140
50ccde437ea1 teams and hedgedogs num selection added to HWgame
displacer
parents: 132
diff changeset
    13
  unsigned char getHedgehogsNum();
132
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    14
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    15
 protected:
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    16
  virtual void paintEvent(QPaintEvent* event);
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    17
  virtual void mousePressEvent ( QMouseEvent * event );
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    18
  
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    19
 private:
140
50ccde437ea1 teams and hedgedogs num selection added to HWgame
displacer
parents: 132
diff changeset
    20
  unsigned char numHedgehogs;
132
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    21
};
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    22
2d0f404cdf05 first hedgehogs number selection added
displacer
parents:
diff changeset
    23
#endif // _HEDGEHOGER_WIDGET