75837 Commits

Author SHA1 Message Date
Nyall Dawson
e33336be5c Remove DB2 Provider
This provider has been marked deprecated and hidden from the UI
for a number of QGIS releases. No maintainers have stepped up
to take over maintainance of this provider, and accordingly it
is now subject for removal.
2022-02-23 15:15:21 +10:00
Nyall Dawson
d9ea5d5d3d Drop unused context_help files 2022-02-23 15:15:07 +10:00
Nyall Dawson
a5f63ae98c Split testqgsprocessingalgs.cpp into two parts to avoid timeouts on CI 2022-02-23 12:26:26 +10:00
Aleix Pol
6c66382c5a Include the developer_name in the appdata file
This way it's not listed as "unknown" in software centres and such.
2022-02-23 12:01:27 +10:00
Nyall Dawson
bb26f5904b Fix value relation widget can silently change attribute values to NULL
if those values are not present in the related table and the user
clicks on the attribute cell in an editable attribute table

Copy the same method of handling not present values as we use for
the value map editor widget, where these values are shown in
the combo box with a "(value)" format.

And add lots of tests covering this.
2022-02-23 11:39:07 +10:00
Nyall Dawson
f235a8ccb3 Update src/app/qgisapp.cpp 2022-02-23 11:38:45 +10:00
Nyall Dawson
a240d16a94 Update src/app/qgisapp.cpp 2022-02-23 11:38:45 +10:00
Nyall Dawson
6b2747cb6f Apply suggestions from code review 2022-02-23 11:38:45 +10:00
Ismail Sunni
57b50cae1d Handle if the selected layer is not a layer. 2022-02-23 11:38:45 +10:00
Ismail Sunni
5e68d9ab77 Update style name when it's renamed. 2022-02-23 11:38:45 +10:00
Ismail Sunni
0990b87e89 Make function static. 2022-02-23 11:38:45 +10:00
Ismail Sunni
e8ca757b06 Show style name in style panel title. Fix #25724. 2022-02-23 11:38:45 +10:00
Ismail Sunni
a00889b0a7 Simplify indicator 2022-02-23 11:37:19 +10:00
Ismail Sunni
f60834bc08 Fix #43087: indicate when a layer has two or more styles. 2022-02-23 11:37:19 +10:00
Nyall Dawson
555d966ebf Fix attribute name in get_feature docs 2022-02-23 11:17:41 +10:00
roya0045
cdb338ec7f test with keywords 2022-02-23 08:08:36 +10:00
roya0045
f43a10e3cf remove (s) 2022-02-23 08:08:36 +10:00
Nyall Dawson
6c1ab8b30d Fix crash 2022-02-23 07:38:00 +10:00
Nyall Dawson
1826fe015e Cleaner memory management 2022-02-23 07:38:00 +10:00
Nyall Dawson
2da547d40c Fix some build warnings 2022-02-23 07:38:00 +10:00
Sandro Mani
e0a961fe52
Merge pull request #47474 from kadas-albireo/master
Add ossl-modules/legacy.dll to mingw dist
2022-02-22 21:01:14 +01:00
Denis Rouzaud
64ec70128f fix toggling streaming digitizing
triggering an already active technique will lead to going back to straight segments
2022-02-23 05:58:13 +10:00
Loïc Bartoletti
5aa729e3d5
Merge pull request #46357 from Koyaani/fix-advanced-digitizing-snapping
[Fix] Advanced digitizing distance when snapping
2022-02-22 13:50:36 +01:00
Antoine Facchini
7e3ea242d5
Merge branch 'master' into fix-advanced-digitizing-snapping 2022-02-22 12:56:59 +01:00
Loïc Bartoletti
25588d2c6d
Merge pull request #47467 from elpaso/bugfix-47465-advanced-digitizing-decimal-separator
Advanced digitizing: be nice with non-dot locales
2022-02-22 12:32:52 +01:00
Alessandro Pasotti
52dd15b764 Add test case for QgsAdvancedDigitizingDockWidget 2022-02-22 10:29:47 +01:00
Antoine
66b45c2d69 change version to 3.26 2022-02-22 10:17:54 +01:00
Antoine
838bb86562 remove tests on deprecated functions 2022-02-22 10:17:54 +01:00
Antoine
1a36529b2a fix typo 2022-02-22 10:17:54 +01:00
Antoine
7116a96660 add test on peprendicular constraint 2022-02-22 10:17:54 +01:00
Antoine
fb94742344 add comments 2022-02-22 10:17:54 +01:00
Antoine
c9a3b2c451 add tests 2022-02-22 10:17:54 +01:00
Antoine
aebe2df12d rename tests 2022-02-22 10:17:54 +01:00
Antoine
6230787a66 add test for issue 46352 2022-02-22 10:17:54 +01:00
Antoine
78df32f2cb test with self-snapping 2022-02-22 10:17:54 +01:00
Antoine
7895f7bce8 simplify test 2022-02-22 10:17:54 +01:00
Antoine
db69f4bebf add test for issue 46128 2022-02-22 10:17:54 +01:00
Antoine
dced518a16 fix typo 2022-02-22 10:17:54 +01:00
Antoine
0bf090e972 fix API break 2022-02-22 10:17:54 +01:00
Antoine
2e59094602 add basic tests for QgsMapToolAdvancedDigitizing 2022-02-22 10:17:54 +01:00
Antoine
a1597982b2 fixes distance line edit that shouln't editable 2022-02-22 10:17:54 +01:00
Antoine
1d96d07774 modify method name getCapacities 2022-02-22 10:17:54 +01:00
Antoine
64ab38b9e4 modify code to simplify tests 2022-02-22 10:17:53 +01:00
Antoine
5a0479f852 modify QgsMapToolAddFeature constructor 2022-02-22 10:17:53 +01:00
Antoine
e0e9600857 static default Z/M value methods 2022-02-22 08:52:54 +01:00
Antoine
2cf8189f89 Disable Z interpolation in some cases fix #46128 2022-02-22 08:52:54 +01:00
Antoine
c3df08492d fix advanced digitizing distance when snapping 2022-02-22 08:52:53 +01:00
Denis Rouzaud
36a1019582
refactoring of QgsMapToolCapture to integrate shape map tools (#46687)
* make QgsMapToolCapture capable of capturing point/line/polygons

This moves part of the code from QgsMapToolDigitizeFeature to QgsMapToolCapture so the tool can actually capture point, line and polygons. It's mainly the 'cadCanvasReleaseEvent` which has been transfered.

* use a current CaptureTechnique in QgsMapToolCapture

QgisApp has been adapted to switch between the different techniques

* add point/line/polygon specific handlers for capture map tool

* convert add part map tool to use QgsMapToolCapture capabilities

* fix use of deprecated methods

* also create a virtual handler for QgsMapToolDigitizeFeature::featureDigitized

* more dox

* use const abstract geom in virtual handlers

* add new class QgsMapToolCaptureLayerGeometry to handle layer specific operation in capture map tool

such as avoiding intersections

* allow to add linear geometries on curved geometry layers

* make actions exclusive

* add settings registry to app

* add a registry for shape map tools

* abstract class for shape map tools

* adapt QgsMapToolCapture to correctly support shape map tools

* clean up of QgisApp

* new class QgsMapToolsDigitizingTechniqueManager to handle actions in app related to capture map tools

* clean up QgisInterface

* sipify

* refactoring of existing shape tools

* refactor add ring to fully support capture map tool

* add missing folder to Doxygen

* fix layout

* fix erasing at iterator pos

* fix unused warning

* fix more dox

* fix cpp check warning

* fix unused warning

* fix annotation map tool does not support shape + set tool name

* correctly handle case when the capture is not done on a vector layer (annotation, mesh, …)

* enable shapes in annotation map tool

* correctly undo and clean

* adapt existing shape tests

the deletion test with circular vertices has been dropped since the capture map tool behaves differently

* fix warning

* refactor fill ring to support shape digitizing

* fix win build

* fix more tests

* avoid detach warnings

* fix app test + clean up

* harmonize new settings with existing ones

* fix categories

* support adding multi lines as a part

* fix adding curve part to multi line

* also handle points

* code a bit clearer

* cast not always valid

* allow adding curved polygon to multipolygon

* add test for QgsGeometry::addPart with curved parts on non-curved geoms (lines and polygons)

* fix with Python < 3.9

* better dox for deprecated interface actions methods

* remove files leftover

* remove leftover circular string curve point tool

* add default Z/M values when calling QgsGeometry::coerceToType

* Apply suggestions from code review

Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>

* fixes from review

* move layer specific part to specific tool

* fix typo

* fix leak

* fix dox

* fix segmentization

* call map tool implementation of addCurve when adding trace curve to avoid point duplication

* call sub-class implementation

* fix since 3.24 -> 3.26

* fix test

* add test to avoid extra curves when using tracing

* fix headers

Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2022-02-22 07:59:50 +01:00
Sandro Mani
a7d324ff05 Add ossl-modules/legacy.dll to mingw dist
Needed for QCA with OpenSSL 3.x
2022-02-22 07:57:20 +01:00
Denis Rouzaud
4185783e63 fix headers 2022-02-22 07:46:21 +01:00