Skip to content
Permalink
Browse files

[processing] add missed multiple input parameter to modeler

  • Loading branch information
alexbruy committed Aug 8, 2016
1 parent 313a049 commit 3461c7e1a7ced2ab23ec0f61822c38734bc67780
Showing with 4 additions and 3 deletions.
  1. +4 −3 python/plugins/processing/modeler/ModelerParameterDefinitionDialog.py
@@ -69,9 +69,9 @@ class ModelerParameterDefinitionDialog(QDialog):
PARAMETER_FILE = 'File'
PARAMETER_POINT = 'Point'
PARAMETER_CRS = 'CRS'
PARAMETER_MULTIPLE = 'Multiple input'

# To add
PARAMETER_MULTIPLE = 'Multiple input'
PARAMETER_FIXED_TABLE = 'Fixed table'

paramTypes = [
@@ -86,7 +86,8 @@ class ModelerParameterDefinitionDialog(QDialog):
PARAMETER_TABLE_MULTIPLE_FIELD,
PARAMETER_VECTOR,
PARAMETER_POINT,
PARAMETER_CRS
PARAMETER_CRS,
PARAMETER_MULTIPLE
]

def __init__(self, alg, paramType=None, param=None):
@@ -193,7 +194,7 @@ def setupUi(self):
self.datatypeCombo.addItem(self.tr('Vector (line)'))
self.datatypeCombo.addItem(self.tr('Vector (polygon)'))
self.datatypeCombo.addItem(self.tr('Raster'))
self.datatypeCombo.addItem(self.tr('Table'))
self.datatypeCombo.addItem(self.tr('File'))
if self.param is not None:
self.datatypeCombo.setCurrentIndex(self.param.datatype + 1)
self.horizontalLayoutParent.addWidget(self.datatypeCombo)

0 comments on commit 3461c7e

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