56281 Commits

Author SHA1 Message Date
Nyall Dawson
33ca051b52 Add icons in add style entity actions 2019-06-21 15:52:56 +10:00
Nyall Dawson
db5146a225 Gui tweaks 2019-06-21 15:52:56 +10:00
Nyall Dawson
850ea71c4d More wip 2019-06-21 15:52:56 +10:00
Nyall Dawson
d4d77808f9 Style model work 2019-06-21 15:52:56 +10:00
Nyall Dawson
aa658e5d07 Allow label settings gui widget to work widget layers 2019-06-21 15:52:56 +10:00
Nyall Dawson
0fd4984b3b [FEATURE] Allow storage of label settings in style manager
Just like the earlier change which allows for text formats to
be managed in style manager, this change allows for layer-wide
label settings to be stored and managed in styles.

So while a text format includes just the font settings and other
appearance related settings, Label Settings also includes layer-type
specific settings such as label placement, priority, rendering
settings.
2019-06-21 15:52:56 +10:00
Nyall Dawson
65230abc16 Sync column sizes in all style item list widgets 2019-06-21 15:52:56 +10:00
Nyall Dawson
6f172da7e0 Fix dox 2019-06-21 15:52:56 +10:00
Nyall Dawson
554d23b324 Improve handling of favorites in QgsStyleModel and proxy model
Fixes favorite entities sometimes incorrectly filtered out
2019-06-21 15:52:56 +10:00
Nyall Dawson
7757a5ae7a Spelling 2019-06-21 15:52:56 +10:00
Nyall Dawson
81009663f3 Eye candy overload: Make background rectangle on text format preview
icons a very subtle gradient, make outline a variant of the actual
background color instead of always a grey.

 Please enter the commit message for your changes. Lines starting
2019-06-21 15:52:56 +10:00
Nyall Dawson
823d6301cd [needs-docs] Move some lesser-used label format settings from first page to
"formatting" page

Makes room for a larger text format style list
2019-06-21 15:52:56 +10:00
Nyall Dawson
938fe6af45 [needs-docs] Add text format widget below label settings
This adds a new list below the first tab of label settings, which
shows a filterable list of text formats stored within the user's
style manager database. It's the equivalent of the symbol library
which is shown below symbol settings when styling vector
layers.

This allows users to easily set label format to match styles
saved in the local style database, and also to add a new
text format to the style database based on the current
label formatting settings.
2019-06-21 15:52:56 +10:00
Nyall Dawson
4ea55fceaa Split symbol list off to its own reusable widget 2019-06-21 15:52:56 +10:00
Nyall Dawson
e0446a7165 Preview icons for text symbols 2019-06-21 15:52:56 +10:00
Nyall Dawson
1e718478df [FEATURE] Allow creation and editing of text formats through style manager dialog
This allows the style manager to be used to manage text formats,
which store the font, color, buffers, shadows, and backgrounds
of text formats (i.e. all the formatting parts of label settings,
which can be used outside of labels, eg in layouts)

Text Formats are added alongside the existing symbols and color
ramp management options, and offer identical functionality as these.
2019-06-21 15:52:56 +10:00
Nyall Dawson
447fe002ed Start exposing text formats via GUI 2019-06-21 15:52:56 +10:00
Nyall Dawson
8e98cce253 Auto update existing style databases to add new text format table 2019-06-21 15:52:56 +10:00
Nyall Dawson
9647a18c13 Move label preview background color setting to QgsTextFormat
So that we can utilise it outside of labeling
2019-06-21 15:52:56 +10:00
Nyall Dawson
67c93c1191 Add support for text formats to QgsStyleModel 2019-06-21 15:52:56 +10:00
Nyall Dawson
40e4789ba1 [API] Add support for text renderer formats to QgsStyle 2019-06-21 15:52:56 +10:00
Nyall Dawson
4c2a53319b Fix string values are always repeated in expression build field values list 2019-06-21 15:52:25 +10:00
Nyall Dawson
bb622c8718 [layouts] When a layer item is set to block labels from a map,
don't apply the "label margin from map edge" to this item's extent

Turns out that that behavior was unwanted in practice, as it
misused the margin from edge setting and caused too large a
blocking region for labels around other layout items.
2019-06-21 15:12:55 +10:00
David Signer
840ab03808 const copy before for loop 2019-06-21 09:04:42 +10:00
David Signer
9290dff9fc tests for removing constraints on provider default value 2019-06-21 09:04:42 +10:00
David Signer
4ac0f69d07 remove constrainst of fields that use defaultValueClauses from provider on original
fixes #28122
2019-06-21 09:04:42 +10:00
Blottiere Paul
3b02d3d970 Replace shared pointer with unique pointer 2019-06-21 09:03:03 +10:00
Blottiere Paul
87bdf6b6b6 Add unit test 2019-06-21 09:03:03 +10:00
Blottiere Paul
6bdb9ba10b Add QLongLong support. Fixes #30263 2019-06-21 09:03:03 +10:00
Tom Elwertowski
35da038860 macOS needs path to GEOS framework for PAL 2019-06-21 07:04:11 +10:00
Larry Shaffer
6e6b289e7c
Add padding so indicator icon does not look misaligned to background 2019-06-20 10:51:53 -06:00
Larry Shaffer
2fd24d182a
Make layer tree layer mark just a thin line; remove context menu action 2019-06-20 10:51:43 -06:00
Juergen E. Fischer
b20e93c8e2 windows: fix retrieval of user name and full name with special characters 2019-06-20 16:52:20 +02:00
Juergen E. Fischer
3c57d28cfa osgeo4w: change start directory of shortcuts to 'my documents' 2019-06-20 16:52:20 +02:00
Martin Dobias
437f635949 Revert api changes in gui registries to fix some tests 2019-06-20 16:00:06 +02:00
Martin Dobias
ab261b675e Doxy fix + remove extra QgsProviderMetadata constructor 2019-06-20 14:50:30 +02:00
Denis Rouzaud
51572e9e83
Merge pull request #30269 from 3nids/fix28962
do not use unique_ptr for QGraphicsItem
2019-06-20 14:20:03 +02:00
Martin Dobias
c396d70d14 Doxygen fixes and api break fixes 2019-06-20 14:15:07 +02:00
Martin Dobias
7659dd8b8b Misc fixes for provider registry/metadata deprecated functions 2019-06-20 12:32:44 +02:00
Matthias Kuhn
fa1d6bbf61
Merge pull request #30276 from m-kuhn/std_vector_checks
Fix crash in raster calculator
2019-06-20 11:17:45 +02:00
Alessandro Pasotti
0290342e6e
Merge pull request #30271 from elpaso/bugfix-gh30264-wms-bbox-wrong-transform-empty-layers
Server wms bbox wrong transform on empty layers
2019-06-20 10:55:25 +02:00
Martin Dobias
6918bac9df Revert API break and move WidgetMode back to QgsProviderRegistry 2019-06-20 10:49:36 +02:00
Martin Dobias
7e613f6b01 travis fixes 2019-06-20 09:56:44 +02:00
Matthias Kuhn
6b5393798c Improved fix 2019-06-20 09:34:15 +02:00
Martin Dobias
edcf915ba4 Remove some deprecation warnings 2019-06-20 09:00:19 +02:00
Alessandro Pasotti
c838161f64 Catch coord transform exception and log it
Skip the layer if there are any exceptions.
2019-06-20 07:22:57 +02:00
Nyall Dawson
3bd3aba25b [needs-docs] [labeling] Allow data defined control over line placement options
Allows users to override the line placement settings (e.g.
above/below/on line options) on a per-feature basis. Somehow
this one was the only(?) setting from labeling which
was missing a data defined control...
2019-06-20 10:24:16 +07:00
Nyall Dawson
04c51db551 Fix priority of parallel placements
Ensure that above line placement is preferred when both above
and below line placements are valid
2019-06-20 12:50:35 +10:00
Nyall Dawson
6eaaf92662 Use a hardcoded list of candidate field name strings, including
(harcoded) localized versions

See discussion at https://github.com/qgis/QGIS/pull/30245
2019-06-20 09:40:47 +10:00
Nyall Dawson
6c08f063f4 Revert "Use a translated list for default display expression field candidates"
This reverts commit bb6993fd6f2abc6ecc7743ff599db34394abadcb.
2019-06-20 09:40:47 +10:00