16 #ifndef QGSIDENTIFYMENU_H
17 #define QGSIDENTIFYMENU_H
48 , mAllResults( false )
49 , mIsExternalAction( false )
52 , mLevel( LayerLevel )
53 , mMapLayerAction( NULL )
58 , mAllResults( layer == 0 )
59 , mIsExternalAction( mapLayerAction != 0 )
62 , mLevel( LayerLevel )
63 , mMapLayerAction( mapLayerAction )
68 , mAllResults( false )
69 , mIsExternalAction( mapLayerAction != 0 )
72 , mLevel( FeatureLevel )
73 , mMapLayerAction( mapLayerAction )
118 void setMaxLayerDisplay(
int maxLayerDisplay );
123 void setMaxFeatureDisplay(
int maxFeatureDisplay );
130 void removeCustomActions();
137 QList<QgsMapToolIdentify::IdentifyResult> exec(
const QList<QgsMapToolIdentify::IdentifyResult> idResults, QPoint pos );
140 virtual void closeEvent( QCloseEvent *e )
override;
143 void handleMenuHover();
144 void deleteRubberBands();
145 void layerDestroyed();
146 void triggerMapLayerAction();
152 explicit CustomActionRegistry( QObject *parent );
154 void clear() {mMapLayerActionList.clear();}
162 void addVectorLayer(
QgsVectorLayer* layer,
const QList<QgsMapToolIdentify::IdentifyResult> results,
bool singleLayer =
false );
165 QList<QgsMapToolIdentify::IdentifyResult> results( QAction* action,
bool& externalAction );
168 QList<QgsHighlight*> mRubberBands;
169 bool mAllowMultipleReturn;
170 bool mExecWithSingleResult;
171 bool mShowFeatureActions;
172 bool mResultsIfExternalAction;
173 int mMaxLayerDisplay;
174 int mMaxFeatureDisplay;
177 QString mDefaultActionName;
180 CustomActionRegistry mCustomActionRegistry;
183 QMap <QgsMapLayer*, QList<QgsMapToolIdentify::IdentifyResult> > mLayerIdResults;
188 #endif // QGSIDENTIFYMENU_H