16#ifndef QGSPROCESSINGMAPLAYERCOMBOBOX_H
17#define QGSPROCESSINGMAPLAYERCOMBOBOX_H
42class GUI_EXPORT QgsProcessingMapLayerComboBox :
public QWidget
52 ~QgsProcessingMapLayerComboBox()
override;
79 QString currentText();
93 QVariant value()
const;
107 void setEditable(
bool editable );
115 bool isEditable()
const;
125 void dragEnterEvent( QDragEnterEvent *event )
override;
126 void dragLeaveEvent( QDragLeaveEvent *event )
override;
127 void dropEvent( QDropEvent *event )
override;
133 void showSourceOptions();
134 void selectFromFile();
135 void browseForLayer();
138 std::unique_ptr<QgsProcessingParameterDefinition> mParameter;
140 QToolButton *mSelectButton =
nullptr;
141 QToolButton *mIterateButton =
nullptr;
142 QToolButton *mSettingsButton =
nullptr;
143 QCheckBox *mUseSelectionCheckBox =
nullptr;
144 bool mDragActive =
false;
145 long long mFeatureLimit = -1;
146 QString mFilterExpression;
147 bool mIsOverridingDefaultGeometryCheck =
false;
149 QPointer<QgsMapLayer> mPrevLayer;
150 int mBlockChangedSignal = 0;
154 QMenu *mFeatureSourceMenu =
nullptr;
155 QgsMapLayer *compatibleMapLayerFromMimeData(
const QMimeData *data,
bool &incompatibleLayerSelected )
const;
156 QString compatibleUriFromMimeData(
const QMimeData *data )
const;
InvalidGeometryCheck
Methods for handling of features with invalid geometries.
@ AbortOnInvalid
Close iterator on encountering any features with invalid geometry. This requires a slow geometry vali...
A model for showing available data sources and other items in a structured tree.
The QgsMapLayerComboBox class is a combo box which displays the list of layers.
Base class for all map layer types.
Contains information about the context in which a processing algorithm is executed.
WidgetType
Types of dialogs which Processing widgets can be created for.
@ Standard
Standard algorithm dialog.
Base class for the definition of processing parameters.
Contains settings which reflect the context in which a Processing parameter widget is shown,...
QSet< QgsFeatureId > QgsFeatureIds