@@ -376,6 +376,69 @@ class QgsProcessingParameterDefinition
376
376
:rtype: str
377
377
%End
378
378
379
+ bool isDynamic() const;
380
+ %Docstring
381
+ Returns true if the parameter supports is dynamic, and can support data-defined values
382
+ (i.e. QgsProperty based values).
383
+ .. seealso:: setIsDynamic()
384
+ .. seealso:: dynamicPropertyDefinition()
385
+ .. seealso:: dynamicLayerParameterName()
386
+ :rtype: bool
387
+ %End
388
+
389
+ void setIsDynamic( bool dynamic );
390
+ %Docstring
391
+ Sets whether the parameter is ``dynamic``, and can support data-defined values
392
+ (i.e. QgsProperty based values).
393
+ .. seealso:: isDynamic()
394
+ .. seealso:: setDynamicPropertyDefinition()
395
+ .. seealso:: setDynamicLayerParameterName()
396
+ %End
397
+
398
+ QgsPropertyDefinition dynamicPropertyDefinition() const;
399
+ %Docstring
400
+ Returns the property definition for dynamic properties.
401
+ .. seealso:: isDynamic()
402
+ .. seealso:: setDynamicPropertyDefinition()
403
+ .. seealso:: dynamicLayerParameterName()
404
+ :rtype: QgsPropertyDefinition
405
+ %End
406
+
407
+ void setDynamicPropertyDefinition( const QgsPropertyDefinition &definition );
408
+ %Docstring
409
+ Sets the property ``definition`` for dynamic properties.
410
+ .. seealso:: isDynamic()
411
+ .. seealso:: dynamicPropertyDefinition()
412
+ .. seealso:: setDynamicLayerParameterName()
413
+ %End
414
+
415
+ QString dynamicLayerParameterName() const;
416
+ %Docstring
417
+ Returns the name of the parameter for a layer linked to a dynamic parameter, or an empty string if this is not set.
418
+
419
+ Dynamic parameters (see isDynamic()) can have an optional vector layer parameter linked to them,
420
+ which indicates which layer the fields and values will be available from when evaluating
421
+ the dynamic parameter.
422
+
423
+ .. seealso:: setDynamicLayerParameterName()
424
+ .. seealso:: isDynamic()
425
+ .. seealso:: dynamicPropertyDefinition()
426
+ :rtype: str
427
+ %End
428
+
429
+ void setDynamicLayerParameterName( const QString &name );
430
+ %Docstring
431
+ Sets the ``name`` for the parameter for a layer linked to a dynamic parameter, or an empty string if this is not set.
432
+
433
+ Dynamic parameters (see isDynamic()) can have an optional vector layer parameter linked to them,
434
+ which indicates which layer the fields and values will be available from when evaluating
435
+ the dynamic parameter.
436
+
437
+ .. seealso:: dynamicLayerParameterName()
438
+ .. seealso:: isDynamic()
439
+ .. seealso:: setDynamicPropertyDefinition()
440
+ %End
441
+
379
442
protected:
380
443
381
444
@@ -385,6 +448,9 @@ class QgsProcessingParameterDefinition
385
448
386
449
387
450
451
+
452
+
453
+
388
454
};
389
455
390
456
QFlags<QgsProcessingParameterDefinition::Flag> operator|(QgsProcessingParameterDefinition::Flag f1, QFlags<QgsProcessingParameterDefinition::Flag> f2);
0 commit comments