18#ifndef QGSPROCESSINGWIDGETWRAPPER_H
19#define QGSPROCESSINGWIDGETWRAPPER_H
33class QgsProcessingModelAlgorithm;
37class QgsProcessingModelAlgorithm;
86 SkipDefaultValueParameters = 1 << 0,
88 Q_DECLARE_FLAGS( Flags, Flag )
186 QgsProcessingModelAlgorithm *model()
const;
194 void setModel( QgsProcessingModelAlgorithm *model );
202 QString modelChildAlgorithmId()
const;
210 void setModelChildAlgorithmId(
const QString &
id );
230 QgsProcessingModelAlgorithm *mModel =
nullptr;
232 QString mModelChildAlgorithmId;
248class GUI_EXPORT QgsProcessingGuiUtils
349 QWidget *wrappedWidget();
355 QLabel *wrappedLabel();
364 % Property( name = param, get = parameterDefinition )
382 QVariant parameterValue()
const;
387 virtual QVariantMap customProperties()
const;
410 virtual void postInitialize(
const QList< QgsAbstractProcessingParameterWidgetWrapper * > &wrappers );
419 virtual int stretch()
const;
428 virtual void setDialog( QDialog *dialog );
478 virtual QVariant widgetValue() const = 0;
508 QPointer< QWidget > mWidget;
510 QPointer< QLabel > mLabel;
513 friend class TestProcessingGui;
569 const QString &childId,
619 virtual QStringList compatibleParameterTypes() const = 0;
635 virtual QStringList compatibleOutputTypes() const = 0;
662 virtual QString modelerExpressionFormatString() const;
699 QVariant widgetValue()
const override;
709 QWidget *createWidget()
override;
710 QLabel *createLabel()
override;
715 QPointer < const QgsVectorLayer > mLayer;
The Qgis class provides global constants for use throughout the application.
A model for showing available data sources and other items in a structured tree.
Abstract interface for generating an expression context.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
A bar for displaying non-blocking messages to the user.
Abstract base class for processing algorithms.
An interface for objects which can create Processing contexts.
virtual ~QgsProcessingContextGenerator()=default
virtual QgsProcessingContext * processingContext()=0
This method needs to be reimplemented in all classes which implement this interface and return a Proc...
Contains information about the context in which a processing algorithm is executed.
Contains general functions and values related to Processing GUI components.
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,...
QgsProcessingParameterWidgetContext()=default
Constructor for QgsProcessingParameterWidgetContext.
An interface for objects which can create sets of parameter values for processing algorithms.
Flag
Flags controlling parameter generation.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
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
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsTextRendererUtils::CurvedTextFlags)