Nyall Dawson
53b67069cc
Standardise some layout api method naming/behavior
2018-01-07 16:07:05 +10:00
Nyall Dawson
5bc543af6a
Refactor layout context
...
Split render context from reporting context
2018-01-05 11:15:04 +10:00
nirvn
0a40a81151
[layouts] add icons for items and use those in the items panel
2017-12-21 10:33:24 +07:00
Nyall Dawson
4643712a1e
Fix missing transform contexts for QgsDistanceArea
...
QgsDistanceArea.setSourceCrs() now requires a QgsTransformContext
argument.
2017-12-20 17:37:46 +10:00
Nyall Dawson
885f0a5602
Handle linking items when adding from templates
2017-12-07 08:49:53 +10:00
Nyall Dawson
b74a0efa34
Work on layout and layout item serialization and restoration
2017-12-07 08:49:33 +10:00
Nyall Dawson
a615a48b40
Make scalebars auto selected between m/km and ft/miles when newly added
...
Based on current linked map scale and linked map CRS
2017-11-24 10:24:36 +10:00
Nyall Dawson
060270c0be
[layouts] Simplify scalebar unit handling
...
Instead of auto setting the units to meters/feet, and then using
the label multiplier setting to obtain a scalebar in km/miles,
instead we always keep auto-set label multipliers at 1 and just
always keep the users explicitly set scale bar units.
This should help avoid the complexity of layout scale bars, while
still keeping flexibility if someone does need custom units.
2017-11-24 10:24:36 +10:00
Nyall Dawson
b7ef3d3cb9
Simplify some code, cleanup UI
2017-11-24 10:24:36 +10:00
Nyall Dawson
af59c535a9
[layouts] Add more unit choices to scalebars
...
Explicitly add options for kilometers, miles, etc as the current
UX for setting these is too confusing!
Fixes #16921
2017-11-24 10:24:36 +10:00
Nyall Dawson
5b1c6901a5
Port more scalebar functionality
2017-11-24 10:24:36 +10:00
Nyall Dawson
8f5e0cb126
Begin porting scalebar item
2017-11-24 10:24:36 +10:00