87313 Commits

Author SHA1 Message Date
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
Nyall Dawson
0bca48ddca Add docs for exception classes 2024-08-16 07:28:29 +10:00
Nyall Dawson
6cbf8f09e0 Cleanup QgsMapLayerComboBox docs 2024-08-16 07:28:29 +10:00
qgis-bot
ef4b67d963 auto sipify 🍺 2024-08-15 04:30:37 +00:00
Nyall Dawson
0a675e9664 Test mask 2024-08-15 14:27:35 +10:00
Nyall Dawson
f941b5bb1a Relative to map support for picture annotation item 2024-08-15 14:27:35 +10:00
Nyall Dawson
8465cce48d Minor tweaks to annotation edit operations 2024-08-15 14:27:35 +10:00
Nyall Dawson
3e1bf261b9 Add some useful methods for annotation item widgets 2024-08-15 14:27:35 +10:00
Nyall Dawson
c37f3d1960 Make naming more flexible 2024-08-15 14:27:35 +10:00
Nyall Dawson
6069edc75f Test mask update 2024-08-15 14:27:35 +10:00
Nyall Dawson
e06b9f243e Rework how callouts work with picture item with fixed sizes
When a picture annotation item is set to the fixed size mode,
and has a callout anchor set, always place the annotation itself
at a fixed offset from the callout anchor. This mimics the
behavior of the old SVG annotation decoration.
2024-08-15 14:27:35 +10:00
Nyall Dawson
deb506b5db Make translation in pixels available for annotation edit operations 2024-08-15 14:27:35 +10:00
Nyall Dawson
958d534965 Add convertFromPainterUnits method 2024-08-15 14:27:35 +10:00
Nyall Dawson
ef2528bfd8 Add render context to QgsAnnotationItemEditContext 2024-08-15 14:27:35 +10:00
Nyall Dawson
faa4670f4c Add docs for as_numpy 2024-08-15 13:38:54 +10:00
Nyall Dawson
83c58995b3 Don't leak numpy import into qgis.core 2024-08-15 13:38:54 +10:00
Even Rouault
e561e013a4 OAuth2 configuration: trim leading/trailing blanks from most parameters set from UI to avoid weird issues
I've been bitten by deadlock/crashes (in
src/auth/oauth2/core/qgsauthoauth2method.cpp, and with messages about
O2ReplyServer parent thread not being the current one), when erroneously inserting
a space character before the OAuth2 refresh token URL ('
https://something'). Removing it makes things work nicely.

So while this doesn't fix a potential more fundamental threading issue in some scenarios, this at
least avoids this weird error.
2024-08-15 08:32:34 +10:00
qgis-bot
9b6602e129 auto sipify 🍺 2024-08-14 20:28:38 +00:00
Nyall Dawson
06570b86aa Qt6 fixes 2024-08-15 06:25:41 +10:00
Nyall Dawson
76adc371ac Ensure marker halos are drawn in legends, symbol preview icons 2024-08-15 06:25:41 +10:00
Nyall Dawson
214cb4668f Add test mask 2024-08-15 06:25:24 +10:00
Nyall Dawson
d5511a50d8 [feature] Allow end point marker symbols for balloon callout style
Allows rendering a marker symbol below the endpoint of the balloon
callout. Designed to allow balloon callouts to reproduce the same
visual appearance as the older annotation framework items.
2024-08-15 06:25:24 +10:00
Nyall Dawson
02d9cc2af2 Sipify 2024-08-15 06:25:08 +10:00
Nyall Dawson
dd28aa5fdb Default to HTML formatting for newly created text annotations 2024-08-15 06:25:08 +10:00
Nyall Dawson
c2529994aa Use rich text editor for annotation text item widgets
Makes it easier for users to style annotation items with rich
formatting, instead of forcing use of raw HTML
2024-08-15 06:25:08 +10:00
Nyall Dawson
c0ff7dc49a Fix rendering of annotation text items in HTML mode when html content
is split into multiple lines
2024-08-15 06:25:08 +10:00
Nyall Dawson
e8724fa45e Add mode switch for QgsRichTextEditor
Allows using the widget in a QgsTextRenderer HTML subset mode,
where only functionality supported by QgsTextRenderer is
exposed in the widget. Also add a Plain Text mode.
2024-08-15 06:25:08 +10:00
Nyall Dawson
20d528f7a6 Fix missing reference warning when loading SVG 2024-08-15 06:25:08 +10:00