16#ifndef QGSPROCESSINGFIELDMAPWIDGETWRAPPER_H
17#define QGSPROCESSINGFIELDMAPWIDGETWRAPPER_H
24#include "ui_qgsprocessingfieldsmappingpanelbase.h"
32class GUI_EXPORT QgsProcessingFieldMapPanelWidget :
public QgsPanelWidget,
private Ui::QgsProcessingFieldMapPanelBase
37 QgsProcessingFieldMapPanelWidget( QWidget *parent =
nullptr );
41 QVariant value()
const;
42 void setValue(
const QVariant &value );
55 void loadFieldsFromLayer();
57 void loadLayerFields();
63 bool mBlockChangedSignal =
false;
75 QComboBox *mParentLayerComboBox =
nullptr;
87 QString parameterType()
const override;
100 int stretch() const override;
107 QVariant widgetValue() const override;
109 QStringList compatibleParameterTypes() const override;
110 QStringList compatibleOutputTypes() const override;
111 QString modelerExpressionFormatString() const override;
115 QgsProcessingFieldMapPanelWidget *mPanel =
nullptr;
118 friend class TestProcessingGui;
QFlags< ProcessingParameterFlag > ProcessingParameterFlags
Flags which dictate the behavior of Processing parameters.
Abstract interface for generating an expression context.
The QgsFieldMappingModel holds mapping information for mapping from one set of QgsFields to another,...
Abstract base class for processing algorithms.
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,...
Represents a vector layer which manages a vector based data sets.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into allowing algorithms to be written in pure substantial changes are required in order to port existing x Processing algorithms for QGIS x The most significant changes are outlined not GeoAlgorithm For algorithms which operate on features one by consider subclassing the QgsProcessingFeatureBasedAlgorithm class This class allows much of the boilerplate code for looping over features from a vector layer to be bypassed and instead requires implementation of a processFeature method Ensure that your algorithm(or algorithm 's parent class) implements the new pure virtual createInstance(self) call