QGIS API Documentation 4.1.0-Master (4aad578bf8d)
Loading...
Searching...
No Matches
QgsMapToolSelectUtils::QgsMapToolSelectMenuActions Class Reference

Handles actions which can be displayed in a context menu related to feature selection. More...

#include <qgsmaptoolselectutils.h>

Inheritance diagram for QgsMapToolSelectUtils::QgsMapToolSelectMenuActions:

Public Member Functions

 QgsMapToolSelectMenuActions (QgsMapCanvas *canvas, QgsVectorLayer *vectorLayer, Qgis::SelectBehavior behavior, const QgsGeometry &selectionGeometry, QObject *parent=nullptr)
 Constructor.
 ~QgsMapToolSelectMenuActions () override
void populateMenu (QMenu *menu)
 Populates the menu with "All Feature" action and a empty menu that could contain later the "One Feature" actions Starts the search for canditate features to be selected on another thread, actions/menus will be updated at the end of this task.

Detailed Description

Handles actions which can be displayed in a context menu related to feature selection.

Since
QGIS 3.18

Definition at line 130 of file qgsmaptoolselectutils.h.

Constructor & Destructor Documentation

◆ QgsMapToolSelectMenuActions()

QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::QgsMapToolSelectMenuActions ( QgsMapCanvas * canvas,
QgsVectorLayer * vectorLayer,
Qgis::SelectBehavior behavior,
const QgsGeometry & selectionGeometry,
QObject * parent = nullptr )

Constructor.

Parameters
canvasThe map canvas where where are the selected features
vectorLayerThe target layer
behaviorbehavior of select
selectionGeometrythe geometry used to select the feature
parenta QObject that owns the instance ot this class

Definition at line 518 of file qgsmaptoolselectutils.cpp.

◆ ~QgsMapToolSelectMenuActions()

QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::~QgsMapToolSelectMenuActions ( )
override

Definition at line 533 of file qgsmaptoolselectutils.cpp.

Member Function Documentation

◆ populateMenu()

void QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::populateMenu ( QMenu * menu)

Populates the menu with "All Feature" action and a empty menu that could contain later the "One Feature" actions Starts the search for canditate features to be selected on another thread, actions/menus will be updated at the end of this task.

Definition at line 542 of file qgsmaptoolselectutils.cpp.


The documentation for this class was generated from the following files: