QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
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 
20 class QgsMapCanvas;
21 
22 class QProgressDialog;
23 
30 {
31  Q_OBJECT
32  public:
33  QgsMapCanvasSnappingUtils( QgsMapCanvas* canvas, QObject* parent = nullptr );
34 
35  protected:
36  virtual void prepareIndexStarting( int count ) override;
37  virtual void prepareIndexProgress( int index ) override;
38 
39  private slots:
40  void canvasMapSettingsChanged();
41  void canvasCurrentLayerChanged();
42 
43  private:
44  QgsMapCanvas* mCanvas;
45  QProgressDialog* mProgress;
46 };
47 
48 
49 #endif // QGSMAPCANVASSNAPPINGUTILS_H
static unsigned index
virtual void prepareIndexProgress(int index)
Called when finished indexing a layer. When index == count the indexing is complete.
Snapping utils instance that is connected to a canvas and updates the configuration (map settings + c...
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:109
virtual void prepareIndexStarting(int count)
Called when starting to index - can be overridden and e.g. progress dialog can be provided...
This class has all the configuration of snapping and can return answers to snapping queries...