Skip to content
Permalink
Browse files

[needs-docs][processing] vectorize and improve remaining data analysi…

…s menu icons
  • Loading branch information
nirvn committed May 15, 2018
1 parent 97eceb1 commit 9a82dbe19705978f28e718ede1dfe4cf7b02ac18
@@ -76,6 +76,7 @@
<file>north_arrows/gpsarrow2.svg</file>
<file>splash/splash.png</file>
<file>composer/missing_image.svg</file>
<file>themes/default/algorithms/mAlgorithmBasicStatistics.svg</file>
<file>themes/default/algorithms/mAlgorithmBuffer.svg</file>
<file>themes/default/algorithms/mAlgorithmCentroids.svg</file>
<file>themes/default/algorithms/mAlgorithmCheckGeometry.svg</file>
@@ -85,6 +86,7 @@
<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/mAlgorithmDistanceMatrix.svg</file>
<file>themes/default/algorithms/mAlgorithmAddGeometryAttributes.svg</file>
<file>themes/default/algorithms/mAlgorithmExtractVertices.svg</file>
<file>themes/default/algorithms/mAlgorithmIntersect.svg</file>
@@ -93,12 +95,16 @@
<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/mAlgorithmNearestNeighbour.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/mAlgorithmSumLengthLines.svg</file>
<file>themes/default/algorithms/mAlgorithmSumPoints.svg</file>
<file>themes/default/algorithms/mAlgorithmSymmetricalDifference.svg</file>
<file>themes/default/algorithms/mAlgorithmUnion.svg</file>
<file>themes/default/algorithms/mAlgorithmUniqueValues.svg</file>
<file>themes/default/algorithms/mAlgorithmVoronoi.svg</file>
<file>themes/default/cap_flat.svg</file>
<file>themes/default/cap_round.svg</file>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 6.35 6.35"><g fill="#7c96a8"><path d="M1.212.926l.004.149 1.783 2.277L1.196 5.55l-.005.139 3.495-.019c.035-.443.128-.902.209-1.339l-.114-.029c-.106.245-.181.507-.407.67-.248.177-.575.155-.862.155h-1.61l1.642-2.031-1.48-1.895.861-.003c.553 0 1.338-.137 1.556.543.038.116.064.237.073.359h.123L4.582.926z" stroke="#517083" stroke-linecap="round" stroke-linejoin="round" fill="#517083" stroke-width=".26458"/><path d="M1.212.926l.004.149 1.783 2.277L1.196 5.55l-.005.139 3.495-.019c.035-.443.128-.902.209-1.339l-.114-.029c-.106.245-.181.507-.407.67-.248.177-.575.155-.862.155h-1.61l1.642-2.031-1.48-1.895.861-.003c.553 0 1.338-.137 1.556.543.038.116.064.237.073.359h.123L4.582.926z"/></g></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="#e6e6e6" stroke="#61635f" stroke-width=".265" stroke-linecap="round" d="M.397.397h5.556v5.556H.397z"/><path fill="#e6e6e6" stroke="#61635f" stroke-width=".265" stroke-linecap="round" d="M.397 5.159h5.556v.794H.397zM.397.397h.794v.794H.397zM.397 1.191h1.587v.794H.397z"/><path fill="#e6e6e6" stroke="#61635f" stroke-width=".265" stroke-linecap="round" d="M.397 1.984h2.381v.794H.397zM.397 2.778h3.175v.794H.397zM.397 3.572h3.969v.794H.397zM.397 4.366h4.762v.794H.397z"/><path fill="none" stroke="#61635f" stroke-width=".265" stroke-linecap="round" d="M.397.397h.794v5.556H.397zM1.191 1.191h.794v4.763h-.794z"/><path fill="none" stroke="#61635f" stroke-width=".265" stroke-linecap="round" d="M1.984 1.984h.794v3.969h-.794zM2.778 2.778h.794v3.175h-.794z"/><path fill="none" stroke="#61635f" stroke-width=".265" stroke-linecap="round" d="M3.572 3.572h.794v2.381h-.794zM4.366 4.366h.794v1.588h-.794z"/><path fill="none" stroke="#61635f" stroke-width=".265" stroke-linecap="round" d="M5.159 5.159h.794v.794h-.794z"/></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 6.35 6.35"><rect y="1.72" x="4.101" width="1.323" rx=".827" height="1.323" ry=".827" fill="#e6e6e6" stroke="#585956" stroke-width=".265" stroke-linecap="round" stroke-opacity=".929"/><rect y="4.366" x="1.455" width="1.323" rx=".827" height="1.323" ry=".827" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><path d="M4.369 3.337l-1.091 1.09.375.375-1.404.093.094-1.403.374.374 1.09-1.09z" fill="#7c96a8" stroke="#517083" stroke-width=".265" stroke-linecap="round" stroke-linejoin="round"/><rect y=".397" x="2.778" width="1.323" rx=".827" height="1.323" ry=".827" fill="#e6e6e6" stroke="#585956" stroke-width=".265" stroke-linecap="round" stroke-opacity=".929"/></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="M2.124.926C1.378.94.724 1.26.461 2.036c-.26.772.31 2.165 1.57 1.545 2.092-1.029 2.091.255 2.614.255.645 0 1.307-.45 1.307-1.025 0-.514.026-1.007-.262-1.29-.523-.514-.787.261-2.193-.313A3.544 3.544 0 0 0 2.124.926z" fill="#8cbe8c" fill-rule="evenodd" stroke="#61635f" stroke-width=".265" stroke-linecap="round" stroke-linejoin="round"/><g fill="#7c96a8" stroke-width="2.522"><path d="M5.08 11l.014.563 6.74 8.607-6.814 8.307L5 29l13.213-.07c.129-1.676.483-3.408.787-5.06l-.43-.11c-.4.925-.684 1.914-1.538 2.528-.936.674-2.172.589-3.257.589H7.692l6.201-7.675-5.591-7.162 3.255-.013c2.086 0 5.055-.517 5.88 2.053.141.44.24.895.275 1.357h.465L17.819 11z" fill="#517083" stroke="#517083" stroke-width="3.907" stroke-linecap="round" stroke-linejoin="round" transform="matrix(.10343 0 0 .10643 3.918 2.791)"/><path d="M4.444 3.962l.001.06.697.916-.705.884-.002.056 1.367-.008c.013-.178.05-.363.081-.538L5.84 5.32c-.041.098-.07.204-.16.269-.096.072-.224.063-.336.063h-.63l.642-.817-.578-.762.337-.002c.215 0 .522-.055.608.219a.648.648 0 0 1 .028.144h.048l-.037-.472z"/></g><path d="M.28 5.572L5.57.282" fill="#585a56" fill-opacity=".933" stroke="#585a56" stroke-width=".794" stroke-opacity=".933"/><path d="M.452 5.4L5.4.453" fill="none" stroke="#e6e6e6" stroke-width=".265"/><path d="M2.396 3.457l1.986-1.985" fill="none" stroke="#8cbe8c" stroke-width=".265"/><path d="M2.124.926C1.378.94.724 1.26.461 2.036c-.26.772.31 2.165 1.57 1.545 2.092-1.029 2.091.255 2.614.255.645 0 1.307-.45 1.307-1.025 0-.514.026-1.007-.262-1.29-.523-.514-.787.261-2.193-.313A3.544 3.544 0 0 0 2.124.926z" fill="none" stroke="#61635f" stroke-width=".265" stroke-linecap="round" stroke-linejoin="round"/><path d="M1.133 1.398L2.86 3.135" fill="none" stroke="#585a56" stroke-width=".794" stroke-opacity=".933"/><path d="M1.323 1.588L2.7 2.964" fill="none" stroke="#8cbe8c" 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="M2.124.926C1.378.94.724 1.26.461 2.036c-.26.772.31 2.165 1.57 1.545 2.092-1.029 2.091.255 2.614.255.645 0 1.307-.45 1.307-1.025 0-.514.026-1.007-.262-1.29-.523-.514-.787.261-2.193-.313A3.544 3.544 0 0 0 2.124.926z" fill="#8cbe8c" fill-rule="evenodd" stroke="#61635f" stroke-width=".265" stroke-linecap="round" stroke-linejoin="round"/><g fill="#7c96a8" stroke-width="2.522"><path d="M5.08 11l.014.563 6.74 8.607-6.814 8.307L5 29l13.213-.07c.129-1.676.483-3.408.787-5.06l-.43-.11c-.4.925-.684 1.914-1.538 2.528-.936.674-2.172.589-3.257.589H7.692l6.201-7.675-5.591-7.162 3.255-.013c2.086 0 5.055-.517 5.88 2.053.141.44.24.895.275 1.357h.465L17.819 11z" fill="#517083" stroke="#517083" stroke-width="3.907" stroke-linecap="round" stroke-linejoin="round" transform="matrix(.10343 0 0 .10643 3.918 2.791)"/><path d="M4.444 3.962l.001.06.697.916-.705.884-.002.056 1.367-.008c.013-.178.05-.363.081-.538L5.84 5.32c-.041.098-.07.204-.16.269-.096.072-.224.063-.336.063h-.63l.642-.817-.578-.762.337-.002c.215 0 .522-.055.608.219a.648.648 0 0 1 .028.144h.048l-.037-.472z"/></g><rect y="1.455" x="1.191" width="1.323" rx=".827" height="1.323" ry=".827" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><rect y="2.249" x="4.101" width="1.323" rx=".827" height="1.323" ry=".827" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><rect y="4.365" x="1.72" width="1.323" rx=".827" height="1.323" ry=".827" fill="#e6e6e6" stroke="#61635f" stroke-width=".265" stroke-linecap="round"/></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="#8cbe8c" stroke="#61635f" stroke-width=".265" stroke-linecap="round" d="M.397.661H4.63v1.323H.397z"/><path fill="#7c96a8" stroke="#517083" stroke-width=".265" stroke-linecap="round" d="M.926 2.514h4.233v1.323H.926z"/><path fill="#e6e6e6" stroke="#585a56" stroke-width=".265" stroke-linecap="round" stroke-opacity=".933" d="M1.455 4.366h4.233v1.323H1.455z"/></svg>
@@ -31,7 +31,8 @@
from qgis.PyQt.QtCore import QVariant
from qgis.PyQt.QtGui import QIcon

from qgis.core import (QgsStatisticalSummary,
from qgis.core import (QgsApplication,
QgsStatisticalSummary,
QgsStringStatisticalSummary,
QgsDateTimeStatisticalSummary,
QgsFeatureRequest,
@@ -75,7 +76,10 @@ class BasicStatisticsForField(QgisAlgorithm):
IQR = 'IQR'

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

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

def tags(self):
return self.tr('stats,statistics,date,time,datetime,string,number,text,table,layer,maximum,minimum,mean,average,standard,deviation,'
@@ -31,7 +31,8 @@

from qgis.PyQt.QtGui import QIcon

from qgis.core import (QgsFeatureRequest,
from qgis.core import (QgsApplication,
QgsFeatureRequest,
QgsDistanceArea,
QgsProject,
QgsProcessing,
@@ -57,7 +58,10 @@ class NearestNeighbourAnalysis(QgisAlgorithm):
Z_SCORE = 'Z_SCORE'

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

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

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

from qgis.core import (QgsFeatureRequest,
from qgis.core import (QgsApplication,
QgsFeatureRequest,
QgsField,
QgsFields,
QgsProject,
@@ -64,7 +65,10 @@ class PointDistance(QgisAlgorithm):
OUTPUT = 'OUTPUT'

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

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

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

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

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

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

def group(self):
return self.tr('Vector analysis')
@@ -29,7 +29,8 @@

from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtCore import QVariant
from qgis.core import (QgsFeature,
from qgis.core import (QgsApplication,
QgsFeature,
QgsFeatureSink,
QgsField,
QgsGeometry,
@@ -57,7 +58,10 @@ class SumLines(QgisAlgorithm):
OUTPUT = 'OUTPUT'

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

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

def group(self):
return self.tr('Vector analysis')
@@ -30,7 +30,8 @@

from qgis.PyQt.QtGui import QIcon

from qgis.core import (QgsCoordinateReferenceSystem,
from qgis.core import (QgsApplication,
QgsCoordinateReferenceSystem,
QgsWkbTypes,
QgsFeature,
QgsFeatureSink,
@@ -61,7 +62,10 @@ class UniqueValues(QgisAlgorithm):
OUTPUT_HTML_FILE = 'OUTPUT_HTML_FILE'

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

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

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

0 comments on commit 9a82dbe

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