67 Commits

Author SHA1 Message Date
Nyall Dawson
b79ca2951f Cleaner docs 2022-08-23 10:07:54 +10:00
Damiano Lombardi
67bdadfead
Fix rollback not leaving a consistent state for buffered transaction 2022-08-23 10:04:17 +10:00
Nyall Dawson
f9415af325 Add API to QgsProjectViewSettings to allow setting default map rotation
Provides a stable means for scripts to set the map rotation
2022-08-16 12:22:05 +10:00
Nyall Dawson
33788b6cb4 Remove more old qt fallbacks 2022-08-12 20:36:07 +10:00
Nyall Dawson
9b09445c08 Change project style disabling from being a project load flag
to a new project "capability"

This avoids the unwanted cost of initialising a blank style database
whenever QgsProject::clear is called and project styles are not
required (eg. for server)
2022-07-11 15:22:11 +10:00
Nyall Dawson
c6beb62216 Add project style database, which contains styles specific to each
individual project.

Project style database is embedded in the .qgz archive file
2022-05-17 16:36:00 +10:00
Nyall Dawson
190bdfbaa2 Don't offer to save new symbols in read only style databases 2022-05-17 16:36:00 +10:00
Nyall Dawson
9fe94822b5 Add path role to model 2022-05-17 16:36:00 +10:00
Nyall Dawson
8462884554 Add model for project style databases 2022-05-17 16:36:00 +10:00
Nyall Dawson
0d3ae97df0 Move QgsProject enums to Qgis, and add new read flag to skip style loading
Ensure that there's no speed regression when loading projects for
server and other special cases
2022-05-17 16:36:00 +10:00
Nyall Dawson
ab9c27a1b6 Allow retrieving matching project style by path 2022-05-17 16:36:00 +10:00
Nyall Dawson
1f63112e6d Allow project style paths to be xml exports of databases 2022-05-17 16:36:00 +10:00
Nyall Dawson
6c3eb1df64 Add combined style model to project 2022-05-17 16:36:00 +10:00
Nyall Dawson
3c0f5e0fd5 add combined model 2022-05-17 16:36:00 +10:00
Nyall Dawson
9124d1acb6 Load project associated style databases 2022-05-17 16:36:00 +10:00
Nyall Dawson
ca458a4e7d Add methods to set style database paths to QgsProjectStyleSettings 2022-05-17 16:36:00 +10:00
Mathieu Pellerin
383b2f9f78 Fix dox 2022-05-09 14:44:28 +10:00
Mathieu Pellerin
366b88cae5 Address review 2022-05-09 14:44:28 +10:00
Mathieu Pellerin
21f99d1234 Fix doxygen check 2022-05-09 14:44:28 +10:00
Mathieu Pellerin
9e0d077d6e Migrate randomize fill color and default opacity settings 2022-05-09 14:44:28 +10:00
Mathieu Pellerin
95b637520b Implement a QgsProjectStyleSettings class 2022-05-09 14:44:28 +10:00
Nyall Dawson
0ee1cee1d5 Rework project coordinate format handling to use numeric format instead
This now follows the approach used for bearing formats, where a user
can defined a default coordinate format for newly created projects
in the Settings - Options - Map Tools section.

New projects will inherit that setting, but the format can then
be changed through the Project Properties - Coordinate Format button.

This ultimately exposes more control to users for how coordinates
are formatted for a project, eg allowing them to control whether
direction suffixes are shown, and whether leading or trailing zeros
should be included.
2022-04-21 19:05:38 +10:00
Nyall Dawson
02829d5a3e Fix another documentation typo 2022-03-22 10:48:57 +10:00
Nyall Dawson
11c5547cbc Fix documentation warning 2022-03-22 10:48:57 +10:00
Nyall Dawson
9efe9f512c Change some boolean QgsProject properties to flags instead 2022-03-22 10:48:57 +10:00
Nyall Dawson
52c778f3a0 Remove offset/scale from project elevation properties as these were moved to terrain providers 2022-03-19 05:58:37 +10:00
Nyall Dawson
231596cd8d Make terrain provider classes generic and move outside of project 2022-03-19 05:58:37 +10:00
Nyall Dawson
22034f354e Project elevation properties framework 2022-03-19 05:58:37 +10:00
Denis Rouzaud
9b459d5de4
Merge pull request #46750 from domi4484/bufferedTransactionCore
Buffered Transactional Editing
2022-03-10 14:10:55 +01:00
Nyall Dawson
13949f932d Show a user-facing message bar warning when opening a project created in a
newer version of qgis, warning that the project may not be
completely loaded
2022-03-10 12:27:51 +10:00
Damiano Lombardi
8c5af4e194 SIP_OUT for output parameters 2022-03-04 08:41:10 +01:00
Damiano Lombardi
03f4740e65 More detailed error feedback for rollback 2022-03-04 08:41:10 +01:00
Damiano Lombardi
22de7e8a69 Fix docstrings since QGIS 3.24 to 3.26 2022-03-04 08:41:10 +01:00
Damiano Lombardi
cabf50d831 Buffered transactions rollback 2022-03-04 08:41:10 +01:00
Damiano Lombardi
b502da8bca Change transaction mode only if all layers are not in edit mode 2022-03-04 08:41:09 +01:00
Damiano Lombardi
ba1002d163 Show commit errors + docstrings 2022-03-04 08:41:09 +01:00
Damiano Lombardi
219d450075 Initial implementation of buffered transactions 2022-03-04 08:41:09 +01:00
Damiano Lombardi
69f02e9f4c Applied suggestions from code review 2022-03-04 08:41:09 +01:00
Damiano Lombardi
ab3f2fca8a Transaction mode setting gui 2022-03-04 08:41:06 +01:00
Nyall Dawson
fc26342f04 Fix incorrect doc link 2022-02-23 15:16:33 +10:00
Nyall Dawson
72116925ad Sip_skip some private api 2022-01-14 16:06:41 +10:00
Nyall Dawson
479d37def0 Add missing TransferThis annotation 2022-01-14 16:06:41 +10:00
Nyall Dawson
216b9d2a2a Fix getter name should not include 'get' prefix 2022-01-14 16:06:41 +10:00
NEDJIMAbelgacem
ff5bde77a4 rename stuff 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
f54136e616 address Nyall reviews 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
05824dc1c8 fix sip 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
0381373df9 fix ci build 2022-01-12 13:46:49 +10:00
NEDJIMAbelgacem
89c661b35d split 3dviewsmanager into 3dviews manager and dialog class 2022-01-12 13:46:49 +10:00
Sandro Mani
792ce7f962 Automatically removed attached layer sources when layer is deleted 2021-12-15 13:20:14 +01:00
Nyall Dawson
711a363798 Expose clipping blend modes for layers which are contained within group
layers
2021-11-25 14:23:57 +11:00