@@ -49,6 +49,16 @@ class CORE_EXPORT QgsProcessingParameterTypeRasterLayer : public QgsProcessingPa
49
49
return QCoreApplication::translate ( " Processing" , " Raster Layer" );
50
50
}
51
51
52
+ QString pythonImportString () const override
53
+ {
54
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterRasterLayer" );
55
+ }
56
+
57
+ QString className () const override
58
+ {
59
+ return QStringLiteral ( " QgsProcessingParameterRasterLayer" );
60
+ }
61
+
52
62
QString id () const override
53
63
{
54
64
return QStringLiteral ( " raster" );
@@ -88,6 +98,16 @@ class CORE_EXPORT QgsProcessingParameterTypeMeshLayer : public QgsProcessingPara
88
98
return QCoreApplication::translate ( " Processing" , " Mesh Layer" );
89
99
}
90
100
101
+ QString pythonImportString () const override
102
+ {
103
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterMeshLayer" );
104
+ }
105
+
106
+ QString className () const override
107
+ {
108
+ return QStringLiteral ( " QgsProcessingParameterMeshLayer" );
109
+ }
110
+
91
111
QString id () const override
92
112
{
93
113
return QStringLiteral ( " mesh" );
@@ -126,6 +146,16 @@ class CORE_EXPORT QgsProcessingParameterTypeVectorLayer : public QgsProcessingPa
126
146
return QCoreApplication::translate ( " Processing" , " Vector Layer" );
127
147
}
128
148
149
+ QString pythonImportString () const override
150
+ {
151
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterVectorLayer" );
152
+ }
153
+
154
+ QString className () const override
155
+ {
156
+ return QStringLiteral ( " QgsProcessingParameterVectorLayer" );
157
+ }
158
+
129
159
QString id () const override
130
160
{
131
161
return QStringLiteral ( " vector" );
@@ -170,6 +200,16 @@ class CORE_EXPORT QgsProcessingParameterTypeMapLayer : public QgsProcessingParam
170
200
return QStringLiteral ( " maplayer" );
171
201
}
172
202
203
+ QString pythonImportString () const override
204
+ {
205
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterMapLayer" );
206
+ }
207
+
208
+ QString className () const override
209
+ {
210
+ return QStringLiteral ( " QgsProcessingParameterMapLayer" );
211
+ }
212
+
173
213
QStringList acceptedPythonTypes () const override
174
214
{
175
215
return QStringList () << QObject::tr ( " str: layer ID" )
@@ -211,6 +251,16 @@ class CORE_EXPORT QgsProcessingParameterTypeBoolean : public QgsProcessingParame
211
251
return QStringLiteral ( " boolean" );
212
252
}
213
253
254
+ QString pythonImportString () const override
255
+ {
256
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterBoolean" );
257
+ }
258
+
259
+ QString className () const override
260
+ {
261
+ return QStringLiteral ( " QgsProcessingParameterBoolean" );
262
+ }
263
+
214
264
QStringList acceptedPythonTypes () const override
215
265
{
216
266
return QStringList () << QStringLiteral ( " bool" )
@@ -249,6 +299,16 @@ class CORE_EXPORT QgsProcessingParameterTypeExpression : public QgsProcessingPar
249
299
return QStringLiteral ( " expression" );
250
300
}
251
301
302
+ QString pythonImportString () const override
303
+ {
304
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterExpression" );
305
+ }
306
+
307
+ QString className () const override
308
+ {
309
+ return QStringLiteral ( " QgsProcessingParameterExpression" );
310
+ }
311
+
252
312
QStringList acceptedPythonTypes () const override
253
313
{
254
314
return QStringList () << QStringLiteral ( " str" )
@@ -285,6 +345,16 @@ class CORE_EXPORT QgsProcessingParameterTypeCrs : public QgsProcessingParameterT
285
345
return QStringLiteral ( " crs" );
286
346
}
287
347
348
+ QString pythonImportString () const override
349
+ {
350
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterCrs" );
351
+ }
352
+
353
+ QString className () const override
354
+ {
355
+ return QStringLiteral ( " QgsProcessingParameterCrs" );
356
+ }
357
+
288
358
QStringList acceptedPythonTypes () const override
289
359
{
290
360
return QStringList ()
@@ -331,6 +401,16 @@ class CORE_EXPORT QgsProcessingParameterTypeRange : public QgsProcessingParamete
331
401
return QStringLiteral ( " range" );
332
402
}
333
403
404
+ QString pythonImportString () const override
405
+ {
406
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterRange" );
407
+ }
408
+
409
+ QString className () const override
410
+ {
411
+ return QStringLiteral ( " QgsProcessingParameterRange" );
412
+ }
413
+
334
414
QStringList acceptedPythonTypes () const override
335
415
{
336
416
return QStringList () << QObject::tr ( " list[float]: list of 2 float values" )
@@ -369,6 +449,16 @@ class CORE_EXPORT QgsProcessingParameterTypePoint : public QgsProcessingParamete
369
449
return QStringLiteral ( " point" );
370
450
}
371
451
452
+ QString pythonImportString () const override
453
+ {
454
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterPoint" );
455
+ }
456
+
457
+ QString className () const override
458
+ {
459
+ return QStringLiteral ( " QgsProcessingParameterPoint" );
460
+ }
461
+
372
462
QStringList acceptedPythonTypes () const override
373
463
{
374
464
return QStringList () << QObject::tr ( " str: as an 'x,y' string, e.g. '1.5,10.1'" )
@@ -407,6 +497,16 @@ class CORE_EXPORT QgsProcessingParameterTypeEnum : public QgsProcessingParameter
407
497
return QStringLiteral ( " enum" );
408
498
}
409
499
500
+ QString pythonImportString () const override
501
+ {
502
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterEnum" );
503
+ }
504
+
505
+ QString className () const override
506
+ {
507
+ return QStringLiteral ( " QgsProcessingParameterEnum" );
508
+ }
509
+
410
510
QStringList acceptedPythonTypes () const override
411
511
{
412
512
return QStringList () << QStringLiteral ( " int" )
@@ -444,6 +544,16 @@ class CORE_EXPORT QgsProcessingParameterTypeExtent : public QgsProcessingParamet
444
544
return QStringLiteral ( " extent" );
445
545
}
446
546
547
+ QString pythonImportString () const override
548
+ {
549
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterExtent" );
550
+ }
551
+
552
+ QString className () const override
553
+ {
554
+ return QStringLiteral ( " QgsProcessingParameterExtent" );
555
+ }
556
+
447
557
QStringList acceptedPythonTypes () const override
448
558
{
449
559
return QStringList () << QObject::tr ( " str: as comma delimited list of x min, x max, y min, y max. E.g. '4,10,101,105'" )
@@ -487,6 +597,16 @@ class CORE_EXPORT QgsProcessingParameterTypeMatrix : public QgsProcessingParamet
487
597
return QStringLiteral ( " matrix" );
488
598
}
489
599
600
+ QString pythonImportString () const override
601
+ {
602
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterMatrix" );
603
+ }
604
+
605
+ QString className () const override
606
+ {
607
+ return QStringLiteral ( " QgsProcessingParameterMatrix" );
608
+ }
609
+
490
610
QStringList acceptedPythonTypes () const override
491
611
{
492
612
return QStringList () << QObject::tr ( " str: as comma delimited list of values" )
@@ -524,6 +644,16 @@ class CORE_EXPORT QgsProcessingParameterTypeFile : public QgsProcessingParameter
524
644
return QStringLiteral ( " file" );
525
645
}
526
646
647
+ QString pythonImportString () const override
648
+ {
649
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterFile" );
650
+ }
651
+
652
+ QString className () const override
653
+ {
654
+ return QStringLiteral ( " QgsProcessingParameterFile" );
655
+ }
656
+
527
657
QStringList acceptedPythonTypes () const override
528
658
{
529
659
return QStringList () << QStringLiteral ( " str" )
@@ -560,6 +690,16 @@ class CORE_EXPORT QgsProcessingParameterTypeField : public QgsProcessingParamete
560
690
return QStringLiteral ( " field" );
561
691
}
562
692
693
+ QString pythonImportString () const override
694
+ {
695
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterField" );
696
+ }
697
+
698
+ QString className () const override
699
+ {
700
+ return QStringLiteral ( " QgsProcessingParameterField" );
701
+ }
702
+
563
703
QStringList acceptedPythonTypes () const override
564
704
{
565
705
return QStringList () << QStringLiteral ( " str" )
@@ -597,6 +737,16 @@ class CORE_EXPORT QgsProcessingParameterTypeVectorDestination : public QgsProces
597
737
return QStringLiteral ( " vectorDestination" );
598
738
}
599
739
740
+ QString pythonImportString () const override
741
+ {
742
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterVectorDestination" );
743
+ }
744
+
745
+ QString className () const override
746
+ {
747
+ return QStringLiteral ( " QgsProcessingParameterVectorDestination" );
748
+ }
749
+
600
750
ParameterFlags flags () const override
601
751
{
602
752
ParameterFlags flags = QgsProcessingParameterType::flags ();
@@ -642,6 +792,16 @@ class CORE_EXPORT QgsProcessingParameterTypeFileDestination : public QgsProcessi
642
792
return QStringLiteral ( " fileDestination" );
643
793
}
644
794
795
+ QString pythonImportString () const override
796
+ {
797
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterFileDestination" );
798
+ }
799
+
800
+ QString className () const override
801
+ {
802
+ return QStringLiteral ( " QgsProcessingParameterFileDestination" );
803
+ }
804
+
645
805
ParameterFlags flags () const override
646
806
{
647
807
ParameterFlags flags = QgsProcessingParameterType::flags ();
@@ -687,6 +847,16 @@ class CORE_EXPORT QgsProcessingParameterTypeFolderDestination : public QgsProces
687
847
return QStringLiteral ( " folderDestination" );
688
848
}
689
849
850
+ QString pythonImportString () const override
851
+ {
852
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterFolderDestination" );
853
+ }
854
+
855
+ QString className () const override
856
+ {
857
+ return QStringLiteral ( " QgsProcessingParameterFolderDestination" );
858
+ }
859
+
690
860
ParameterFlags flags () const override
691
861
{
692
862
ParameterFlags flags = QgsProcessingParameterType::flags ();
@@ -731,6 +901,16 @@ class CORE_EXPORT QgsProcessingParameterTypeRasterDestination : public QgsProces
731
901
return QStringLiteral ( " rasterDestination" );
732
902
}
733
903
904
+ QString pythonImportString () const override
905
+ {
906
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterRasterDestination" );
907
+ }
908
+
909
+ QString className () const override
910
+ {
911
+ return QStringLiteral ( " QgsProcessingParameterRasterDestination" );
912
+ }
913
+
734
914
ParameterFlags flags () const override
735
915
{
736
916
ParameterFlags flags = QgsProcessingParameterType::flags ();
@@ -775,6 +955,16 @@ class CORE_EXPORT QgsProcessingParameterTypeString : public QgsProcessingParamet
775
955
return QStringLiteral ( " string" );
776
956
}
777
957
958
+ QString pythonImportString () const override
959
+ {
960
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterString" );
961
+ }
962
+
963
+ QString className () const override
964
+ {
965
+ return QStringLiteral ( " QgsProcessingParameterString" );
966
+ }
967
+
778
968
QStringList acceptedPythonTypes () const override
779
969
{
780
970
return QStringList () << QStringLiteral ( " str" )
@@ -811,6 +1001,16 @@ class CORE_EXPORT QgsProcessingParameterTypeAuthConfig : public QgsProcessingPar
811
1001
return QStringLiteral ( " authcfg" );
812
1002
}
813
1003
1004
+ QString pythonImportString () const override
1005
+ {
1006
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterAuthConfig" );
1007
+ }
1008
+
1009
+ QString className () const override
1010
+ {
1011
+ return QStringLiteral ( " QgsProcessingParameterAuthConfig" );
1012
+ }
1013
+
814
1014
QStringList acceptedPythonTypes () const override
815
1015
{
816
1016
return QStringList () << QStringLiteral ( " str" );
@@ -846,6 +1046,16 @@ class CORE_EXPORT QgsProcessingParameterTypeMultipleLayers : public QgsProcessin
846
1046
return QStringLiteral ( " multilayer" );
847
1047
}
848
1048
1049
+ QString pythonImportString () const override
1050
+ {
1051
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterMultipleLayers" );
1052
+ }
1053
+
1054
+ QString className () const override
1055
+ {
1056
+ return QStringLiteral ( " QgsProcessingParameterMultipleLayers" );
1057
+ }
1058
+
849
1059
QStringList acceptedPythonTypes () const override
850
1060
{
851
1061
return QStringList () << QObject::tr ( " list[str]: list of layer IDs" )
@@ -885,6 +1095,16 @@ class CORE_EXPORT QgsProcessingParameterTypeFeatureSource : public QgsProcessing
885
1095
return QStringLiteral ( " source" );
886
1096
}
887
1097
1098
+ QString pythonImportString () const override
1099
+ {
1100
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterFeatureSource" );
1101
+ }
1102
+
1103
+ QString className () const override
1104
+ {
1105
+ return QStringLiteral ( " QgsProcessingParameterFeatureSource" );
1106
+ }
1107
+
888
1108
QStringList acceptedPythonTypes () const override
889
1109
{
890
1110
return QStringList () << QObject::tr ( " str: layer ID" )
@@ -925,6 +1145,16 @@ class CORE_EXPORT QgsProcessingParameterTypeNumber : public QgsProcessingParamet
925
1145
return QStringLiteral ( " number" );
926
1146
}
927
1147
1148
+ QString pythonImportString () const override
1149
+ {
1150
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterNumber" );
1151
+ }
1152
+
1153
+ QString className () const override
1154
+ {
1155
+ return QStringLiteral ( " QgsProcessingParameterNumber" );
1156
+ }
1157
+
928
1158
QStringList acceptedPythonTypes () const override
929
1159
{
930
1160
return QStringList () << QStringLiteral ( " int" )
@@ -962,6 +1192,16 @@ class CORE_EXPORT QgsProcessingParameterTypeDistance : public QgsProcessingParam
962
1192
return QStringLiteral ( " distance" );
963
1193
}
964
1194
1195
+ QString pythonImportString () const override
1196
+ {
1197
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterDistance" );
1198
+ }
1199
+
1200
+ QString className () const override
1201
+ {
1202
+ return QStringLiteral ( " QgsProcessingParameterDistance" );
1203
+ }
1204
+
965
1205
QStringList acceptedPythonTypes () const override
966
1206
{
967
1207
return QStringList () << QStringLiteral ( " int" )
@@ -1000,6 +1240,16 @@ class CORE_EXPORT QgsProcessingParameterTypeBand : public QgsProcessingParameter
1000
1240
return QStringLiteral ( " band" );
1001
1241
}
1002
1242
1243
+ QString pythonImportString () const override
1244
+ {
1245
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterBand" );
1246
+ }
1247
+
1248
+ QString className () const override
1249
+ {
1250
+ return QStringLiteral ( " QgsProcessingParameterBand" );
1251
+ }
1252
+
1003
1253
QStringList acceptedPythonTypes () const override
1004
1254
{
1005
1255
return QStringList () << QStringLiteral ( " int" )
@@ -1044,6 +1294,16 @@ class CORE_EXPORT QgsProcessingParameterTypeFeatureSink : public QgsProcessingPa
1044
1294
return QStringLiteral ( " sink" );
1045
1295
}
1046
1296
1297
+ QString pythonImportString () const override
1298
+ {
1299
+ return QStringLiteral ( " from qgis.core import QgsProcessingParameterFeatureSink" );
1300
+ }
1301
+
1302
+ QString className () const override
1303
+ {
1304
+ return QStringLiteral ( " QgsProcessingParameterFeatureSink" );
1305
+ }
1306
+
1047
1307
QStringList acceptedPythonTypes () const override
1048
1308
{
1049
1309
return QStringList () << QObject::tr ( " str: destination vector file, e.g. 'd:/test.shp'" )
0 commit comments