Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] replace some raster icons with SVG to improve HiDPI supp…
…ort (refs #14474)
  • Loading branch information
alexbruy committed Mar 28, 2016
1 parent 332552e commit 0505ad0
Show file tree
Hide file tree
Showing 14 changed files with 698 additions and 6 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/gdal/GdalAlgorithm.py
Expand Up @@ -41,7 +41,7 @@
class GdalAlgorithm(GeoAlgorithm):

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdal.png'))
return QIcon(os.path.join(pluginPath, 'images', 'gdal.svg'))

def getCustomParametersDialog(self):
return GdalAlgorithmDialog(self)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass/GrassAlgorithm.py
Expand Up @@ -77,7 +77,7 @@ def getCopy(self):
return newone

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'grass.png'))
return QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))

def help(self):
return False, 'http://grass.osgeo.org/grass64/manuals/' + self.grassName + '.html'
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/grass7/Grass7Algorithm.py
Expand Up @@ -84,7 +84,7 @@ def getCopy(self):
return newone

def getIcon(self):
return QIcon(os.path.join(pluginPath, 'images', 'grass.png'))
return QIcon(os.path.join(pluginPath, 'images', 'grass.svg'))

def help(self):
localDoc = None
Expand Down
Expand Up @@ -149,7 +149,7 @@ class QGISAlgorithmProvider(AlgorithmProvider):

def __init__(self):
AlgorithmProvider.__init__(self)
self._icon = QIcon(os.path.join(pluginPath, 'images', 'qgis.png'))
self._icon = QIcon(os.path.join(pluginPath, 'images', 'qgis.svg'))

self.alglist = [SumLines(), PointsInPolygon(),
PointsInPolygonWeighted(), PointsInPolygonUnique(),
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/algs/r/RAlgorithm.py
Expand Up @@ -74,7 +74,7 @@ def __init__(self, descriptionFile, script=None):
self.defineCharacteristicsFromFile()

def getIcon(self):
return QIcon(os.path.dirname(__file__) + '/../../images/r.png')
return QIcon(os.path.dirname(__file__) + '/../../images/r.svg')

def defineCharacteristicsFromScript(self):
lines = self.script.split('\n')
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/images/CMakeLists.txt
@@ -1,3 +1,3 @@
FILE(GLOB IMAGE_FILES *.png *.gif)
FILE(GLOB IMAGE_FILES *.png *.gif *.svg)

PLUGIN_INSTALL(processing ./images ${IMAGE_FILES})
Binary file removed python/plugins/processing/images/gdal.png
Binary file not shown.
126 changes: 126 additions & 0 deletions python/plugins/processing/images/gdal.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed python/plugins/processing/images/grass.png
Binary file not shown.

0 comments on commit 0505ad0

Please sign in to comment.