80 const QList< QgsProcessingAlgorithmConfigurationWidgetFactory * > factories = mAlgorithmConfigurationWidgetFactories;
83 const QMap< QString, QgsProcessingParameterWidgetFactoryInterface * > paramFactories = mParameterWidgetFactories;
84 for (
auto it = paramFactories.constBegin(); it != paramFactories.constEnd(); ++it )
90 mAlgorithmConfigurationWidgetFactories.append( factory );
95 mAlgorithmConfigurationWidgetFactories.removeAll( factory );
101 for (
const auto *factory : mAlgorithmConfigurationWidgetFactories )
103 if ( factory->canCreateFor(
algorithm ) )
105 std::unique_ptr< QgsProcessingAlgorithmConfigurationWidget > widget( factory->create(
algorithm ) );
108 return widget.release();
120 if ( mParameterWidgetFactories.contains( factory->
parameterType() ) )
126 mParameterWidgetFactories.insert( factory->
parameterType(), factory );
135 mParameterWidgetFactories.remove( factory->
parameterType() );
144 const QString parameterType = parameter->
type();
145 if ( !mParameterWidgetFactories.contains( parameterType ) )
148 return mParameterWidgetFactories.value( parameterType )->createWidgetWrapper( parameter, type );
156 const QString parameterType = parameter->
type();
157 if ( !mParameterWidgetFactories.contains( parameterType ) )
160 return mParameterWidgetFactories.value( parameterType )->createModelerWidgetWrapper( model, childId, parameter, context );
169 if ( !mParameterWidgetFactories.contains( type ) )
172 return mParameterWidgetFactories.value( type )->createParameterDefinitionWidget( context, widgetContext, definition,
algorithm );