8478 Commits

Author SHA1 Message Date
Nyall Dawson
8abc457c8c Update ACCETABLE_MISSING_ADDED_NOTE list 2020-01-13 13:45:34 +13:00
Nyall Dawson
4c8ce04bfe Fix deprecation warnings in doxygen parser 2020-01-13 13:45:34 +13:00
Nyall Dawson
7dfdd2887a Update acceptable missing docs list 2020-01-13 13:45:34 +13:00
Julien Cabieces
e9cb34e1b8 fix multiline and multi surface skipping some parts 2020-01-13 13:24:25 +13:00
Julien Cabieces
1f3370a956 fix multipolygons with only one polygon 2020-01-13 13:24:25 +13:00
Julien Cabieces
a1f8af904b fix read for oracle curve polygon with Z coordinates 2020-01-13 13:24:25 +13:00
Julien Cabieces
fb5e429e72 finalize tests 2020-01-13 13:24:25 +13:00
Julien Cabieces
d4e0c52315 Support for Oracle CurvePolygon and MultiSurface edition 2020-01-13 13:24:25 +13:00
Julien Cabieces
bbcb90ffe7 Support for Oracle MultiCurve edition 2020-01-13 13:24:25 +13:00
Julien Cabieces
ac7d365e08 [FEATURE] Support for Oracle circular string and compound curve edition 2020-01-13 13:24:25 +13:00
Matthias Kuhn
b4ac0b01ec Add test for package layer algorithm OVERWRITE param 2020-01-10 12:12:52 +01:00
root676
8c19188713 add linedensity test to testqgsprocessingalgs.cpp 2020-01-10 13:32:42 +13:00
root676
4b8177fda9 add linedensity testdata 2020-01-10 13:32:42 +13:00
i-s-o
7a3d22dd1f Add unit tests 2020-01-10 12:49:58 +13:00
Nyall Dawson
00ce537e41 Fix loss of vector layer subset strings IF a layer path was invalid
at the time the subset string was originally applied
2020-01-10 08:06:46 +13:00
Nyall Dawson
1cd2e16fb1 Also expose setting for optionally overridding the decimal character 2020-01-09 19:51:50 +13:00
Nyall Dawson
d3afd6d936 Allow users to override the default locale thousand separator within
specific numeric format objects

E.g. this allows users to set a specific thousand grouping character
to use for a particular scalebar number labels. Useful in the case of
creating maps for users outside of the current locale. Default is
always to use the QGIS locale character (this is an advanced setting!)
2020-01-09 19:51:50 +13: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
Nyall Dawson
ad6684bdb4 Add numeric formatting option to round to number of significant figures 2020-01-09 19:51:50 +13:00
Nyall Dawson
b9b4f884c4 Wide characters should be supported for commas and decimal point symbols 2020-01-09 19:51:50 +13:00
Nyall Dawson
c0ad4303d2 [FEATURE] Add setting for format to show angular bearings to projects
and profile options

The Settings - Options - Map Tools tab contains a new setting for
controlling the default format to use for displaying angular bearings for
newly created projects. Whenever a new project is created, it will
inherit this default settings.

The Project Properties dialog also has a new setting for the project-specific
bearing format.

The intention is that whenever angular bearings are shown in QGIS,
they will be formatted using the current project's bearing format
settings.
2020-01-09 17:10:30 +13:00
Nyall Dawson
338dcae6a3 QgsProjectDisplaySettings should inherit bearing format from local default settings
when reset

This ensures that newly created projects will correctly use the profile's default
bearing format
2020-01-09 17:10:30 +13:00
Nyall Dawson
1f7140bfc5 New class QgsLocalDefaultSettings
This class contains a variety of default setting values. These values are local, profile
specific settings which may have been configured or tweaked by the user (as opposed to
global, fixed default settings).

The values encapsulated here should be inherited when creating new objects such as new
QGIS projects.

Typically, the QgsSettings backend is used to store and retrieve these local settings.

The intention here is to provide stable, structured and easily discoverable
methods for setting and retrieve these settings, rather than forcing raw QSetting
handling.
2020-01-09 17:10:30 +13:00
Nyall Dawson
410da5e358 New class QgsProjectDisplaySettings
This class (attached to a QgsProject object) provides a place to
store and retrieve settings related to project display behavior,
e.g. the numeric formats used for bearings and coordinates
2020-01-09 17:10:30 +13:00
Julien Cabieces
55bdb46e0b Fix editing of synchronized same fields in attribute form 2020-01-09 07:50:49 +13:00
Nyall Dawson
664ba234da Also respect other locale specific characters 2020-01-08 16:20:43 +13:00
Nyall Dawson
bc997f077d Minor tweaks 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
1d6bc57df5 Unit tests and fixes for numeric format gui registry 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
90184a59eb Add methods to store/recreate formats from XML elements, and tweak
serialization API
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
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
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
bbc9f7bc00 [processing] Add parameter definition config widget for map theme parameters 2020-01-05 20:50:05 +10:00
Nyall Dawson
35e7fc7746 Add widget wrapper for processing map theme parameter type 2020-01-05 20:50:05 +10:00
Nyall Dawson
54629b8f21 [FEATURE][processing][API] New parameter type QgsProcessingParameterMapTheme
Allows for selection from existing map themes
2020-01-05 20:50:05 +10:00
Nyall Dawson
223dfafb15 [processing] Port field parameter widget to new API 2020-01-05 08:59:38 +10:00
Nyall Dawson
70ee385f4a [processing] Add message bar to widget context 2020-01-05 08:59:38 +10:00
Nyall Dawson
f961449cc0 Fix missing signals, duplicate signals sent by QgsFieldComboBox 2020-01-05 08:59:38 +10:00
Nyall Dawson
1a74938ba8 [processing] Add option for multiple field parameters to default to
selecting all available fields

For some algorithms this is better UX then defaulting to an empty list
2020-01-04 23:06:03 +10:00
Julien Cabieces
e5fd756527 Configure Oracle continuous integration 2020-01-02 20:59:28 +10:00
Julien Cabieces
8d4ef80377 Don't forget to rollback at the end of the tests 2020-01-02 20:59:28 +10:00
Alexander Bruy
b5d71d39ac [processing] add "not set" support for range parameter (fix #29374, refs #29269) 2020-01-02 08:36:54 +02:00
Nyall Dawson
0d4e4b9eb0 Update rotate function expression tests 2020-01-02 14:45:06 +10:00
Raymond Nijssen
933f1cac72 [FEATURE] rotate() expression function
Allows rotation of geometries around a point
2020-01-02 14:45:06 +10:00