Nyall Dawson
bc997f077d
Minor tweaks
2020-01-08 16:20:43 +13:00
Nyall Dawson
124df2d78d
Add display of sample values to numeric format selector widget
2020-01-08 16:20:43 +13:00
Nyall Dawson
0fc7abb20b
Fix crash in widget, add unit tests
2020-01-08 16:20:43 +13:00
Nyall Dawson
f5e965aa86
Add configuration widgets for all numeric format types
2020-01-08 16:20:43 +13:00
Nyall Dawson
1d6bc57df5
Unit tests and fixes for numeric format gui registry
2020-01-08 16:20:43 +13:00
Nyall Dawson
ccf6898eb9
Start on registry for numeric format configuration widgets
2020-01-08 16:20:43 +13:00
Nyall Dawson
552913cdeb
Start on base class for numeric format widgets
2020-01-08 16:20:43 +13:00
Nyall Dawson
6088eddaee
Start on unit tests for numeric format gui
2020-01-08 16:20:43 +13:00
Nyall Dawson
6b9cafb71f
Nicer sorting of numeric format choices
2020-01-08 16:20:43 +13:00
Nyall Dawson
591e1a28e0
Start on GUI work
2020-01-08 16:20:43 +13:00
Nyall Dawson
90184a59eb
Add methods to store/recreate formats from XML elements, and tweak
...
serialization API
2020-01-08 16:20:43 +13:00
Nyall Dawson
b9babb788d
Don't use a stored stringstream, allows formatter to be thread safe
2020-01-08 16:20:43 +13:00
Nyall Dawson
ec3763521a
Avoid ambiguous test data, force minimum of 1 decimal place for scientific notation format to avoid undefined results
2020-01-08 16:20:43 +13:00
Nyall Dawson
e91f26d617
Attempt to workaround mscv behavior
2020-01-08 16:20:43 +13:00
Nyall Dawson
a72d8faef5
Fix dox
2020-01-08 16:20:43 +13:00
Nyall Dawson
7affde6624
Add numeric formatter for currency values
2020-01-08 16:20:43 +13:00
Nyall Dawson
d445487c0d
Add numeric formatter for scientific notation
2020-01-08 16:20:43 +13:00
Nyall Dawson
8bcba4780e
Add percentage numeric formatter
2020-01-08 16:20:43 +13:00
Nyall Dawson
d0b5a01729
[api] Add registry and interface for QgsNumericFormats
...
QgsNumericFormat subclasses provide a means to format a numeric value
as a string, applying various formatting options. E.g. a default
string to value formatter (included here) includes settings for
controlling the number of decimal places, whether a thousands separator
should be shown, whether a leading + sign should be shown, whether
trailing zeros should be shown.
This PR also includes a formatter for bearings, allowing various
formats of numeric bearings to be applied (e.g. control over decimal
places, etc + control over whether direction E/W suffixes are shown,
or whether values should be limited to either the +/- 180 range or
0-360 degree range)
When formatting values, a QgsNumericFormatContext class is used
to provide context. Currently, this includes the thousands and
decimal separators to apply when formatting (which are taken by
default from the user's locale).
A registry of formatters is included to allow easy addition of
other formats in future (e.g. currencies, percentages, scientific
notation, etc...) and to allow plugin based formats.
The intention is to follow this up with gui configuration widgets
for the formats, and then expose them in various places through
the qgis ui (e.g. in the range editor widget for fields, in scalebar
numbers, as an option for formatting numeric labels, etc)
2020-01-08 16:20:43 +13:00
Nyall Dawson
400e3dace1
[FEATURE][layouts] Allow layout attribute tables to be styled using the foreground
...
and background colors of matching conditional styles attached to the layer
When the new "Apply layer conditional styling colors" option is enabled in the
layout attribute table settings, any conditional styling rules present in the
layer will be applied inside the layout attribute table (foreground and
background colors only, for now!).
Refs #25712
Sponsored by City of Canning
2020-01-08 15:31:24 +13:00
Andrea Giudiceandrea
9a5855aa70
[BUGFIX] Fix ESRI shapefile format listed twice in vector file selector dialog
...
Fixes #28661
2020-01-08 14:31:46 +13:00
lbartoletti
18e9766d51
dox
2020-01-08 08:35:27 +13:00
lbartoletti
2b031cf418
Expose shape digitizing methods to QgisInterface
2020-01-08 08:35:27 +13:00
Nyall Dawson
faa724844b
Avoid current rule gets reset when editing an existing conditional format rule
2020-01-08 08:33:32 +13:00
Nyall Dawson
d96a32f339
Fix conditional styling widget does not initially show rules belonging
...
to first field when opening the widget
2020-01-08 08:33:32 +13:00
Nyall Dawson
3f9b53ea73
[needs-docs][gps] Add explicit setting to allow control over the frequency
...
of map rotation to match GPS bearing
Otherwise frequent GPS updates can cause a too many map redraws to occur quickly
2020-01-07 12:29:19 +13:00
Nyall Dawson
e2bb325c3e
[gps] Fix incorrect double-reprojection of GPS marker position on
...
canvas extent changes
2020-01-07 12:29:19 +13:00
Nyall Dawson
494b52b231
[gps] Sync some changes from a fork of nmealib, and add support for
...
handling HCHDG and HCHDT heading packets
2020-01-07 12:29:19 +13:00
Denis Rouzaud
58f0e8158a
Create pr_to_doc_issue.md
2020-01-06 13:53:05 +01:00
Denis Rouzaud
2ccb694e7f
fix typos
2020-01-06 11:17:44 +01:00
Denis Rouzaud
353ad4d0f5
Revert "Revert "Revert "useless commit to test doc bot ( #33602 )" ( #33625 )" ( #33626 )" ( #33627 )
...
This reverts commit 24c1a71b95f468722cb9bd7546e51baa0ccc150a.
2020-01-06 11:14:49 +01:00
Denis Rouzaud
8bcbb0b310
fix typo
2020-01-06 11:13:48 +01:00
Denis Rouzaud
24c1a71b95
Revert "Revert "useless commit to test doc bot ( #33602 )" ( #33625 )" ( #33626 )
...
This reverts commit f2be9dc61ecab9eaafc7b1587e701faa42f37c47.
2020-01-06 11:11:38 +01:00
Denis Rouzaud
f2be9dc61e
Revert "useless commit to test doc bot ( #33602 )" ( #33625 )
...
This reverts commit 2ec439982b8192546afe927d8176e0af5a9a68d0.
2020-01-06 11:05:32 +01:00
Denis Rouzaud
6037770ca1
[docbot] also write comment
2020-01-06 11:00:14 +01:00
Denis Rouzaud
a55fbc4d4f
[docbot] transform the milestone to a doc label (3.10.4 => 3.10)
2020-01-06 09:36:17 +01:00
Matthias Kuhn
0bccdfe8de
Merge pull request #33514 from m-kuhn/more-stable-dxf-export-alignment
...
[dxf export] Improve dxf alignment
2020-01-06 08:34:10 +01:00
Nyall Dawson
23f862b964
Simplify memory management
2020-01-06 14:51:54 +10:00
Nyall Dawson
8a9a174c3b
Fix effect preview picture not set when effect widget is opened in dialog mode
...
Also fix a memory leak when opened in dialog mode
Fixes #33600
2020-01-06 14:51:54 +10:00
Alexander Bruy
cf6cd48b38
fix typo
2020-01-06 11:19:55 +10:00
Alexander Bruy
5e62e60de9
[processing] add user-defined parameters to gdal_rasterize
2020-01-06 11:19:55 +10:00
Alexander Bruy
b511841775
[processing] fix v.net,centrality
2020-01-06 11:19:55 +10:00
Alexander Bruy
432a8a5fd0
[processing] cleanup tests
2020-01-06 11:19:55 +10:00
Alexander Bruy
1fa3edfc51
[processing] add tests for r.series and r.reclass algorithms
2020-01-06 11:19:55 +10:00
Alexander Bruy
dcabb0536b
[processing] fix r.rescale and r.rescale.eq
2020-01-06 11:19:55 +10:00
Alexander Bruy
0b749558b9
[processing] add proper support for range parameters ( fix #29269 )
2020-01-06 11:19:55 +10:00
Nyall Dawson
7c1b7fa27d
[processing] Avoid temporary flashing dialog showing when a distance parameter widget is constructed
...
Fixes #29438
2020-01-06 10:25:48 +10:00
Matthias Kuhn
0eef197920
Remove leftover docstrings
2020-01-05 16:27:43 +01:00
Matthias Kuhn
e9d4e9fb12
Preserve anchor point instead of delta
...
It's way easier to understand the concept
2020-01-05 15:34:27 +01:00
Nyall Dawson
fcdf1f6e78
Fix test
2020-01-05 20:58:10 +10:00