QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
Public Slots | Public Member Functions | List of all members
QgsProcessingParameterDefinitionDialog Class Reference

A dialog which allow users to specify the properties of a Processing parameter. More...

#include <qgsprocessingparameterdefinitionwidget.h>

Inheritance diagram for QgsProcessingParameterDefinitionDialog:
Inheritance graph
[legend]

Public Slots

void accept () override
 

Public Member Functions

 QgsProcessingParameterDefinitionDialog (const QString &type, QgsProcessingContext &context, const QgsProcessingParameterWidgetContext &widgetContext, const QgsProcessingParameterDefinition *definition=nullptr, const QgsProcessingAlgorithm *algorithm=nullptr, QWidget *parent=nullptr)
 Constructor for QgsProcessingParameterDefinitionDialog, for a parameter of the specified type. More...
 
QgsProcessingParameterDefinitioncreateParameter (const QString &name=QString()) const
 Returns a new instance of a parameter definition, using the current settings defined in the dialog. More...
 

Detailed Description

A dialog which allow users to specify the properties of a Processing parameter.

Since
QGIS 3.10

Definition at line 135 of file qgsprocessingparameterdefinitionwidget.h.

Constructor & Destructor Documentation

◆ QgsProcessingParameterDefinitionDialog()

QgsProcessingParameterDefinitionDialog::QgsProcessingParameterDefinitionDialog ( const QString &  type,
QgsProcessingContext context,
const QgsProcessingParameterWidgetContext widgetContext,
const QgsProcessingParameterDefinition definition = nullptr,
const QgsProcessingAlgorithm algorithm = nullptr,
QWidget *  parent = nullptr 
)

Constructor for QgsProcessingParameterDefinitionDialog, for a parameter of the specified type.

The context argument must specify a Processing context, which will be used by the widget to evaluate existing definition properties such as default values. Similarly, the widgetContext argument specifies the wider GUI context in which the widget will be used.

The optional definition argument may be used to provide a parameter definition to use to initially populate the dialog's state.

Additionally, the optional algorithm parameter may be used to specify the algorithm or model associated with the parameter.

Definition at line 124 of file qgsprocessingparameterdefinitionwidget.cpp.

Member Function Documentation

◆ accept

void QgsProcessingParameterDefinitionDialog::accept ( )
overrideslot

Definition at line 152 of file qgsprocessingparameterdefinitionwidget.cpp.

◆ createParameter()

QgsProcessingParameterDefinition * QgsProcessingParameterDefinitionDialog::createParameter ( const QString &  name = QString()) const

Returns a new instance of a parameter definition, using the current settings defined in the dialog.

The name parameter specifies the name for the newly created parameter.

Definition at line 147 of file qgsprocessingparameterdefinitionwidget.cpp.


The documentation for this class was generated from the following files: