18 #ifndef QGSPROCESSINGWIDGETWRAPPER_H 19 #define QGSPROCESSINGWIDGETWRAPPER_H 33 class QgsProcessingModelAlgorithm;
37 class QgsProcessingModelAlgorithm;
134 QgsProcessingModelAlgorithm *model()
const;
142 void setModel( QgsProcessingModelAlgorithm *model );
150 QString modelChildAlgorithmId()
const;
158 void setModelChildAlgorithmId(
const QString &
id );
162 QgsProcessingModelAlgorithm *mModel =
nullptr;
164 QString mModelChildAlgorithmId;
175 class GUI_EXPORT QgsProcessingGuiUtils
277 QWidget *wrappedWidget();
283 QLabel *wrappedLabel();
292 % Property( name = param,
get = parameterDefinition )
310 QVariant parameterValue()
const;
322 virtual void postInitialize(
const QList< QgsAbstractProcessingParameterWidgetWrapper * > &wrappers );
331 virtual void setDialog( QDialog *dialog );
381 virtual QVariant widgetValue()
const = 0;
410 QPointer< QWidget > mWidget;
411 QPointer< QgsPropertyOverrideButton > mPropertyButton;
412 QPointer< QLabel > mLabel;
413 std::unique_ptr< QgsVectorLayer > mDynamicLayer;
415 friend class TestProcessingGui;
443 virtual QString parameterType()
const = 0;
471 const QString &childId,
521 virtual QStringList compatibleParameterTypes()
const = 0;
537 virtual QStringList compatibleOutputTypes()
const = 0;
553 virtual QList< int > compatibleDataTypes()
const = 0;
564 virtual QString modelerExpressionFormatString()
const;
568 #endif // QGSPROCESSINGWIDGETWRAPPER_H
WidgetType
Types of dialogs which Processing widgets can be created for.
A bar for displaying non-blocking messages to the user.
Abstract base class for processing algorithms.
Map canvas is a class for displaying all GIS data types on a canvas.
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
An interface for objects which can create Processing contexts.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Encapsulates a QGIS project, including sets of map layers and their styles, layouts, annotations, canvases, etc.
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
Abstract interface for generating an expression context.
Contains settings which reflect the context in which a Processing parameter widget is shown...
Base class for the definition of processing parameters.
Represents a vector layer which manages a vector based data sets.
Contains information about the context in which a processing algorithm is executed.
Standard algorithm dialog.