20 Commits

Author SHA1 Message Date
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
Andrea Giudiceandrea
27f345f0bf
Fix tick-style scalebar when subdivisions ticks height > segments ticks height
Take the subivisions ticks height into accout, for ticksscalebar box size calculation and horizontal line and labels position, only if the number of subdivisions to draw is greater than 1
2020-05-11 09:14:24 +10:00
Nyall Dawson
8699f83d98 [FEATURE][layouts] Allow customisation of division and subdivision symbol
as distinct symbols vs the scalebar line symbol

Allows for styling division and subdivision symbols in a different
way compared with the horizontal line symbol in a tick scalebar

Sponsored by SLYR
2020-05-07 10:56:50 +10:00
Nyall Dawson
6e9b7ae594 Add clarification re meaning of number of subdivisions 2020-05-07 10:56:50 +10:00
Andrea Giudiceandrea
a3397a8a2e
[feature][layouts] Add subdivisions in ticks scalebar right segments
Adds the ability to create subdivisions for segments included in the right part of the ticksscalebar

Fixes #20341
2020-05-06 09:12:37 +10:00
Nyall Dawson
b63018520e Cleanup scalebar widget enabling code by adding flags to QgsScaleBarRenderer
subclasses, so that the subclass itself can indicate what settings
it respects and we can avoid all the hardcoded logic in the configuration
widget
2020-03-23 03:08:50 +10:00
Nyall Dawson
4079878dfb Rename API methods as requested 2020-03-23 03:08:50 +10:00
Nyall Dawson
1887846a5c [FEATURE][layouts] Add "hollow" scalebar style
This matches the "hollow" scalebar style from ArcMap, and is a style
used in South African mapping standards

Fixes #20390

Sponsored by SLYR
2020-03-23 03:08:50 +10:00
Nyall Dawson
e7cc8307e4 [FEATURE][layouts] Add "Stepped Line" scalebar style
Designed to match the appearance and behavior of the ArcMap equivalent,
this was a scalebar format which was previously impossible to replicate
in QGIS.

Also fixes #26589

Sponsored by SLYR
2020-03-23 03:08:50 +10:00
Nyall Dawson
2c01373d1a Fix build 2020-03-22 16:41:31 +10:00
Nyall Dawson
1e3e205a98 Fix deprecation warning 2020-03-22 16:41:31 +10:00
Nyall Dawson
e82a2e4df1 [FEATURE][layouts] Also allow full fill symbols to be used for single box
and double box fill styles

Sponsored by SLYR
2020-03-22 16:41:31 +10:00
Nyall Dawson
9378dcd73f [FEATURE][layouts] Allow scalebar line style to be set using
standard QGIS line symbols

Instead of the previous settings of scalebar line color/width/cap styles,
we now expose the option as a full line symbol for more advanced styling

Also some code cleanups

Sponsored by SLYR
2020-03-22 16:41:31 +10:00
Nyall Dawson
b45203a6c4 Make a proper registry for scalebar renderers 2020-03-21 03:45:24 +10:00
Nyall Dawson
16c2254141 [FEATURE][layouts] Add user control over scalebar numeric formats
Gives users control over all the formatting properties for the numbers
in scalebars, including whether they want thousand separators, decimal
places, scientific notation, etc

Fixes #21341
2020-01-09 19:51:50 +13:00
Denis Rouzaud
758d7cff4a run sipify to update deprecation annotations 2019-10-15 13:17:38 +02:00
nirvn
3a37c83da7 [FEATURE][layout] Add horizontal placement option for scale bar labels 2019-07-29 15:14:34 +07:00
nirvn
e5deb5517b [FEATURE][layout] Add above/below segments placement option for scale bar labels 2019-07-29 15:14:34 +07:00
Nyall Dawson
2cb8a33884 Fix broken see also links 2018-05-25 11:16:18 +10:00
Denis Rouzaud
7df2593caf move auto generated sip file in dedicated folder 2018-05-14 10:23:37 -04:00