Nyall Dawson
9d28a9699c
Add a new widget QgsImageSourceLineEdit, based on QgsSvgSourceLineEdit
...
Allows images to be set to base64 embedded images, remote urls, etc
when used alongside QgsImageCache
2018-12-06 09:22:50 +10:00
Nyall Dawson
cce5c4e802
[console] Correctly save settings when exiting app
...
The closeEvent approach which was previously used is not reliable
on application exit, so manually force a settings save in this case too.
Avoids loss of command history when closing QGIS
Also remove the manual "Save" history action, as it's redundant
2018-12-06 05:42:47 +10:00
Nyall Dawson
1f1bbbaeb6
[console] Fix saving scripts sometimes defaults to QGIS bin folder
2018-12-06 05:42:47 +10:00
nirvn
9d1aaa83ab
Use QImageReader to speed up image cache's originalSize function
2018-12-05 15:44:44 +07:00
nirvn
1e4ad4460f
Use image operation's multiplyOpacity in image cache
2018-12-05 15:44:44 +07:00
nirvn
c6425338ee
[FEATURE] Raster image marker
2018-12-05 15:44:44 +07:00
Alessandro Pasotti
a8be1ff37c
Merge pull request #8607 from elpaso/handle-bad-layers-refresh-layer-order
...
Tells the bridge to update when a bad layer was fixed
2018-12-05 08:18:19 +01:00
nirvn
60442980dd
Add dox comment, fix travis
2018-12-05 11:14:13 +07:00
nirvn
ad4b876866
Add opacity parameter to image cache
2018-12-05 11:14:13 +07:00
nirvn
ce5636afed
Allow passing {width,height}-only size to the image cache
2018-12-05 11:14:13 +07:00
Nyall Dawson
c1df802769
Add method to QgsImageCache to retrieve original image size
2018-12-05 11:14:13 +07:00
Nyall Dawson
e0a6a046b7
Ensure necessary updates happen when image cache is changed
2018-12-05 11:14:13 +07:00
Nyall Dawson
84838d1ec6
[FEATURE][API] Add a content cache for raster images
...
This new class QgsImageCache is the equivalent of QgsSvgCache
but for raster images.
QgsImageCache stores pre-rendered resampled versions of raster
image files, allowing efficient reuse without incurring the
cost of resampling on every render.
Additionally, it offers the other benefits QgsSvgCache has,
such as thread safety, ability to transparently download remote
images, and support for base64 encoded strings.
2018-12-05 11:14:13 +07:00
Nyall Dawson
cdba8f5621
Use QgsAbstractContentCache base class for QgsSvgCache
2018-12-05 11:14:13 +07:00
Nyall Dawson
22496dc139
Create a new abtract base class for file content caches (e.g. QgsSvgCache)
...
Generalise QgsSvgCache and split off into a common base class so
that we can re-use code with alternative similar caches, e.g. a
raster image cache.
2018-12-05 11:14:13 +07:00
Nyall Dawson
d79cee1fe1
[needs-docs][processing] Rename "remove duplicates by attribute" to
...
"delete duplicates by attribute"
for consistency with "delete duplicate geometries". Also add some
tags to delete duplicate geometries algorithm.
2018-12-05 07:36:13 +10:00
Nyall Dawson
9c1653f00a
[processing] Fix exception on launching refactor fields
...
(The logic with parameter widget_wrapper metadata is very gross -
but there's nothing we can do about it till 4.0!)
Fixes #20707
2018-12-05 04:47:55 +10:00
Nyall Dawson
0ba37fcb72
[processing][SAGA] Add unit test for RGB composite
2018-12-05 04:47:33 +10:00
Nyall Dawson
71b32f072c
[processing][SAGA] Fix output type for RGB Composite should be tif, not sdat format
2018-12-05 04:47:33 +10:00
Nyall Dawson
5349f24cae
[FEATURE] Allow deleting settings from the Advanced tab in options
...
This commit adds a new right click menu to the settings shown
in the "Advanced" tab in the settings dialog, which allows users
to remove that setting (or group of settings)
2018-12-05 04:46:58 +10:00
Nyall Dawson
ff786f2223
Add group method to QgsSettings
...
Is present in the QSettings API, but missing from QgsSettings
2018-12-05 04:46:58 +10:00
Denis Rouzaud
a5bad2d5f3
fix typo
2018-12-04 14:15:27 -04:00
iona5
61cdaad530
fix wrong padding of QgsFontButton on macOS
2018-12-05 04:01:09 +10:00
Alessandro Pasotti
b45ab5d283
Tell the bridge to update when a bad layer was fixed
...
This fixes an unreported issue: when a bad layer is fixed
it does not appear in the layer order panel.
The reason why it does not appear is that a bad layer
has no geometry information, and the layer order
model does not list geometryless layers.
But after a bad layer has been fixed, it has a geometry
and the panel should show it.
2018-12-04 18:33:51 +01:00
iona5
930c56f5b8
workaround broken QFontDialog on macOS with Qt5 ( Fixes #20426 )
...
QFontDialog using the native dialog is broken in some versions of
Qt5 on macOS, see
- https://bugreports.qt.io/browse/QTBUG-69878
- https://successfulsoftware.net/2018/11/02/qt-is-broken-on-macos-right-now/
this breaks QgsFontButton in ModeQFont. When opening the dialog it will
not change the format after accepting.
normally our code wouldn't use the native dialog on macOS anyway,
but due to using an outdated preprocessor check it was exhibiting
the broken behavior.
this patch restores the usage of a non-native font dialog on macOS.
discussions:
- https://issues.qgis.org/issues/20426
- https://github.com/qgis/QGIS/pull/8585
2018-12-04 15:14:58 +01:00
Nyall Dawson
a1dbb96110
Remove outdated comment
2018-12-04 15:14:58 +01:00
Denis Rouzaud
f09e640498
Merge pull request #8591 from 3nids/without_analysis
...
allow to build QGIS without analysis
2018-12-04 07:24:20 -04:00
Matthias Kuhn
774c890f9c
Merge pull request #8599 from m-kuhn/auth-manager-unique-ptr
...
Use std::unique_ptr
2018-12-04 12:09:03 +01:00
Luigi Pirelli
c39e2b83da
Merge pull request #8445 from NaturalGIS/add_te_paramater_in_gdal_clip_by_mask
...
add the -te and -te_srs and -multi parameters to the gdalwarp tool used to clip rasters by mask layers
2018-12-04 11:32:52 +01:00
Matthias Kuhn
f6164509e5
Use std::unique_ptr
2018-12-04 10:24:57 +01:00
Alessandro Pasotti
d4c62d17a9
Merge pull request #8592 from elpaso/opencl-remove-static-members
...
[opencl] Remove all static members
2018-12-04 08:17:13 +01:00
Giovanni Manghi
25bfca492f
partial fix for SAGA RGB composite tool
2018-12-04 11:49:20 +10:00
Nyall Dawson
455e04ea66
[processing][SAGA] Fix definition of Patching algorithm
...
And add unit test
Fixes #20698
2018-12-04 10:36:38 +10:00
Denis Rouzaud
4b9a532f2c
be more verbose in var description
2018-12-03 14:56:27 -04:00
Alessandro Pasotti
868b04d829
[opencl] Remove all static members
...
and rely on the default() mechanism, this prevents
random crashes on exit when dtor is called on the
statics.
2018-12-03 17:51:36 +01:00
Denis Rouzaud
18abcb580a
fix building without PyQt
2018-12-03 12:23:28 -04:00
Denis Rouzaud
efd1fd6d59
allow to build without analysis
2018-12-03 12:06:16 -04:00
Alessandro Pasotti
dcba25501f
Silence warning in release mode
2018-12-03 15:40:30 +01:00
Peter Petrik
cafa652c02
fix build on MacOS
2018-12-03 11:44:18 +01:00
Alessandro Pasotti
1cc6bc1116
Merge pull request #8583 from elpaso/opencl-raster-calculator2
...
[opencl] Raster calculator goes opencl
2018-12-03 11:03:09 +01:00
Alessandro Pasotti
61dd729517
Move nodeCalc unique ptr to the GPU function
...
... and spare some CPU cycles
2018-12-03 10:05:10 +01:00
Nyall Dawson
4212deabe8
[processing][saga] Add unit test for point distances alg
2018-12-03 18:11:24 +10:00
Nyall Dawson
ef2fff0820
[processing][SAGA] Fix default output format for geometry-less tables
2018-12-03 18:11:24 +10:00
Nyall Dawson
4bca7838bf
[processing] Add method for providers to specify a different list
...
of supported output formats when an output has no geometry
2018-12-03 18:11:24 +10:00
Nyall Dawson
583b602e76
[processing] Fix hasGeometry() method when output is a geometry-less vector table
...
From the dox for QgsProcessing.TypeVector: "When used for a sink this indicates
the sink has no geometry.". If an algorithm is using this value to indicate
"maybe has geometry" for an output, then that algorithm is incorrect and
should be using TypeVectorAnyGeometry instead.
2018-12-03 18:11:24 +10:00
Luigi Pirelli
e1b3524b5d
Merge pull request #8443 from NaturalGIS/fix_saga_point_distances
...
fix the SAGA Points Distances tool
2018-12-02 23:36:38 +01:00
Alessandro Pasotti
5ef87371aa
Remove duplicated code
...
The input check was already done before entering
in the GPU branch
2018-12-01 17:31:45 +01:00
Alessandro Pasotti
e01c162fcd
Fix build warnings
2018-12-01 11:02:15 +01:00
Alessandro Pasotti
6a1a581e7a
[opencl] Raster calculator goes opencl
2018-12-01 10:42:10 +01:00
Alessandro Pasotti
9b9881d3da
Merge pull request #8581 from elpaso/bugfix-20682-form-toggle-editing
...
[attributeform] Do not reset feature on editing toggled
2018-12-01 09:43:05 +01:00