69 , mAllResults( !layer )
70 , mIsExternalAction( nullptr != mapLayerAction )
72 , mMapLayerAction( mapLayerAction )
77 , mIsExternalAction( nullptr != mapLayerAction )
80 , mLevel( FeatureLevel )
81 , mMapLayerAction( mapLayerAction )
84 bool mIsValid =
false;
85 bool mAllResults =
false;
86 bool mIsExternalAction =
false;
111 static QList<QgsMapToolIdentify::IdentifyResult> findFeaturesOnCanvas(
QgsMapMouseEvent *event,
QgsMapCanvas *canvas,
const QList<Qgis::GeometryType> &geometryTypes );
153 void setMaxLayerDisplay(
int maxLayerDisplay );
160 void setMaxFeatureDisplay(
int maxFeatureDisplay );
167 void removeCustomActions();
174 QList<QgsMapToolIdentify::IdentifyResult> exec(
const QList<QgsMapToolIdentify::IdentifyResult> &idResults, QPoint pos );
184 void closeEvent( QCloseEvent *e )
override;
187 void handleMenuHover();
188 void deleteRubberBands();
189 void layerDestroyed();
190 void triggerMapLayerAction();
200 void addVectorLayer(
QgsVectorLayer *layer,
const QList<QgsMapToolIdentify::IdentifyResult> &results,
bool singleLayer =
false );
203 QList<QgsMapToolIdentify::IdentifyResult> results( QAction *action,
bool &externalAction );
206 QList<QgsHighlight *> mRubberBands;
207 bool mAllowMultipleReturn;
208 bool mExecWithSingleResult;
209 bool mShowFeatureActions;
210 bool mResultsIfExternalAction;
211 int mMaxLayerDisplay;
212 int mMaxFeatureDisplay;
217 QString mDefaultActionName;
220 CustomActionRegistry mCustomActionRegistry;
223 QMap<QgsMapLayer *, QList<QgsMapToolIdentify::IdentifyResult>> mLayerIdResults;
Single scope for storing variables and functions for use within a QgsExpressionContext.