16 #ifndef QGSIDENTIFYMENU_H
17 #define QGSIDENTIFYMENU_H
52 , mAllResults( layer == 0 )
53 , mIsExternalAction( mapLayerAction != 0 )
55 , mLevel( LayerLevel )
56 , mMapLayerAction( mapLayerAction )
61 , mAllResults( false )
62 , mIsExternalAction( mapLayerAction != 0 )
65 , mLevel( FeatureLevel )
66 , mMapLayerAction( mapLayerAction )
111 void setMaxLayerDisplay(
int maxLayerDisplay );
116 void setMaxFeatureDisplay(
int maxFeatureDisplay );
123 void removeCustomActions();
130 QList<QgsMapToolIdentify::IdentifyResult> exec(
const QList<QgsMapToolIdentify::IdentifyResult> idResults, QPoint pos );
133 virtual void closeEvent( QCloseEvent *e );
136 void handleMenuHover();
137 void deleteRubberBands();
138 void layerDestroyed();
139 void triggerMapLayerAction();
145 explicit CustomActionRegistry( QObject *parent );
147 void clear() {mMapLayerActionList.clear();}
155 void addVectorLayer(
QgsVectorLayer* layer,
const QList<QgsMapToolIdentify::IdentifyResult> results,
bool singleLayer =
false );
158 QList<QgsMapToolIdentify::IdentifyResult> results( QAction* action,
bool& externalAction );
161 QList<QgsHighlight*> mRubberBands;
162 bool mAllowMultipleReturn;
163 bool mExecWithSingleResult;
164 bool mShowFeatureActions;
165 bool mResultsIfExternalAction;
166 int mMaxLayerDisplay;
167 int mMaxFeatureDisplay;
170 QString mDefaultActionName;
173 CustomActionRegistry mCustomActionRegistry;
176 QMap <QgsMapLayer*, QList<QgsMapToolIdentify::IdentifyResult> > mLayerIdResults;
181 #endif // QGSIDENTIFYMENU_H