Quantum GIS API Documentation  1.8
src/gui/qgsmaptoolpan.h
Go to the documentation of this file.
00001 /***************************************************************************
00002     qgsmaptoolpan.h  -  map tool for panning in map canvas
00003     ---------------------
00004     begin                : January 2006
00005     copyright            : (C) 2006 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 QGSMAPTOOLPAN_H
00017 #define QGSMAPTOOLPAN_H
00018 
00019 #include "qgsmaptool.h"
00020 class QgsMapCanvas;
00021 
00022 
00027 class GUI_EXPORT QgsMapToolPan : public QgsMapTool
00028 {
00029   public:
00031     QgsMapToolPan( QgsMapCanvas* canvas );
00032 
00034     virtual void canvasMoveEvent( QMouseEvent * e );
00035 
00037     virtual void canvasReleaseEvent( QMouseEvent * e );
00038 
00039     virtual bool isTransient() { return true; }
00040 
00041   private:
00042 
00044     bool mDragging;
00045 
00046 };
00047 
00048 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines