16 #ifndef QGSIDENTIFYMENU_H
17 #define QGSIDENTIFYMENU_H
34 CustomActionRegistry() =
default;
36 void clear() { mMapLayerActionList.clear(); }
67 , mAllResults( !layer )
68 , mIsExternalAction( nullptr != mapLayerAction )
70 , mMapLayerAction( mapLayerAction )
75 , mIsExternalAction( nullptr != mapLayerAction )
78 , mLevel( FeatureLevel )
79 , mMapLayerAction( mapLayerAction )
82 bool mIsValid =
false;
83 bool mAllResults =
false;
84 bool mIsExternalAction =
false;
140 void setMaxLayerDisplay(
int maxLayerDisplay );
147 void setMaxFeatureDisplay(
int maxFeatureDisplay );
154 void removeCustomActions();
161 QList<QgsMapToolIdentify::IdentifyResult> exec(
const QList<QgsMapToolIdentify::IdentifyResult> &idResults, QPoint pos );
171 void closeEvent( QCloseEvent *e )
override;
174 void handleMenuHover();
175 void deleteRubberBands();
176 void layerDestroyed();
177 void triggerMapLayerAction();
188 void addVectorLayer(
QgsVectorLayer *layer,
const QList<QgsMapToolIdentify::IdentifyResult> &results,
bool singleLayer =
false );
191 QList<QgsMapToolIdentify::IdentifyResult> results( QAction *action,
bool &externalAction );
194 QList<QgsHighlight *> mRubberBands;
195 bool mAllowMultipleReturn;
196 bool mExecWithSingleResult;
197 bool mShowFeatureActions;
198 bool mResultsIfExternalAction;
199 int mMaxLayerDisplay;
200 int mMaxFeatureDisplay;
205 QString mDefaultActionName;
208 CustomActionRegistry mCustomActionRegistry;
211 QMap <QgsMapLayer *, QList<QgsMapToolIdentify::IdentifyResult> > mLayerIdResults;
Single scope for storing variables and functions for use within a QgsExpressionContext.
A class for highlight features on the map.
Map canvas is a class for displaying all GIS data types on a canvas.
This class tracks map layer actions.
An action which can run on map layers.
Base class for all map layer types.
Represents a vector layer which manages a vector based data sets.
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
Q_DECLARE_METATYPE(QgsMeshTimeSettings)