33QString QgsProcessingRasterOptionsWidgetWrapper::parameterType()
const
35 return QStringLiteral(
"rasteroptions" );
40 return new QgsProcessingRasterOptionsWidgetWrapper( parameter, type );
43QWidget *QgsProcessingRasterOptionsWidgetWrapper::createWidget()
50 mOptionsWidget->setToolTip( parameterDefinition()->toolTip() );
53 emit widgetValueHasChanged(
this );
55 return mOptionsWidget;
60 mLineEdit =
new QLineEdit();
61 mLineEdit->setToolTip( parameterDefinition()->toolTip() );
62 connect( mLineEdit, &QLineEdit::textChanged,
this, [ = ]
64 emit widgetValueHasChanged(
this );
73void QgsProcessingRasterOptionsWidgetWrapper::setWidgetValue(
const QVariant &value,
QgsProcessingContext &context )
79 if ( value.isValid() )
80 mOptionsWidget->setOptions( val.replace(
'|',
' ' ) );
82 mOptionsWidget->setOptions( QString() );
86 if ( value.isValid() )
87 mLineEdit->setText( val );
93QVariant QgsProcessingRasterOptionsWidgetWrapper::widgetValue()
const
97 return mOptionsWidget->options().join(
'|' );
101 return mLineEdit->text().isEmpty() ? QVariant() : mLineEdit->text();
107QStringList QgsProcessingRasterOptionsWidgetWrapper::compatibleParameterTypes()
const
125QStringList QgsProcessingRasterOptionsWidgetWrapper::compatibleOutputTypes()
const
Contains information about the context in which a processing algorithm is executed.
WidgetType
Types of dialogs which Processing widgets can be created for.
@ Standard
Standard algorithm dialog.
@ Batch
Batch processing dialog.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
Base class for the definition of processing parameters.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString typeName()
Returns the type name for the parameter class.
static QString parameterAsString(const QgsProcessingParameterDefinition *definition, const QVariantMap ¶meters, const QgsProcessingContext &context)
Evaluates the parameter with matching definition to a static string value.