89 const QList< QgsProcessingAlgorithmConfigurationWidgetFactory * > factories = mAlgorithmConfigurationWidgetFactories;
92 const QMap< QString, QgsProcessingParameterWidgetFactoryInterface * > paramFactories = mParameterWidgetFactories;
93 for (
auto it = paramFactories.constBegin(); it != paramFactories.constEnd(); ++it )
99 mAlgorithmConfigurationWidgetFactories.append( factory );
104 mAlgorithmConfigurationWidgetFactories.removeAll( factory );
110 for (
const auto *factory : mAlgorithmConfigurationWidgetFactories )
112 if ( factory->canCreateFor(
algorithm ) )
114 std::unique_ptr< QgsProcessingAlgorithmConfigurationWidget > widget( factory->create(
algorithm ) );
117 return widget.release();
129 if ( mParameterWidgetFactories.contains( factory->
parameterType() ) )
135 mParameterWidgetFactories.insert( factory->
parameterType(), factory );
144 mParameterWidgetFactories.remove( factory->
parameterType() );
153 const QString parameterType = parameter->
type();
154 if ( !mParameterWidgetFactories.contains( parameterType ) )
157 return mParameterWidgetFactories.value( parameterType )->createWidgetWrapper( parameter, type );
165 const QString parameterType = parameter->
type();
166 if ( !mParameterWidgetFactories.contains( parameterType ) )
169 return mParameterWidgetFactories.value( parameterType )->createModelerWidgetWrapper( model, childId, parameter, context );
178 if ( !mParameterWidgetFactories.contains( type ) )
181 return mParameterWidgetFactories.value( type )->createParameterDefinitionWidget( context, widgetContext, definition,
algorithm );