19#include "moc_qgsprocessingrasteroptionswidgetwrapper.cpp"
34QString QgsProcessingRasterOptionsWidgetWrapper::parameterType()
const
36 return QStringLiteral(
"rasteroptions" );
41 return new QgsProcessingRasterOptionsWidgetWrapper( parameter, type );
44QWidget *QgsProcessingRasterOptionsWidgetWrapper::createWidget()
51 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, [=] {
63 emit widgetValueHasChanged(
this );
72void QgsProcessingRasterOptionsWidgetWrapper::setWidgetValue(
const QVariant &value,
QgsProcessingContext &context )
78 if ( value.isValid() )
79 mOptionsWidget->setOptions( val.replace(
'|',
' ' ) );
81 mOptionsWidget->setOptions( QString() );
85 if ( value.isValid() )
86 mLineEdit->setText( val );
92QVariant QgsProcessingRasterOptionsWidgetWrapper::widgetValue()
const
96 return mOptionsWidget->options().join(
'|' );
100 return mLineEdit->text().isEmpty() ? QVariant() : mLineEdit->text();
106QStringList QgsProcessingRasterOptionsWidgetWrapper::compatibleParameterTypes()
const
124QStringList 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.