Quantum GIS API Documentation  1.8
src/gui/qgsmaptoolemitpoint.h
Go to the documentation of this file.
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 
00016 #ifndef QGSMAPTOOLEMITPOINT_H
00017 #define QGSMAPTOOLEMITPOINT_H
00018 
00019 #include "qgspoint.h"
00020 #include "qgsmaptool.h"
00021 class QgsMapCanvas;
00022 
00023 
00029 class GUI_EXPORT QgsMapToolEmitPoint : public QgsMapTool
00030 {
00031     Q_OBJECT
00032 
00033   public:
00035     QgsMapToolEmitPoint( QgsMapCanvas* canvas );
00036 
00038     virtual void canvasMoveEvent( QMouseEvent * e );
00039 
00041     virtual void canvasPressEvent( QMouseEvent * e );
00042 
00044     virtual void canvasReleaseEvent( QMouseEvent * e );
00045 
00046   signals:
00047 
00049     // \note changed in 1.3
00050     void canvasClicked( const QgsPoint& point, Qt::MouseButton button );
00051 };
00052 
00053 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines