QGIS API Documentation  2.12.0-Lyon
qgsmapcanvassnappingutils.h
Go to the documentation of this file.
1 #ifndef QGSMAPCANVASSNAPPINGUTILS_H
2 #define QGSMAPCANVASSNAPPINGUTILS_H
3 
4 #include "qgssnappingutils.h"
5 
6 class QgsMapCanvas;
7 
8 class QProgressDialog;
9 
15 {
16  Q_OBJECT
17  public:
18  QgsMapCanvasSnappingUtils( QgsMapCanvas* canvas, QObject* parent = 0 );
19 
20  protected:
21  virtual void prepareIndexStarting( int count ) override;
22  virtual void prepareIndexProgress( int index ) override;
23 
24  private slots:
25  void canvasMapSettingsChanged();
26  void canvasCurrentLayerChanged();
27 
28  private:
29  QgsMapCanvas* mCanvas;
30  QProgressDialog* mProgress;
31 };
32 
33 
34 #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:107
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...