Skip to content

Commit

Permalink
[processing] add missing icons for the geometry tools menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Apr 30, 2018
1 parent 84bdd47 commit df28351
Show file tree
Hide file tree
Showing 14 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions images/images.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,17 @@
<file>splash/splash.png</file>
<file>composer/missing_image.svg</file>
<file>themes/default/algorithms/mAlgorithmBuffer.svg</file>
<file>themes/default/algorithms/mAlgorithmCentroids.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/mAlgorithmDifference.svg</file>
<file>themes/default/algorithms/mAlgorithmDissolve.svg</file>
<file>themes/default/algorithms/mAlgorithmExtractVertices.svg</file>
<file>themes/default/algorithms/mAlgorithmIntersect.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/mAlgorithmSymmetricalDifference.svg</file>
<file>themes/default/algorithms/mAlgorithmUnion.svg</file>
<file>themes/default/cap_flat.svg</file>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/algorithms/mAlgorithmCentroids.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/themes/default/algorithms/mAlgorithmCollect.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/themes/default/algorithms/mAlgorithmSimplify.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmcentroid.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class QgsCentroidAlgorithm : public QgsProcessingFeatureBasedAlgorithm
public:

QgsCentroidAlgorithm() = default;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmCentroids.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmCentroids.svg" ) ); }
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmdissolve.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ class QgsCollectAlgorithm : public QgsCollectorAlgorithm
public:

QgsCollectAlgorithm() = default;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmCollect.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmCollect.svg" ) ); }
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) override;
QString name() const override;
QString displayName() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmextractvertices.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class QgsExtractVerticesAlgorithm : public QgsProcessingAlgorithm
public:

QgsExtractVerticesAlgorithm() = default;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmExtractVertices.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmExtractVertices.svg" ) ); }
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) override;
QString name() const override;
QString displayName() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmmultiparttosinglepart.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class QgsMultipartToSinglepartAlgorithm : public QgsProcessingFeatureBasedAlgori
public:

QgsMultipartToSinglepartAlgorithm() = default;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmMultiToSingle.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmMultiToSingle.svg" ) ); }
QString name() const override;
QString displayName() const override;
QString outputName() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmpointonsurface.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ class QgsPointOnSurfaceAlgorithm : public QgsProcessingFeatureBasedAlgorithm
public:

QgsPointOnSurfaceAlgorithm() = default;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmCentroids.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmCentroids.svg" ) ); }
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmpromotetomultipart.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class QgsPromoteToMultipartAlgorithm : public QgsProcessingFeatureBasedAlgorithm
public:

QgsPromoteToMultipartAlgorithm() = default;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmSingleToMulti.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmSingleToMulti.svg" ) ); }
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmsimplify.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class QgsSimplifyAlgorithm : public QgsProcessingFeatureBasedAlgorithm
public:

QgsSimplifyAlgorithm() = default;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmSimplify.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmSimplify.svg" ) ); }
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down

0 comments on commit df28351

Please sign in to comment.