52727 Commits

Author SHA1 Message Date
Nyall Dawson
a441e2b14b [layouts] Add API allowing drawing map overviews under map layers
or under map labels
2019-01-03 04:53:28 +10:00
Nyall Dawson
12da3afa85 [layouts] Add method to alter list of map layers to render to include
overview layers
2019-01-03 04:53:28 +10:00
Nyall Dawson
97daa5080d Use qobject_cast 2019-01-03 04:53:28 +10:00
Nyall Dawson
1b309c6810 [layouts] Add setters/getters for map item stacking positions 2019-01-03 04:53:28 +10:00
Nyall Dawson
6eb49feddc [layouts] Add method to get overview item extent as a vector layer
The layer contains a single feature representing the linked map
extent, and set to render using the overview's symbol
2019-01-03 04:53:28 +10:00
Nyall Dawson
0f7d8c05e3 Split layout map overview tests into their own file, add masks 2019-01-03 04:53:28 +10:00
Nyall Dawson
9d800d4268 Sipify 2019-01-03 04:53:07 +10:00
Nyall Dawson
62f1bb7a20 Spelling 2019-01-03 04:53:07 +10:00
Nyall Dawson
d14a5bd1dd [layouts] Add inbuilt validity check to warn when scale bars are
not linked to a map item

(and remove test Web mercator projection warning check)
2019-01-03 04:53:07 +10:00
Nyall Dawson
ddd522b432 Rework validity check API to allow future background threaded use 2019-01-03 04:53:07 +10:00
Nyall Dawson
ec5530484a Add layout validity check for map crs 2019-01-03 04:53:07 +10:00
Nyall Dawson
102f075ad2 Run layout validity checks before export 2019-01-03 04:53:07 +10:00
Nyall Dawson
7ccaa3df32 [FEATURE][API] Add flexible framework for custom "validity checks"
Adds a new interface QgsAbstractValidityCheck which defines
a single "check" which can be performed on a given QgsValidityCheckContext.
A new application-wide QgsValidityCheckRegistry registers
and manages instances of all known checks, and allows running
of all registered checks of a specific type at once.

Initially the framework is focused toward print layout validity
checks, but the interface has been designed to be generic enough
to allow alternative types of validity checks (e.g. project save
validity checks, processing model validity checks, etc.).

The API is designed to be used both by internal validity checks
and also to be extended by custom, organisation-specific
validity checks. E.g., for print layout validity checks we could have:
2019-01-03 04:53:07 +10:00
nirvn
ac6e674064 [themes] Apply OS-specific UI scale factor to em values 2019-01-02 15:42:18 +07:00
nirvn
883ae1aa9a Add palette file for the Blend of Gray theme 2019-01-02 13:51:56 +07:00
nirvn
d8803151c8 Add palette file for the Night Mapping theme 2019-01-02 13:51:56 +07:00
nirvn
96eb841146 [themes] Allow customization of palette role colors
This fixes the following issues:
- combo box drop down menu white top/bottom edges
- color button header background color
- white line at top of stacked dock area
2019-01-02 13:51:56 +07:00
Alexander Bruy
2f1efd8927
Merge pull request #8776 from alexbruy/gdal_tests
[processing] cover more GDAL algorithms with unittests
2019-01-02 08:17:19 +02:00
Juergen E. Fischer
196024ccba typo fixes 2019-01-01 21:53:37 +01:00
Alexander Bruy
f332233f6d remove obsolete tests 2019-01-01 19:28:09 +02:00
Alexander Bruy
6809d346ab [processing] add unittest for gdal_polygonize algorithm 2019-01-01 19:26:14 +02:00
Alexander Bruy
f447745b5f [processing] add unittest for gdal2xyz algorithm 2019-01-01 18:15:41 +02:00
Alexander Bruy
655dc1f567
Merge pull request #8773 from alexbruy/processing-gdal_sieve
[processing] fix handling of the mask layer in the gdal_sieve algorithm
2019-01-01 16:26:54 +02:00
Alexander Bruy
a5365e26eb [processing] fix handling of the mask layer in the gdal_sieve algorithm
(fix #20713)
2019-01-01 15:20:21 +02:00
Alexander Bruy
1233a21ac2
Merge pull request #8766 from alexbruy/processing-gdaladdo
[processing][needs-docs] expose resampling and format options in the gdaladdo (fix #20432)
2019-01-01 13:35:33 +02:00
Mathieu Pellerin
f07c264349 [symbology] Add missing 'meters at scale' unit type in ellipse marker 2019-01-01 15:42:57 +07:00
Mathieu Pellerin
9184c31a58 Declare color / color ramp button text color in Night Mapping 2019-01-01 15:33:06 +07:00
Mathieu Pellerin
4e3f270e41 Declare color / color ramp button text color in Blend of Gray 2019-01-01 15:33:06 +07:00
Mathieu Pellerin
4793241ad2 [themes] Use widget's palette when drawing text for color ramp button 2019-01-01 15:33:06 +07:00
Mathieu Pellerin
43f8b46acd Fix combobox dropdown list padding issue with themes 2019-01-01 13:00:27 +07:00
Mathieu Pellerin
015508ca81 Only apply custom toolbar spacing for default theme 2019-01-01 13:00:27 +07:00
Mathieu Pellerin
1b460b5209 Make Blend of Gray theme hidpi-compatible 2019-01-01 13:00:27 +07:00
Juergen E. Fischer
3599842575 windows: allow https downloads in nsis installer (fixes #18360) 2018-12-31 20:20:30 +01:00
Juergen E. Fischer
fea05d62dd debian packaging: avoid conflicting files (followup add1a9228, refs #20856, fixes #20894) 2018-12-31 20:20:30 +01:00
nirvn
c67e590e6e Make Night Mapping theme hidpi-compatible 2018-12-31 18:28:12 +07:00
Alexander Bruy
c64383702e make advanced params optional to keep algorithm API stable 2018-12-31 12:34:12 +02:00
Alexander Bruy
3d33b9f1e2 [processing] expose resampling and format options in the gdaladdo
algorithm (fix #20432)

These options actually were here but not added to the UI.
2018-12-31 12:20:31 +02:00
Nyall Dawson
0d52194136 Followup 2ec05137, fix incorrect styling of some GUI elements 2018-12-31 19:40:47 +10:00
Alexander Bruy
84d155eaf0
Merge pull request #8759 from alexbruy/processing-interpolation
[processing][needs-docs] Add cell size parameter to native interpolation algorithms (fix #18556, #20114)
2018-12-30 15:55:05 +02:00
Alexander Bruy
8186f2350e
Merge pull request #8762 from alexbruy/processing-gdal-defaults
[processing] set default value for band parameters in GDAL algs (fix #20610)
2018-12-30 15:54:46 +02:00
Alexander Bruy
acd4ceca5c keep also old test for native interpolation algs 2018-12-30 09:48:45 +02:00
Alexander Bruy
1e1ed79e2d [processing] set default value for band parameters in GDAL algs (fix #20610) 2018-12-30 09:18:23 +02:00
Alexander Bruy
e86ca50cc6 restore columns and rows parameters for the extremely rare case if
someone have used native interpolation algs in scripts/models
2018-12-30 08:15:26 +02:00
Alexander Bruy
09dbb8917d update tests 2018-12-30 06:44:09 +02:00
Alexander Bruy
5813b96159 add cell size option to IDW and TIN interpolation algorithms 2018-12-30 06:44:09 +02:00
Alexander Bruy
357cf270ff add value changed signal for custom interpolation parameter wrapper
move duplicated code into common file
2018-12-30 06:44:09 +02:00
Alexander Bruy
37f14f8b3f add value changed signal for extent parameter widget wrapper 2018-12-30 06:44:09 +02:00
Nyall Dawson
e90efda46d Avoid build warnings on Windows caused by external dependancies 2018-12-30 09:11:04 +11:00
Nyall Dawson
b9658b1a67 Fix build warning 2018-12-30 09:11:02 +11:00
Nyall Dawson
2ec051374f Add custom QStyle override to allow more flexibility with theming
Allows us to apply custom style overrides. Initially, this just
improves the appearance of disabled icons on dark themes.

The default Qt style method of displaying disabled icons only
works well on light backgrounds, on dark backgrounds it makes the
icons stand out due to the extreme contrast between the background
and the lightened icons.

Replace with a custom approach which desaturates icons and reduces
their opacity. This arguably also improves their appearance on
light themes too (I think so).
2018-12-30 05:22:44 +10:00