12364 Commits

Author SHA1 Message Date
Nyall Dawson
654a4a4af6 [processing] Fix algorithm progress bar resets to 0 when an algorithm
reports a non-fatal error

Fixes the "flashy" progress bar when an algorithm encounters a lot
of errors.
2018-03-15 13:43:01 +11:00
Denis Rouzaud
4c1e19c080 fix constraints not checked when they should be (#6550) 2018-03-14 07:49:37 -04:00
Alexander Bruy
88e8acddf8
Merge pull request #6571 from slarosa/fix_18183
[processing] SAGA "output extent" should not be mandatory (fix #18183)
2018-03-13 08:45:45 +02:00
Nyall Dawson
ce59cbd6f7 Sipify 2018-03-13 10:39:49 +11:00
Nyall Dawson
14c8b3c75d [neeeds-docs] Show all color schemes and tools for interacting with the in the
options->color tab

This brings all of QGIS' color scheme handling to a more logical and
user-discoverable place. Previously this functionality was only
available inside the color dialog itself (i.e. users would have to start
changing a color before they could create and edit schemes)
2018-03-13 10:39:49 +11:00
Nyall Dawson
7e6796c657 By default, generate new layer colors from a random selection
in a preset palette

The palette is packaged as resources/new_layer_colors.gpl

TODO: allow users to set a different palette
2018-03-13 10:39:49 +11:00
Nyall Dawson
bc449c401b Move generation of default symbol random colors to
QgsColorSchemeRegistry

and add API to set a QgsColorScheme from which to pull
colors when creating a random symbol color.
2018-03-13 10:39:49 +11:00
Nyall Dawson
40ceb7bdce Don't mark project dirty when legend nodes are expanded/collapsed 2018-03-13 10:10:23 +11:00
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
6c179059a5 Add straightDistance2d and sinuosity measures to QgsCurve 2018-03-12 14:58:04 +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
Nyall Dawson
273e664563 Fix some leaks in conversions 2018-03-12 14:30:53 +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
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
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
Salvatore Larosa
23172a101e [processing] Fixes #18183: SAGA "output extent" should not be mandatory 2018-03-10 22:08:07 +01: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
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
Alexander Bruy
0079034945 [processing] replace QCoreApplication.translate() with tr() in
ParametersPanel class
2018-03-09 14:57:37 +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
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
Alexander Bruy
a9441218c1 [processing] fix parameters IDs (follow up #6535) 2018-03-08 11:10:20 +02:00
Nyall Dawson
5710709c72 Add extra hash to processing hillshade test
At this stage the raster processing tests just test that the
algorithm executes, and generates an output file - there's
no way to validate that the provided hashes are valid
outputs or not
2018-03-08 09:40:07 +10:00
Salvatore Larosa
29f6884a23 Fixes #18375 - fix API break 2018-03-07 23:23:47 +01:00
Nyall Dawson
678f65853a Allow QgsVectorDataProviders to create QgsFeatureRenderers
Implements https://github.com/qgis/QGIS-Enhancement-Proposals/issues/111

Adds support to QgsVectorDataProvider to create vector layer renderers
using provider-specific backend information.
2018-03-07 16:28:47 +11:00
Blottiere Paul
6bdee5b79e [dbmanager] Fixes empty table
Fixes #18352
2018-03-07 03:24:44 +01:00
Nyall Dawson
227f706287 [processing] Add operators for parameter type flags, push warning
to message log for duplicate parameter registration
2018-03-07 09:45:09 +10:00
Matthias Kuhn
5d526794ab Remove leftover file 2018-03-07 09:00:33 +11:00
Matthias Kuhn
c3a843619f Use flags for parameter type extra info 2018-03-07 09:00:33 +11:00
Matthias Kuhn
e3dabac78a Only add parameter when it is new 2018-03-07 09:00:33 +11:00
Matthias Kuhn
f22acb93b7 License headers 2018-03-07 09:00:33 +11:00
Matthias Kuhn
0d00491436 s/Modeller/Modeler/ 2018-03-07 09:00:33 +11:00
Matthias Kuhn
569b39b257 Code and doc improvements 2018-03-07 09:00:33 +11:00
Matthias Kuhn
b5672d7a23 API documentation 2018-03-07 09:00:33 +11:00
Matthias Kuhn
eeb6f44df7 Some addition error case info 2018-03-07 09:00:33 +11:00
Matthias Kuhn
e67939b183 Fix editing models with custom params 2018-03-07 09:00:33 +11:00
Matthias Kuhn
6bad21f78a Avoid freeze by infinite recursion 2018-03-07 09:00:33 +11:00
Matthias Kuhn
9f76c4171c Fix parameter name rendering problem 2018-03-07 09:00:33 +11:00
Matthias Kuhn
a1fc70f88d Improved error reporting for unknown parameters 2018-03-07 09:00:33 +11:00