text: /***************************************************************************
       qgsgeoreftoolmovepoint.h
       --------------------------------------
      Date                 : 14-Feb-2010
      Copyright            : (C) 2010 by Jack R, Maxim Dubinin (GIS-Lab)
      Email                : sim@gis-lab.info
   ***************************************************************************
   *                                                                         *
   *   This program is free software; you can redistribute it and/or modify  *
   *   it under the terms of the GNU General Public License as published by  *
   *   the Free Software Foundation; either version 2 of the License, or     *
   *   (at your option) any later version.                                   *
   *                                                                         *
   ***************************************************************************/
  
  #ifndef QGSGEOREFTOOLMOVEPOINT_H
  #define QGSGEOREFTOOLMOVEPOINT_H
  
  #include <QRubberBand>
  
  #include "qgsmaptool.h"
  #include "qgsrubberband.h"
  
  class QgsGeorefToolMovePoint : public QgsMapTool
  {
      Q_OBJECT
  
    public:
      explicit QgsGeorefToolMovePoint( QgsMapCanvas *canvas );
  
      void canvasPressEvent( QgsMapMouseEvent *e ) override;
      void canvasMoveEvent( QgsMapMouseEvent *e ) override;
      void canvasReleaseEvent( QgsMapMouseEvent *e ) override;
  
      bool isCanvas( QgsMapCanvas * );
  
    signals:
      void pointPressed( QPoint p );
      void pointMoved( QPoint p );
      void pointReleased( QPoint p );
  
    private:
      //! Start point of the move in map coordinates
      QPoint mStartPointMapCoords;
  
      //! Rubberband that shows the feature being moved
      QRubberBand *mRubberBand = nullptr;
  };
  
  #endif // QGSGEOREFTOOLMOVEPOINT_H
  