66 , mAllResults( !layer )
67 , mIsExternalAction( nullptr != mapLayerAction )
69 , mMapLayerAction( mapLayerAction )
74 , mIsExternalAction( nullptr != mapLayerAction )
77 , mLevel( FeatureLevel )
78 , mMapLayerAction( mapLayerAction )
81 bool mIsValid =
false;
82 bool mAllResults =
false;
83 bool mIsExternalAction =
false;
108 static QList<QgsMapToolIdentify::IdentifyResult> findFeaturesOnCanvas(
QgsMapMouseEvent *event,
QgsMapCanvas *canvas,
const QList<Qgis::GeometryType> &geometryTypes );
150 void setMaxLayerDisplay(
int maxLayerDisplay );
157 void setMaxFeatureDisplay(
int maxFeatureDisplay );
164 void removeCustomActions();
171 QList<QgsMapToolIdentify::IdentifyResult> exec(
const QList<QgsMapToolIdentify::IdentifyResult> &idResults, QPoint pos );
181 void closeEvent( QCloseEvent *e )
override;
184 void handleMenuHover();
185 void deleteRubberBands();
186 void layerDestroyed();
187 void triggerMapLayerAction();
197 void addVectorLayer(
QgsVectorLayer *layer,
const QList<QgsMapToolIdentify::IdentifyResult> &results,
bool singleLayer =
false );
200 QList<QgsMapToolIdentify::IdentifyResult> results( QAction *action,
bool &externalAction );
203 QList<QgsHighlight *> mRubberBands;
204 bool mAllowMultipleReturn;
205 bool mExecWithSingleResult;
206 bool mShowFeatureActions;
207 bool mResultsIfExternalAction;
208 int mMaxLayerDisplay;
209 int mMaxFeatureDisplay;
214 QString mDefaultActionName;
217 CustomActionRegistry mCustomActionRegistry;
220 QMap<QgsMapLayer *, QList<QgsMapToolIdentify::IdentifyResult>> mLayerIdResults;
Single scope for storing variables and functions for use within a QgsExpressionContext.