Skip to content
Permalink
Browse files

[processing] more HiDPI fixes (refs #14474)

  • Loading branch information
alexbruy committed Apr 1, 2016
1 parent 32b5faa commit aef26c90f32430b7e45518e32e76e5a81e712dff
Showing with 223 additions and 27 deletions.
  1. +1 −1 python/plugins/processing/algs/gdal/GdalOgrAlgorithmProvider.py
  2. +1 −1 python/plugins/processing/algs/grass/GrassAlgorithmProvider.py
  3. +1 −1 python/plugins/processing/algs/grass7/Grass7AlgorithmProvider.py
  4. +1 −1 python/plugins/processing/algs/r/RAlgorithmProvider.py
  5. +1 −1 python/plugins/processing/algs/taudem/TauDEMAlgorithm.py
  6. +1 −1 python/plugins/processing/algs/taudem/TauDEMAlgorithmProvider.py
  7. +1 −1 python/plugins/processing/algs/taudem/dinfdistdown.py
  8. +1 −1 python/plugins/processing/algs/taudem/dinfdistdown_multi.py
  9. +1 −1 python/plugins/processing/algs/taudem/dinfdistup.py
  10. +1 −1 python/plugins/processing/algs/taudem/dinfdistup_multi.py
  11. +1 −1 python/plugins/processing/algs/taudem/dinftranslimaccum.py
  12. +1 −1 python/plugins/processing/algs/taudem/dinftranslimaccum2.py
  13. +1 −1 python/plugins/processing/algs/taudem/dinftranslimaccum2_multi.py
  14. +1 −1 python/plugins/processing/algs/taudem/dinftranslimaccum_multi.py
  15. +1 −1 python/plugins/processing/algs/taudem/dropanalysis.py
  16. +1 −1 python/plugins/processing/algs/taudem/dropanalysis_multi.py
  17. +1 −1 python/plugins/processing/algs/taudem/gridnet.py
  18. +1 −1 python/plugins/processing/algs/taudem/gridnet_multi.py
  19. +1 −1 python/plugins/processing/algs/taudem/lengtharea.py
  20. +1 −1 python/plugins/processing/algs/taudem/lengtharea_multi.py
  21. +1 −1 python/plugins/processing/algs/taudem/peukerdouglas.py
  22. +1 −1 python/plugins/processing/algs/taudem/peukerdouglas_multi.py
  23. +1 −1 python/plugins/processing/algs/taudem/slopearea.py
  24. +1 −1 python/plugins/processing/algs/taudem/slopearea_multi.py
  25. +1 −1 python/plugins/processing/gui/CreateNewScriptAction.py
  26. +2 −2 python/plugins/processing/gui/GetScriptsAndModels.py
  27. BIN python/plugins/processing/images/taudem.png
  28. +196 −0 python/plugins/processing/images/taudem.svg
@@ -105,7 +105,7 @@ def getName(self):
return 'gdalogr'

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

def _loadAlgorithms(self):
self.algs = self.preloadedAlgs
@@ -98,7 +98,7 @@ def getName(self):
return 'grass'

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

def getSupportedOutputVectorLayerExtensions(self):
return ['shp']
@@ -102,7 +102,7 @@ def getName(self):
return 'grass70'

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

def getSupportedOutputVectorLayerExtensions(self):
return ['shp']
@@ -86,7 +86,7 @@ def unload(self):
ProcessingConfig.removeSetting(RUtils.R_USE64)

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

def getDescription(self):
return 'R scripts'
@@ -59,7 +59,7 @@ def getCopy(self):
return newone

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

def defineCharacteristicsFromFile(self):
lines = open(self.descriptionFile)
@@ -71,7 +71,7 @@ def getName(self):
return 'taudem'

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

def initializeSettings(self):
AlgorithmProvider.initializeSettings(self)
@@ -65,7 +65,7 @@ class DinfDistDown(GeoAlgorithm):
}

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Distance Down')
@@ -66,7 +66,7 @@ class DinfDistDownMulti(GeoAlgorithm):
}

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Distance Down (multifile)')
@@ -66,7 +66,7 @@ class DinfDistUp(GeoAlgorithm):
}

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Distance Up')
@@ -67,7 +67,7 @@ class DinfDistUpMulti(GeoAlgorithm):
}

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Distance Up (multifile)')
@@ -56,7 +56,7 @@ class DinfTransLimAccum(GeoAlgorithm):
OUT_CONCENTR_GRID = 'OUT_CONCENTR_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Transport Limited Accumulation')
@@ -56,7 +56,7 @@ class DinfTransLimAccum2(GeoAlgorithm):
OUT_CONCENTR_GRID = 'OUT_CONCENTR_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Transport Limited Accumulation - 2')
@@ -56,7 +56,7 @@ class DinfTransLimAccum2Multi(GeoAlgorithm):
OUT_CONCENTR_GRID = 'OUT_CONCENTR_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Transport Limited Accumulation - 2 (multifile)')
@@ -56,7 +56,7 @@ class DinfTransLimAccumMulti(GeoAlgorithm):
OUT_CONCENTR_GRID = 'OUT_CONCENTR_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('D-Infinity Transport Limited Accumulation (multifile)')
@@ -60,7 +60,7 @@ class DropAnalysis(GeoAlgorithm):
STEPS = ['Logarithmic', 'Linear']

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Stream Drop Analysis')
@@ -60,7 +60,7 @@ class DropAnalysisMulti(GeoAlgorithm):
STEPS = ['Logarithmic', 'Linear']

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Stream Drop Analysis (multifile)')
@@ -54,7 +54,7 @@ class GridNet(GeoAlgorithm):
STRAHLER_GRID = 'STRAHLER_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Grid Network')
@@ -54,7 +54,7 @@ class GridNetMulti(GeoAlgorithm):
STRAHLER_GRID = 'STRAHLER_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Grid Network (multifile)')
@@ -51,7 +51,7 @@ class LengthArea(GeoAlgorithm):
STREAM_SOURCE_GRID = 'STREAM_SOURCE_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Length Area Stream Source')
@@ -51,7 +51,7 @@ class LengthAreaMulti(GeoAlgorithm):
STREAM_SOURCE_GRID = 'STREAM_SOURCE_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Length Area Stream Source (multifile)')
@@ -48,7 +48,7 @@ class PeukerDouglas(GeoAlgorithm):
STREAM_SOURCE_GRID = 'STREAM_SOURCE_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Peuker Douglas')
@@ -50,7 +50,7 @@ class PeukerDouglasMulti(GeoAlgorithm):
STREAM_SOURCE_GRID = 'STREAM_SOURCE_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Peuker Douglas (multifile)')
@@ -51,7 +51,7 @@ class SlopeArea(GeoAlgorithm):
SLOPE_AREA_GRID = 'SLOPE_AREA_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Slope Area Combination')
@@ -51,7 +51,7 @@ class SlopeAreaMulti(GeoAlgorithm):
SLOPE_AREA_GRID = 'SLOPE_AREA_GRID'

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

def defineCharacteristics(self):
self.name, self.i18n_name = self.trAlgorithm('Slope Area Combination (multifile)')
@@ -49,7 +49,7 @@ def getIcon(self):
if self.scriptType == self.SCRIPT_PYTHON:
return QIcon(os.path.join(pluginPath, 'images', 'script.png'))
elif self.scriptType == self.SCRIPT_R:
return QIcon(os.path.join(pluginPath, 'images', 'r.png'))
return QIcon(os.path.join(pluginPath, 'images', 'r.svg'))

def execute(self):
dlg = None
@@ -75,7 +75,7 @@ def __init__(self):
self.group = self.tr('Tools', 'GetRScriptsAction')

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

def execute(self):
dlg = GetScriptsAndModelsDialog(GetScriptsAndModelsDialog.RSCRIPTS)
@@ -138,7 +138,7 @@ def __init__(self, resourceType):
else:
self.folder = RUtils.RScriptsFolder()
self.urlBase = 'https://raw.githubusercontent.com/qgis/QGIS-Processing/master/rscripts/'
self.icon = QIcon(os.path.join(pluginPath, 'images', 'r.png'))
self.icon = QIcon(os.path.join(pluginPath, 'images', 'r.svg'))

self.lastSelectedItem = None
self.updateToolbox = False
Binary file not shown.

0 comments on commit aef26c9

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