34 Commits

Author SHA1 Message Date
Julien Cabieces
5db95e3a4d Fixes #45872 : resolveReference after we load/create embedded group 2021-12-08 11:43:33 +01:00
Nyall Dawson
bab7a911b2 [API] Add new map layer class "QgsGroupLayer"
A group layer is a map layer which consists of a set of
child layers, where all component layers are rendered as a single
flattened object during map renders.

This commit sets up the base framework for QgsGroupLayer only
(i.e. no rendering changes).
2021-11-23 16:08:05 +11:00
Antoine
98ca1ca776 remove useless variables 2021-11-16 10:46:13 +01:00
Nyall Dawson
8af1fae48c Ensure main annotation layer for project has a CRS assigned too 2021-09-22 13:42:54 +10:00
Nyall Dawson
dc5e3854b3 Windows build fix 2021-08-13 15:25:15 +10:00
Nyall Dawson
19565032e3 const ALL the things
Use clang-tidy const correctness fixit to add const to all
variables which it can
2021-08-13 15:25:15 +10:00
Sandro Mani
6209193d29 Add QgsProject::attachmentIdentifier and QgsProject::resolveAttachementIdentifier 2021-07-27 12:19:25 +02:00
nirvn
1be1c3d870 Silence a couple of buikd warnings 2021-07-17 15:30:52 +07: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
Sandro Mani
6f0bac42be Also support project attachments for QGS format 2021-06-22 11:46:51 +02:00
Sandro Mani
001d363b2e Implement project file attachments 2021-06-22 09:04:48 +02:00
Marco Hugentobler
fe00f74b86 Use QgsSettings and add unit test 2021-06-22 08:25:56 +10:00
Marco Hugentobler
a544ba3038 [feature]: Possibility to set if newly created project should default to relative or absolute paths 2021-06-22 08:25:56 +10:00
Blottiere Paul
5cc050fb39 Apply suggestions 2021-06-15 11:38:27 +02:00
Blottiere Paul
112fa385ef Save qgz without qgd if the auxiliary database is empty 2021-06-15 10:21:18 +02:00
Blottiere Paul
bf63165db7 Clean 2021-06-15 10:21:18 +02:00
Blottiere Paul
a2168b3776 Try to autofix qgz with last version of qgd file 2021-06-15 10:21:18 +02:00
Blottiere Paul
6dc608d66a Retrieve the last valid version of qgd file 2021-06-15 10:21:18 +02:00
Blottiere Paul
0e3c2eab4b Save qgs file even if saving the qgd file is failing 2021-06-15 10:21:18 +02:00
Sandro Mani
6aa0cbed91
Add QgsProject::dirtySet signal (#43595) 2021-06-10 10:50:47 +00:00
Nyall Dawson
02266ef8e6 Rename Qgis::MessageLevel::None to NoLevel. None is a reserved
keyword in Python, so this value was previously inaccessible to PyQGIS
scripts

Also change all references to Qgis::MessageLevel values to their
fully qualified names, to ease a future transition to an enum
class (when sip bugs are fixed)

Fixes #42996
2021-05-30 10:36:01 +10:00
Nyall Dawson
f21ea8c54a Avoid styleChanged() signals being raised before new labeling
configuration is set when changing a vector layer's style preset

This causes the layer styling dock to update before the layer's
new labeling settings are set, so the dock shows the incorrect
label settings for the previously used style

Fixes #42310
2021-05-22 11:50:02 +10:00
Nyall Dawson
c543a57b83 Remove some unused widget imports from core library 2021-05-19 13:52:58 +10:00
Damiano
95dfe0f45c Removed settings struct 2021-04-26 15:07:21 +02:00
Damiano
00a7936389 Moved most core settings to SettingsEntry 2021-04-26 15:04:07 +02:00
Nyall Dawson
ffa99b7b64 Fix doxygen blocks which don't use the * prefix on all lines, which
prevents the auto format and sipify scripts from doing their full
formatting magic
2021-04-19 12:54:13 +10:00
Matthias Kuhn
39e9046346 [qt6] More explicit conversions 2021-04-01 08:46:42 +10:00
Nyall Dawson
c3f93fd79b Remove redundant qgsOverload, use qOverload instead 2021-03-20 13:58:20 +10:00
Nyall Dawson
63a365a6a2 Add some utility functions to new QgsMapLayerFactory class for easier reuse 2021-03-10 09:39:46 +10:00
Nyall Dawson
c6370c7f52
Speed up QGIS compilation by removing all Qt Module-wide includes
Refs https://www.kdab.com/beware-of-qt-module-wide-includes/
2021-03-05 11:23:15 +10:00
Nyall Dawson
bd82925df3 Replace qgis::make_unique with std::make_unique
Now that we require c++14 features, we don't need to use the custom
backported version anymore...
2021-02-25 11:08:56 +10:00
uclaros
b25fe874a5 Disable avoid overlap for all new projects 2021-02-19 08:33:38 +10:00
Denis Rouzaud
aac558dd59 follow up + some forward declarations 2021-01-12 12:52:23 +01:00
Nyall Dawson
a9c80e5740 Code shuffle
Move vector, project and network related core .cpp/.h files into
dedicated subdirectories.

An attempt to organise src/core better to make things easier to find.
2020-12-29 11:38:11 +10:00