77 const QList< QgsProcessingAlgorithmConfigurationWidgetFactory * > factories = mAlgorithmConfigurationWidgetFactories;
80 const QMap< QString, QgsProcessingParameterWidgetFactoryInterface * > paramFactories = mParameterWidgetFactories;
81 for (
auto it = paramFactories.constBegin(); it != paramFactories.constEnd(); ++it )
87 mAlgorithmConfigurationWidgetFactories.append( factory );
92 mAlgorithmConfigurationWidgetFactories.removeAll( factory );
98 for (
const auto *factory : mAlgorithmConfigurationWidgetFactories )
100 if ( factory->canCreateFor(
algorithm ) )
102 std::unique_ptr< QgsProcessingAlgorithmConfigurationWidget > widget( factory->create(
algorithm ) );
105 return widget.release();
117 if ( mParameterWidgetFactories.contains( factory->
parameterType() ) )
123 mParameterWidgetFactories.insert( factory->
parameterType(), factory );
132 mParameterWidgetFactories.remove( factory->
parameterType() );
141 const QString parameterType = parameter->
type();
142 if ( !mParameterWidgetFactories.contains( parameterType ) )
145 return mParameterWidgetFactories.value( parameterType )->createWidgetWrapper( parameter, type );
153 const QString parameterType = parameter->
type();
154 if ( !mParameterWidgetFactories.contains( parameterType ) )
157 return mParameterWidgetFactories.value( parameterType )->createModelerWidgetWrapper( model, childId, parameter, context );
166 if ( !mParameterWidgetFactories.contains( type ) )
169 return mParameterWidgetFactories.value( type )->createParameterDefinitionWidget( context, widgetContext, definition,
algorithm );