46527 Commits

Author SHA1 Message Date
Nyall Dawson
251e1d5352 [FEATURE][processing] Add line sinuosity to "Export Geometry Info"
Adds line sinuosity and straight distance to the stats calculated
by "Export Geometry Info"

Fixes #12376
2018-03-12 14:58:04 +11:00
Nyall Dawson
41d16a8491 Unit tests for straightDistance2d/sinuosity 2018-03-12 14:58:04 +11:00
Nyall Dawson
6c179059a5 Add straightDistance2d and sinuosity measures to QgsCurve 2018-03-12 14:58:04 +11:00
Nyall Dawson
05fb8f7349 'Catch all' -> 'Catch-all' 2018-03-12 14:32:17 +11:00
Nyall Dawson
f06b3691c5 More spelling fixes 2018-03-12 14:32:17 +11:00
luz.paz
b82ec177c9 Misc. source comment typos
+ added 2 strings in to spelling.dat file
2018-03-12 14:32:17 +11:00
Nyall Dawson
d04b3d9eaf Update spell check list, spelling 2018-03-12 14:32:17 +11:00
luz.paz
2a6ae6ac96 Misc. source and comment typos
These need a little more review, so I added them in to a separate PR.
2018-03-12 14:32:17 +11:00
Nyall Dawson
ade747bcdd Fix doxygen warning 2018-03-12 14:30:53 +11:00
Nyall Dawson
273e664563 Fix some leaks in conversions 2018-03-12 14:30:53 +11:00
Nyall Dawson
a0f6a2bc04 Fix leak in QgsVectorFileWriter metadata
Not a serious leak (since it only occurs once per application), but
causes HEAPS of valgrind noise
2018-03-12 14:30:53 +11:00
Nyall Dawson
4af5ff500a Fix leak when a transform error occurs while transforming linestrings 2018-03-12 14:30:53 +11:00
Nyall Dawson
0d99d310d0 Fix leak when splitting geometries 2018-03-12 14:30:53 +11:00
Nyall Dawson
31a92543c7 Use some constants for search box highlighting styles 2018-03-12 13:08:09 +11:00
Régis Haubourg
5efa7bb21a Improves background color for search result in general option dialog
fixes 18142 by a lighter yellow background and keeping a black font
2018-03-12 13:08:09 +11:00
Ari Jolma
08332e73a2 [processing][gdal] color relief alg: add the default color option, i.e., no switches 2018-03-12 10:43:47 +11:00
Nyall Dawson
8df954d6b8 [processing] Port Delete Holes algorithm to c++, allow dynamic
min area parameter
2018-03-12 10:41:22 +11:00
Juergen E. Fischer
d88da33e9b debian packaging: add buster 2018-03-11 18:54:37 +01:00
Denis Rouzaud
010a99d112
fix build without python (#6577)
and do not delete object with incomplete type
better fix for warning adressed in PR #6491
2018-03-11 07:39:34 -08:00
Nyall Dawson
30749ef80c Fix leak in virtual layers 2018-03-11 20:20:50 +11:00
Nyall Dawson
eb4951382c Fix leak when writing features with null geometry to vector layers 2018-03-11 20:20:50 +11:00
Nyall Dawson
3315db0fe7 Fix leak in QgsRelief 2018-03-11 20:20:50 +11:00
Nyall Dawson
540d692c56 Fix leak in network analysis director 2018-03-11 20:20:50 +11:00
Nyall Dawson
dfa6b6ae19 Correctly set base style for QgsLayerTreeViewProxyStyle
Creates a new QgsProxyStyle subclass of QProxyStyle which
automatically sets the base style to match the current
application style (creating a new QStyle object, since
setting the base style takes ownership). Additionally,
QgsProxyStyle correctly parents the style to a parent
widget, avoiding leaks since calling QWidget::setStyle
doesn't transfer ownership.

Fixes incorrect theme used for layer tree view since
addition of indicator icons.
2018-03-11 10:23:18 +11:00
Nyall Dawson
0c1ceb3900 [FEATURE][layouts] Data defined table source for attribute table items
When an attribute table is set to a "Layer features" source, this
allows the underlying vector layer from which to source features
to be data defined.

(All existing table attributes (column settings) are left intact,
so setting a data defined table to a layer with different fields
will result in empty columns in the table.)

Sponsored by Kartoza/Inasafe
2018-03-11 10:22:46 +11:00
Nyall Dawson
97324661c7 Add layout util to retrieve map layer from project by string
Considers both layer id (preferred) and layer names
2018-03-11 10:22:46 +11:00
Nyall Dawson
c562a2e540 [layouts] Fix missing call to base class method 2018-03-11 10:22:46 +11:00
Nyall Dawson
709702d568 Don't show profile name in title bar for default profile 2018-03-11 08:44:51 +11:00
Nyall Dawson
6b5dfce38f [layouts] Fix reference map can change when opening a layout designer 2018-03-11 08:44:51 +11:00
Nyall Dawson
60afeadf44 Add QgsProjectDirtyBlocker and QgsProject.blockDirtying to prevent
project dirtying for the lifetime of an object

Python code can then call:

    project = QgsProject.instance()
    with QgsProject.blockDirtying(project):
      # do something

Use QgsProjectDirtyBlocker to prevent projects being marked as
dirty while creating a new project or while loading an existing
project -- avoids the titlebar temporarily showing the project
state as unsaved while it is being loaded.
2018-03-11 08:44:51 +11:00
Nyall Dawson
d6eeabf69b Make sure we don't have a dirty blank project after QGIS launch 2018-03-11 08:44:51 +11:00
Nyall Dawson
354a261e59 [needs-docs] Show "Untitled Project" in title bar for new unsaved
projects

Also show current profile name, if multiple profiles exist

(Maybe doesn't needs-docs)
2018-03-11 08:44:51 +11:00
Denis Rouzaud
cc0c1bc6a4 [QgsFilterLineEdit] disable clear action when read only 2018-03-10 10:17:27 -09:00
Juergen E. Fischer
e1ad1cb473 more translation string fixes 2018-03-10 12:23:45 +01:00
Juergen E. Fischer
158c32979b fix translation strings 2018-03-09 21:47:49 +01:00
Alexander Bruy
7eb7e9361e Revert "[processing] replace QCoreApplication.translate() with tr() in"
This reverts commit 007903494582b1e71273e7b801b928d32eb2f330.
2018-03-09 18:31:10 +02:00
Juergen E. Fischer
ad4d0a17d5 processing: make error messages moved to message bar translatable again (followup 6e2288dcc) 2018-03-09 17:21:12 +01:00
Matthias Kuhn
e1f5c3fe3e
Merge pull request #6565 from tudorbarascu/styles_opacities
add server test for GetMap with opacities and non-default styles
2018-03-09 09:22:17 -04:00
Alexander Bruy
0079034945 [processing] replace QCoreApplication.translate() with tr() in
ParametersPanel class
2018-03-09 14:57:37 +02:00
Tudor Bărăscu
10cfca48d6 add server test for GetMap with styles and opacities
Covers https://issues.qgis.org/issues/15553 case
2018-03-09 13:20:20 +02:00
Ari Jolma
b0cd3fb5f0 Translate strings before making changes to them. 2018-03-09 18:10:23 +11:00
Felis Pimeja
198bf77208 Vectorize console icons (#6515) 2018-03-09 09:53:53 +07:00
Nyall Dawson
00802e5cb2 Update test mask image 2018-03-09 13:34:40 +11:00
Nyall Dawson
393e15b4f5 Correctly respect antialias setting for marker fill symbol layers 2018-03-09 13:34:40 +11:00
Nyall Dawson
8c780dc12f Add @project_home expression variable 2018-03-09 11:15:55 +11:00
Nyall Dawson
4e5c08e2b5 [FEATURE] Allow overwriting the project home path
This allows the project home path (which is used by the browser
to create the 'Project Home' item) to be set by users for a
project, instead of always matching the location where the project
is saved.

This allows users to set the project home to a folder which contains
data and other content, and is especially useful for organisations
where qgis projects are not stored in the root folder of a organisational
'project'.

Project home paths can also be set to relative paths, in which
case they will be relative to the project saved location.

The path can be set through the Project Properties dialog, or
by right-clicking on the Project Home browser item and
selecting 'set project home'

Sponsored by SMEC/SJ
2018-03-09 11:15:55 +11:00
Blottiere Paul
d09a34c900
Merge pull request #6553 from pblottiere/bugfix_dbmanager_stop
[dbmanager] Fixes empty table
2018-03-09 00:10:39 +00:00
Juergen E. Fischer
333f2c3af9 db_manager: add tooltip to default value field when editing table field properties (fixes #13856) 2018-03-08 17:13:58 +01:00
Alessandro Pasotti
ed03913496 Remove unused forward declaration 2018-03-08 12:39:54 +01:00
Alexander Bruy
f7d9bb6443
Merge pull request #6559 from alexbruy/processing-parameters
[processing] fix parameters IDs (follow up #6535)
2018-03-08 13:09:47 +02:00