87542 Commits

Author SHA1 Message Date
qgis-bot
38c4637547 auto sipify 🍺 2024-08-20 06:34:37 +00:00
Nyall Dawson
1b25a3f907 Update src/core/project/qgsprojectstylesettings.cpp 2024-08-20 08:31:34 +02:00
Julien Cabieces
9639a51c0e fix(StyleSettings): Make project dirty on style settings modification 2024-08-20 08:31:34 +02:00
Nyall Dawson
db0db13dc5
Fix clang tidy warning 2024-08-20 14:15:36 +10:00
Nyall Dawson
112f6a898c
Use a task instead of a progress dialog for wfs/oapif progress
Instead of firing up new progress dialogs for every wfs/oapif
request, use the task manager to create loss obtrusive progress reports.

The download progress is now shown in the task manager, and cancel
requests can be done via the standard means of canceling tasks.

Aside from avoiding the extra dialogs, this also means:

- Time estimates for downloads are shown in the task tooltip
- Operating system level feedback (ie task bar progress) is shown
for wfs downloads

Sponsored by Dorset Council
2024-08-20 12:51:42 +10:00
Jean Felder
8dab246707
[3D] Use QGIS material for the terrain (#58134)
* terrain: Use PhongMaterialSettings material for the non texture case

There is no functional change. With this change, the terrain uses a
material defined by QGIS instead of a default Qt3D. This will make it
easier to customize the shader in the future.

* qgsphongmaterialsettings: Fix setShininess signature

`mShininess` is a double.

* qgsphongtexturedmaterialsettings: Use a double to store shininess

This is already waht QgsPhongTexturedMaterialSettings does. The reason
for this change is to avoid the user-set values changing for them when
saving/restoring projects.

* qgsphongtexturedmaterialsettings: Use a double to store opacity

This is already waht QgsPhongTexturedMaterialSettings does. The reason
for this change is to avoid the user-set values changing for them when
saving/restoring projects.

* qgsphongtexturedmaterialsettings: Do proper opacity cast in toMaterial

* qgsphongtexturedmaterialsettings: Factor out material creation

This introduces a new class `QgsPhongTexturedMaterial` which is
similar to Qt3D `QDiffuseSpecularMaterial`.
`QgsPhongTexturedMaterial::toMaterial()` now calls
`QgsPhongTexturedMaterial` to create the material. This has no
functional change.

This will make it possible to directly use `QgsPhongTexturedMaterial`
for the terrain in the next commit. Indeed, the texture case needs to
use a `QTexture2D` which cannot be stored in a settings class. This
issue is avoided by directly creating the material instead of using
`QgsPhongTexturedMaterial::toMaterial()`.

* qgsterraintileloader: Fix typo

* terrain: Use QgsPhongTexturedMaterial for shading texture

There is no functional change. With this change, the terrain uses a
material defined by QGIS instead of a default Qt3D. This will make it
easier to customize the shader in the future.

* 3d/material: Introduce QgsTextureMaterial

This is the same material as the qt3d one:
`Qt3DExtras::QTextureMaterial`. It will also be used in the following
commit by the terrain.

* terrain: Use QgsTextureMaterial for non shading texture

There is no functional change. With this change, the terrain uses a
material defined by QGIS instead of a default Qt3D. This will make it
easier to customize the shader in the future.
2024-08-19 23:01:06 +02:00
signedav
72c596c7ea make setFilterExpression public to make possible to set filters by e.g. widgets 2024-08-19 17:38:33 +02:00
qgis-bot
6222445858 auto sipify 🍺 2024-08-19 09:19:05 +00:00
Nyall Dawson
262ade625e Don't leak LinePlacementFlags 2024-08-19 11:16:01 +02:00
Nyall Dawson
98f3ca0650 Don't leak mapping functions into core 2024-08-19 11:16:01 +02:00
Nyall Dawson
1c119bde15 Avoid leaking processing repr into core 2024-08-19 11:16:01 +02:00
Nyall Dawson
fa518f6795 Don't leak fromFunction into core 2024-08-19 11:16:01 +02:00
Nyall Dawson
3dbbb16aa6 Don't leak range repr functions into qgis.core 2024-08-19 11:16:01 +02:00
Nyall Dawson
85df8609c5 Don't leak dummy DirectionSymbols class into core 2024-08-19 11:16:01 +02:00
Nyall Dawson
c797b83f6b Don't leak Qgis into gui, analysis modules 2024-08-19 11:16:01 +02:00
Nyall Dawson
bc331f6a98 Add documentation for QgsPoint3DSymbol properties
Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/140
2024-08-19 11:16:01 +02:00
Nyall Dawson
de01eec1d7 Fix formatting of QgsTask.fromFunction docs
Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/11
2024-08-19 11:16:01 +02:00
Nyall Dawson
217210a570 Update src/providers/hana/qgshanasettings.cpp 2024-08-18 06:45:52 +10:00
Alexander Bruy
0f095f3921 add method to duplicate connection to the db connection classes 2024-08-18 06:45:52 +10:00
Alexander Bruy
f64ef34df1 make new connection name translatable 2024-08-18 06:45:52 +10:00
Alexander Bruy
1b995b0cf1 fix typos 2024-08-18 06:45:52 +10:00
Alexander Bruy
38de6bc227 move connection name generation to utils 2024-08-18 06:45:52 +10:00
Alexander Bruy
fb05fce313 add duplicate connection functionality to WCS and WFS items in Browser 2024-08-18 06:45:52 +10:00
Alexander Bruy
8782989fb8 add duplicate connection functionality to ArcGIS REST, HANA and Oracle
items in Browser
2024-08-18 06:45:52 +10:00
Alexander Bruy
0958fe309c add duplicate connection functionality to MSSQL, PostgreSQL and WMS
items in Browser
2024-08-18 06:45:52 +10:00
Alexander Bruy
f8237dccf6 add duplicate connection functionality to SensorThings, Tiled Scene and
Vector Tile items in Browser
2024-08-18 06:45:52 +10:00
Alexander Bruy
95bc648aef add duplicate connection functionality to GDAL Cloud items in Browser 2024-08-18 06:45:52 +10:00
Nyall Dawson
3f481b568e Record header subfolders as __group__ attribute in PyQGIS classes
This will allow us to logically create subgroups for PyQGIS modules
in the API reference guide
2024-08-17 20:13:12 +10:00
Nyall Dawson
9e25dd9aaf Fix type hints 2024-08-17 19:59:17 +10:00
Nyall Dawson
bad8ad7a8e Fix bad styling 2024-08-17 19:59:17 +10:00
Nyall Dawson
626df694fa Avoid multiple doc strings copies, add comments 2024-08-17 19:59:17 +10:00
Nyall Dawson
532129abf7 Improve processing monkey patching
"forward declare" functions which will be patched when the processing
plugin starts, so that these are known and accessible during the PyQGIS
doc building. Also make these forward declared versions raise
QgsNotSupportedException, so that its clear why they aren't working
when the processing plugin hasn't started

Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/38
2024-08-17 19:59:17 +10:00
qgis-bot
d57e7ce5cf auto sipify 🍺 2024-08-17 06:42:30 +00:00
Mathieu Pellerin
74c67c3df1
Merge pull request #58410 from nirvn/python_code_editor_lexer_fix
Multiple processing script editor dialog papercut fixes
2024-08-17 13:39:29 +07:00
Mathieu Pellerin
52816584cc Address review 2024-08-17 11:37:35 +07:00
Andrea Giudiceandrea
ff5747be87 QgsLayoutExporter: avoid missing argument error 2024-08-17 07:05:29 +10:00
Mathieu Pellerin
26b7c1ed7d [processing] Fix script editor dialog flagging opened files as immediately modified 2024-08-16 15:05:37 +07:00
Mathieu Pellerin
dbb73335fc [code editor] Do not reset current line when refreshing content due to external edit 2024-08-16 14:53:53 +07:00
Mathieu Pellerin
26308050c4 [processing] Fix script editor dialog wrongly jumping back to line 1 and setting changed to true after saving file 2024-08-16 14:53:53 +07:00
Mathieu Pellerin
608ae960d2 [gui][code editor] Fix lack of styling for python lexer's unclosed strings and f-strings causing issues with dark themes 2024-08-16 14:49:50 +07:00
qgis-bot
1d361eda2a auto sipify 🍺 2024-08-16 07:03:08 +00:00
Denis Rouzaud
9d87ecf6ec
Merge pull request #58233 from 3nids/mvt-sprites
[mvt] implement step expressions + improve conversion of sprites
2024-08-16 08:59:56 +02:00
Denis Rouzaud
0f762cce15
add since 2024-08-16 08:59:36 +02:00
Nyall Dawson
4e4329c0c7 Provide a little more detail when vector tile expression can't be
converted

Refs #58364
2024-08-16 12:53:06 +10:00
Nyall Dawson
0c6ca395fc Show warnings to user when encountered while converting vector tile style
Refs #58364
2024-08-16 12:53:06 +10:00
qgis-bot
8b60f0bb80 auto sipify 🍺 2024-08-15 21:31:53 +00:00
Nyall Dawson
deeada9a54 Avoid leaking more helper functions into qgis.core 2024-08-16 07:28:46 +10:00
Nyall Dawson
428a1cd405 Add missing files 2024-08-16 07:28:29 +10:00
Nyall Dawson
989e62a80f Handle docstrings for c++ structs
sip doesn't support the docstring directive for structs (only classes),
so patch these back in via sipify magic
2024-08-16 07:28:29 +10:00
Nyall Dawson
cc6b83449d Add some missing class docstrings 2024-08-16 07:28:29 +10:00