Alessandro Pasotti
a9652316af
Tiny cosmetic fix: error by 1 on iteration counter text
2019-02-23 15:30:57 +01:00
Víctor Olaya
13bff9620c
[processing] do not allow using unsupported file formats
...
Show warning message if user selects incompatible output file format
fixes #21089
2019-02-23 05:24:56 +10:00
Alessandro Pasotti
ff9a65c1b4
Merge pull request #9193 from elpaso/bugfix-21270-processing-algrunner-crash
...
Processing: fix crash in alg runner task with bad scripts
2019-02-20 07:43:50 +01:00
Nyall Dawson
7acfefadad
Fix infinite progress when an algorithm could not be created
2019-02-20 13:05:13 +10:00
Nyall Dawson
521ebdc973
[processing] Wrappers built off old API can still take advantage of the full widget context
2019-02-20 05:39:04 +10:00
Nyall Dawson
29fa7b6e7b
Fix build, indentation
2019-02-13 07:59:30 +10:00
Nyall Dawson
60a1d6306f
Fix some missing expression context variables in processing expression based widgets
2019-02-13 07:59:30 +10:00
Nyall Dawson
7f3640d8a1
[processing] Fix evaluation of linked parameters in batch mode
...
e.g. missing fields after selecting a layer parameter
2019-02-08 06:38:49 +11:00
Nyall Dawson
f77cf4fae4
[processing] Formalise object design for ContextAction, allow icons to be set
2019-02-01 17:54:28 +11:00
Nyall Dawson
5bfec27938
[processing] do not show geometryless layers in extent selector
...
Fixes #21129
2019-01-31 17:52:29 +11:00
Víctor Olaya
6eaa511eed
[processing] show warning when file-based layer could not be loaded and dependent params updated
...
For algorithms with multiple parameters depending on a vector layer parameter, the code that loads the layer in the background is called repeatedly, impacting performance. A small layer cache is implemented with these changes, so the dialog only tries to load the layer once.
2019-01-29 11:12:23 +11:00
Nyall Dawson
431861a468
[processing] Add a better API for specifying that outputs are temporary
...
Instead of requiring clients to generate temporary file names themselves,
(or use the cryptic "memory:" string!), this PR adds a static constant
QgsProcessing.TEMPORARY_OUTPUT
If a layer/sink output parameter is set to QgsProcessing.TEMPORARY_OUTPUT,
then the temporary output filename will be generated automatically at
algorithm run time. This means callers don't need to mess around with
finding appropriate temporary folders and paths.
Another benefit is that TEMPORARY_OUTPUT is stored in the processing
history, so if you re-run a previous algorithm which was set to
output to a temporary file, it no longer tries to use that same
previous temporary path and instead generates a new one.
2019-01-25 23:27:08 +11:00
Nyall Dawson
db3b9aeb6b
Revert "[processing] hide 'select file' button for vector layers when there are dependent params"
...
This reverts commit f2044528951bbb09a70b9c696d79d8cd5b756214.
It's a contentious fix, which needs discussion
2019-01-23 17:30:47 +10:00
volaya
eb47288fac
[processing] correctly set output styles for models
...
fixes #20573
2019-01-23 08:02:19 +01:00
volaya
f204452895
[processing] hide 'select file' button for vector layers when there are dependent params
...
fixes #21055
2019-01-23 08:02:18 +01:00
Alexander Bruy
37f14f8b3f
add value changed signal for extent parameter widget wrapper
2018-12-30 06:44:09 +02:00
Alessandro Pasotti
40fb2ce93d
Drop the ugly hack in favor of sourceFlags
2018-12-21 13:20:41 +01:00
Alessandro Pasotti
f4d7506e73
Processing in-place do not check validity when fixing geometries
...
Fixes #20812
2018-12-21 11:47:36 +01:00
Peter Petrik
9ce7e54fb1
allow selection of file paths for mesh layers [processings] ( #8702 )
...
allow selection of file paths for mesh layers
2018-12-20 15:04:02 +01:00
Peter Petrik
e71660215c
[processing] add QgsProcessingParameterMeshLayer parameter
2018-12-17 11:50:53 +01:00
Nyall Dawson
9c1653f00a
[processing] Fix exception on launching refactor fields
...
(The logic with parameter widget_wrapper metadata is very gross -
but there's nothing we can do about it till 4.0!)
Fixes #20707
2018-12-05 04:47:55 +10:00
volaya
e546129f5c
[processing] fixed update of MultipleInputPanel after alg is run
...
Fixes #20670
2018-11-30 09:17:07 +01:00
Nyall Dawson
59d2c5301f
[processing] Fix exception when parameter metadata is set to extend inbuilt wrapper type
2018-11-30 05:02:59 +10:00
Nyall Dawson
f10b62c380
[processing] Fix crash on closing batch processing dialog
...
Refs #20650
2018-11-29 10:57:07 +10:00
Nyall Dawson
d207251251
[processing] Fix run as batch mode doesn't execute
...
Fixes #20650
2018-11-29 10:57:07 +10:00
Nyall Dawson
2c425c7bf0
Fix unit test
2018-11-23 20:32:16 +11:00
Nyall Dawson
0e928e8191
[processing] Correctly set parent widgets for algorithm dialogs
...
to avoid dialogs immediately going out of scope and being garbage
collected
2018-11-23 20:32:16 +11:00
Nyall Dawson
2617fd56f7
Fix context going out of scope
2018-11-23 20:32:16 +11:00
Nyall Dawson
6fff62e668
Fix confusing override of accept method for non-dialog acceptance
2018-11-23 20:32:16 +11:00
Håvard Tveite
ce313755d7
GDAL extractreprojection missing from the raster menu
...
This was missed in #8378 .
2018-11-18 08:59:24 +10:00
Nyall Dawson
0d5a8ddd8e
[processing] Fix exceptions due to closed algorithm dialogs when
...
opened from toolbox and closed before task completes
2018-10-29 10:49:46 +10:00
Borys Jurgiel
d0813a8822
Introduce QgsGui::HigFlags and don't capitalize menu entries and dialog titles in languages other than English. Fixes #19724
2018-10-25 18:11:36 +10:00
Nyall Dawson
0fad3e5731
Fix build with newer sip versions
...
Fixes #19476
2018-10-24 08:10:50 +10:00
Nyall Dawson
b2a2a2603c
Add fallback to parameter's name to be safe
2018-10-23 12:42:08 +10:00
Nyall Dawson
e5f52f98c2
[processing] Use outputi database layer name instead of file name when
...
'use filename as layer name' is checked
Avoids raw uri layer names for database type destinations
2018-10-23 12:42:08 +10:00
Alessandro Pasotti
dcd33186bb
[in-place] Fix alg runner when context is none
2018-10-20 10:05:48 +02:00
Alessandro Pasotti
adb930b204
Speed up getFeatures query by using a proper QgsFeatureRequest
2018-10-19 16:27:18 +02:00
Alessandro Pasotti
71e2a6be7e
In-place passthrough for invalid geometries if processing option is to skip invalid
...
Fixes #20147 - difference deletes invalid geometries
2018-10-18 17:43:00 +02:00
Alessandro Pasotti
cdf5bb630f
Fix test
2018-10-05 11:03:49 +02:00
Alessandro Pasotti
29c4970f8a
[processing] In-place add layer name to dlg title and store active layer
2018-10-05 10:10:20 +02:00
Alessandro Pasotti
0782b9d869
Dynamically change button text for in-place editing
...
The button title changes if there are selected features
2018-10-05 09:21:28 +02:00
Alessandro Pasotti
ca1c65d07a
[processing] In place editing triggers editing and select all
...
If the active layer is not editable, the executor will
try to switch editing on.
If there are no selected features, the executor will
select all features before running.
2018-10-05 08:53:30 +02:00
Nyall Dawson
706b13a47b
[processing] Make 'canvas extent' its own menu item in the extent
...
selection parameter button, instead of requiring opening the
'select layer/canvas extent' and choosing 'canvas extent'
It's only one extra click, but I don't think there's any reason
against saving this click!
2018-10-05 05:17:19 +10:00
Nyall Dawson
57f77d01cb
[processing] Fix in-place mode results in unknown distance units
...
We need to still create the parameter wrappers when in in-place mode
for the input/output parameters, as some other wrappers may rely
on these for various interactions (e.g. getting the crs/fields
from the input layer)
Fixes #19990
2018-10-02 19:51:02 +10:00
Nyall Dawson
68dee5b17f
[processing] Remove hack
2018-10-02 16:46:16 +10:00
Nyall Dawson
c8bf6db363
[processing] Give progress reports/allow cancelation in in-place mode
2018-10-02 16:46:16 +10:00
Nyall Dawson
5508ea036e
Use a custom folder icon instead of O/S folder icon
...
...because using O/S folder icon can causes crashes.
Fixes #18260
2018-10-01 16:19:56 +10:00
Nyall Dawson
08cece22b0
[processing] Fix some exceptions when running in iterate mode
2018-10-01 16:13:38 +10:00
Nyall Dawson
644ea71cc9
[processing] Some History dialog UX fixes:
...
- fix tiny folder icon on hidpi
- remember window geometry
2018-10-01 10:50:02 +10:00
Alessandro Pasotti
51574069a0
Fixes blocking if the edit in place functionality is used in the locator bar (with ef) on an non-modifiable layer
...
Fixes #19950
2018-09-26 14:19:58 +02:00