3932 Commits

Author SHA1 Message Date
Nyall Dawson
1dce459610 Add method to transfer all layers from one map store to another
With a note and assert that both stores must have the same
thread affinity
2017-07-07 09:27:35 +10:00
Nyall Dawson
e0c7daa2d8 Rename QgsProcessingAlgorithm::clone to ::create
Since it better describes what the function does. It returns a new
pristine copy of the algorithm, not a clone of its current state
2017-07-07 09:27:35 +10:00
Nyall Dawson
cd7776ca1c Upgrade ported python algs to be thread ready 2017-07-07 09:27:35 +10:00
Nyall Dawson
c2621b1275 Split algorithm execution into separate prepare/process/postProcess steps
The prepare and postProcess steps are designed to be run in main
thread only, while the process step can safely be run in a background
thread.
2017-07-07 09:26:17 +10:00
Nyall Dawson
9156933c9e Add a pure virtual clone method for algorithms
This is required for safely executing the algorithm in a background
thread.
2017-07-07 09:26:17 +10:00
Nyall Dawson
bacad8cea6 [needs-docs] Show recently used fonts in submenu in font button 2017-07-06 19:56:39 +10:00
Nyall Dawson
99855ea35a Add method to use QgsFontButton in cut down mode for QFont settings only
The button can now be used in two different modes. The default behavior
is to include all settings used for configuring
QgsTextFormat/QgsTextRenderer classes. A cut down mode (without settings
for color/buffer/drop shadow/etc) is also available when the resultant
font is to be used only in a QFont object.
2017-07-06 19:56:39 +10:00
Nyall Dawson
5ac9745cad Add methods to convert QFont to/from mime data 2017-07-06 19:56:39 +10:00
Nyall Dawson
0b9fb5d6e1 [needs-docs] New gui widget QgsFontButton
A standard widget for configuring text format properties for use
with QgsTextRenderer/QgsTextFormat.

It's modelled heavily off QgsColorButton, and supports lots of nice
things like dragging formats between buttons, copying and pasting
format settings, dropping colors from color buttons, dragging colors
from font buttons to color buttons, directly setting font size
and opacity/color without having to open a dialog.
2017-07-06 19:56:39 +10:00
Nyall Dawson
ddf5acebe7 Merge pull request #4807 from nyalldawson/layout_item_registry
Create a layout item registry for item types
2017-07-06 19:12:43 +10:00
Denis Rouzaud
5b8e2c2f27 remove QgsVectorLayer::hasGeometryType in favor of QgsMapLayer::isSpatial 2017-07-05 10:18:32 +02:00
Nyall Dawson
70d2ae292f Merge pull request #4730 from Zverik/atlas_rotate
Rotate geometry before calculating bounding box in atlas
2017-07-05 05:04:05 +10:00
rldhont
fe8522f811 [Geometry] Polygon::asGml: fix outer and add tests 2017-07-04 14:07:59 +02:00
Nyall Dawson
6307bc490d Merge pull request #4808 from nyalldawson/model_out_layer_names
Fix incorrect layer names used when loading result layers from models
2017-07-03 17:46:21 +10:00
Nyall Dawson
bdaba00a01 Fix incorrect layer names used when loading result layers from models 2017-07-03 17:08:52 +10:00
Harrissou Sant-anna
ab437cd4de Ok is spelled OK 2017-07-03 08:49:50 +02:00
Harrissou Sant-anna
59e9f79658 ok is spelled OK 2017-07-03 08:49:50 +02:00
Nyall Dawson
59d28a3525 Remove useless testqgslayoutitemregistry.cpp file 2017-07-03 14:01:37 +10:00
Nyall Dawson
c228132cbb Layout designers listen out for new item types in registry and
auto create actions for adding new items of the newly registered type

This avoids hard-coding in available item types into layout UI classes,
and allows designers to handle plugin-supplied item types
2017-07-03 13:57:42 +10:00
Nyall Dawson
97e8d9cf9e Emit signal when new layout item types are added to registry 2017-07-03 13:29:23 +10:00
Nyall Dawson
d23abf955a Add registration of item types to QgsLayoutItemRegistry 2017-07-03 13:22:15 +10:00
Nyall Dawson
921939e4ec Add method to determine whether dependencies exist between model parameters 2017-07-03 10:50:35 +10:00
Nyall Dawson
6483984d0b Add method to retrieve dependent parameters for a parameter 2017-07-03 10:45:15 +10:00
Even Rouault
f691890668 [WFS provider] Do not be confuse by elements that have ref attribute when parsing DescribeFeatureType response; and fix support of (deprecated) ref='gml:XXXXProperty' attributes 2017-07-02 12:57:06 +02:00
Nyall Dawson
18b2b5240b Add some base classes for layouts 2017-06-30 17:01:52 +10:00
Nyall Dawson
cd979d8ab0 [layout] Create a page size registry for layout
Adds a new QgsPageSize class and QgsPageSizeRegistry registry
(attached to QgsApplication), which stores and manages known
page sizes
2017-06-30 16:23:18 +10:00
Nyall Dawson
77588b9b61 Convert model child algorithm parameter sources to a list
So that multiple input type parameters are correctly handled,
allowing models with child algorithms like merge to correctly
use any combination of static layers/model inputs/child outputs
as their input parameter
2017-06-30 12:50:38 +10:00
nirvn
58f6f93cb6 [zonal statistics] add variance statistic 2017-06-29 11:53:04 +07:00
Nyall Dawson
d2b9652d4b Fix use of direct map layers as inputs for source parameters 2017-06-29 08:00:47 +10:00
Denis Rouzaud
1d7ace1d51 add test to check that header has a corresponding sip file 2017-06-28 21:08:34 +02:00
Denis Rouzaud
54c6291378 script to write include SIP files 2017-06-28 10:45:51 +02:00
Hugo Mercier
f59d6d7962 Merge pull request #4776 from pblottiere/bugfix_attributetable
[bugfix] attribute table
2017-06-28 08:20:00 +02:00
Nyall Dawson
9f5e33af72 Merge pull request #4767 from nyalldawson/layouts3
[layouts] Add layout measurement and size classes
2017-06-28 08:58:41 +10:00
Nyall Dawson
aeecda3707 Fix crash when no options are selected in a multiple-enum parameter 2017-06-27 21:27:59 +10:00
Nyall Dawson
7a6a6ff9f8 Fix test on Qt5.6 2017-06-27 08:46:58 +10:00
Nyall Dawson
46b4f2468c Allow storing multiple status in field script code 2017-06-27 08:33:13 +10:00
Nyall Dawson
0a32add69e Port exporting model as python code to c++ 2017-06-27 08:33:13 +10:00
Nyall Dawson
d16f117b6c Port conversion to/from script code to c++ 2017-06-27 08:33:13 +10:00
Nyall Dawson
178a415c9f Port parameter conversion to script code to c++ 2017-06-27 08:33:13 +10:00
Nyall Dawson
65a5669b25 Merge pull request #4727 from aaime/stroke_hairline
Fixes 16707, export of hairline results in a different visual thickness
2017-06-27 06:12:12 +10:00
Ilya Zverev
80bc6d2674 Update SIP file for QgsRectangle 2017-06-26 16:28:54 +02:00
Ilya Zverev
7941759d23 Rectangle moving operators 2017-06-26 16:28:54 +02:00
Nyall Dawson
6006359710 Merge pull request #4733 from aaime/categorized_function_conflict
Fixes 16712, SLD export of categorized style fails if attribute name conflicts with a built-in function name
2017-06-26 23:20:13 +10:00
Matthias Kuhn
1dca3327c1 Merge pull request #4771 from m-kuhn/closest_point
Closest point
2017-06-26 11:44:12 +02:00
mhugent
a2d00d52f9 Merge pull request #4772 from mhugent/feature_info_filter_geometry
WMS Server: Feature info with geometry filter
2017-06-26 09:26:33 +02:00
Matthias Kuhn
e7f50524b8 Make QgsLineString Z and M values NaN if unspecified 2017-06-26 08:21:11 +02:00
Matthias Kuhn
8e7e573214 Prevent division by 0 and unrequired interpolation 2017-06-26 08:21:11 +02:00
Matthias Kuhn
317fead516 Add tests for QgsGeometryUtils::closestPoint() 2017-06-26 08:21:11 +02:00
Blottiere Paul
b354986209 Add unit test 2017-06-25 14:39:54 +01:00
Blottiere Paul
30b35bd016 Add unit test 2017-06-25 14:38:07 +01:00