56619 Commits

Author SHA1 Message Date
nirvn
e5deb5517b [FEATURE][layout] Add above/below segments placement option for scale bar labels 2019-07-29 15:14:34 +07:00
Nyall Dawson
5911f96fa9 [FEATURE][labelling] Expose "label all parts" option via label
properties tool

Makes it easier to set this option per-feature
2019-07-29 16:41:09 +10:00
Nyall Dawson
f59fc9e622 Use QgsAlignmentComboBox in scalebar settings 2019-07-29 15:39:12 +10:00
Nyall Dawson
1106af7925 Don't calculate the symbol outputUnit and mapUnitScale only for
retrieval by unused, deprecated methods

Whilst technically this is an API break, it's costly to calculate
these for symbols and the results are completely unused, except
for in some deprecated getters which are very unlikely to be
used by external plugins (and which shouldn't be used, in any case...)
2019-07-29 15:38:40 +10:00
Nyall Dawson
31c2291e41 [labeling] Disable alignment combo boxes in label properties dialog
for non-pinned labels

These have no effect, so enabling them is misleading

Refs https://gis.stackexchange.com/questions/330312/changing-vertical-and-horizontal-position-for-specific-label-in-qgis
2019-07-29 12:48:18 +10:00
nirvn
cf215e149d [ui] Fix hidpi/resizing issue with auxiliary-related dialogs 2019-07-29 12:40:01 +10:00
Nyall Dawson
4d5fe9a086 [FEATURE][callouts] Add setting to allow callouts to be drawn to all parts
of a multi-part feature

Also data-definable!
2019-07-29 11:18:10 +10:00
Nyall Dawson
bb9267d11b Record whether a callout corresponds to a feature which has all parts labeled in the callout context
This is useful information for dictating how a callout should be rendered
2019-07-29 11:18:10 +10:00
Nyall Dawson
fcd952efe9 Always clear the label all parts flag when a label has fixed position 2019-07-29 11:18:10 +10:00
rldhont
fd504337d8 [Test] PyQgsRulebasedRenderer: add more complex 2019-07-29 09:52:18 +10:00
rldhont
238e0210df [Test] PyQgsRulebasedRenderer: add more complex usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
12df8d187a [Test] PyQgsCategorizedSymbolRenderer: add more complex usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
a0f3ceefce [Test] PyQgsPointDisplacementRenderer: add usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
3955c1e047 [Test] PyQgsPointClusterRenderer: add usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
26442d4edb [Test] PyQgsRulebasedRenderer: add usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
629c3e64d2 [Test] PyQgsSingleSymbolRenderer: add usedAttributes test 2019-07-29 09:52:18 +10:00
rldhont
96e012eb43 [Test] PyQgsSymbolLayer: add usedAttributes tests 2019-07-29 09:52:18 +10:00
Nyall Dawson
802deddaf9 Sipify 2019-07-29 09:03:40 +10:00
Nyall Dawson
27c606a617 Fix ui file build warning 2019-07-29 08:19:33 +10:00
Nyall Dawson
ab7106ae99 [labeling][FEATURE] Allow data defined control over "label every
part of multipart features" setting
2019-07-27 20:22:50 +10:00
Juergen E. Fischer
051e315a69 fix build 2019-07-26 22:27:46 +02:00
Juergen E. Fischer
22ca00bfbe release.pl: use sha256 sum for tar ball 2019-07-26 20:46:23 +02:00
Nyall Dawson
7ec2101d05 Dox++ 2019-07-26 18:24:20 +10:00
Nyall Dawson
8c53d0c8c9 Dox 2019-07-26 18:24:20 +10:00
Nyall Dawson
4a97d5e4c4 [FEATURE][labeling] Add "overrun distance" setting for line labels
This setting allows users to specify the maximal allowable distance
a label may run past the end (or start) of line features. It works
for both curved and parallel label modes, and supports distances
in mm/map units/pixels/etc, and data-defined distances.

Fixes #15846
2019-07-26 18:24:20 +10:00
Nyall Dawson
3484a0246d [labeling] Add API to allow curved labels to overrun features 2019-07-26 18:24:20 +10:00
Nyall Dawson
056f1e4f3c Add method to extend a pal pointset line by a set start and end distance 2019-07-26 18:24:20 +10:00
Nyall Dawson
33c9228fb5 Add a clone method to pal pointsets 2019-07-26 18:24:20 +10:00
Nyall Dawson
4ecc081eb8 Use std::vector instead of raw arrays in pal pointsets 2019-07-26 18:24:20 +10:00
Nyall Dawson
a05116b715 [labeling] Record number of repeats associated with a label position
This allows the candidate generation code to consider whether a label
is a repeat when creating candidate placements
2019-07-26 18:24:20 +10:00
Nyall Dawson
27043c543f Use a smaller font in projection widget def text box 2019-07-26 18:23:56 +10:00
Nyall Dawson
acbcdbb9c4 Show the WKT definition of projections in the projection selection dialog
This is better than the proj definition, since it's non-lossy (well,
for proj 6 builds. Just go crawl into a corner and cry proj 4).
2019-07-26 18:23:56 +10:00
Nyall Dawson
4c7f8a951d Add API to specify WKT format when exporting QgsCoordinateReferenceSystem objects
Like all good things, this is Proj 6 only.
2019-07-26 18:23:56 +10:00
Matthias Kuhn
7cdbe40fba
Merge pull request #30930 from m-kuhn/attachment_widget_attribute_table_crash
Hide browse button on attachment widget in attribute table
2019-07-26 09:48:09 +02:00
Matthias Kuhn
c08b757bc4
Merge pull request #30927 from m-kuhn/source_select_reset
Reset selection when data source select dialog is reopened
2019-07-26 09:47:56 +02:00
Matthias Kuhn
52373e2ec1
Merge pull request #30926 from m-kuhn/default_selection_mode_pg_oracle
Default to QAbstractItemView::ExtendedSelection in pg and oracle source select
2019-07-26 09:47:43 +02:00
nirvn
725fb286c6 [ui] Use updated label text icon in the style manager 2019-07-26 14:25:04 +07:00
Nyall Dawson
758adf4cca Copy correct srs db when running from build dir 2019-07-26 17:20:01 +10:00
Matthias Kuhn
648e4f1717 Fix compiler warnings 2019-07-26 08:41:24 +02:00
nirvn
c5a5e4ce70 [ui] Update label properties icons to be compatible with dark themes 2019-07-26 13:03:22 +07:00
Matthias Kuhn
d49742dd40 Use ExtendedSelection mode in MSSQL and DB2 source select 2019-07-26 07:33:59 +02:00
nirvn
ffdf6ffe46 [ui] Add dedicated label callout icons 2019-07-26 12:16:01 +07:00
Nyall Dawson
f2d3bdd486 [proj6] Always normalize operations, even when we are using predefined
proj coordinate operation (e.g. those stored in a project)

Fixes #30643
2019-07-26 12:52:02 +10:00
Nyall Dawson
ca13055770 Add unit tests from #30643 2019-07-26 12:52:02 +10:00
Nyall Dawson
68c4a814b4 Add unit tests from #30569 2019-07-26 12:52:02 +10:00
Nyall Dawson
8ef960442d [processing] Use lists, not maps in overlap analysis algorithm
Ensures consistent field ordering and that fields are always matched
to input layer order
2019-07-26 10:21:20 +10:00
Nyall Dawson
d775061bc6 [needs-docs] Show current tags for symbol when right clicking a symbol
in style manager
2019-07-26 06:07:29 +10:00
Nyall Dawson
644c002c8d [FEATURE] Add "Paste" action to style manager dialog menu
Allows pasting copied symbols directly into a style
2019-07-26 06:07:29 +10:00
Nyall Dawson
732bc29322 [FEATURE] Allow copying symbols from style manager
Allows symbols to be copied from the style manager dialog, so that
they can be pasted elsewhere in QGIS (e.g. in symbol or color buttons)
2019-07-26 06:07:29 +10:00
Matthias Kuhn
4e33bc1fcf
Merge pull request #30610 from signedav/fix_valuerelation
Fix multi-selection on value relation widget using string fields
2019-07-25 18:16:25 +02:00