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

pointtool.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *                                                                         *
00003  *   DrawPad - a drawing program for Opie Environment                      *
00004  *                                                                         *
00005  *   (C) 2002 by S. Prud'homme <prudhomme@laposte.net>                     *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  ***************************************************************************/
00013 
00014 #ifndef POINTTOOL_H
00015 #define POINTTOOL_H
00016 
00017 #include "tool.h"
00018 
00019 #include <qpointarray.h>
00020 
00021 class PointTool : public Tool
00022 {
00023 public:
00024     PointTool(DrawPad* drawPad, DrawPadCanvas* drawPadCanvas);
00025     ~PointTool();
00026 
00027     void mousePressEvent(QMouseEvent* e);
00028     void mouseReleaseEvent(QMouseEvent* e);
00029     void mouseMoveEvent(QMouseEvent* e);
00030 
00031 private:
00032     bool m_mousePressed;
00033     QPointArray m_polyline;
00034 };
00035 
00036 #endif // POINTTOOL_H

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