1148 Commits

Author SHA1 Message Date
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
Nyall Dawson
844a3fb1b1 [processing] Allow help url to be set for models within help edit dialog
Refs #18767
2018-09-26 04:26:49 +10:00
Nyall Dawson
e2082a0935 [processing] Fix modeler help/description generation, allow setting
of model short description text

Fixes #18767
2018-09-26 04:26:49 +10:00
Nyall Dawson
6d1a9295f7 Use correct stylesheet for processing dialogs 2018-09-26 04:26:27 +10:00
Alessandro Pasotti
930c3f8e45 Port makeFeaturesCompatible to C++
as: QgsVectorLayerUtils::makeFeaturesCompatible

With tests.
2018-09-25 08:17:14 +02:00
Nyall Dawson
11991c5297 Fix capitalization 2018-09-25 12:41:12 +10:00
Nyall Dawson
6e06c32a10 [processing] Fix crash when an algorithm dialog is left open and
processing options are changed

Make sure the algorithm dialogs use their own copy of algorithms,
instead of the copies owned by the processing registry. Opening
processing options triggers a full reload of providers, deleting
all existing algorithm instances from the registry first.
2018-09-25 10:32:20 +10:00
Nyall Dawson
9fcd4fd00c Use QgsVectorLayerUtils.matchAttributesToFields in processing in-place edits 2018-09-25 08:49:21 +10:00
Nyall Dawson
adfaf76168 Another Travis fix 2018-09-22 05:26:29 +10:00
Nyall Dawson
0c79d08d05 Fix tests on Travis 2018-09-22 05:26:29 +10:00
Nyall Dawson
7af13f62c0 Set widget context for widget wrappers 2018-09-22 05:26:29 +10:00
Juergen E. Fischer
e85c09254c translation string fix 2018-09-21 15:51:34 +02:00
Nyall Dawson
e2068b8c1f [processing] Pass a copy of the feature to processFeature, not
the original layer's feature

Otherwise python processFeature implementations may return a
modified shallow copy of this feature, which means that the
test for modifications fails, since we're comparing against
the same feature which was modified.

Fixes some python algorithms do not modify features when used
in-place mode.
2018-09-21 18:02:21 +10:00
Nyall Dawson
66f82530bd [processing] Correctly make extent selection combo box non-editable
The choice is supposed to be only from the listed options, and
shouldn't allow free-form user text
2018-09-21 13:16:13 +10:00
Nyall Dawson
f44be44ca9 [processing] Fix capitalization, ellipsis in extent parameter widget 2018-09-21 13:16:13 +10:00
Alessandro Pasotti
42573f7476
Merge pull request #7933 from nyalldawson/edit_in_place_feedback
[processing] Show a message bar success message after running in-place, parameterless alg
2018-09-18 17:14:58 +02:00
nirvn
fb80835911 [processing] fix history dialog alg. execution with CRS params 2018-09-18 14:56:52 +10:00
Nyall Dawson
209b6ee853 Cleaner messagebar item popping 2018-09-18 09:41:09 +10:00
Nyall Dawson
bfc5a1754f [processing] Show a message bar success message after running an
in-place alg if no parameter dialog is shown

Allows users to know that the algorithm has actually run in case
there's no visible changes
2018-09-18 09:40:28 +10:00
Nyall Dawson
f51487551b [processing] Use display name, not alg ID in undo history for in-place mode 2018-09-18 08:27:33 +10:00
olivierdalang
953ea96bfb fixes #19825 2018-09-15 14:56:45 +10:00
Alessandro Pasotti
a60324b79b Accept geometry-less features in a geometry layer 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
699a9a3bfb Raise exception if prepare fails 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
0626a0ff5d Disable some more algs 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
e01449f5c5 Handle bad/null geometries and geometryless 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
7b162b535f Feature fixer: multi part to single part 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
c7ac4fe7fd Fix widget (broken by rebase) 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
08f79bed43 More tests for Z/M add back 2018-09-14 18:23:03 +10:00
Alessandro Pasotti
4549ee5fff In-place moved check logic into QgsAlgorithm
+ new tests
+ fixed fixer function
+ drop z/m
2018-09-14 18:23:03 +10:00
Alessandro Pasotti
11aaf90393 Function to make output features compatible 2018-09-14 18:23:03 +10:00
Nyall Dawson
681d44f11f Messy mockup of feature 2018-09-14 18:23:03 +10:00
Nyall Dawson
6935027ead [processing] Fix API break in widget wrapper
Fixes #19820
2018-09-13 05:40:39 +10:00
Nyall Dawson
97f43d4bb2 [processing] Fix warning on close 2018-09-11 15:40:27 +10:00
Nyall Dawson
ac3b37ffe0 [processing] Fix wrapper value retrieval for some ported wrappers
Fixes #19813
2018-09-11 10:26:36 +10:00
Nyall Dawson
8ecb943a43 Fix some tiny browser icons on hidpi screens 2018-09-10 19:36:03 +10:00
Nyall Dawson
1c5250b147 [processing] Fix some exceptions in batch dialog after refactoring
Fixes #19779, #19786
2018-09-08 17:51:42 +10:00
Loïc Bartoletti
808963bfae Fix error with standardPixmap. signature requires QStyleOption 2018-09-08 07:42:01 +10:00
Luigi Pirelli
bc8a4605d4 Fix Range wrapper to allow Range parameters to be added in modeler. Not yet fully integrated as input paramter 2018-09-08 07:41:11 +10:00
Nyall Dawson
0ea283190b Better (finer) proxy task progress reporting for batch execution 2018-09-07 12:19:48 +10:00
Nyall Dawson
45bc2a0798 [processing] Use multi-step feedback for batch execution
Gives better indication of total progress vs showing just
current algorithm progress
2018-09-07 12:19:48 +10:00
Nyall Dawson
db1600871a [processing] Use a proxy task for batch processing execution 2018-09-07 12:19:48 +10:00
Nyall Dawson
3c2499ba95 Add some notes on deprecated class handling 2018-09-04 19:06:07 +10:00
Nyall Dawson
e76b761dd0 Correctly associate layer with dynamic properties 2018-09-04 19:06:07 +10:00
Nyall Dawson
8082497724 Fix evaluation of Python wrapper values 2018-09-04 19:06:07 +10:00
Nyall Dawson
70c1680754 Automatically handle adding data defined button for dynamic properties
Also exposes this capability to modeler - so that model algorithms
can use data defined parameters within their child algorithms.

TODO:
- tests
- setting the associated vector layer
2018-09-04 19:06:07 +10:00
Nyall Dawson
a717b85e2e [FEATURE][processing] New modeler parameter widget
A new widget which handles parameter values for child algorithms
within a model. Instead of the previous approach of requiring
individual widget wrappers to handle creation of a suitable
model widget, we do all this automatically for them.

This widget uses a stacked widget with a toolbutton to select
the parameter's source, instead of the previous combo box approach
(which didn't scale well for large models). I.e. users select
first whether the value is taken from a static value, a
model input, or an output from a different child algorithm. The
widget then changes appearance and behavior based on this
choice.

Additionally, a new option is present for all parameters
of using a "precalculated expression". This expression is
evaluated once before the child algorithm is executed
and used during the execution of that algorithm.
2018-09-04 19:06:07 +10:00
Nyall Dawson
644ef6a752 [processing] Initial work on porting base GUI classes to c++
- Add abstract base class for Processing widget wrappers to c++
- Add wrapper factory interface to c++
- Make QgsProcessingGuiRegistry also register widget wrapper
factories, and be responsible for creation of new c++
processing widget wrapper instances
- Start on private c++ implementation of boolean widget wrapper,
including unit tests
2018-09-04 19:06:07 +10:00
nirvn
97adef21bd [processing] multiple band selection wrapper should return list of ints 2018-09-04 10:07:07 +07:00
nirvn
13ecaa4190 [needs-docs][processing] Add a multiple selection mode to the band parameter 2018-09-04 10:07:07 +07:00
Juergen E. Fischer
1cc1f16501 Fix translation string
(caused "tx ERROR: Error received from server: Qt Linguist variants are
not yet supported." on vanish)
2018-08-22 10:40:23 +02:00