16#ifndef QGSPROCESSINGMAPLAYERCOMBOBOX_H
17#define QGSPROCESSINGMAPLAYERCOMBOBOX_H
42class GUI_EXPORT QgsProcessingMapLayerComboBox :
public QWidget
53 ~QgsProcessingMapLayerComboBox()
override;
80 QString currentText();
94 QVariant value()
const;
108 void setEditable(
bool editable );
116 bool isEditable()
const;
127 void dragEnterEvent( QDragEnterEvent *event )
override;
128 void dragLeaveEvent( QDragLeaveEvent *event )
override;
129 void dropEvent( QDropEvent *event )
override;
135 void showSourceOptions();
136 void selectFromFile();
137 void browseForLayer();
140 std::unique_ptr< QgsProcessingParameterDefinition > mParameter;
142 QToolButton *mSelectButton =
nullptr;
143 QToolButton *mIterateButton =
nullptr;
144 QToolButton *mSettingsButton =
nullptr;
145 QCheckBox *mUseSelectionCheckBox =
nullptr;
146 bool mDragActive =
false;
147 long long mFeatureLimit = -1;
148 QString mFilterExpression;
149 bool mIsOverridingDefaultGeometryCheck =
false;
151 QPointer< QgsMapLayer> mPrevLayer;
152 int mBlockChangedSignal = 0;
156 QMenu *mFeatureSourceMenu =
nullptr;
157 QgsMapLayer *compatibleMapLayerFromMimeData(
const QMimeData *data,
bool &incompatibleLayerSelected )
const;
158 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