3415 Commits

Author SHA1 Message Date
Nyall Dawson
81ecf97d0f Fix PyQGIS docs formatting of QgsAbstractDatabaseProviderConnection class 2021-07-06 18:13:58 +10:00
Nyall Dawson
129ab50607 Add QgsProviderSublayerProxyModel for filtering/sorting
QgsProviderSublayerModel instances
2021-07-06 17:57:21 +10:00
Nyall Dawson
73f45ee467 Allow non sublayer items to be added to QgsProviderSublayerModel
E.g. embedded project items
2021-07-06 17:57:21 +10:00
Nyall Dawson
288321505a Start on sublayer model 2021-07-06 17:57:21 +10:00
mhugent
ec374d5ad2
Merge pull request #43927 from mhugent/raster_legend_placeholder_icon
Feature: possibility to use placeholder icon in legend for raster layer. funded by [Canton of Glarus] [https://www.gl.ch/verwaltung/bau-und-umwelt/hochbau/raumentwicklung-und-geoinformation/geoportal-kanton-glarus.html/808]
2021-07-03 15:12:18 +02:00
Nyall Dawson
39fbd77df7 Add API to export layers to QLR with easy control over whether
absolute or relative paths are used
2021-07-03 06:39:36 +10:00
Nyall Dawson
ee141a1a8e Add enum Qgis::FilePathType and add proper stable api for setting
whether QgsProject uses absolute or relative paths for file storage
2021-07-03 06:39:36 +10:00
Marco Hugentobler
f287872798 Use application image cache 2021-07-02 13:21:49 +02:00
Marco Hugentobler
b7b9470a68 Possibility to select an image as legend placeholder 2021-07-02 13:20:10 +02:00
Marco Hugentobler
991f935944 Feature: possibility to use placeholder icon in legend for raster layer 2021-07-02 13:20:10 +02:00
Nyall Dawson
c8156b0106 Add c++20 todo for replacing equality operators with default implementations 2021-07-02 12:19:58 +10:00
Nyall Dawson
65bccd2c61 Add equality operator for QgsProviderSublayerDetails 2021-07-02 12:19:58 +10:00
Nyall Dawson
ced5910bc8 Fix race 2021-07-02 09:49:33 +10:00
Nyall Dawson
7dec3050f6 Fix dox 2021-07-02 09:49:33 +10:00
Nyall Dawson
1355b39be0 Add QgsProviderUtils with a method for determining whether a list
of sublayer details is incomplete and requires a more in-depth scan
2021-07-02 09:49:33 +10:00
Nyall Dawson
bed72156f7 Dox 2021-07-02 09:49:33 +10:00
Nyall Dawson
7c6afc0761 Create QgsProviderSublayerTask for retrieving sublayer details in a thread
This can sometimes take a looooong time, so it's worth doing in the
background
2021-07-02 09:49:33 +10:00
Nyall Dawson
a51a9c4854 Add QgsIconUtils::iconForLayerType 2021-07-01 17:37:52 +10:00
Vincent Cloarec
db21851bbb
[mesh] mesh frame editing part-2 - start, commit, roll back and cancel (#43982)
[mesh] allows the user of mesh layers to start editing, save, roll back or cancel editing, in the same way as vector layers (editing part-2)
2021-07-01 08:18:18 +02:00
Nyall Dawson
d6709e0145 Fix docs, better check 2021-06-29 07:33:35 +10:00
Nyall Dawson
0565c3ffb8 Retain more renderer properties when switching between vector
renderer types
2021-06-29 07:33:35 +10:00
Nyall Dawson
849819cd0d [api] Allow reference scale for vector layer renderer to be set
Gives a means of setting the reference scale for a vector layer
renderer, so that symbol sizes in the rendered layer will be
scaled accordingly depending on the actual scale of the
rendered map.
2021-06-29 07:33:35 +10:00
Nyall Dawson
c8da0c43f9 Safer approach to saving common QgsFeatureRenderer properties 2021-06-29 07:33:35 +10:00
Nyall Dawson
54610b293c [api] Allow a symbology reference scale to be set on a QgsRenderContext
This should match the desired scale denominator for the rendered map,
eg 1000.0 for a 1:1000 map render. Set (by default) to -1 to disable
symbology scaling by reference scale.

The symbology reference scale is an optional property which specifies
the reference scale at which symbology in paper units (such as
millimeters or points) is fixed to. For instance, if \a scale is set
to 1000 then a 2mm thick line will be rendered at exactly 2mm thick
when a map is rendered at 1:1000, or 1mm thick when rendered at
1:2000, or 4mm thick at 1:500.
2021-06-29 07:33:35 +10:00
Paul Blottiere
ba75f371ba
Merge pull request #43923 from nicogodet/fix-since-39211
Correct since indent legend (follow #39211)
2021-06-25 16:39:26 +02:00
Vincent Cloarec
d326d38660
[mesh] mesh frame editing part-1 (qgis_core) (#43828)
[feature] qgis_core changes to allow mesh layer editing (part-1 or QEP#228)
2021-06-25 16:17:13 +02:00
nicogodet
ff388dc733 Correct since indent legend (follow #39211) 2021-06-25 11:47:50 +02:00
Matthias Kuhn
4d27183715
Merge pull request #39211 from jdugge/indent_legend_groups
[FEATURE] Indentation of legend groups and subgroups
2021-06-25 09:14:32 +02:00
Nyall Dawson
8c9d008413 Spelling 2021-06-25 13:53:52 +10:00
Nyall Dawson
2d489737e2 [feature] Add a "redraw layer only" temporal mode for raster layers
Just like the equivalent setting for vector layers, this option
causes a raster layer to be redrawn on each new animation frame. It's
useful when the layer uses time-based expression values (e.g. data
defined renderer opacity, to fade/in out a raster layer)
2021-06-25 13:53:52 +10:00
Nyall Dawson
c013c78285 [api] Attach QgsPropertyCollection to QgsRasterPipe to allow
for data-defined raster pipeline properties
2021-06-25 13:53:52 +10:00
Nyall Dawson
3c3059c938 Fix code example blocks in QgsFeature documentation 2021-06-25 10:50:04 +10:00
Nyall Dawson
711a615be3 Fix raises sphinx format 2021-06-25 10:50:04 +10:00
Even Rouault
8a6ed7d8f9 Address -Woverloaded-virtual clang virtual and enable the warning 2021-06-25 06:37:49 +10:00
Denis Rouzaud
6cdbced874
allow to build auth methods statically (#43866)
* allow to build auth methods statically

* enable static build of all auth methods

* follow-up

* fix static auths

* fix dynamic

* fix bindings

* fix core only

* fix dox

* fix dox again

* fix bindings again

* fix test and more

* some cleanup

* fix test

* add missing gui edits

* O2_DLL

* fix bindings with core only

* fix SIP feature

* fix SIP condition

* disable feature earlier

* fix auth manager bindings without gui

* put back virtual methods
2021-06-24 16:48:47 +02:00
Denis Rouzaud
8915a0751a put back virtual methods 2021-06-24 16:10:33 +02:00
Denis Rouzaud
cfb4241767 fix auth manager bindings without gui 2021-06-24 15:27:42 +02:00
mhugent
cb2fb67d0d
Merge pull request #43639 from mhugent/network_request_preprocessor
Network request preprocessor
2021-06-24 14:43:04 +02:00
Sandro Mani
23b4786cc8
Merge pull request #43526 from kadas-albireo/attachments
Implement project file attachments
2021-06-24 14:42:03 +02:00
Denis Rouzaud
144098b905 fix SIP condition 2021-06-24 13:43:16 +02:00
Denis Rouzaud
1851e379d1 fix bindings with core only 2021-06-24 11:24:18 +02:00
Denis Rouzaud
e02d341197 fix bindings again 2021-06-23 15:05:18 +02:00
Denis Rouzaud
e25ff6f370 fix dox 2021-06-23 14:53:40 +02:00
Denis Rouzaud
b0b22bb6bf fix bindings 2021-06-23 14:30:28 +02:00
Denis Rouzaud
a42df3b856 allow to build auth methods statically 2021-06-23 12:52:26 +02:00
Nyall Dawson
69debff405 Add convenience method to directly convert QgsProviderSublayerDetails
object to a QgsMapLayer
2021-06-23 19:35:11 +10:00
Nyall Dawson
00db2820cd Add generic method to QgsMapLayerFactory to create map layers of
any type
2021-06-23 19:35:11 +10:00
Nyall Dawson
07f5812383 Add uri to QgsProviderSublayerDetails 2021-06-23 19:35:11 +10:00
Denis Rouzaud
55e20eb800
avoid code duplication of fromEncodedComponent_helper(QGIS)/qt_urlRecodeByteArray(Qt) (#43842) 2021-06-23 09:11:03 +00:00
Nyall Dawson
f62ddb37a2 Promote QgsRasterPipe enums to enum classes in Qgis namespace
and add forward declares where possible
2021-06-23 17:30:47 +10:00