Skip to content
Permalink
Browse files

[processing] Implement a todo (set layer param's wrapper values)

  • Loading branch information
nyalldawson committed Dec 21, 2017
1 parent 1f6d1a6 commit 595b9812ce0b4e2a5874344e541eabd022e8fb69
Showing with 21 additions and 3 deletions.
  1. +21 −3 python/plugins/processing/gui/wrappers.py
@@ -782,7 +782,13 @@ def selectFile(self):

def setValue(self, value):
if self.dialogType == DIALOG_STANDARD:
pass # TODO
if self.combo.findText(value) >= 0:
self.combo.setCurrentIndex(self.combo.findText(value))
else:
items = self.combo.additionalItems()
items.append(value)
self.combo.setAdditionalItems(items)
self.combo.setCurrentIndex(self.combo.findText(value))
elif self.dialogType == DIALOG_BATCH:
self.widget.setText(value)
else:
@@ -985,7 +991,13 @@ def selectFile(self):

def setValue(self, value):
if self.dialogType == DIALOG_STANDARD:
pass # TODO
if self.combo.findText(value) >= 0:
self.combo.setCurrentIndex(self.combo.findText(value))
else:
items = self.combo.additionalItems()
items.append(value)
self.combo.setAdditionalItems(items)
self.combo.setCurrentIndex(self.combo.findText(value))
elif self.dialogType == DIALOG_BATCH:
self.widget.setValue(value)
else:
@@ -1262,7 +1274,13 @@ def selectFile(self):

def setValue(self, value):
if self.dialogType == DIALOG_STANDARD:
pass # TODO
if self.combo.findText(value) >= 0:
self.combo.setCurrentIndex(self.combo.findText(value))
else:
items = self.combo.additionalItems()
items.append(value)
self.combo.setAdditionalItems(items)
self.combo.setCurrentIndex(self.combo.findText(value))
elif self.dialogType == DIALOG_BATCH:
return self.widget.setText(value)
else:

0 comments on commit 595b981

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