QGIS API Documentation  3.14.0-Pi (9f7028fd23)
qgsmapcanvassnappingutils.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsmapcanvassnappingutils.h
3  ---------------------
4  begin : December 2014
5  copyright : (C) 2014 by Martin Dobias
6  email : wonder dot sk at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 #ifndef QGSMAPCANVASSNAPPINGUTILS_H
16 #define QGSMAPCANVASSNAPPINGUTILS_H
17 
18 #include "qgssnappingutils.h"
19 #include "qgis_gui.h"
20 
21 #include "qgsmaptool.h"
22 
23 class QgsMapCanvas;
24 
25 class QProgressDialog;
26 
34 {
35  Q_OBJECT
36  public:
37 
45  QgsMapCanvasSnappingUtils( QgsMapCanvas *canvas, QObject *parent = nullptr );
46 
47  protected:
48  void prepareIndexStarting( int count ) override;
49  void prepareIndexProgress( int index ) override;
50 
51  private slots:
52  void canvasMapSettingsChanged();
53  void canvasTransformContextChanged();
54  void canvasCurrentLayerChanged();
55  void canvasMapToolChanged();
56 
57  private:
58  QgsMapCanvas *mCanvas = nullptr;
59  QProgressDialog *mProgress = nullptr;
60 };
61 
62 
63 #endif // QGSMAPCANVASSNAPPINGUTILS_H
QgsMapCanvas
Definition: qgsmapcanvas.h:83
QgsMapCanvasSnappingUtils
Definition: qgsmapcanvassnappingutils.h:33
QgsSnappingUtils::prepareIndexStarting
virtual void prepareIndexStarting(int count)
Called when starting to index with snapToMap - can be overridden and e.g. progress dialog can be prov...
Definition: qgssnappingutils.h:256
qgsmaptool.h
QgsSnappingUtils
Definition: qgssnappingutils.h:49
qgssnappingutils.h
QgsSnappingUtils::prepareIndexProgress
virtual void prepareIndexProgress(int index)
Called when finished indexing a layer with snapToMap. When index == count the indexing is complete.
Definition: qgssnappingutils.h:258