Quantum GIS API Documentation  1.7.4
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 /* $Id$ */
00016 
00017 #ifndef QGSMAPTOOLPAN_H
00018 #define QGSMAPTOOLPAN_H
00019 
00020 #include "qgsmaptool.h"
00021 class QgsMapCanvas;
00022 
00023 
00028 class GUI_EXPORT QgsMapToolPan : public QgsMapTool
00029 {
00030   public:
00032     QgsMapToolPan( QgsMapCanvas* canvas );
00033 
00035     virtual void canvasMoveEvent( QMouseEvent * e );
00036 
00038     virtual void canvasReleaseEvent( QMouseEvent * e );
00039 
00040     virtual bool isTransient() { return true; }
00041 
00042   private:
00043 
00045     bool mDragging;
00046 
00047 };
00048 
00049 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines