25822 Commits

Author SHA1 Message Date
Nyall Dawson
f1ac0be867 Fix processing setting to use filename as layer name 2017-08-19 00:56:18 +10:00
Nyall Dawson
7879c0a20b Fix processing rendering styles for output dialog, functionality 2017-08-19 00:47:21 +10:00
Nyall Dawson
be48f17e2c Use a QgsFeedback object in QgsRelief instead of QProgressDialog 2017-08-19 00:09:12 +10:00
Nyall Dawson
86949cb2fa Merge pull request #5037 from nyalldawson/render_progress_bar
Avoid 'flashy' status bar progress widget when map renders are fast
2017-08-18 14:57:03 +10:00
Nyall Dawson
0c46ac4030 Merge pull request #5038 from nyalldawson/canvas_dock_tweaks
Canvas dock tweaks
2017-08-18 14:56:43 +10:00
Nyall Dawson
37b899fb99 Add a pure virtual clone method to processing parameter definitions
And use it when we need to clone parameters (instead of more fragile
conversion to and from variants)

This fixes model loading which use algorithms which create python
subclasses of parameter definitions
2017-08-18 01:22:07 +10:00
Nyall Dawson
e8ad0ba5d9 Move "sync extent" canvas view option to map settings menu
This means all the settings are collected together, and the
dock toolbar just contains navigation actions.

(followup feedback from hackfest demo)
2017-08-18 00:27:34 +10:00
Nyall Dawson
2d441a8d1d Make sure new map dock views use correct icon size 2017-08-18 00:16:47 +10:00
Nyall Dawson
9bfca65ac3 Add API to enable/disable preview jobs
Disabled by default, and enabled only for main canvas (not
secondary canvases)
2017-08-18 00:04:07 +10:00
Nyall Dawson
628a1b096b Also delay initial preview job by a short timeout 2017-08-17 23:50:32 +10:00
Nyall Dawson
6c17577fbe Use a QgsMapRendererSequentialJob for rendering preview maps
Means that at most the preview jobs will use a single thread
instead of hammering all available threads.
2017-08-17 23:50:32 +10:00
mhugent
5fbd628854 Merge pull request #4939 from mhugent/wms_toplevel_browser
Show toplevel wms group in browser
2017-08-17 14:21:50 +02:00
Nyall Dawson
7a314f3cb2 Avoid 'flashy' status bar progress widget when map renders are fast
If previous canvas render took less than 0.5 seconds, delay the appearance of the
'render in progress' status bar widget by a short amount - this avoids the
status bar rapidly appearing and then disappearing for very fast renders
2017-08-17 20:00:49 +10:00
Nyall Dawson
c7affb3b70 Use const references to options instead of pointers in QgsVectorLayerExporter
The use of pointers make ownership of the argument confusing, and there's
nothing stopping us just using an empty map as the default value instead.
2017-08-17 19:26:57 +10:00
Nyall Dawson
26a911cd61 Merge pull request #4751 from nyalldawson/unique_ptr
Return std::unique_ptrs where possible
2017-08-17 18:37:35 +10:00
Nyall Dawson
e0d1ddc506 Fix failing test 2017-08-17 17:57:09 +10:00
Nyall Dawson
e4dab7c5c7 Fix intermittently failing QgsGeometry asGML tests 2017-08-17 17:53:36 +10:00
Juergen E. Fischer
fad59736b0 spelling fixes 2017-08-17 09:38:19 +02:00
Nyall Dawson
43536a66e3 Return subclasses where possible to fix build on older compilers 2017-08-17 16:43:13 +10:00
Nyall Dawson
2693c6fb91 Fix ui build warning 2017-08-17 16:30:03 +10:00
Nyall Dawson
d81a1a3b5f Return std::unique_ptrs where possible
When a class isn't exposed to Python, we should return a
std::unique_ptr whenever a returned pointer value is owned
by the caller.
2017-08-17 16:28:18 +10:00
Juergen E. Fischer
e32589599a packaging updates after helpviewer removal (followup 55cdc89a1) 2017-08-17 07:58:10 +02:00
Nyall Dawson
f88ddcb543 Remove startup tips 2017-08-17 15:55:06 +10:00
Nyall Dawson
5abbab1a11 Merge pull request #4993 from nyalldawson/remove_analyzer
Remove QgsGeometryAnalyzer, QgsOverlayAnalyzer, QgsPointSample
2017-08-17 15:54:43 +10:00
Nyall Dawson
6d388942ad Merge pull request #5024 from nyalldawson/build-vrt
Restore gdal build vrt alg, plus improvements
2017-08-17 14:05:26 +10:00
Alessandro Pasotti
fdee6ea2a5 Merge pull request #5031 from boundlessgeo/gpkg-drag-n-drop
[feature][needs-docs] Geopackage handle drops in the browser
2017-08-16 22:50:33 +02:00
Alessandro Pasotti
11fb601a98 Merge pull request #5027 from boundlessgeo/gpkg-vector-delete
[feature][needs-docs] Adds delete layer context action to ogr and geopackage items
2017-08-16 22:50:09 +02:00
Nyall Dawson
c54667c3b1 Handle mixed lists of values and lists when evaluating multilayer
parameters

This can happen when running models with mixed input types
for multilayer parameters
2017-08-17 05:00:47 +10:00
Nyall Dawson
e1b0f78619 Fix default layer sometimes inserted into multi layer parameter values 2017-08-17 04:38:36 +10:00
Alessandro Pasotti
e6814bca2c [feature] Geopackage handle drops in the browser
It is now possible to drag and drop from any vector
layer onto a gpkg node layer and import a layer.

Overwrites are protected by a confirmation dialog.
2017-08-16 20:23:21 +02:00
Etienne Trimaille
855f840fac always set a default name in the QGS project to avoid discrepancies with GetCapabilities 2017-08-16 18:39:23 +02:00
Matthias Kuhn
55cdc89a11 Merge pull request #5004 from jgrocha/helpviewer
[needs-docs] Refactoring of all help calls, deprecating QgsContextHelp+Helpviewer
2017-08-16 18:30:59 +02:00
Jorge Gustavo Rocha
7dd37b39da Added documentation comments on new methods 2017-08-16 15:00:45 +02:00
Alessandro Pasotti
497d4a808f Shows a warning and abort deletion if the layer is in the current project 2017-08-16 14:50:29 +02:00
Martin Dobias
0be0a4e30c Always use snapping configuration from the project in adv.digitizing dock
It was slightly confusing to have another override for snapping while it is possible
to configure "no snapping" or "all layers" snapping mode in project anyway.
And with the nice snapping toolbar it can be also done very quickly.
2017-08-16 14:37:19 +02:00
Martin Dobias
42933a279b Remove class members that were never used 2017-08-16 14:37:19 +02:00
Alessandro Pasotti
cc14619090 Added 'datasource' and 'GeoPackage' to the delete confirm message 2017-08-16 14:10:10 +02:00
Alessandro Pasotti
162339d3d0 Different messages for file and table layer deletion 2017-08-16 10:12:03 +02:00
Alessandro Pasotti
2ffa7ba3a1 Translate GDAL error codes 2017-08-16 08:59:12 +02:00
Jorge Gustavo Rocha
fe59a19e17 Change all ocurrences on_buttonBox_helpRequested to showHelp
Add help button to 3 dialogs
Fix missing QStringLiteral
Fix CMakeLists.txt indentation
Fix qhelp.h and qgis_sip.h includes with <>
2017-08-15 23:51:03 +02:00
Alessandro Pasotti
da6049ea38 Adds delete layer context action to ogr and geopackage items
TODO: decide what to do if the layer to be deleted was
added to the canvas: block the deletion?

Current implementation just ignores the fact with
no apparent serious consequences beside that
obviously the layer is not drawn anymore.
2017-08-15 23:26:06 +02:00
Larry Shaffer
83aa1adf1e Add support for finding zipconf.h in separate location; use include dirs
LIBZIP_INCLUDE_DIRS could end up with duplicate entries, but seems to be
the simplest way of supporting headers installed to multiple locations.
2017-08-15 09:13:05 -04:00
Alessandro Pasotti
7d074de90d Geopackage fix mixed geometry layers and attributes
In addition to geometry filtered layers for each geometry
type in a mixed-geometry type layer adds a table
layer with all attributes.

Tehre is no perfetc solution here, if the layer is created
with a filter on geometrytype, the attributes are not shown
(this is probably a pre-existing bug), if the layer is added
as is, only the first geometry type is drawn.

With this implementation at least all data (attributes and
geometries) are accessible in some way.

Note that geopackage layers added by DB Manager do not show
all geometries of a mixed type layer.
2017-08-14 20:25:47 +02:00
Matthias Kuhn
80e8ff04e0 Merge pull request #5014 from m-kuhn/enumgeomfunc
Return enum instead of int from QgsGeometry operations
2017-08-14 15:06:06 +02:00
Alessandro Pasotti
904cd6f104 Merge pull request #5018 from boundlessgeo/gpkg-show-tables
Browser tree: also show geopackage geometryless layers as tables
2017-08-14 14:19:10 +02:00
arnaud.morvan@camptocamp.com
b3a9e46cfe [processing] Port refactor fields to new API 2017-08-14 13:48:50 +02:00
Alessandro Pasotti
11f179154f Browser tree: also show geometryless layers as tables 2017-08-14 13:29:06 +02:00
Matthias Kuhn
3d53a2dfb8
Spelling 2017-08-14 13:11:13 +02:00
Matthias Kuhn
fca603caa3
Fix splitFeatures 2017-08-14 12:59:40 +02:00
Matthias Kuhn
cb29b2e6ef
Fix crash in test 2017-08-14 12:44:55 +02:00