Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

field.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           field.h  -  description
00003                              -------------------
00004     begin                : Thu Dec 30 1999
00005     copyright            : (C) 1999 by Jurrien Loonstra
00006     email                : j.h.loonstra@st.hanze.nl
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef FIELD_H
00019 #define FIELD_H
00020 
00021 #include <qwidget.h>
00022 #include <qpixmap.h>
00023 #include <qpainter.h>
00024 #include <qtimer.h>
00025 
00026 class Field : public QWidget  {
00027    Q_OBJECT
00028 public: 
00029         Field(QWidget *parent=0, const char *name=0);
00030         ~Field();
00031         void stopTimer();
00032         void startTimer();
00033         void setPixmap(QPixmap *pix);
00034 protected:
00035   void mouseReleaseEvent(QMouseEvent *e);
00036   void mousePressEvent(QMouseEvent *e);
00037         void enterEvent(QEvent *);
00038         void leaveEvent(QEvent *);
00039         void paintEvent(QPaintEvent *);
00040 public slots:
00041   void Timer();
00042 private:
00043   QTimer* timer;
00044         QPixmap *pix;
00045   bool playing;
00046 };
00047 
00048 #endif

Generated on Sat Nov 5 16:17:19 2005 for OPIE by  doxygen 1.4.2