23 Commits

Author SHA1 Message Date
Peter Petrik
d9f18ccb9c
Fix spelling (#37849)
fix the spelling errors
2020-07-21 12:51:48 +02:00
olivierdalang
66ebe34004 [feature][selfsnap] add snapping to currently digitized feature for capture tool 2020-05-21 21:58:18 +02:00
obrix
44fec550d5 Invert th meaning of min scale and max scale to be coherent with other qgis feature. Minimum scale is the most zoomed out scale, maximum scale the most zoomed in. Enrich the tooltip to be more explicit. Should fix issue #35786. 2020-04-29 13:00:39 +02:00
obrix
b5fa0fab5f Remove prefix on parameters name. Remove whitespace. 2020-04-07 09:27:08 +02:00
obrix
f2a1712971 Fix spelling. 2020-04-07 09:27:08 +02:00
obrix
8b88115633 Fix some documentation issues. Use minimum and maximum instead of min and max. Add default value for min and max in IndividualLayerSettings as the two new parameters break compatibility. 2020-04-07 09:27:08 +02:00
obrix
080d0fa112 Remove useless comments in sip. 2020-04-07 09:27:08 +02:00
obrix
563e396015 Some style adjustments 2020-04-07 09:27:08 +02:00
obrix
03c522a957 Use a tri state button to configure snapping limit : disable, global and per layer. 2020-04-07 09:27:08 +02:00
obrix
f56e0f51c1 Various small reworks :
* better documentation
* translation on non translated string
* Grey out column min and max of individual layer snapping settings when snapping limit on scale is disabled.
  Force the refresh when rowChanged is called even if the individual settings are the same to enable/disable immediately the columns when the snapping limit on scale button is pushed.
2020-04-07 09:27:08 +02:00
obrix
30a52ac55e Fix PyQgsLayerDependencies test and add some doc. 2020-04-07 09:27:08 +02:00
obrix
6b9fb087c2 Fix style. 2020-04-07 09:27:08 +02:00
obrix
2346718ac7 Enable snapping whatever the scale when limit to scale is off. Also fix style. 2020-04-07 09:27:08 +02:00
obrix
7b4be2b7fa Remove boolean limitToScaleRange, default value is -1.0. Negative values disable the limits. 2020-04-07 09:27:08 +02:00
obrix
8ec744ad11 Add 3 new parameters per layers to the advance snapping settings :
- LimitToScaleRange : Allows to enable snapping only when current scale on the canvas is in a specified range. This range is controled by the two parameters scale min and scale max.
- MinScale : Minimum scale in which the snapping is enabled
- MaxScale : Maximum scale in which the snapping is enabled

When LimitToScaleRange is set to true, snapping is disabled if the current scale out of [MinScale, MaxScale].
When LimitToScaleRange is set to false, the behavior remain unchanged and snapping is enabled whatever the scale.

This allows to limit the costly cache refresh for some heavy layers when panning said layer at a level where the snapping is not useful.
2020-04-07 09:27:08 +02:00
lbartoletti
dfa5cb68aa
New snapping modes: Centroid and middle of a segment (midpoint) (#33622)
Snap on centroid and midpoint segment [FEATURE][needs-docs]
2020-03-02 09:02:35 +01:00
Nyall Dawson
b6d66becab Sipify 2019-02-27 09:41:11 +10:00
Blottiere Paul
8ecc5b9047 Cleaning 2018-07-20 16:24:48 +10:00
Blottiere Paul
6363aba94e [FEATURE][needs-doc] Vertex tool can work on the current layer only 2018-07-20 16:24:48 +10:00
Nyall Dawson
f8bc97030b Remove extra space added before first line of docstring 2018-05-28 08:22:11 +10:00
Nyall Dawson
1c615c15cc More documentation compliance
Use Qt style "returns .." tense instead of "return ..", and lock
this in with a documentation compliance unit test
2018-05-25 15:09:00 +10:00
Denis Rouzaud
e8cf8c2f1c [sipify] insert missing QMetaObject for gadget classes 2018-05-15 17:38:16 -04:00
Denis Rouzaud
7df2593caf move auto generated sip file in dedicated folder 2018-05-14 10:23:37 -04:00