Skip to content

Commit 09e5a4f

Browse files
committedMar 15, 2018
Fix descriptions and names for processing parameters
1 parent 654a4a4 commit 09e5a4f

File tree

1 file changed

+11
-25
lines changed

1 file changed

+11
-25
lines changed
 

‎src/core/processing/qgsprocessingparametertypeimpl.h

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class CORE_EXPORT QgsProcessingParameterTypeVectorLayer : public QgsProcessingPa
7171

7272
virtual QString description() const override
7373
{
74-
return QCoreApplication::translate( "Processing", "A vector layer parameter." );
74+
return QCoreApplication::translate( "Processing", "A vector layer parameter, e.g. for algorithms which change layer styles, edit layers in place, or other operations which affect an entire layer." );
7575
}
7676

7777
virtual QString name() const override
@@ -251,7 +251,7 @@ class CORE_EXPORT QgsProcessingParameterTypeExtent : public QgsProcessingParamet
251251

252252
virtual QString description() const override
253253
{
254-
return QCoreApplication::translate( "Processing", "An extent defines a rectangle." );
254+
return QCoreApplication::translate( "Processing", "A map extent parameter." );
255255
}
256256

257257
virtual QString name() const override
@@ -311,7 +311,7 @@ class CORE_EXPORT QgsProcessingParameterTypeFile : public QgsProcessingParameter
311311

312312
virtual QString description() const override
313313
{
314-
return QCoreApplication::translate( "Processing", "A file input parameter." );
314+
return QCoreApplication::translate( "Processing", "A file parameter, for use with non-map layer file sources." );
315315
}
316316

317317
virtual QString name() const override
@@ -346,7 +346,7 @@ class CORE_EXPORT QgsProcessingParameterTypeField : public QgsProcessingParamete
346346

347347
virtual QString name() const override
348348
{
349-
return QCoreApplication::translate( "Processing", "Field" );
349+
return QCoreApplication::translate( "Processing", "Vector Field" );
350350
}
351351

352352
virtual QString id() const override
@@ -372,11 +372,7 @@ class CORE_EXPORT QgsProcessingParameterTypeVectorDestination : public QgsProces
372372

373373
virtual QString description() const override
374374
{
375-
return QCoreApplication::translate( "Processing", "A vector layer destination parameter, "
376-
"for specifying the destination path for a vector layer "
377-
"created by the algorithm. "
378-
"Consider using the more flexible QgsProcessingParameterFeatureSink "
379-
"wherever possible." );
375+
return QCoreApplication::translate( "Processing", "A vector layer destination parameter." );
380376
}
381377

382378
virtual QString name() const override
@@ -420,9 +416,7 @@ class CORE_EXPORT QgsProcessingParameterTypeFileDestination : public QgsProcessi
420416

421417
virtual QString description() const override
422418
{
423-
return QCoreApplication::translate( "Processing", "A generic file based destination parameter, "
424-
"for specifying the destination path for a file (non-map layer) "
425-
"created by the algorithm.." );
419+
return QCoreApplication::translate( "Processing", "A generic file based destination parameter." );
426420
}
427421

428422
virtual QString name() const override
@@ -467,9 +461,7 @@ class CORE_EXPORT QgsProcessingParameterTypeFolderDestination : public QgsProces
467461

468462
virtual QString description() const override
469463
{
470-
return QCoreApplication::translate( "Processing", "A folder destination parameter, "
471-
"for specifying the destination path for a folder created "
472-
"by the algorithm or used for creating new files within the algorithm." );
464+
return QCoreApplication::translate( "Processing", "A folder destination parameter." );
473465
}
474466

475467
virtual QString name() const override
@@ -513,9 +505,7 @@ class CORE_EXPORT QgsProcessingParameterTypeRasterDestination : public QgsProces
513505

514506
virtual QString description() const override
515507
{
516-
return QCoreApplication::translate( "Processing", "A raster layer destination parameter, "
517-
"for specifying the destination path for a raster layer "
518-
"created by the algorithm." );
508+
return QCoreApplication::translate( "Processing", "A raster layer destination parameter." );
519509
}
520510

521511
virtual QString name() const override
@@ -593,7 +583,7 @@ class CORE_EXPORT QgsProcessingParameterTypeMultipleLayers : public QgsProcessin
593583

594584
virtual QString name() const override
595585
{
596-
return QCoreApplication::translate( "Processing", "Multiple Layers" );
586+
return QCoreApplication::translate( "Processing", "Multiple Input" );
597587
}
598588

599589
virtual QString id() const override
@@ -618,16 +608,12 @@ class CORE_EXPORT QgsProcessingParameterTypeFeatureSource : public QgsProcessing
618608

619609
virtual QString description() const override
620610
{
621-
return QCoreApplication::translate( "Processing", "An input feature source (such as vector layers) "
622-
"parameter for processing algorithms. "
623-
"This is the preferred way to pass features into an algorithm. "
624-
"It can be directly connected to outputs (feature sinks) from "
625-
"other algorithms and does not necessarily require an intermediate layer." );
611+
return QCoreApplication::translate( "Processing", "A vector feature parameter, e.g. for algorithms which operate on the features within a layer." );
626612
}
627613

628614
virtual QString name() const override
629615
{
630-
return QCoreApplication::translate( "Processing", "Feature Source" );
616+
return QCoreApplication::translate( "Processing", "Vector Features" );
631617
}
632618

633619
virtual QString id() const override

0 commit comments

Comments
 (0)
Please sign in to comment.