QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsprocessingalgorithmconfigurationwidget.cpp
Go to the documentation of this file.
1/***************************************************************************
2 qgsprocessingalgorithmconfig.cpp
3 --------------------------
4 begin : April 2018
5 copyright : (C) 2018 by Matthias Kuhn
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
19
20#include "moc_qgsprocessingalgorithmconfigurationwidget.cpp"
21
26
31
36
41
46
48{
49 return QgsProcessingWidgetWrapperUtils::createExpressionContext( mContextGenerator, mWidgetContext, mAlgorithm, nullptr );
50}
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
const QgsProcessingAlgorithm * algorithm() const
Returns the algorithm instance associated with this widget.
const QgsProcessingParameterWidgetContext & widgetContext() const
Returns the context in which the Processing algorithm widget is shown, e.g., the parent model algorit...
QgsExpressionContext createExpressionContext() const override
This method needs to be reimplemented in all classes which implement this interface and return an exp...
void setAlgorithm(const QgsProcessingAlgorithm *algorithm)
Sets the algorithm instance associated with the widget.
QgsProcessingAlgorithmConfigurationWidget(QWidget *parent=nullptr)
Creates a new QgsProcessingAlgorithmConfigurationWidget.
void registerProcessingContextGenerator(QgsProcessingContextGenerator *generator)
Registers a Processing context generator class that will be used to retrieve a Processing context for...
virtual void setWidgetContext(const QgsProcessingParameterWidgetContext &context)
Sets the context in which the Processing algorithm widget is shown, e.g., the parent model algorithm,...
Abstract base class for processing algorithms.
An interface for objects which can create Processing contexts.
Contains settings which reflect the context in which a Processing parameter widget is shown.