21647 Commits

Author SHA1 Message Date
Nyall Dawson
44361ba352 Add flag to opt into including system tables in QgsAbstractDatabaseProviderConnection tables listings 2022-11-29 10:20:46 +01:00
Nyall Dawson
3527257bd1 Deprecate legend line spacing setting, this is now handled in the text
formats
2022-11-29 14:31:36 +10:00
Nyall Dawson
34df6d129a [feature] Use text renderer in layout legends
This change allows use of the full text renderer capabilities
for legend titles, subtitles, and item text. It allows buffers,
shadows, font spacing control, and all over options (including
mixed HTML formatting!) which is permitted for use in text
formats.
2022-11-29 14:31:36 +10:00
Nicolas Godet
aa590b7302 Better handling of GDAL progess report 2022-11-29 09:44:42 +10:00
Nyall Dawson
fe0ab98ee0 Manually monkey patch compatibility, since we can't auto patch to gui classes 2022-11-28 11:46:45 +10:00
Nyall Dawson
fa0adc03fe Typo 2022-11-28 11:46:45 +10:00
Nyall Dawson
3efb1e604a Move action enums to Qgis, promote to enum class, and considerably thin
includes as a result
2022-11-28 11:46:45 +10:00
Harrissou Sant-anna
d67e3c39c5 Fix oapif subsection title 2022-11-25 12:19:12 +10:00
Nyall Dawson
ba9c669b49 Fix source select dialog does not add new pages for providers registered
after QGIS startup (eg when enabling a new plugin), and also ensure
pages are correctly removed when providers are removed
2022-11-25 12:07:49 +10:00
Nyall Dawson
cfbf5ef51d Add more efficient method to draw document when a QgsTextDocument is already available 2022-11-24 12:41:24 +10:00
Nyall Dawson
a10b971156 Add additional text renderer rect modes
Adds some text layout modes where the line heights are based
on cap heights or font ascent alone

These are required in order to port additional parts of QGIS
text rendering to the QgsTextRenderer class
2022-11-24 12:41:24 +10:00
Nicolas Godet
7b80b30c2a Fixes #50963 : Index already passed don't call findText 2022-11-24 08:01:47 +10:00
Mathieu Pellerin
ed3483edb1 [layouts] Support non-printer layout exports when QPrinter not available 2022-11-23 21:24:15 +07:00
Matthias Kuhn
6f47a5f171
Merge pull request #50960 from DelazJ/maplayerrendererListdocs 2022-11-23 09:57:52 +01:00
Nyall Dawson
2a0fc591f7 Cleanup qgsmaplayeractionregistry.* files and split into modular files
per class
2022-11-23 08:25:33 +01:00
Nyall Dawson
8fefb8a010 Move action files to subdirectories 2022-11-23 08:25:33 +01:00
Nyall Dawson
c15b960047 Add message bar to QgsMapLayerActionContext 2022-11-23 13:54:18 +10:00
Nyall Dawson
4afcddf739 Refactor to move gps logged positions to QgsGeometry method out
to base class
2022-11-23 13:54:18 +10:00
Nyall Dawson
ff03e4c9a5 Add method to change the geometry for the feature shown in a QgsAttributeForm 2022-11-23 13:54:18 +10:00
Nyall Dawson
6d74da2300 needsGeometry getter is not a signal 2022-11-23 13:54:18 +10:00
Nyall Dawson
4f1cc22b54 Also use context when determining which actions can run 2022-11-23 13:54:18 +10:00
Nyall Dawson
0c4aff9a33 Add framework so that a QgsMapLayerAction can get a reference
to the QgsAttributeDialog it is executed from
2022-11-23 13:54:18 +10:00
Nyall Dawson
b6badb60c3 Add a context for QgsMapLayerAction 2022-11-23 13:54:18 +10:00
Harrissou Sant-anna
3d51ab3646 fix python function display in qgsdefaultvalue 2022-11-22 07:39:55 +01:00
Harrissou Sant-anna
9b886a17bf Attempt to fix qgsmaplayerrenderer c++ and pyqgis docs display 2022-11-22 07:39:44 +01:00
Nyall Dawson
517cac313f In various "new *** layer" dialogs, show a warning when the
user accepts the dialog but has entered a field name in
the new field box without adding it to the fields list

Avoids a papercut where a user thinks that just entering
the name of a field alone is sufficient to create that
field in the resultant table
2022-11-19 15:47:08 +10:00
Nyall Dawson
ad98d28fcf Dox++ 2022-11-19 14:21:34 +10:00
Nyall Dawson
cb8875a87b Condense duplicate code 2022-11-19 14:21:34 +10:00
Nyall Dawson
913c6ae68e Include ellipsoidal altitude in available GPS information values 2022-11-19 07:21:20 +10:00
Nyall Dawson
5c604061bc Fix missing actions menu when only internal actions are present
Follow up bcf0e4838
2022-11-18 16:33:59 +10:00
Nyall Dawson
b1e63a2815 Don't emit layerModified for every atomic change made during a bulk
operation to the vector layer edit buffer

Eg Instead of emitting layerModified for every individual feature
in a call to QgsVectorLayer::addFeatures, we defer the signal
and emit it only once after adding all the features.

This avoids a lot of expensive, unnecessary work which is triggered
by the signal
2022-11-18 11:51:24 +10:00
Nyall Dawson
3e818b942b Split out qgsgpsconnection files into modular components 2022-11-17 20:13:41 +10:00
Loïc Bartoletti
60e2c9874c
Merge pull request #50586 from nicogodet/gdalcalcextent
Add user interface for `--extent` gdalcalc option
2022-11-17 09:54:46 +01:00
Nyall Dawson
cdffe2ef90 Add option to skip edit buffer when logging GPS to vector layer 2022-11-16 20:13:43 +10:00
Damiano Lombardi
619170e4a8 QgsVectorFileWriter map NaN to -DBL_MAX exporting to Shape 2022-11-15 14:02:45 +01:00
Nyall Dawson
a7c39ffdc7 Add support for super and subscript HTML formatting in text renderer
This allows for either:

- <sup>superscript</sup> / <sub>subscript</sub> components in text,
where the text will be vertically super or subscript aligned
and automatically sized to 2/3rd of the parent font size. Users
can also set a fixed font size for the super/sub script by
including css rules, e.g. <sup style="font-size:33pt">super</sup>

- "vertical-align: super" or "vertical-align: sub" CSS formatting
rules in any other HTML element

Sponsored by OSGEO UK
2022-11-14 20:46:15 +10:00
Nyall Dawson
79b809a585 Prepare framework for text renderer vertical alignment 2022-11-14 20:46:15 +10:00
Nyall Dawson
281f1d0d0c Make QgsVectorLayerGpsLogger API easier to use, and add capacity
to store all GPS information components
2022-11-14 18:00:29 +10:00
Nyall Dawson
b572e54622 Add more GPS component flags 2022-11-14 18:00:29 +10:00
Nyall Dawson
09b0d0c2ed Fix build 2022-11-14 18:00:29 +10:00
Nyall Dawson
14930d87e1 Sipify 2022-11-14 18:00:29 +10:00
Nyall Dawson
3e532a3897 Fix clang warning 2022-11-14 18:00:29 +10:00
Nyall Dawson
154ab209ce Hook up feature creation in QgsVectorLayerGpsLogger 2022-11-14 18:00:29 +10:00
Nyall Dawson
d5c05e3b17 Refactor out GPS logging classes, so that they share a common base class
Moves GPS track logging logic out of app and into core so that it
can be resused in a generic way.
2022-11-14 18:00:29 +10:00
Nyall Dawson
669fb4b9c0 Add layer fields to QgsGpsLogger 2022-11-14 18:00:29 +10:00
Nyall Dawson
f902248a84 Fix dox 2022-11-14 18:00:29 +10:00
Nyall Dawson
6571b9b573 Empty structure for logger 2022-11-14 18:00:29 +10:00
Julien Cabieces
91e5130080
Merge pull request #50854 from elpaso/raster-maptips-2
Raster maptips
2022-11-14 08:42:22 +01:00
Alessandro Pasotti
1373d2bcfc
Merge pull request #50812 from elpaso/bugfix-gh37434-default-style-name
Bugfix default style name
2022-11-14 08:40:29 +01:00
Peter Petrik
2adc388c23 fix sip 2022-11-12 05:30:23 +10:00