|
QGIS API Documentation 4.3.0-Master (d57cc4a041c)
|
A dialog for configuring parameter settings and comments for a child algorithm in a Processing model. More...
#include <qgsmodelchildalgorithmwidgets.h>

Public Member Functions | |
| QgsProcessingModelerParametersDialog (const QgsProcessingAlgorithm *childAlgorithm, QgsProcessingModelAlgorithm *model, QgsProcessingContext &context, const QString &childId=QString(), const QVariantMap &configuration=QVariantMap(), QWidget *parent=nullptr) | |
| Constructor for QgsProcessingModelerParametersDialog. | |
| ~QgsProcessingModelerParametersDialog () override | |
| const QgsProcessingAlgorithm * | algorithm () const |
| Returns the algorithm associated with the dialog. | |
| QColor | commentColor () const |
| Returns the algorithm's comment color. | |
| QString | comments () const |
| Returns the algorithm's comments. | |
| std::unique_ptr< QgsProcessingModelChildAlgorithm > | createAlgorithm () |
| Creates the child algorithm instance, populated with the current dialog parameter values and comments. | |
| void | setCommentColor (const QColor &color) |
| Sets the algorithm's comment color. | |
| void | setComments (const QString &comments) |
| Sets the algorithm's comments. | |
| void | setStateFromChildAlgorithm () |
| Sets widget state from the existing child algorithm definition in the model. | |
| void | setWidgetContext (const QgsProcessingParameterWidgetContext &context) |
| Sets the context in which the dialog is shown, e.g., the parent model algorithm, a linked map canvas, and other relevant information which allows the widget to fine-tune its behavior. | |
| void | switchToCommentTab () |
| Focuses the dialog on the comment editing tab. | |
A dialog for configuring parameter settings and comments for a child algorithm in a Processing model.
Definition at line 227 of file qgsmodelchildalgorithmwidgets.h.
| QgsProcessingModelerParametersDialog::QgsProcessingModelerParametersDialog | ( | const QgsProcessingAlgorithm * | childAlgorithm, |
| QgsProcessingModelAlgorithm * | model, | ||
| QgsProcessingContext & | context, | ||
| const QString & | childId = QString(), | ||
| const QVariantMap & | configuration = QVariantMap(), | ||
| QWidget * | parent = nullptr ) |
Constructor for QgsProcessingModelerParametersDialog.
Definition at line 618 of file qgsmodelchildalgorithmwidgets.cpp.
|
overridedefault |
| const QgsProcessingAlgorithm * QgsProcessingModelerParametersDialog::algorithm | ( | ) | const |
Returns the algorithm associated with the dialog.
Definition at line 650 of file qgsmodelchildalgorithmwidgets.cpp.
| QColor QgsProcessingModelerParametersDialog::commentColor | ( | ) | const |
Returns the algorithm's comment color.
Definition at line 670 of file qgsmodelchildalgorithmwidgets.cpp.
| QString QgsProcessingModelerParametersDialog::comments | ( | ) | const |
Returns the algorithm's comments.
Definition at line 660 of file qgsmodelchildalgorithmwidgets.cpp.
| std::unique_ptr< QgsProcessingModelChildAlgorithm > QgsProcessingModelerParametersDialog::createAlgorithm | ( | ) |
Creates the child algorithm instance, populated with the current dialog parameter values and comments.
Definition at line 690 of file qgsmodelchildalgorithmwidgets.cpp.
| void QgsProcessingModelerParametersDialog::setCommentColor | ( | const QColor & | color | ) |
Sets the algorithm's comment color.
Definition at line 665 of file qgsmodelchildalgorithmwidgets.cpp.
| void QgsProcessingModelerParametersDialog::setComments | ( | const QString & | comments | ) |
Sets the algorithm's comments.
Definition at line 655 of file qgsmodelchildalgorithmwidgets.cpp.
| void QgsProcessingModelerParametersDialog::setStateFromChildAlgorithm | ( | ) |
Sets widget state from the existing child algorithm definition in the model.
Definition at line 685 of file qgsmodelchildalgorithmwidgets.cpp.
| void QgsProcessingModelerParametersDialog::setWidgetContext | ( | const QgsProcessingParameterWidgetContext & | context | ) |
Sets the context in which the dialog is shown, e.g., the parent model algorithm, a linked map canvas, and other relevant information which allows the widget to fine-tune its behavior.
Definition at line 680 of file qgsmodelchildalgorithmwidgets.cpp.
| void QgsProcessingModelerParametersDialog::switchToCommentTab | ( | ) |
Focuses the dialog on the comment editing tab.
Definition at line 675 of file qgsmodelchildalgorithmwidgets.cpp.