Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] add vector icons for geoprocessing tools menu
  • Loading branch information
nirvn committed Apr 30, 2018
1 parent f8a3de4 commit 1370a5c
Show file tree
Hide file tree
Showing 17 changed files with 32 additions and 4 deletions.
8 changes: 8 additions & 0 deletions images/images.qrc
Expand Up @@ -76,6 +76,14 @@
<file>north_arrows/gpsarrow2.svg</file>
<file>splash/splash.png</file>
<file>composer/missing_image.svg</file>
<file>themes/default/algorithms/mAlgorithmBuffer.svg</file>
<file>themes/default/algorithms/mAlgorithmClip.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/mAlgorithmIntersect.svg</file>
<file>themes/default/algorithms/mAlgorithmSymmetricalDifference.svg</file>
<file>themes/default/algorithms/mAlgorithmUnion.svg</file>
<file>themes/default/cap_flat.svg</file>
<file>themes/default/cap_round.svg</file>
<file>themes/default/cap_square.svg</file>
Expand Down
1 change: 1 addition & 0 deletions images/themes/default/algorithms/mAlgorithmBuffer.svg
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/mAlgorithmClip.svg
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/mAlgorithmConvexHull.svg
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/mAlgorithmDifference.svg
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/mAlgorithmDissolve.svg
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/mAlgorithmIntersect.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/mAlgorithmUnion.svg
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/qgsalgorithmbuffer.h
Expand Up @@ -35,6 +35,8 @@ class QgsBufferAlgorithm : public QgsProcessingAlgorithm

QgsBufferAlgorithm() = default;
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) override;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmBuffer.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmBuffer.svg" ) ); }
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmclip.h
Expand Up @@ -35,6 +35,8 @@ class QgsClipAlgorithm : public QgsProcessingAlgorithm

QgsClipAlgorithm() = default;
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) override;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmClip.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmClip.svg" ) ); }
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmconvexhull.h
Expand Up @@ -35,6 +35,8 @@ class QgsConvexHullAlgorithm : public QgsProcessingFeatureBasedAlgorithm
public:

QgsConvexHullAlgorithm() = default;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmConvexHull.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmConvexHull.svg" ) ); }
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down
3 changes: 2 additions & 1 deletion src/analysis/processing/qgsalgorithmdifference.h
Expand Up @@ -26,7 +26,8 @@ class QgsDifferenceAlgorithm : public QgsProcessingAlgorithm
{
public:
QgsDifferenceAlgorithm() = default;

QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmDifference.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmDifference.svg" ) ); }
virtual QString name() const override;
virtual QString displayName() const override;
virtual QString group() const override;
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmdissolve.h
Expand Up @@ -46,6 +46,8 @@ class QgsDissolveAlgorithm : public QgsCollectorAlgorithm

QgsDissolveAlgorithm() = default;
void initAlgorithm( const QVariantMap &configuration = QVariantMap() ) override;
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmDissolve.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmDissolve.svg" ) ); }
QString name() const override;
QString displayName() const override;
QStringList tags() const override;
Expand Down
3 changes: 2 additions & 1 deletion src/analysis/processing/qgsalgorithmintersection.h
Expand Up @@ -26,7 +26,8 @@ class QgsIntersectionAlgorithm : public QgsProcessingAlgorithm
{
public:
QgsIntersectionAlgorithm() = default;

QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmIntersect.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmIntersect.svg" ) ); }
virtual QString name() const override;
virtual QString displayName() const override;
virtual QString group() const override;
Expand Down
3 changes: 2 additions & 1 deletion src/analysis/processing/qgsalgorithmsymmetricaldifference.h
Expand Up @@ -26,7 +26,8 @@ class QgsSymmetricalDifferenceAlgorithm : public QgsProcessingAlgorithm
{
public:
QgsSymmetricalDifferenceAlgorithm() = default;

QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmSymmetricalDifference.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmSymmetricalDifference.svg" ) ); }
virtual QString name() const override;
virtual QString displayName() const override;
virtual QString group() const override;
Expand Down
3 changes: 2 additions & 1 deletion src/analysis/processing/qgsalgorithmunion.h
Expand Up @@ -27,7 +27,8 @@ class QgsUnionAlgorithm : public QgsProcessingAlgorithm
{
public:
QgsUnionAlgorithm() = default;

QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/algorithms/mAlgorithmUnion.svg" ) ); }
QString svgIconPath() const override { return QgsApplication::iconPath( QStringLiteral( "/algorithms/mAlgorithmUnion.svg" ) ); }
virtual QString name() const override;
virtual QString displayName() const override;
virtual QString group() const override;
Expand Down

0 comments on commit 1370a5c

Please sign in to comment.