Skip to content

Commit

Permalink
[processing] add missed multiple input parameter to modeler
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Aug 8, 2016
1 parent 313a049 commit 3461c7e
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -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 = [
Expand All @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 3461c7e

Please sign in to comment.