50606 Commits

Author SHA1 Message Date
Nyall Dawson
7af13f62c0 Set widget context for widget wrappers 2018-09-22 05:26:29 +10:00
Nyall Dawson
55e22b9de9 Allow setting the context for widget wrappers
The context contains settings which reflect the context ini
which a Processing parameter widget is shown, e.g., the
parent model algorithm, a linked map canvas, and other relevant
information which allows the widget to fine-tune its behavior.
2018-09-22 05:26:29 +10:00
Nyall Dawson
33eb295b1e Distance parameter unit tests 2018-09-22 05:26:29 +10:00
Nyall Dawson
11667683b4 Distance 2018-09-22 05:26:29 +10:00
Nyall Dawson
ee8389afee Unit tests 2018-09-22 05:26:29 +10:00
Nyall Dawson
c406ec3be2 Start on numeric wrapper 2018-09-22 05:26:29 +10:00
Juergen E. Fischer
e85c09254c translation string fix 2018-09-21 15:51:34 +02:00
Juergen E. Fischer
c5cac98179 debian packaging: add saga as build dependency for Processing tests 2018-09-21 15:51:34 +02:00
Blottiere Paul
2807c2f883
Merge pull request #7961 from tudorbarascu/fix_sld
fix stroke Width sld import
2018-09-21 15:32:49 +02:00
Alessandro Pasotti
2869681367
Merge pull request #7976 from elpaso/bugfix-19895-gpkg-vacuum
[browser] GPKG VACUUM menu item
2018-09-21 12:16:59 +02:00
Alessandro Pasotti
b81da8504a GPKG vacuumGeoPackageDb non-gui method and gui action
Also moved non-gui things together
2018-09-21 11:38:39 +02:00
Alessandro Pasotti
0ee119f72b
Merge pull request #7969 from elpaso/bugfix-19901-relation-reference-NULL
QgsFeatureListComboBox nullRepresentation instead of hardcoded "NULL"
2018-09-21 10:56:34 +02:00
Alessandro Pasotti
6609e651a8 GPKG: do not run vacuum after raster deletion
See my previous commit, for consistency
we do not run VACUUM automatically when
a raster is deleted.

A menu item allows the user to run VACUUM
manually

A possible UX improvement would be to add
a button to the success dialog that
offers the user the option to run VACUUM
after a successful layer deletion.
2018-09-21 10:41:47 +02:00
Alessandro Pasotti
b51cb21d1a GPKG Browser VACUUM menu item
Fixes #19895 - Garbage-collection is not performed after deletion of vector layer from geopackage

By design, VACUUM (being a potentially time-consuming operation)
was automatically performed only after deleting a raster
while when deleting a vector layer it was not executed.

This commit adds a menu item in the browser that allows
the user to perform this operation on the DB.
2018-09-21 10:38:25 +02:00
Nyall Dawson
30b757b184 More in-place support tweaks, add tests 2018-09-21 18:15:46 +10:00
Nyall Dawson
8951e153f0 Difference and split with lines can be used in in-place mode 2018-09-21 18:15:46 +10:00
Nyall Dawson
b4883eecba Support in-place drop edit geometry operation 2018-09-21 18:15:46 +10:00
Nyall Dawson
a764b4bd93 Boundary alg requires geometry for in-place edits 2018-09-21 18:15:46 +10:00
Nyall Dawson
df657d4fd3 Fix some exceptions when running in-place edit on geometry-less layer 2018-09-21 18:15:46 +10:00
Nyall Dawson
4b24552097 Change QgsProcessingAlgorithm::supportInPlaceEdit to use QgsMapLayer, not QgsVectorLayer
Because at some stage in the future we may allow in-place edits to raster layers,
and we don't want to have to break API for this.
2018-09-21 18:15:46 +10: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
Alessandro Pasotti
1b2d885a03
Merge pull request #7966 from elpaso/bugfix-19843-dbmanager-quoted-sql
[dbmanager] Fix Update SQL Layer converts query to table name
2018-09-21 09:56:35 +02:00
Tudor Bărăscu
1955ebb7c9 server disabled test for failing getmap req with Line sld 2018-09-21 10:14:38 +03:00
Nyall Dawson
936b0c1d4f Fix messed up collapse icon in measure dialog 2018-09-21 15:13:52 +10:00
nirvn
16106860e4 further improve icon 2018-09-21 11:41:32 +07:00
nirvn
7b1bd3da6e [ui] add a dedicated icon for style manager & align toolbar icons 2018-09-21 11:41:32 +07: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
Matthias Kuhn
68dc6984da Fix build with sip pre 4.19 2018-09-21 01:22:19 +02:00
Luigi Pirelli
6e02f9f4fa test for update of parameterLayerList managing QgsProcessingOutputLayerDefinition 2018-09-21 09:00:56 +10:00
Luigi Pirelli
d641b306d3 fix lack of management of input as QgsProcessingOutputLayerDefinition 2018-09-21 09:00:56 +10:00
Luigi Pirelli
006553f9d3 fix correct string list representation of QgsProcessingOutputLayerDefinition 2018-09-21 09:00:56 +10:00
Loïc Bartoletti
a2db44c383 Welcome back mSettings->setValue ... snap_invisible_feature ... 2018-09-21 07:33:45 +10:00
Tudor Bărăscu
f125d3f792 add image mask and make travis happy 2018-09-20 20:42:13 +03:00
Alessandro Pasotti
5378e37cf9 QgsFeatureListComboBox nullRepresentation instead of hardcoded "NULL"
Fixes #19901 - Relation Reference Widget: Representation for NULL values is not respected
2018-09-20 16:30:02 +02:00
Denis Rouzaud
7b5afb953f
use qreal overloads of painter methods in advanced digitizing canvas item (#7967)
* use qreal overloads of painter methods in advanced digitizing canvas item

* better use of existing variables
2018-09-20 06:01:04 -08:00
Tudor Bărăscu
7a9d08eddf add test for Point SLD highlight on server 2018-09-20 14:06:38 +03:00
Alessandro Pasotti
a8bf1b8f05 [dbmanager] Fix Update SQL Layer converts query to table name
Fixes #19843
2018-09-20 12:43:59 +02:00
Alessandro Pasotti
f208191824
Merge pull request #7946 from elpaso/bugfix-19617-processing-checkvalidity
Fix processing algorithm checkvalidity reason
2018-09-20 10:17:12 +02:00
Alessandro Pasotti
b62048d93f
Merge pull request #7963 from elpaso/bugfix-17967-19893-gpkg-raster-delete-win
Fix cannot delete GPKG from raster on windows
2018-09-20 10:02:50 +02:00
Alessandro Pasotti
e62c4eb941 Fix cannot deletete GPKG from raster on windows
Fixes #17967 #19893
2018-09-20 09:17:28 +02:00
nirvn
5ec3d5d990 [processing] improve in-place feature editing icon & toolbar position 2018-09-20 11:55:46 +07:00
Denis Rouzaud
3ceecbf806
no override in SIP 2018-09-19 20:13:29 -04:00
Denis Rouzaud
637f716929
Merge pull request #7962 from 3nids/remove_stupid_casts
convert old style cast
2018-09-19 16:10:15 -08:00
Denis Rouzaud
16e6cb6419 replace old-style cast with static_cast 2018-09-19 15:22:26 -04:00
Denis Rouzaud
b2df392d3c correctly cast pointer 2018-09-19 15:02:54 -04:00
Juergen E. Fischer
6e46a9c720 debian packaging: fix file mode fix (followup e306aaaae) 2018-09-19 20:59:28 +02:00
Juergen E. Fischer
74b2e19434 osgeo4w: fix lrelease lookup 2018-09-19 19:22:08 +02:00
Denis Rouzaud
269bf02da8 remove useless cast
(int) x + y => static_cast<int>(x) + y
precedence is higher for casting
see https://en.cppreference.com/w/cpp/language/operator_precedence
2018-09-19 13:02:12 -04:00
Alessandro Pasotti
82a5c8f170 Move test from tests to processing folder 2018-09-19 18:29:26 +02:00