QTfrontend/hedgehogerWidget.h
changeset 612 333d095319de
parent 486 7ea71cd3acd5
child 1066 1f1b3686a2b0
--- a/QTfrontend/hedgehogerWidget.h	Sat Sep 22 17:50:14 2007 +0000
+++ b/QTfrontend/hedgehogerWidget.h	Mon Sep 24 20:34:28 2007 +0000
@@ -19,17 +19,17 @@
 #ifndef _HEDGEHOGER_WIDGET
 #define _HEDGEHOGER_WIDGET
 
-#include <QWidget>
+#include "itemNum.h"
 
 class FrameTeams;
 
-class CHedgehogerWidget : public QWidget
+class CHedgehogerWidget : public ItemNum
 {
   Q_OBJECT
 
  public:
-  CHedgehogerWidget(QWidget * parent);
-  ~CHedgehogerWidget();
+  CHedgehogerWidget(const QImage& im, QWidget * parent);
+  virtual ~CHedgehogerWidget();
   unsigned char getHedgehogsNum() const;
   void setHHNum (unsigned int num);
   void setNonInteractive();
@@ -38,14 +38,12 @@
   void hedgehogsNumChanged();
 
  protected:
-  virtual void paintEvent(QPaintEvent* event);
-  virtual void mousePressEvent ( QMouseEvent * event );
+  virtual void incItems();
+  virtual void decItems();
 
  private:
   CHedgehogerWidget();
-  unsigned char numHedgehogs;
   FrameTeams* pOurFrameTeams;
-  bool nonInteractive;
 };
 
 #endif // _HEDGEHOGER_WIDGET