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() );
54 emit widgetValueHasChanged(
this );
56 return mOptionsWidget;
61 mLineEdit =
new QLineEdit();
62 mLineEdit->setToolTip( parameterDefinition()->toolTip() );
63 connect( mLineEdit, &QLineEdit::textChanged,
this, [ = ]
65 emit widgetValueHasChanged(
this );
74void QgsProcessingRasterOptionsWidgetWrapper::setWidgetValue(
const QVariant &value,
QgsProcessingContext &context )
80 if ( value.isValid() )
81 mOptionsWidget->setOptions( val.replace(
'|',
' ' ) );
83 mOptionsWidget->setOptions( QString() );
87 if ( value.isValid() )
88 mLineEdit->setText( val );
94QVariant QgsProcessingRasterOptionsWidgetWrapper::widgetValue()
const
98 return mOptionsWidget->options().join(
'|' );
100 else if ( mLineEdit )
102 return mLineEdit->text().isEmpty() ? QVariant() : mLineEdit->text();
108QStringList QgsProcessingRasterOptionsWidgetWrapper::compatibleParameterTypes()
const
126QStringList 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.