16#ifndef QGSMAPTOOLSELECTUTILS_H
17#define QGSMAPTOOLSELECTUTILS_H
25#include <QFutureWatcher>
153 void chooseAllCandidateFeature();
154 void highlightAllFeatures();
155 void onLayerDestroyed();
156 void removeHighlight();
157 void onSearchFinished();
164 QAction *mActionChooseAll =
nullptr;
165 QMenu *mMenuChooseOne =
nullptr;
166 QFutureWatcher<QgsFeatureIds> *mFutureWatcher =
nullptr;
168 QList<QgsHighlight *> mHighlight;
170 void startFeatureSearch();
172 QString textForChooseAll( qint64 featureCount = -1 )
const;
173 QString textForChooseOneMenu()
const;
178 struct DataForSearchingJob
181 std::unique_ptr<QgsVectorLayerFeatureSource> source;
185 std::unique_ptr<QgsFeatureRenderer> featureRenderer;
186 QString filterString;
191 std::shared_ptr<DataForSearchingJob> mJobData;
193 static QgsFeatureIds search( std::shared_ptr<DataForSearchingJob> data );
SelectBehavior
Specifies how a selection should be applied.
@ SetSelection
Set selection, removing any existing selection.
A geometry is the spatial representation of a feature.
Highlights features on the map.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
A rectangle specified with double values.
Contains information about the context of a rendering operation.
Responsible for drawing transient features (e.g.
Partial snapshot of vector layer's state (only the members necessary for access to features).
Represents a vector layer which manages a vector based dataset.
QSet< QgsFeatureId > QgsFeatureIds
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features