@@ -102,15 +102,28 @@ def accept(self):
102
102
for param in alg .parameters :
103
103
if param .hidden :
104
104
continue
105
-
105
+ if isinstance (param , ParameterExtent ):
106
+ col += 1
107
+ continue
106
108
widget = self .mainWidget .tblParameters .cellWidget (row , col )
107
109
if not self .setParamValue (param , widget , alg ):
108
110
self .lblProgress .setText (
109
111
self .tr ('<b>Missing parameter value: %s (row %d)</b>' ) % (param .description , row + 1 ))
110
112
self .algs = None
111
113
return
112
114
col += 1
113
-
115
+ col = 0
116
+ for param in alg .parameters :
117
+ if param .hidden :
118
+ continue
119
+ if isinstance (param , ParameterExtent ):
120
+ widget = self .mainWidget .tblParameters .cellWidget (row , col )
121
+ if not self .setParamValue (param , widget , alg ):
122
+ self .lblProgress .setText (
123
+ self .tr ('<b>Missing parameter value: %s (row %d)</b>' ) % (param .description , row + 1 ))
124
+ self .algs = None
125
+ return
126
+ col += 1
114
127
for out in alg .outputs :
115
128
if out .hidden :
116
129
continue
@@ -145,7 +158,7 @@ def accept(self):
145
158
pass
146
159
147
160
for count , alg in enumerate (self .algs ):
148
- self .setText (self .tr ('Processing algorithm %d/%d...' ) % (count + 1 , len (self .algs )))
161
+ self .setText (self .tr ('\n Processing algorithm %d/%d...' ) % (count + 1 , len (self .algs )))
149
162
self .setInfo (self .tr ('<b>Algorithm %s starting...</b>' % alg .name ))
150
163
if runalg (alg , self ) and not self .canceled :
151
164
if self .load [count ]:
@@ -166,7 +179,7 @@ def finish(self):
166
179
167
180
self .mainWidget .setEnabled (True )
168
181
QMessageBox .information (self , self .tr ('Batch processing' ),
169
- self .tr ('Batch processing successfully completed! ' ))
182
+ self .tr ('Batch processing completed' ))
170
183
171
184
def loadHTMLResults (self , alg , num ):
172
185
for out in alg .outputs :
0 commit comments