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 );
164 void closeEvent( QCloseEvent *e )
override;
167 void handleMenuHover();
168 void deleteRubberBands();
169 void layerDestroyed();
170 void triggerMapLayerAction();
181 void addVectorLayer(
QgsVectorLayer *layer,
const QList<QgsMapToolIdentify::IdentifyResult> &results,
bool singleLayer =
false );
184 QList<QgsMapToolIdentify::IdentifyResult> results( QAction *action,
bool &externalAction );
187 QList<QgsHighlight *> mRubberBands;
188 bool mAllowMultipleReturn;
189 bool mExecWithSingleResult;
190 bool mShowFeatureActions;
191 bool mResultsIfExternalAction;
192 int mMaxLayerDisplay;
193 int mMaxFeatureDisplay;
198 QString mDefaultActionName;
201 CustomActionRegistry mCustomActionRegistry;
204 QMap <QgsMapLayer *, QList<QgsMapToolIdentify::IdentifyResult> > mLayerIdResults;
209 #endif // QGSIDENTIFYMENU_H
Base class for all map layer types.
Q_DECLARE_METATYPE(QModelIndex)
Map canvas is a class for displaying all GIS data types on a canvas.
Single scope for storing variables and functions for use within a QgsExpressionContext.
This class tracks map layer actions.
Represents a vector layer which manages a vector based data sets.
An action which can run on map layers.