Skip to content

Commit

Permalink
Whitespace fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 18, 2016
1 parent 1e3172e commit 7e90d57
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions python/plugins/processing/algs/gdal/GdalAlgorithmDialog.py
Expand Up @@ -58,6 +58,7 @@ def __init__(self, alg):
QgsMapLayerRegistry.instance().layerWasAdded.connect(self.mainWidget.layerAdded)
QgsMapLayerRegistry.instance().layersWillBeRemoved.connect(self.mainWidget.layersWillBeRemoved)


class GdalParametersPanel(ParametersPanel):

def __init__(self, parent, alg):
Expand Down
2 changes: 0 additions & 2 deletions python/plugins/processing/core/ProcessingLog.py
Expand Up @@ -143,5 +143,3 @@ class LogEntry:
def __init__(self, date, text):
self.date = date
self.text = text


1 change: 0 additions & 1 deletion python/plugins/processing/gui/AlgorithmDialog.py
Expand Up @@ -86,7 +86,6 @@ def __init__(self, alg):
QgsMapLayerRegistry.instance().layerWasAdded.connect(self.mainWidget.layerAdded)
QgsMapLayerRegistry.instance().layersWillBeRemoved.connect(self.mainWidget.layersWillBeRemoved)


def runAsBatch(self):
dlg = BatchAlgorithmDialog(self.alg)
dlg.show()
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/gui/BatchPanel.py
Expand Up @@ -223,7 +223,6 @@ def setValueInWidget(self, widget, value):
elif isinstance(widget, CrsSelectionPanel):
widget.setAuthId(value)


def save(self):
toSave = []
for row in range(self.tblParameters.rowCount()):
Expand Down
1 change: 0 additions & 1 deletion python/plugins/processing/gui/MultipleInputPanel.py
Expand Up @@ -85,4 +85,3 @@ def updateForOptions(self, options):
pass
self.options = options
self.setSelectedItems(selectedoptions)

3 changes: 3 additions & 0 deletions python/plugins/processing/tools/dataobjects.py
Expand Up @@ -89,20 +89,23 @@ def getVectorLayers(shapetype=[-1], sorting=True):
else:
return vector


def canUseVectorLayer(layer, shapetype):
if layer.type() == QgsMapLayer.VectorLayer and layer.dataProvider().name() != "grass":
if (layer.hasGeometryType() and
(shapetype == ALL_TYPES or layer.geometryType() in shapetype)):
return True
return False


def canUseRasterLayer(layer):
if layer.type() == QgsMapLayer.RasterLayer:
if layer.providerType() == 'gdal': # only gdal file-based layers
return True

return False


def getAllLayers():
layers = []
layers += getRasterLayers()
Expand Down

0 comments on commit 7e90d57

Please sign in to comment.