Skip to content
Permalink
Browse files

[needs-docs][processing] vectorize & improve remaining vector menu icons

  • Loading branch information
nirvn committed May 15, 2018
1 parent 9a82dbe commit bc0f75334fcaf929257ea3419213257e90c7a5be
@@ -76,19 +76,21 @@
<file>north_arrows/gpsarrow2.svg</file>
<file>splash/splash.png</file>
<file>composer/missing_image.svg</file>
<file>themes/default/algorithms/mAlgorithmAddGeometryAttributes.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>
<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/mAlgorithmCreateGrid.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/mAlgorithmDistanceMatrix.svg</file>
<file>themes/default/algorithms/mAlgorithmAddGeometryAttributes.svg</file>
<file>themes/default/algorithms/mAlgorithmExtractVertices.svg</file>
<file>themes/default/algorithms/mAlgorithmExtractLayerExtent.svg</file>
<file>themes/default/algorithms/mAlgorithmIntersect.svg</file>
<file>themes/default/algorithms/mAlgorithmLineIntersections.svg</file>
<file>themes/default/algorithms/mAlgorithmLineToPolygon.svg</file>
@@ -97,6 +99,11 @@
<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/mAlgorithmRandomPointsWithinPolygon.svg</file>
<file>themes/default/algorithms/mAlgorithmRandomPointsWithinExtent.svg</file>
<file>themes/default/algorithms/mAlgorithmRegularPoints.svg</file>
<file>themes/default/algorithms/mAlgorithmSelectLocation.svg</file>
<file>themes/default/algorithms/mAlgorithmSelectRandom.svg</file>
<file>themes/default/algorithms/mAlgorithmSimplify.svg</file>
<file>themes/default/algorithms/mAlgorithmSingleToMulti.svg</file>
<file>themes/default/algorithms/mAlgorithmSplitLayer.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 d="M.926.265v5.82M5.16.265v5.82M3.043.265v5.82M.265.926h5.82M.265 5.16h5.82M.265 3.041l5.82.003" fill="none" 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="M.661.662v5.027h5.027V.66H.662z" fill="#7c96a8" stroke="#517083" stroke-width=".265" stroke-linecap="round"/><path d="M2.142.661c-.64.01-1.2.272-1.425.908-.224.63.266 1.77 1.345 1.264 1.794-.842 1.793.21 2.241.21.553 0 1.12-.369 1.12-.84 0-.42.022-.823-.225-1.055-.448-.42-.674.214-1.88-.257a3.162 3.162 0 0 0-1.176-.23z" fill="#e6e6e6" fill-rule="evenodd" stroke="#5b5e5c" stroke-width=".265" stroke-linecap="round" stroke-linejoin="round"/><path d="M1.039 5.584c-.55-.232-.398-.807-.174-1.13l.912-.954c.323-.263.826-.236 1.02-.044.24.331.302.784.196 1.352a1.4 1.4 0 0 1-.847.798c-.2.114-.718.113-1.107-.022zM4.143 3.91a2.93 2.999 0 0 1 .014 1.534c-.061.326.294.15.64.222.467.075.83-.024.89-.638.012-.266-.238-.691-.36-1.04-.235-.384-1.28-.665-1.184-.078z" fill="#e6e6e6" stroke="#5b5e5c" 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="M.661.662v5.027h5.027V.66H.662z" fill="none" stroke="#565a5d" stroke-width=".265" stroke-linecap="round" stroke-dasharray=".26458332,.52916663"/><circle cx="1.455" cy="1.984" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="4.366" cy="1.455" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="3.307" cy="4.101" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="3.043" cy="2.514" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="1.455" cy="5.159" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="4.895" cy="4.366" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="1.72" cy="3.572" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="5.159" cy="2.778" r=".265" fill="#8cbe8c" stroke="#4b4c4b" 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 d="M2.124 1.455c-.746.013-1.4.333-1.663 1.11-.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-1.373-.282z" fill="#e6e6e6" fill-rule="evenodd" stroke="#585a56" stroke-width=".265" stroke-linecap="round" stroke-linejoin="round" stroke-opacity=".93"/><circle cx="1.455" cy="1.984" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="3.572" cy="3.572" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="3.043" cy="2.514" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="4.895" cy="4.101" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="1.72" cy="3.572" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="5.159" cy="2.514" r=".265" fill="#8cbe8c" stroke="#4b4c4b" 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"><circle cx=".926" cy="1.191" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="3.043" cy="1.191" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx=".926" cy="4.366" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx=".926" cy="2.249" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx=".926" cy="5.424" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="4.101" cy="1.191" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx=".926" cy="3.307" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="1.984" cy="1.191" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="5.159" cy="1.191" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="3.043" cy="2.249" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="4.101" cy="2.249" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="1.984" cy="2.249" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="5.159" cy="2.249" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="3.043" cy="3.307" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="4.101" cy="3.307" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="1.984" cy="3.307" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="5.159" cy="3.307" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="3.043" cy="4.366" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="4.101" cy="4.366" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="1.984" cy="4.366" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="5.159" cy="4.366" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="3.043" cy="5.424" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="4.101" cy="5.424" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="1.984" cy="5.424" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/><circle cx="5.159" cy="5.424" r=".265" fill="#8cbe8c" stroke="#4b4c4b" stroke-width=".265" stroke-linecap="round"/></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path overflow="visible" d="M2.538 2.538h12.924v12.924H2.538z" fill="#fce94f" stroke="#c4a000" stroke-width="1.077" stroke-linecap="round"/><path d="M-7.536 153.528c-13 0-114.383-223.976-114.383-281.924 0-57.948 50.006-104.924 111.692-104.924 61.685 0 111.691 46.976 111.691 104.924 0 57.948-99.566 281.924-109 281.924z" fill="url(#a)"/><path d="M19.5 12.5c-1.657 0-3 1.215-3 2.713s2.723 7.287 3.072 7.287c.254 0 2.928-5.79 2.928-7.287 0-1.498-1.343-2.713-3-2.713zm0 1a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2 2 2 0 0 1 2-2z" fill="#7c96a8" stroke="#517083" stroke-linejoin="round"/><path d="M19.5 12.5c-1.657 0-3 1.215-3 2.713s2.723 7.287 3.072 7.287c.254 0 2.928-5.79 2.928-7.287 0-1.498-1.343-2.713-3-2.713zm0 1a2 2 0 0 1 2 2 2 2 0 0 1-2 2 2 2 0 0 1-2-2 2 2 0 0 1 2-2z" fill="#7c96a8"/></svg>
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" width="24"><path overflow="visible" d="M2.538 2.538h12.924v12.924H2.538z" fill="#fce94f" stroke="#c4a000" stroke-width="1.077" stroke-linecap="round"/><text style="line-height:61.84967041px;-inkscape-font-specification:Delicious" x="16.282" y="23.645" transform="scale(1.0585 .94473)" font-size="49.48" font-family="Delicious" letter-spacing="0" word-spacing="0" fill="#7c96a8" stroke="#517083"><tspan x="16.282" y="23.645" style="-inkscape-font-specification:Ubuntu" font-weight="400" font-size="13.195" font-family="Ubuntu">?</tspan></text><text style="line-height:61.84967041px;-inkscape-font-specification:Delicious" x="16.282" y="23.645" transform="scale(1.0585 .94473)" font-size="49.48" font-family="Delicious" letter-spacing="0" word-spacing="0" fill="#7c96a8"><tspan x="16.282" y="23.645" style="-inkscape-font-specification:Ubuntu" font-weight="400" font-size="13.195" font-family="Ubuntu">?</tspan></text></svg>
@@ -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,
QgsFeatureSink,
QgsGeometry,
QgsFeature,
@@ -54,7 +55,10 @@ class ExtentFromLayer(QgisAlgorithm):
OUTPUT = 'OUTPUT'

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

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

def tags(self):
return self.tr('polygon,from,vector,raster,extent,envelope,bounds,bounding,boundary,layer').split(',')
@@ -65,7 +65,10 @@ class Grid(QgisAlgorithm):
OUTPUT = 'OUTPUT'

def icon(self):
return QgsApplication.getThemeIcon("/vector_grid.svg")
return QgsApplication.getThemeIcon("/algorithms/mAlgorithmCreateGrid.svg")

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

def tags(self):
return self.tr('grid,lines,polygons,vector,create,fishnet,diamond,hexagon').split(',')
@@ -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,
QgsFeatureSink,
QgsFeature,
QgsFields,
@@ -62,7 +63,10 @@ class RandomPointsExtent(QgisAlgorithm):
OUTPUT = 'OUTPUT'

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

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

def group(self):
return self.tr('Vector creation')
@@ -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,
QgsFeatureSink,
QgsFeature,
QgsFields,
@@ -61,7 +62,10 @@ class RandomPointsLayer(QgisAlgorithm):
OUTPUT = 'OUTPUT'

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

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

def group(self):
return self.tr('Vector creation')
@@ -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,
QgsFeatureSink,
QgsFeature,
QgsFields,
@@ -67,7 +68,10 @@ class RandomPointsPolygons(QgisAlgorithm):
OUTPUT = 'OUTPUT'

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

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

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

from qgis.PyQt.QtGui import QIcon
from qgis.core import (QgsFeatureSink,
from qgis.core import (QgsApplication,
QgsFeatureSink,
QgsProcessingException,
QgsProcessingUtils,
QgsProcessingAlgorithm,
@@ -52,7 +53,10 @@ class RandomSelection(QgisAlgorithm):
NUMBER = 'NUMBER'

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

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

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

from qgis.PyQt.QtGui import QIcon

from qgis.core import (QgsFeatureRequest,
from qgis.core import (QgsApplication,
QgsFeatureRequest,
QgsProcessingException,
QgsProcessingUtils,
QgsProcessingAlgorithm,
@@ -55,7 +56,10 @@ class RandomSelectionWithinSubsets(QgisAlgorithm):
OUTPUT = 'OUTPUT'

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

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

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

from qgis.PyQt.QtGui import QIcon
from qgis.PyQt.QtCore import QVariant
from qgis.core import (QgsFields,
from qgis.core import (QgsApplication,
QgsFields,
QgsFeatureSink,
QgsField,
QgsFeature,
@@ -63,7 +64,10 @@ class RegularPoints(QgisAlgorithm):
CRS = 'CRS'

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

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

def group(self):
return self.tr('Vector creation')
@@ -57,9 +57,6 @@ class SpatialJoin(QgisAlgorithm):
DISCARD_NONMATCHING = "DISCARD_NONMATCHING"
OUTPUT = "OUTPUT"

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'ftools', 'join_location.png'))

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

@@ -65,9 +65,6 @@ class SpatialJoinSummary(QgisAlgorithm):
DISCARD_NONMATCHING = "DISCARD_NONMATCHING"
OUTPUT = "OUTPUT"

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'ftools', 'join_location.png'))

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

@@ -63,6 +63,8 @@ class QgsSelectByLocationAlgorithm : public QgsLocationBasedAlgorithm

QgsSelectByLocationAlgorithm() = default;
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) override;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmSelectLocation.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmSelectLocation.svg" ) ); }
QString name() const override;
Flags flags() const override;
QString displayName() const override;

0 comments on commit bc0f753

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