Skip to content
Permalink
Browse files

[needs-docs][processing] vectorize and improve remaining geometry too…

…ls menu icons
  • Loading branch information
nirvn committed May 15, 2018
1 parent 395e864 commit 5cb8c2523ec83eecc5d9a9476d3816aa30413b3b
@@ -78,22 +78,28 @@
<file>composer/missing_image.svg</file>
<file>themes/default/algorithms/mAlgorithmBuffer.svg</file>
<file>themes/default/algorithms/mAlgorithmCentroids.svg</file>
<file>themes/default/algorithms/mAlgorithmCheckGeometry.svg</file>
<file>themes/default/algorithms/mAlgorithmClip.svg</file>
<file>themes/default/algorithms/mAlgorithmCollect.svg</file>
<file>themes/default/algorithms/mAlgorithmConvexHull.svg</file>
<file>themes/default/algorithms/mAlgorithmDelaunay.svg</file>
<file>themes/default/algorithms/mAlgorithmDifference.svg</file>
<file>themes/default/algorithms/mAlgorithmDissolve.svg</file>
<file>themes/default/algorithms/mAlgorithmAddGeometryAttributes.svg</file>
<file>themes/default/algorithms/mAlgorithmExtractVertices.svg</file>
<file>themes/default/algorithms/mAlgorithmIntersect.svg</file>
<file>themes/default/algorithms/mAlgorithmLineIntersections.svg</file>
<file>themes/default/algorithms/mAlgorithmLineToPolygon.svg</file>
<file>themes/default/algorithms/mAlgorithmMeanCoordinates.svg</file>
<file>themes/default/algorithms/mAlgorithmMergeLayers.svg</file>
<file>themes/default/algorithms/mAlgorithmMultiToSingle.svg</file>
<file>themes/default/algorithms/mAlgorithmPolygonToLine.svg</file>
<file>themes/default/algorithms/mAlgorithmSimplify.svg</file>
<file>themes/default/algorithms/mAlgorithmSingleToMulti.svg</file>
<file>themes/default/algorithms/mAlgorithmSplitLayer.svg</file>
<file>themes/default/algorithms/mAlgorithmSymmetricalDifference.svg</file>
<file>themes/default/algorithms/mAlgorithmUnion.svg</file>
<file>themes/default/algorithms/mAlgorithmVoronoi.svg</file>
<file>themes/default/cap_flat.svg</file>
<file>themes/default/cap_round.svg</file>
<file>themes/default/cap_square.svg</file>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 6.35 6.35"><path fill="#7c96a8" stroke="#517083" stroke-width=".265" stroke-linecap="round" d="M.397 3.043h5.556V5.16H.397z"/><path d="M.926 5.027V3.44M1.72 5.027v-.794M2.514 5.027v-.794M3.307 5.027v-.794M4.101 5.027v-.794M4.895 5.027V3.704M5.689 5.027v-.794" fill="none" stroke="#fff" stroke-width=".265"/><path d="M.397 2.381v-.926h5.556v.926" fill="none" stroke="#585a56" stroke-width=".265" stroke-opacity=".933"/></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 6.35 6.35"><path d="M1.455 3.096l1.19 1.058L5.306.992l.595.595-3.254 3.625L.873 3.704z" fill="#7c96a8" stroke="#517083" stroke-width=".265"/></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 6.35 6.35"><path d="M4.498 5.82l-3.44-1.322-.529-2.91L2.117.528h2.38l1.324 3.175z" fill="#7c96a8" stroke="#517083" stroke-width=".265"/><path d="M2.117.53l1.058 1.587L4.498 5.82" fill="none" stroke="#517083" stroke-width=".265"/><path d="M5.82 3.704L3.176 2.117l-2.646-.53" fill="none" stroke="#517083" stroke-width=".265"/><path d="M4.498.53L3.175 2.116l-2.117 2.38" fill="none" stroke="#517083" stroke-width=".265"/><rect ry=".827" height=".926" rx=".827" width=".926" x="1.654" y=".066" fill="#e6e6e6" stroke="#4b4c4b" stroke-width=".132" stroke-linecap="round"/><rect ry=".827" height=".926" rx=".827" width=".926" x="4.035" y=".066" fill="#e6e6e6" stroke="#4b4c4b" stroke-width=".132" stroke-linecap="round"/><rect ry=".827" height=".926" rx=".827" width=".926" x="5.358" y="3.241" fill="#e6e6e6" stroke="#4b4c4b" stroke-width=".132" stroke-linecap="round"/><rect ry=".827" height=".926" rx=".827" width=".926" x="4.035" y="5.358" fill="#e6e6e6" stroke="#4b4c4b" stroke-width=".132" stroke-linecap="round"/><rect ry=".827" height=".926" rx=".827" width=".926" x=".595" y="4.035" fill="#e6e6e6" stroke="#4b4c4b" stroke-width=".132" stroke-linecap="round"/><rect ry=".827" height=".926" rx=".827" width=".926" x=".066" y="1.124" fill="#e6e6e6" stroke="#4b4c4b" stroke-width=".132" stroke-linecap="round"/><rect ry=".827" height=".926" rx=".827" width=".926" x="2.712" y="1.654" fill="#e6e6e6" stroke="#4b4c4b" stroke-width=".132" stroke-linecap="round"/></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 6.35 6.35"><defs><linearGradient id="a"><stop offset="0" stop-color="#8cbe8c"/><stop offset="1" stop-color="#8cbe8c" stop-opacity="0"/></linearGradient><linearGradient xlink:href="#a" id="b" x1="3.704" y1="3.969" x2="2.381" y2="3.969" gradientUnits="userSpaceOnUse"/></defs><path d="M1.247 2.844C.708 3.402.463 4.117.84 4.881c.375.759 1.817 1.362 2.287-.019C3.91 2.57 4.851 3.514 5.235 3.13c.474-.474.63-1.29.207-1.713-.377-.378-.72-.759-1.14-.755-.76.006-.386.77-1.84 1.38a3.68 3.681 0 0 0-1.215.802z" fill="url(#b)" fill-rule="evenodd" stroke="#585a56" stroke-width=".265" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".93"/></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" viewBox="0 0 6.35 6.35"><defs><linearGradient id="a"><stop offset="0" stop-color="#8cbe8c"/><stop offset="1" stop-color="#8cbe8c" stop-opacity="0"/></linearGradient><linearGradient xlink:href="#a" id="b" x1="1.587" y1="3.969" x2="3.44" y2="3.969" gradientUnits="userSpaceOnUse"/></defs><path d="M1.247 2.844C.708 3.402.463 4.117.84 4.881c.375.759 1.817 1.362 2.287-.019C3.91 2.57 4.851 3.514 5.235 3.13c.474-.474.63-1.29.207-1.713-.377-.378-.72-.759-1.14-.755-.76.006-.386.77-1.84 1.38a3.68 3.681 0 0 0-1.215.802z" fill="url(#b)" fill-rule="evenodd" stroke="#585a56" stroke-width=".265" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".93"/></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 6.35 6.35"><path fill="#7c96a8" stroke="#517083" stroke-width=".265" stroke-linecap="round" d="M.397.397h5.556v5.556H.397z"/><rect ry=".827" height=".926" rx=".827" width=".926" x="1.389" y="1.124" fill="#e6e6e6" stroke="#4b4c4b" stroke-width=".132" stroke-linecap="round"/><rect ry=".827" height=".926" rx=".827" width=".926" x="4.299" y="1.918" fill="#e6e6e6" stroke="#4b4c4b" stroke-width=".132" stroke-linecap="round"/><rect ry=".827" height=".926" rx=".827" width=".926" x="1.654" y="4.035" fill="#e6e6e6" stroke="#4b4c4b" stroke-width=".132" stroke-linecap="round"/><path d="M3.043.53v2.645L5.82 5.821M.397 2.117l2.716 1.058" fill="none" stroke="#517083" stroke-width=".265"/></svg>
@@ -30,7 +30,8 @@
from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtCore import QVariant

from qgis.core import (QgsSettings,
from qgis.core import (QgsApplication,
QgsSettings,
QgsGeometry,
QgsFeature,
QgsField,
@@ -63,7 +64,10 @@ class CheckValidity(QgisAlgorithm):
ERROR_COUNT = 'ERROR_COUNT'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'ftools', 'check_geometry.png'))
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmCheckGeometry.svg")

def svgIconPath(self):
return QgsApplication.iconPath("/algorithms/mAlgorithmCheckGeometry.svg")

def group(self):
return self.tr('Vector geometry')
@@ -30,7 +30,8 @@
from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtCore import QVariant

from qgis.core import (QgsField,
from qgis.core import (QgsApplication,
QgsField,
QgsFeatureRequest,
QgsFeatureSink,
QgsFeature,
@@ -56,7 +57,10 @@ class Delaunay(QgisAlgorithm):
OUTPUT = 'OUTPUT'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'ftools', 'delaunay.png'))
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmDelaunay.svg")

def svgIconPath(self):
return QgsApplication.iconPath("/algorithms/mAlgorithmDelaunay.svg")

def group(self):
return self.tr('Vector geometry')
@@ -32,6 +32,7 @@
from qgis.PyQt.QtCore import QVariant

from qgis.core import (NULL,
QgsApplication,
QgsCoordinateTransform,
QgsField,
QgsFields,
@@ -58,7 +59,10 @@ class ExportGeometryInfo(QgisAlgorithm):
OUTPUT = 'OUTPUT'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'ftools', 'export_geometry.png'))
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmAddGeometryAttributes.svg")

def svgIconPath(self):
return QgsApplication.iconPath("/algorithms/mAlgorithmAddGeometryAttributes.svg")

def tags(self):
return self.tr('export,add,information,measurements,areas,lengths,perimeters,latitudes,longitudes,x,y,z,extract,points,lines,polygons,sinuosity').split(',')
@@ -29,7 +29,8 @@

from qgis.PyQt.QtGui import QIcon

from qgis.core import (QgsFeature,
from qgis.core import (QgsApplication,
QgsFeature,
QgsGeometry,
QgsGeometryCollection,
QgsPolygon,
@@ -51,7 +52,10 @@
class LinesToPolygons(QgisFeatureBasedAlgorithm):

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'ftools', 'to_lines.png'))
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmLineToPolygon.svg")

def svgIconPath(self):
return QgsApplication.iconPath("/algorithms/mAlgorithmLineToPolygon.svg")

def tags(self):
return self.tr('line,polygon,convert').split(',')
@@ -29,7 +29,8 @@

from qgis.PyQt.QtGui import QIcon

from qgis.core import (QgsGeometry,
from qgis.core import (QgsApplication,
QgsGeometry,
QgsGeometryCollection,
QgsMultiLineString,
QgsMultiCurve,
@@ -44,7 +45,10 @@
class PolygonsToLines(QgisFeatureBasedAlgorithm):

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'ftools', 'to_lines.png'))
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmPolygonToLine.svg")

def svgIconPath(self):
return QgsApplication.iconPath("/algorithms/mAlgorithmPolygonToLine.svg")

def tags(self):
return self.tr('line,polygon,convert').split(',')
@@ -29,7 +29,8 @@

from qgis.PyQt.QtGui import QIcon

from qgis.core import (QgsFeatureRequest,
from qgis.core import (QgsApplication,
QgsFeatureRequest,
QgsFeatureSink,
QgsFeature,
QgsGeometry,
@@ -56,7 +57,10 @@ class VoronoiPolygons(QgisAlgorithm):
OUTPUT = 'OUTPUT'

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'ftools', 'voronoi.png'))
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmVoronoi.svg")

def svgIconPath(self):
return QgsApplication.iconPath("/algorithms/mAlgorithmVoronoi.svg")

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

0 comments on commit 5cb8c25

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