Skip to content
Permalink
Browse files

[processing] add some missing icons for the data management tools menu

  • Loading branch information
nirvn committed Apr 30, 2018
1 parent 2402b35 commit 57b3c58d06efc60c359c4a444029b07811016247
@@ -87,9 +87,11 @@
<file>themes/default/algorithms/mAlgorithmIntersect.svg</file>
<file>themes/default/algorithms/mAlgorithmLineIntersections.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/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/cap_flat.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.661 2.778h2.91v2.91H.662z" fill="#eeeeec" stroke="#888a85" stroke-width=".265" stroke-linecap="round" stroke-linejoin="round"/><path d="M1.72 1.72h2.91v2.91H1.72z" fill="#eeeeec" stroke="#888a85" stroke-width=".265" stroke-linecap="round" stroke-linejoin="round"/><path d="M2.778.661h2.91v2.91h-2.91z" fill="#eeeeec" stroke="#888a85" stroke-width=".265" stroke-linecap="round" stroke-linejoin="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="M.661.661h2.117V5.69H.661zM3.836.661H5.69V5.69H3.836z" fill="#eeeeec" stroke="#888a85" stroke-width=".265" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.307.265v5.82" fill="none" stroke="#000" stroke-width=".265" stroke-linecap="round" stroke-dasharray=".26458332,.52916663"/></svg>
@@ -27,7 +27,8 @@

import os

from qgis.core import (QgsProcessingUtils,
from qgis.core import (QgsApplication,
QgsProcessingUtils,
QgsFeatureSink,
QgsProcessingParameterFeatureSource,
QgsProcessingParameterField,
@@ -71,6 +72,12 @@ def initAlgorithm(self, config=None):
self.tr('Output directory')))
self.addOutput(QgsProcessingOutputMultipleLayers(self.OUTPUT_LAYERS, self.tr('Output layers')))

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

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

def name(self):
return 'splitvectorlayer'

@@ -35,6 +35,8 @@ class QgsMergeVectorAlgorithm : public QgsProcessingAlgorithm

QgsMergeVectorAlgorithm() = default;
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) override;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmMergeLayers.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmMergeLayers.svg" ) ); }
QString name() const override;
QString displayName() const override;
QStringList tags() const override;

0 comments on commit 57b3c58

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