3910 Commits

Author SHA1 Message Date
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
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
Marco Hugentobler
e7ea972c64 Indentation 2017-06-24 14:33:55 +02:00
Marco Hugentobler
ef8e58bcc2 Unit test for feature info geometry filter 2017-06-24 12:30:04 +02:00
Nyall Dawson
e7f13f5bd8 Port model help code to c++ 2017-06-24 07:36:07 +10:00
Nyall Dawson
6a54130f0b [layout] Add layout measurement and size classes
These classes are used for storing measurements for a layout
(QgsLayoutMeasurement), sizes for a layout (QgsLayoutSize)
and points in a layout (QgsLayoutPoint)

They support storing a measurement unit alongside a measurement
length/size. A new class QgsLayoutMeasurementConverter handles
conversion between different units, including converting to and
from pixels via a specified DPI property.
2017-06-23 18:00:17 +10:00
Nyall Dawson
24eb6fd780 Fix loss of output names in graphical modeler 2017-06-23 13:32:31 +10:00
Nyall Dawson
2906d1f1c9 Merge pull request #4763 from nyalldawson/algs3
Restore more processing algs
2017-06-23 12:08:15 +10:00
Nyall Dawson
f196246852 Merge pull request #4734 from nyalldawson/addfeatures
Add a flag argument to QgsFeatureSink::addFeatures, support fast feature insert
2017-06-23 05:59:21 +10:00
Denis Rouzaud
e40f92cc1b sipify analysis interpolation (#4757) 2017-06-22 20:25:19 +02:00
Martin Dobias
7cd517c6ba [FEATURE] Legend for markers with data-defined size
(Merge pull request #4752 from wonder-sk/legend-data-defined-size)
2017-06-22 15:29:10 +02:00
Martin Dobias
863b7d2b29 Fix the last test image 2017-06-22 14:38:41 +02:00
Martin Dobias
4976d59fc5 Fix few bugs + fix test images + allow data-defined size without transformer 2017-06-22 13:50:19 +02:00
Martin Dobias
59ca985928 Use white bg color for test images to avoid black background 2017-06-22 12:56:02 +02:00
Nyall Dawson
d8c44cb643 Fix creation of feature sinks when using windows style paths 2017-06-22 18:22:43 +10:00
Nyall Dawson
f304828f59 Allow storing arbitrary metadata in parameter definitions 2017-06-22 18:18:51 +10:00
Martin Dobias
78a990b5b6 Fixing tests 2017-06-22 10:06:02 +02:00
Nyall Dawson
0db4cf37fe Add another test 2017-06-22 07:02:29 +10:00
Nyall Dawson
1d69939dde Fix build 2017-06-22 06:58:31 +10:00
Nyall Dawson
86f33c682d Expand model unit test coverage 2017-06-22 06:49:09 +10:00
Nyall Dawson
780f4331cc Add method to generate temporary destination parameter value 2017-06-22 06:49:09 +10:00
Nyall Dawson
a87ca09e34 Move some temp file/folder utils to c++ 2017-06-22 06:48:25 +10:00
Nyall Dawson
e8a03b918b Move default file extension code to c++ 2017-06-22 06:48:25 +10:00