/***************************************************************************
                          qrecttracker.h  -  description
                             -------------------
    begin                : dom ene 19 2003
    copyright            : (C) 2003 by Armando Navarro-Vazquez
    email                : qoajnv@usc.es
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef QRECTTRACKER_H
#define QRECTTRACKER_H
#include <qwidget.h>
//Added by qt3to4:
#include <QMouseEvent>

/**
  *@author  Armando Navarro-Vazquez
  */
  
class QWidget;
class QPainter;
class QRectTracker   {
  
public: 
  QRectTracker(QWidget* parent, const char* name = 0);
	virtual ~QRectTracker();
  /** No descriptions */
  void begin(QMouseEvent* e);
  /** No descriptions */
  virtual void mouseMoveEvent(QMouseEvent* e);
  /** No descriptions */
  QRect stop(QMouseEvent* e);
protected: // Protected attributes
  /**  */
  QPoint m_point;
  /**  */
  QWidget* m_parent;
  /**  */
  QPainter* m_painter;
  /**  */
  QPoint m_oldpoint;
  /**  */
  bool m_bfirst;

};

#endif
