Quantum GIS API Documentation
1.7.4
|
00001 /*************************************************************************** 00002 qgsmaptoolemitpoint.h - map tool that emits a signal on click 00003 --------------------- 00004 begin : June 2007 00005 copyright : (C) 2007 by Martin Dobias 00006 email : wonder.sk at gmail dot com 00007 *************************************************************************** 00008 * * 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; either version 2 of the License, or * 00012 * (at your option) any later version. * 00013 * * 00014 ***************************************************************************/ 00015 /* $Id$ */ 00016 00017 #ifndef QGSMAPTOOLEMITPOINT_H 00018 #define QGSMAPTOOLEMITPOINT_H 00019 00020 #include "qgspoint.h" 00021 #include "qgsmaptool.h" 00022 class QgsMapCanvas; 00023 00024 00030 class GUI_EXPORT QgsMapToolEmitPoint : public QgsMapTool 00031 { 00032 Q_OBJECT 00033 00034 public: 00036 QgsMapToolEmitPoint( QgsMapCanvas* canvas ); 00037 00039 virtual void canvasMoveEvent( QMouseEvent * e ); 00040 00042 virtual void canvasPressEvent( QMouseEvent * e ); 00043 00045 virtual void canvasReleaseEvent( QMouseEvent * e ); 00046 00047 signals: 00048 00050 // \note changed in 1.3 00051 void canvasClicked( const QgsPoint& point, Qt::MouseButton button ); 00052 }; 00053 00054 #endif