53087 Commits

Author SHA1 Message Date
Nyall Dawson
3d283c1b05 [needs-docs] Show actual linked color in color buttons when color
has been linked to a project color

Instead of only showing linked color status in the accompanying
data defined button, we now also show it inside the color button
itself. So now the button color is a live reflection of the
project color it is linked to.

Additionally, when the color is linked, the button only allows
users the choice of "unlinking" the color from the linked
project color. The usual color button options allowing users
to directly change the color are not present. (As linked
colors must be edited in the project colors section from
the project properties dialog)
2019-01-17 16:14:32 +11:00
Nyall Dawson
4ae3bcd23f Set correct message bar for attribute table 'select by expression' dialog 2019-01-17 12:50:09 +11:00
Nyall Dawson
00c4d4af61 Fix crash when using select by expression from attribute table dialog 2019-01-17 12:50:09 +11:00
Martin Dobias
7f5d8ea507 [3d] Added Qgs3DRenderContext + QgsFeature3DHandler. Code refactoring.
Currently implementation of 3D symbols runs a feature iteration loop
inside each implementation, making it difficult to use elsewhere
(e.g. if source features are not coming from a vector layer, or just
for its subset). The new classes give better structure to the code.

QgsFeature3DHandler is somehow similar to the 2D renderer classes
where the object first has the ability to say what fields may be needed,
then there's a method that will process a given QgsFeature (this is
supposed to be called in a loop) and finally a method to finish the job
and create a 3D entity. Thanks to this separation of responsibilities
it should be easier to later move the heavy work to a worker thread.

Qgs3DRenderContext is similar to QgsRenderContext used in 2D rendering.
The purpose is to collect arbitrary objects useful during preparation
of 3D entities. Currently just keeping Qgs3DMapSettings and expression
context.

Updated implementation of 3D polygon symbols to use the new infrastructure.
A nice side effect is that instead of two feature iteration loops
(one for selected, the other for non-selected) there is just one.
2019-01-17 00:21:47 +01:00
Nyall Dawson
9014be0d37 Fix too small symbol layer preview icon on hidpi displays 2019-01-17 09:47:20 +11:00
Nyall Dawson
3c0c2535d6 Use a minimal expression context in symbol layer tree preview icons
Allows the preview icon to correctly show linked project colors
2019-01-17 09:47:20 +11:00
rldhont
9419bfdc5f
Merge pull request #8878 from rldhont/sld-read-like-escapeChar-master
[BUGFIX] SLD : Support escapeChar attribute of PropertyIsLike
2019-01-16 19:53:25 +01:00
rldhont
1f9a14d984 [BUGFIX] SLD : Support escapeChar attribute of PropertyIsLike
In OGC FilterEncoding standard, the PropertyIsLike element has an escapeChar attribute in place of escape attribute.

In the QgsOgcUtils class, the attribute escape or escapeChar is added to PropertyIsLike element, but it only checks escape attribute when it decodes it.

The commit fixed it and adds test.
2019-01-16 17:46:14 +01:00
lbartoletti
aaede28b43 [feature] Add expression for square by diagonal and rectangle from 3 points
With the new class QgsQuadrilateral, we can add expressions to create a square by a diagonal and rectangles by 3 points
2019-01-17 03:42:20 +11:00
Nyall Dawson
200d4f6a2c Fix connected widgets do not update in some circumstances 2019-01-17 03:39:20 +11:00
Nyall Dawson
f89d061ba0 [FEATURE][processing] Add geodesic mode for "Join by Lines (Hub lines)" algorithm
This allows optional creation of geodesic lines, which represent the
shortest distance between the points based on the ellipsoid.

When geodesic mode is used, it is possible to split the created lines
at the antimeridian (±180 degrees longitude), which can improve
rendering of the lines. Additionally, the distance between vertices
can be specified. A smaller distance results in a denser, more accurate
line.
2019-01-17 03:39:20 +11:00
Nyall Dawson
1248bea156 Fix determination of geodesic line when first segment is small and coordinates are reprojected 2019-01-17 03:39:20 +11:00
Juergen E. Fischer
4e6a7309e1 [FEATURE] postgres provider: save primary key selection
When a view loaded from Data Source Managers's PostgreSQL tab you can
select the key columns of the view (by default the first column is used,
which can be wrong). This commit stores that selection in the settings,
so that it doesn't have to be reselected on subsequent loads.  This
stored selection is also used when adding the loading from the browser.
2019-01-16 15:33:40 +01:00
Hugo Mercier
21a7e154a3
Merge pull request #8851 from mhugo/fix_vertex_tool_cache
Fix vertextool's geometry cache invalidation
2019-01-16 14:30:10 +01:00
Juergen E. Fischer
a6f261826a translation updates 2019-01-16 14:24:04 +01:00
Hugo Mercier
eb08839429
Merge pull request #8850 from mhugo/fix_postgres_transaction_lock
Fix libpq access from different threads
2019-01-16 14:20:42 +01:00
Peter Petrik
0a7c8a7011 test quad_flower.2dm also in the mesh read tests 2019-01-16 11:02:20 +01:00
Peter Petrik
0459a3db44 fix copy-paste error in mesh symbol type 2019-01-16 11:02:20 +01:00
Martin Dobias
d2834bbb44 fix 3d mesh test 2019-01-16 11:02:20 +01:00
Peter Petrik
d695c4b34b [feature] [3d] [mesh] Display mesh faces in 3D view as terrain 2019-01-16 11:02:20 +01:00
Nyall Dawson
83340d0dfb [layouts] Fix loss of composition variables when converting 2.x compositions 2019-01-16 20:26:11 +11:00
Mathieu Pellerin
cabcce1fcd Fix dual view's feature list not using app palette 2019-01-16 11:04:21 +07:00
Mathieu Pellerin
f275cc0812 Fix variable editor widget not playing well with dark themes 2019-01-16 10:56:57 +07:00
Nyall Dawson
2e9919e150 Show category/range label as breadcrumb title when editing classes in layer style dock 2019-01-16 13:51:34 +11:00
Nyall Dawson
2aab28380c [browser] Don't show gdal/ogr layer items for QGIS style xml files
These aren't layers, so the extra entries are just distracting noise.
2019-01-16 12:10:25 +11:00
Nyall Dawson
956a74fcb7 Fix some more tiny icons on hidpi displays 2019-01-16 12:04:58 +11:00
Nyall Dawson
0a119b9a3e HIG 2019-01-16 12:04:34 +11:00
Nyall Dawson
1a45c8c039 Add 'Copy to default' action as a dedicated button when browsing non-default style 2019-01-16 12:04:34 +11:00
Nyall Dawson
878cec9977 Allow additional tags to be set when copying items to default style 2019-01-16 12:04:34 +11:00
Nyall Dawson
ed797c98f4 Nicer strings 2019-01-16 12:04:34 +11:00
Nyall Dawson
6246dd7d5c Considerably simplify code, remove duplication 2019-01-16 12:04:34 +11:00
Nyall Dawson
a7c18904e6 Rename action for clarity 2019-01-16 12:04:34 +11:00
Nyall Dawson
5ce54fdc9c Release busy cursor before showing message box 2019-01-16 12:04:34 +11:00
Nyall Dawson
a1b44c939d [FEATURE] When browsing a style from the browser panel, allow copying
symbols to the default style from the right click menu and share button

Allows users to easily transfer symbols and ramps from a style xml
file directly to their local style database.
2019-01-16 12:04:34 +11:00
Nyall Dawson
dd00777b43 Refactor 2019-01-16 12:04:34 +11:00
Nyall Dawson
701a29fd6e [FEATURE] Double clicking a style .xml in the browser now opens
the manager dialog, allowing browsing and non-edit actions for the
style.
2019-01-16 12:04:34 +11:00
Nyall Dawson
2c22beafa9 Fix initial selected tab in style manager dialog 2019-01-16 12:04:34 +11:00
Nyall Dawson
42a7804323 Add method to hide favorites and smart groups from style manager dialog 2019-01-16 12:04:34 +11:00
Nyall Dawson
ec8b299b9b Add a read only mode to QgsStyleManagerDialog
Allows the dialog to browse an existing style, but prevents users
from making any edits to the style.
2019-01-16 12:04:34 +11:00
Denis Rouzaud
97fef536ea
Merge pull request #8864 from 3nids/qproperty
add Q_PROPERTY for QgsCoordinateReferenceSytem::isGeographic and QgsGeometry::isNull
2019-01-15 18:15:03 -05:00
Denis Rouzaud
4e31597f5c add Q_PROPERTY for QgsCoordinateReferenceSytem::isGeographic 2019-01-15 14:32:22 -05:00
Denis Rouzaud
683dbff8ad use Q_PROPERTY instead of Q_INVOKABLE for QgsGeometry::isNull 2019-01-15 14:31:49 -05:00
lbartoletti
c885cd7267 add toString and repr for qgsvector 2019-01-16 01:10:33 +11:00
Mathieu Pellerin
63a3445521
[themes] Allow styling of SQL/python/expression/HTML code editors (#8860) 2019-01-15 20:04:52 +07:00
Peter Petrik
9aacf4bac6 fix #20316 not possible to assign mesh crs 2019-01-15 12:41:39 +01:00
Mathieu Pellerin
6957009f8b [themes] Fix the processing modeler's rendering on dark backgrounds 2019-01-15 12:24:50 +07:00
RucioTozzy
2e36fd603e Update TRANSLATORS
Most of the zh-Hant users are Taiwanese, so the flag of zh-Hant should change to flag of Taiwan, not flag of China :)
2019-01-15 10:53:32 +07:00
Mathieu Pellerin
807958878f Be theme friendly, don't hard-coded white background for locale sample label 2019-01-15 09:48:21 +07:00
Mathieu Pellerin
61252f8cce [themes] Additional fixes for Blend of Gray
- better welcome page (et cie) disabled text
- improve tree view item hover color to avoid masking
  drop indicator when drag 'n dropping
2019-01-15 09:48:07 +07:00
Alex
004d6bae5f Add QgsRenderContext to QgsLayerTreeModelLegendNode::ItemContext 2019-01-15 13:37:36 +11:00