Skip to content
Permalink
Browse files

Use generic algorithm icon for qgis algorithms which do not

have specific icons, instead of generic qgis icon

We consider these 'top level' algorithms, and using the
standard algorithm icon should help reflect this and
differentiate them from 3rd party algorithms.
  • Loading branch information
nyalldawson committed Jun 24, 2017
1 parent 8f586ef commit b1cadb1822c72955a79673ecbedb8a3fbe4a4910
Showing with 0 additions and 494 deletions.
  1. +0 −6 python/plugins/processing/algs/qgis/AddTableField.py
  2. +0 −6 python/plugins/processing/algs/qgis/AutoincrementalField.py
  3. +0 −6 python/plugins/processing/algs/qgis/BarPlot.py
  4. +0 −6 python/plugins/processing/algs/qgis/BoxPlot.py
  5. +0 −6 python/plugins/processing/algs/qgis/ConcaveHull.py
  6. +0 −6 python/plugins/processing/algs/qgis/CreateAttributeIndex.py
  7. +0 −6 python/plugins/processing/algs/qgis/CreateConstantRaster.py
  8. +0 −6 python/plugins/processing/algs/qgis/Datasources2Vrt.py
  9. +0 −9 python/plugins/processing/algs/qgis/DefineProjection.py
  10. +0 −6 python/plugins/processing/algs/qgis/DeleteColumn.py
  11. +0 −6 python/plugins/processing/algs/qgis/DeleteDuplicateGeometries.py
  12. +0 −6 python/plugins/processing/algs/qgis/DeleteHoles.py
  13. +0 −6 python/plugins/processing/algs/qgis/DensifyGeometries.py
  14. +0 −6 python/plugins/processing/algs/qgis/DensifyGeometriesInterval.py
  15. +0 −6 python/plugins/processing/algs/qgis/DropGeometry.py
  16. +0 −6 python/plugins/processing/algs/qgis/EquivalentNumField.py
  17. +0 −6 python/plugins/processing/algs/qgis/ExecuteSQL.py
  18. +0 −6 python/plugins/processing/algs/qgis/Explode.py
  19. +0 −6 python/plugins/processing/algs/qgis/ExtendLines.py
  20. +0 −6 python/plugins/processing/algs/qgis/ExtractByLocation.py
  21. +0 −6 python/plugins/processing/algs/qgis/ExtractSpecificNodes.py
  22. +0 −6 python/plugins/processing/algs/qgis/FieldPyculator.py
  23. +0 −6 python/plugins/processing/algs/qgis/FieldsCalculator.py
  24. +0 −6 python/plugins/processing/algs/qgis/FieldsMapper.py
  25. +0 −6 python/plugins/processing/algs/qgis/FindProjection.py
  26. +0 −6 python/plugins/processing/algs/qgis/FixGeometry.py
  27. +0 −6 python/plugins/processing/algs/qgis/GeometryByExpression.py
  28. +0 −6 python/plugins/processing/algs/qgis/GeometryConvert.py
  29. +0 −6 python/plugins/processing/algs/qgis/Gridify.py
  30. +0 −6 python/plugins/processing/algs/qgis/HubDistanceLines.py
  31. +0 −6 python/plugins/processing/algs/qgis/HubDistancePoints.py
  32. +0 −6 python/plugins/processing/algs/qgis/HubLines.py
  33. +0 −6 python/plugins/processing/algs/qgis/HypsometricCurves.py
  34. +0 −6 python/plugins/processing/algs/qgis/ImportIntoPostGIS.py
  35. +0 −6 python/plugins/processing/algs/qgis/ImportIntoSpatialite.py
  36. +0 −6 python/plugins/processing/algs/qgis/JoinAttributes.py
  37. +0 −6 python/plugins/processing/algs/qgis/MeanAndStdDevPlot.py
  38. +0 −6 python/plugins/processing/algs/qgis/OffsetLine.py
  39. +0 −6 python/plugins/processing/algs/qgis/OrientedMinimumBoundingBox.py
  40. +0 −6 python/plugins/processing/algs/qgis/Orthogonalize.py
  41. +0 −6 python/plugins/processing/algs/qgis/PointsDisplacement.py
  42. +0 −6 python/plugins/processing/algs/qgis/PointsFromLines.py
  43. +0 −6 python/plugins/processing/algs/qgis/PointsFromPolygons.py
  44. +0 −6 python/plugins/processing/algs/qgis/PointsInPolygonUnique.py
  45. +0 −11 python/plugins/processing/algs/qgis/PointsInPolygonWeighted.py
  46. +0 −6 python/plugins/processing/algs/qgis/PointsLayerFromTable.py
  47. +0 −6 python/plugins/processing/algs/qgis/PointsToPaths.py
  48. +0 −6 python/plugins/processing/algs/qgis/PolarPlot.py
  49. +0 −6 python/plugins/processing/algs/qgis/Polygonize.py
  50. +0 −6 python/plugins/processing/algs/qgis/PostGISExecuteSQL.py
  51. +0 −6 python/plugins/processing/algs/qgis/RandomExtract.py
  52. +0 −6 python/plugins/processing/algs/qgis/RandomExtractWithinSubsets.py
  53. +0 −6 python/plugins/processing/algs/qgis/RandomPointsAlongLines.py
  54. +0 −6 python/plugins/processing/algs/qgis/RasterCalculator.py
  55. +0 −6 python/plugins/processing/algs/qgis/RasterLayerHistogram.py
  56. +0 −6 python/plugins/processing/algs/qgis/RasterLayerStatistics.py
  57. +0 −6 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsFixed.py
  58. +0 −6 python/plugins/processing/algs/qgis/RectanglesOvalsDiamondsVariable.py
  59. +0 −6 python/plugins/processing/algs/qgis/RemoveNullGeometry.py
  60. +0 −6 python/plugins/processing/algs/qgis/ReverseLineDirection.py
  61. +0 −6 python/plugins/processing/algs/qgis/SaveSelectedFeatures.py
  62. +0 −6 python/plugins/processing/algs/qgis/SelectByAttribute.py
  63. +0 −6 python/plugins/processing/algs/qgis/SelectByAttributeSum.py
  64. +0 −6 python/plugins/processing/algs/qgis/SelectByExpression.py
  65. +0 −6 python/plugins/processing/algs/qgis/SetRasterStyle.py
  66. +0 −6 python/plugins/processing/algs/qgis/SetVectorStyle.py
  67. +0 −6 python/plugins/processing/algs/qgis/SingleSidedBuffer.py
  68. +0 −6 python/plugins/processing/algs/qgis/Smooth.py
  69. +0 −6 python/plugins/processing/algs/qgis/SnapGeometries.py
  70. +0 −6 python/plugins/processing/algs/qgis/SpatialIndex.py
  71. +0 −6 python/plugins/processing/algs/qgis/SpatialiteExecuteSQL.py
  72. +0 −6 python/plugins/processing/algs/qgis/SplitWithLines.py
  73. +0 −6 python/plugins/processing/algs/qgis/StatisticsByCategories.py
  74. +0 −6 python/plugins/processing/algs/qgis/TextToFloat.py
  75. +0 −6 python/plugins/processing/algs/qgis/TopoColors.py
  76. +0 −6 python/plugins/processing/algs/qgis/Translate.py
  77. +0 −6 python/plugins/processing/algs/qgis/TruncateTable.py
  78. +0 −6 python/plugins/processing/algs/qgis/VectorLayerHistogram.py
  79. +0 −6 python/plugins/processing/algs/qgis/VectorLayerScatterplot.py
  80. +0 −6 python/plugins/processing/algs/qgis/VectorLayerScatterplot3D.py
  81. +0 −6 python/plugins/processing/algs/qgis/ZonalStatistics.py
@@ -51,12 +51,6 @@ class AddTableField(QgisAlgorithm):

TYPES = [QVariant.Int, QVariant.Double, QVariant.String]

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector table tools')

@@ -51,12 +51,6 @@ def __init__(self):
self.addParameter(QgsProcessingParameterFeatureSink(self.OUTPUT, self.tr('Incremented')))
self.addOutput(QgsProcessingOutputVectorLayer(self.OUTPUT, self.tr('Incremented')))

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector table tools')

@@ -47,12 +47,6 @@ class BarPlot(QgisAlgorithm):
NAME_FIELD = 'NAME_FIELD'
VALUE_FIELD = 'VALUE_FIELD'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Graphics')

@@ -47,12 +47,6 @@ class BoxPlot(QgisAlgorithm):
VALUE_FIELD = 'VALUE_FIELD'
MSD = 'MSD'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Graphics')

@@ -52,12 +52,6 @@ class ConcaveHull(QgisAlgorithm):
NO_MULTIGEOMETRY = 'NO_MULTIGEOMETRY'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector geometry tools')

@@ -42,12 +42,6 @@ class CreateAttributeIndex(QgisAlgorithm):
FIELD = 'FIELD'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector general tools')

@@ -42,12 +42,6 @@ class CreateConstantRaster(QgisAlgorithm):
OUTPUT = 'OUTPUT'
NUMBER = 'NUMBER'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Raster tools')

@@ -48,12 +48,6 @@ class Datasources2Vrt(QgisAlgorithm):
VRT_FILE = 'VRT_FILE'
VRT_STRING = 'VRT_STRING'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector general tools')

@@ -47,15 +47,6 @@ class DefineProjection(QgisAlgorithm):
CRS = 'CRS'
OUTPUT = 'OUTPUT'

#def getIcon(self):
# return QIcon(os.path.join(pluginPath, 'images', 'ftools', 'basic_statistics.png'))

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector general tools')

@@ -41,12 +41,6 @@ class DeleteColumn(QgisAlgorithm):
COLUMNS = 'COLUMN'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def tags(self):
return self.tr('drop,delete,remove,fields,columns,attributes').split(',')

@@ -39,12 +39,6 @@ class DeleteDuplicateGeometries(QgisAlgorithm):
INPUT = 'INPUT'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector general tools')

@@ -41,12 +41,6 @@ class DeleteHoles(QgisAlgorithm):
MIN_AREA = 'MIN_AREA'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def tags(self):
return self.tr('remove,delete,drop,holes,rings,fill').split(',')

@@ -45,12 +45,6 @@ class DensifyGeometries(QgisAlgorithm):
VERTICES = 'VERTICES'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def tags(self):
return self.tr('add,vertices,points').split(',')

@@ -46,12 +46,6 @@ class DensifyGeometriesInterval(QgisAlgorithm):
INTERVAL = 'INTERVAL'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector geometry tools')

@@ -42,12 +42,6 @@ class DropGeometry(QgisAlgorithm):
INPUT_LAYER = 'INPUT_LAYER'
OUTPUT_TABLE = 'OUTPUT_TABLE'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def tags(self):
return self.tr('remove,drop,delete,geometry,objects').split(',')

@@ -43,12 +43,6 @@ class EquivalentNumField(QgisAlgorithm):
OUTPUT = 'OUTPUT'
FIELD = 'FIELD'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector table tools')

@@ -56,12 +56,6 @@ class ExecuteSQL(QgisAlgorithm):
INPUT_GEOMETRY_CRS = 'INPUT_GEOMETRY_CRS'
OUTPUT_LAYER = 'OUTPUT_LAYER'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector general tools')

@@ -43,12 +43,6 @@ class Explode(QgisAlgorithm):
INPUT = 'INPUT'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector geometry tools')

@@ -42,12 +42,6 @@ class ExtendLines(QgisAlgorithm):
START_DISTANCE = 'START_DISTANCE'
END_DISTANCE = 'END_DISTANCE'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector geometry tools')

@@ -45,12 +45,6 @@ class ExtractByLocation(QgisAlgorithm):
PRECISION = 'PRECISION'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def tags(self):
return self.tr('extract,filter,location,intersects,contains,within').split(',')

@@ -48,12 +48,6 @@ class ExtractSpecificNodes(QgisAlgorithm):
OUTPUT_LAYER = 'OUTPUT_LAYER'
NODES = 'NODES'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector geometry tools')

@@ -57,12 +57,6 @@ class FieldsPyculator(QgisAlgorithm):

TYPES = [QVariant.Int, QVariant.Double, QVariant.String]

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector table tools')

@@ -61,12 +61,6 @@ class FieldsCalculator(QgisAlgorithm):

TYPES = [QVariant.Double, QVariant.Int, QVariant.String, QVariant.Date]

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector table tools')

@@ -54,12 +54,6 @@ def __init__(self):
GeoAlgorithm.__init__(self)
self.mapping = None

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector table tools')

@@ -52,12 +52,6 @@ class FindProjection(QgisAlgorithm):
TARGET_AREA_CRS = 'TARGET_AREA_CRS'
OUTPUT_HTML_FILE = 'OUTPUT_HTML_FILE'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def tags(self):
return self.tr('crs,srs,coordinate,reference,system,guess,estimate,finder,determine').split(',')

@@ -44,12 +44,6 @@ class FixGeometry(QgisAlgorithm):
INPUT = 'INPUT'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def tags(self):
return self.tr('repair,invalid,geometry').split(',')

@@ -49,12 +49,6 @@ class GeometryByExpression(QgisAlgorithm):
WITH_M = 'WITH_M'
EXPRESSION = 'EXPRESSION'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector geometry tools')

@@ -43,12 +43,6 @@ class GeometryConvert(QgisAlgorithm):
TYPE = 'TYPE'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector geometry tools')

@@ -46,12 +46,6 @@ class Gridify(QgisAlgorithm):
VSPACING = 'VSPACING'
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector general tools')

@@ -63,12 +63,6 @@ class HubDistanceLines(QgisAlgorithm):
'Layer units'
]

def icon(self):
return QgsApplication.getThemeIcon("/providerQgis.svg")

def svgIconPath(self):
return QgsApplication.iconPath("providerQgis.svg")

def group(self):
return self.tr('Vector analysis tools')

3 comments on commit b1cadb1

@nirvn

This comment has been minimized.

Copy link
Contributor

@nirvn nirvn replied Jun 25, 2017

Can we use a vector icon here?

@nyalldawson

This comment has been minimized.

Copy link
Collaborator Author

@nyalldawson nyalldawson replied Jun 25, 2017

It should be already - the generic alg icon is svg

@nirvn

This comment has been minimized.

Copy link
Contributor

@nirvn nirvn replied Jun 25, 2017

@nyalldawson , it doesn't show as vector in models.

Please sign in to comment.
You can’t perform that action at this time.