30 Commits

Author SHA1 Message Date
Martin Dobias
f1a31d09f1 Use standard font for text on symbol 2018-04-19 14:23:49 +02:00
Martin Dobias
49b02bf562 [FEATURE] Legend: optional text on top of symbols for vector layers
In some cases it is useful to add extra information to the symbols in the legend.
This work allows definition of additional labels in vector layer properties > Legend tab.
2018-04-18 21:52:56 +02:00
Matthias Kuhn
d947c8d72a
Update control image mask 2017-09-29 17:40:27 +02:00
Matthias Kuhn
82e6192eff
More control images 2017-09-28 13:22:39 +02:00
Matthias Kuhn
58b2fe6933
More control image updates 2017-09-28 13:22:38 +02:00
Matthias Kuhn
2c0e61be1f
Fix some test masks 2017-09-28 13:22:38 +02:00
Nyall Dawson
ecafb494a8 Add some mask images, adjust test results for OSX 2017-08-07 07:38:19 +10:00
Martin Dobias
78a990b5b6 Fixing tests 2017-06-22 10:06:02 +02:00
Martin Dobias
c9c42169ce Added unit tests 2017-06-19 16:37:00 +02:00
Mathieu Pellerin
a8b9723cbc [FEATURE] allow customization of line spacing for legend item labels (#3632)
* [FEATURE] allow customization of line spacing for legend item labels
* add test for legend line spacing and update control images
2016-12-13 12:09:13 +07:00
Martin Dobias
b798040040 Fixed legend renderer expected images 2016-11-01 11:41:23 +08:00
nirvn
455874258c [legend] insure multi-line labels are vertically centered with tall symbols 2016-10-19 10:02:43 +07:00
Nyall Dawson
e3313fac95 Test masks 2016-09-10 14:42:33 +10:00
Nyall Dawson
570e6936b6 Add a bunch of tests for legend grouping into columns 2016-09-10 14:42:33 +10:00
Nyall Dawson
aa0e6d8944 Followup c78347, update test images 2016-06-16 18:30:22 +10:00
Nyall Dawson
011bde8873 More xenial, Windows test mask updates 2016-04-22 06:39:00 +10:00
Nyall Dawson
eacca44c6f Test mask updates (qt5 and xenial) 2016-04-22 05:46:58 +10:00
Nyall Dawson
efb84ea2fa [FEATURE][diagrams] Add optional legend entries for diagram sizes
A new "legend" tab has been added to diagram properties, allowing
both the existing attribute legend and a new size legend to be
enabled/disabled. The size legend has a configurable marker
symbol.

Also includes unit tests for both diagram attribute and size
legends.

Sponsored by ADUGA
2016-04-19 08:16:05 +10:00
Nyall Dawson
c24938e3e4 Update test masks for Qt5, enable more tests on Travis Qt5 builds 2016-04-18 15:23:02 +10:00
Nyall Dawson
0c5fa81126 Fix huge legend item size when symbol uses map unit sizes (fix #13979)
Add unit test
2016-04-11 15:34:49 +10:00
Nyall Dawson
befa962b30 Update legend test mask images for Windows build 2016-03-31 16:46:30 +11:00
Hugo Mercier
f9c736c9f8 Only filter legend nodes that are checked.
Keep unchecked legend items when filtered by expression
2016-03-14 14:17:43 +01:00
Nyall Dawson
dc2f1523cd Update test mask images 2016-03-03 15:32:44 +11:00
Nyall Dawson
39e1f68ccc Fix filtering legend content by map when renderer contains
duplicate symbols (fix #14131)

Now, we don't test for map content using the symbols but instead
use the legend key during the hit test
2016-01-25 14:43:54 +11:00
Nyall Dawson
4624fb88ae Update test mask images 2015-11-26 12:53:52 +11:00
Nyall Dawson
452e61c8e0 More test mask updates for windows 2015-11-10 17:15:43 +11:00
Nyall Dawson
2988dbdd18 Update legend test mask images for debian builds 2015-11-10 06:24:41 +11:00
Hugo Mercier
d16cdcf449 Add more options for filtering legend elements
This introduces two new options to filter legend elements:
- filter by expression: a boolean expression can be set. Only symbols of
features that make the expression evaluated to true will be kept in the legend
- filter by polygon: only symbols of features that are inside the given
polygon will be part of the legend.

The polygon filtering is used in particular for a new option in the
composer legend that allows to filter out anything that is not included
in the current atlas polygon.
2015-11-03 10:39:09 +01:00
Nyall Dawson
d1be2ff214 Fix hardcoded border for raster legend items (fix #13540)
Previously raster legend items always had a fixed black border.
Now there's options to change the color/width of this border or
disable it entirely.
2015-10-09 06:12:37 +11:00
Nyall Dawson
0c5475545f Cleanup control_images folder by grouping some tests in subfolders 2015-08-30 20:15:25 +10:00