59741 Commits

Author SHA1 Message Date
Sandro Santilli
d2d723b91b Do not get db and user names from the env if service is used 2020-01-09 10:08:03 +01:00
Sandro Santilli
07d88b1aaf Set dbname from environment, if not set already 2020-01-09 10:08:03 +01:00
Sandro Santilli
67ce48f698 Hard-code provider name in connector, so existing test is fixed 2020-01-09 10:08:03 +01:00
Sandro Santilli
6aa87fa67b Rename CursorProxy to CursorAdapter 2020-01-09 10:08:03 +01:00
Sandro Santilli
e0ec0e0b3b Make CursorProxy scrollable, tweak more of the adapter 2020-01-09 10:08:03 +01:00
Sandro Santilli
b73741d53c Add debug message about unhandled postgresql datatype 2020-01-09 10:08:03 +01:00
Sandro Santilli
285a98431f Remove debugging line 2020-01-09 10:08:03 +01:00
Sandro Santilli
bb12bf2cca Add special code to ensure a NULL value gets converted to None
NOTE: this should really be done in lower levels
2020-01-09 10:08:03 +01:00
Sandro Santilli
7acbc362c0 Fix more Cursor execution functions (rename table) 2020-01-09 10:08:03 +01:00
Sandro Santilli
18c51c485c Fix TopoViewer plugin 2020-01-09 10:08:03 +01:00
Sandro Santilli
f034317665 Use the new QgsAbstractDatabaseProviderConnection interface 2020-01-09 10:08:03 +01:00
Sandro Santilli
3892faeb1c Start reorganizing DB connection for SQL window dialog
Working toward resolution of #31994 (allowing reconnect on
connection loss)

[skip ci]
2020-01-09 10:08:03 +01:00
Alexander Bruy
72400524f7
Merge pull request #33643 from alexbruy/identify-word-wrap
[GUI] fix identify panel size when long localized strings used (fix #29546)
2020-01-09 09:48:30 +02:00
Nyall Dawson
88dd1dc9bb Fix build 2020-01-09 19:51:50 +13:00
Nyall Dawson
96bbab67ee Address review comments 2020-01-09 19:51:50 +13:00
Nyall Dawson
4391fe7369 Move numeric format button for scalebars to Units group 2020-01-09 19:51:50 +13:00
Nyall Dawson
1cd2e16fb1 Also expose setting for optionally overridding the decimal character 2020-01-09 19:51:50 +13:00
Nyall Dawson
1e82bbc417 Fix seealso link 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
f4f8a53894 Ensure unique ids are generated whenever tests are run multiple times
Avoids layout corruption in the generated html reports if the same test
is run more than once
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
Denis Rouzaud
fd970b917c [docbot] also list commits with [FEATURE] 2020-01-09 06:30:41 +01:00
Nyall Dawson
c6f5b39fab If default new project CRS is set to no CRS, ensure that the status bar
button correctly shows this when QGIS is first loaded
2020-01-09 17:10:49 +13:00
Nyall Dawson
fc555ca69a Ensure pan distance display in status bar uses project distance units 2020-01-09 17:10:30 +13:00
Nyall Dawson
9fd3681bdf Respect project bearing setting when showing pan direction in status bar 2020-01-09 17:10:30 +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
vcloarec
0ba2bccf86 [MESH] fix time reference 2020-01-09 11:13:10 +13:00
Julien Cabieces
55bdb46e0b Fix editing of synchronized same fields in attribute form 2020-01-09 07:50:49 +13:00
Peter Petrik
8a16451f26 fix loading a project from XML 2020-01-08 15:24:18 +01:00
Peter Petrik
c8558ef87e fix sigma figure 2020-01-08 15:24:18 +01:00
Denis Rouzaud
8f90d110dd [docbot] write message in open PR needing doc to warn the author (s)he should take care of it 2020-01-08 13:16:47 +01:00
Denis Rouzaud
43690be6b6 [docbot] copy PR body + needs-docs commits content 2020-01-08 13:16:47 +01:00
Nyall Dawson
664ba234da Also respect other locale specific characters 2020-01-08 16:20:43 +13:00
Nyall Dawson
545edcf148 Dox++ 2020-01-08 16:20:43 +13:00
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