15890 Commits

Author SHA1 Message Date
Nyall Dawson
b1ee295a95 Make QgsConditionalLayerStyles a QObject
and add a "changed" signal to it, so that we can tell when the
layer's conditional styles change
2019-09-25 16:55:33 +10:00
Nyall Dawson
d43834e999 Add equality operator for QgsConditionalStyle 2019-09-25 16:55:33 +10:00
Nyall Dawson
5fa81fb8f2 Add a __repr__ method for QgsConditionalStyle 2019-09-25 16:55:33 +10:00
Nyall Dawson
6e2c7311bb Add Python __repr__ for QgsLayoutPoint, QgsLayoutSize, QgsLayoutMeasurement 2019-09-25 04:31:36 +10:00
nirvn
531e1b0715 [categorized][graduated] Handle categorized<->graduated renderer conversion
(fixes #31633)
2019-09-24 20:08:47 +07:00
Denis Rouzaud
f21e03c5ef
Merge pull request #31963 from 3nids/fix_bool_attrtable
fix false boolean not shown as so in attribute table
2019-09-24 14:31:45 +02:00
Alexander Bruy
4df50691bc
Merge pull request #31901 from alexbruy/fix-29336
[processing] correctly handle case when layer source is not a plain path (fix #29336)
2019-09-24 15:03:43 +03:00
Nyall Dawson
90bac82f12 [needs-docs][processing] Respect user set default vector output format
in vector split algorithm

The created outputs will now be created using the format specified from
the Processing setting default vector format setting.
2019-09-24 16:50:22 +10:00
Nyall Dawson
b9e223d802 Add methods to QgsProcessingContext to return the preferred vector and raster formats
These methods return a file extension to use when creating vector/raster outputs (e.g. "tif"). Generally,
it is preferable to use the extension associated with a particular parameter, which can be retrieved through
QgsProcessingDestinationParameter::defaultFileExtension(). However, in some cases, a specific parameter
may not be available to call this method on (e.g. for an algorithm which has only an output folder parameter
and which creates multiple output layers in that folder). In this case, the format returned by this
function should be used when creating these outputs.

It is the algorithm's responsibility to check whether the returned format is acceptable for the algorithm,
and to provide an appropriate fallback when the returned format is not usable.
2019-09-24 16:50:22 +10:00
Nyall Dawson
cfcf580b61 [processing][needs-docs] Resurrect setting for default raster/vector
output format

This setting is still used and required in some circumstances, e.g.
it is used as the default selection in outputs file pickers when
the previously used format is not valid.
2019-09-24 16:50:22 +10:00
Nyall Dawson
08c55780b3 Followup cbc86ffc1ac
Fix exceptions, breakage of raster output format handling
2019-09-24 16:49:57 +10:00
Nyall Dawson
d4ce50c2b1 [processing] Add API support for algorithm aliases
Allows us to freely move algorithms between providers without
breaking existing scripts
2019-09-24 16:48:39 +10:00
Alexander Bruy
78a289348a use html.escape to escape strings 2019-09-24 09:27:29 +03:00
Denis Rouzaud
0caa93c401 also consider non boolean fields 2019-09-24 07:53:11 +02:00
Nyall Dawson
425afaa270 A little dox improvement to test sip prepare-commit changes 2019-09-24 03:43:42 +10:00
Nyall Dawson
39cfd0f935 [needs-docs] Show color button style "Pick color" and "Chooe Color" actions
in symbol button menu

Synchronizes the behavior of the color and symbol buttons

Fixes #25696
2019-09-24 03:41:51 +10:00
Nyall Dawson
2ff91d24a9 Move methods to sample screen pixels to QgsGui 2019-09-24 03:41:51 +10:00
Denis Rouzaud
be4bd42a2c fix spelling 2019-09-23 17:32:46 +02:00
Denis Rouzaud
e31e9a32b8 fix false boolean not shown as so in attribute table 2019-09-23 17:08:08 +02:00
Alexander Bruy
20583a8004 use GDAL connection string to support not only file-based layer but also
database and WFS
2019-09-23 11:53:19 +03:00
Alexander Bruy
dceabb0e29 use another approach for test 2019-09-23 11:53:19 +03:00
Alexander Bruy
3c13fbfeb5 [processing] correctly handle case when layer source is not a plain path
in the virtual vector algorithm (fix #29336)
2019-09-23 11:53:19 +03:00
Alexander Bruy
cebdc8dded [dbmanager] don't ignore field modifiers (e.g. length or geometry
definition) when updating it (fix #27613)
2019-09-23 06:01:56 +10:00
Matthias Kuhn
0bbebbc83a
Merge pull request #31905 from KDAB/fix_26948
Block the events while showing a dialog
2019-09-22 16:27:16 +02:00
BogDan Vatra
f96c4a2308 Block the events while showing a dialog
When showing a file dialog, Qt can choose to use the "system" file
dialog, which will make QgsExternalResourceWidget to loose the focus.
This patch blocks all the events that are sent to
QgsExternalResourceWidget while a dialog is shown, this way it will keep
the focus until the dialog is closed.

Sponsored by the QGIS project (qgis.org)

Fixes: #26948
2019-09-22 12:28:52 +03:00
Alexander Bruy
54c23d137f [dbmanager] handle attempts to edit raster tables (fix #30214) 2019-09-21 06:05:42 +10:00
Nyall Dawson
abc9f47ca4 [legends] Fix missing symbols for inverted polygon layers when using
filter by map content

Fixes #22718
2019-09-21 06:03:47 +10:00
Matthias Kuhn
ff4f32db0d
Merge pull request #31863 from m-kuhn/gapCheckIgnoreMissingLayer
Gap check ignore missing layer
2019-09-20 18:49:38 +02:00
Matthias Kuhn
54dda46e85
Merge pull request #31899 from paulwittle/master
Update general.py
2019-09-20 18:48:10 +02:00
Alexander Bruy
04cbf44668
Merge pull request #31902 from alexbruy/processing-import
[processing] add missed import
2019-09-20 19:27:13 +03:00
Alexander Bruy
0c4f826039 [processing] add missed import 2019-09-20 12:59:33 +03:00
Paul Wittle
be25b2e392 Update general.py
Correction of error return type from bool to None (as per comments). This is to resolve unexpected exception messages when algorithm is not found.
2019-09-20 09:27:30 +01:00
Alessandro Pasotti
240bfb2a3f
Merge pull request #31871 from elpaso/bugfix-gh31635-spinbox-double-changed-event
Fix double event fired by QSpinBox in slow graduated
2019-09-20 09:04:34 +02:00
Julien Cabieces
2ab88ad501 fieldIsEditable looks for joined feature to exist if no upsertOnEdit 2019-09-20 09:49:12 +10:00
Julien Cabieces
484ee53899 Add a utils method fieldIsEditable 2019-09-20 09:49:12 +10:00
Alexander Bruy
f9737a9d5f [processing] add default icon for scripts created using decorator (fix #31252) 2019-09-20 06:37:31 +10:00
Denis Rouzaud
cc64787ee6
Merge pull request #31859 from 3nids/layer_tree_insertion_point_v2
[layer tree] dedicated method in QgisApp to determine insertion point
2019-09-19 11:17:58 +02:00
Alessandro Pasotti
60fb0cb47f Apply timer spinbox workaround to QgsDoubleSpinBox too
To prevent double changed event fired in case the slot
takes too long to execute.
2019-09-19 09:10:26 +02:00
Denis Rouzaud
13119193ba fix API doc and init values 2019-09-19 09:05:40 +02:00
rldhont
3ff8ca5736
Merge pull request #31855 from Gustry/datetime
update docstring about QgsDateTimeEdit with NULL values
2019-09-18 18:42:57 +02:00
rldhont
7a77d90c52
Merge pull request #31351 from rldhont/server-wms-dimensions
Support WMS dimensions in QGIS Server
2019-09-18 18:26:31 +02:00
Alessandro Pasotti
8192ed8cce Fix double event fired by QSpinBox in slow graduated
... renderer widget

Fixes #31635

For the record of the underlying issue:

https://lists.qt-project.org/pipermail/interest/2013-July/007936.html
https://forum.qt.io/topic/82181/qt-doublespin-box-value-changed-slot-has-called-twice
https://forum.qt.io/topic/96094/qspinbox-value-changed-slot-has-called-twice-on-mouse-click
https://www.qtcentre.org/threads/53709-slot-valueChanged(double)-of-doubleSpinBox-called-twice-if-breakpoint-is-set
2019-09-18 15:06:31 +02:00
Matthias Kuhn
61812648a3 Add API to hook into resolveReferences 2019-09-18 09:32:02 +02:00
Nyall Dawson
fcd21e4850 [reports] Fix predefined scale mode is incompatible with report outputs
Fixes #29196
2019-09-18 10:35:23 +10:00
Nyall Dawson
ffc71c4f57 Remove const_cast 2019-09-18 07:55:46 +10:00
Nyall Dawson
3de0593957 Ensure atlas expression evaluation has access to coverage layer scope
Fixes #31807
2019-09-18 07:55:46 +10:00
Denis Rouzaud
838dbef3c0 [layer tree] dedicated method in QgisApp to determine insertion point
and create bindings to get the current insertion point in QgisInterface
2019-09-17 20:55:40 +02:00
Harrissou Sant-anna
493a8c814f Add empty line for list rendering 2019-09-18 04:13:31 +10:00
Etienne Trimaille
3b95172362
update docstring about QgsDateTimeEdit about NULL values 2019-09-17 17:25:15 +02:00
Alexander Bruy
27b576c794
Merge pull request #31735 from alexbruy/fix-29663
[processing] add support for WFS as input (fix #29663)
2019-09-17 15:54:48 +03:00