4371 Commits

Author SHA1 Message Date
Mathieu Pellerin
dce341e152
[reports] allow header and footer sections to always be included 2018-01-23 20:08:14 +07:00
Nyall Dawson
c91fd5a067 [reports] Tweak sub-section logic for multi-layer reports
Instead of requiring a single layer for use with nested field group
sections, allow use of different layers. In this case the child
layers are filtered so that any fields with names matching their
parent groups are filtered to match the parent section's value.

Also only include headers and footers for child field group sections
if the child has matching features found.
2018-01-23 17:51:50 +11:00
Nyall Dawson
88808615a8 Drop composer
It's been a great journey, but your time has come...
2018-01-23 15:30:01 +11:00
Nyall Dawson
7a2ab1cc7c [layouts] Fix multiframe items (tables, html) cannot be pasted
Fixes #10456, #17882
2018-01-23 07:14:44 +11:00
Nyall Dawson
35a77013ca Fix handling of multiframe objects in layout templates 2018-01-23 07:14:44 +11:00
Nyall Dawson
d9b6c8b5d1 Add missing sip casting for layout multiframe objects 2018-01-23 07:14:44 +11:00
Nyall Dawson
20f50fbac9 [layouts] Fix some linked map items not correctly restored when
loading projects.

Also remove some outdated TODOs

Fixes #17892, #17891
2018-01-23 07:14:44 +11:00
Nyall Dawson
aa0d377164 Add separate bool for controlling whether vector layer labels
are enabled

Instead of clearing the labeling configuration in order to
disable labels, we need a way to disable them without
losing the configuration. Labels are oftern temporarily
switched on/off as an analysis tool, and we don't want the
settings to be lost as a result

Refs #17656
2018-01-20 06:10:51 +10:00
Nyall Dawson
f5876eab98 [layouts] Don't needlessly calculate layer sets for maps linked
to a map theme

This is very expensive to do, so avoid calculating it as much
as possible

Refs #17027
2018-01-19 09:25:30 +10:00
Nyall Dawson
5804745326 Port more tests to layouts, drop more QgsCompositions use 2018-01-18 09:21:45 +10:00
Nyall Dawson
fe48aeca0c Fix crash with undo/redo and layout multiframes, restore test 2018-01-18 09:21:45 +10:00
Denis Rouzaud
0644f59cde fix variable used for configuration 2018-01-17 10:16:37 -04:00
Denis Rouzaud
458cab7b20 run sipify 2018-01-17 10:16:37 -04:00
Denis Rouzaud
7722010ca8 rename *.sip to *.sip.in for the auto generated sip files 2018-01-17 10:16:37 -04:00
Denis Rouzaud
5327978ecf SIP 4.19.7+ allows to document template based classes 2018-01-17 10:16:37 -04:00
Nyall Dawson
64a8bda8cc Rename QgsApplication::composerTemplatePaths to layoutTemplatePaths 2018-01-17 04:58:41 +10:00
Nyall Dawson
343c070adf Fix layout designer does not respect layout settings 2018-01-17 04:58:41 +10:00
Nyall Dawson
ecd113de24 Fix modeler dialog doesn't respect hide from modeler flag 2018-01-16 21:21:38 +10:00
Nyall Dawson
971aec8056 Rename QgsTaskManager::triggered to taskTriggered 2018-01-16 19:45:40 +10:00
Nyall Dawson
7603487e6a Add method to 'trigger' QgsTasks
Triggering occurs when a task is clicked in the task manager
widget, and this can be used to e.g. open a dialog showing
detailed task progress (or reopen a closed dialog which started
the task)
2018-01-16 19:45:40 +10:00
Nyall Dawson
fe2292c59a Fix default value 'apply on update' setting not correctly restored
Fixes #17712
2018-01-16 16:09:41 +10:00
Etienne Trimaille
2c511d25dc return empty CRS instead of 4326 if the XML is empty 2018-01-16 14:17:42 +10:00
Nyall Dawson
30fe9917ce Sipify 2018-01-16 13:57:14 +10:00
Nyall Dawson
741afdca55 Add provider suite test for thread safety of provider getFeatures()
Hammers providers by iterating through features from multiple threads
2018-01-16 13:57:14 +10:00
Denis Rouzaud
51654afc06 also fix method capitalization 2018-01-15 11:55:23 -04:00
Denis Rouzaud
7a1e4bd8f0 fix NMEA capitalization and doxygen 2018-01-15 11:55:23 -04:00
Matthias Kuhn
168c469b32 Rename QgsGPS prefixed classes to QgsGps 2018-01-15 11:55:23 -04:00
Blottiere Paul
76c0a5ba82 Add a name to transaction command 2018-01-15 07:57:16 +00:00
Nyall Dawson
ded9b0978d Rename QgsVectorLayer::pkAttributeList to primaryKeyAttributes() for consistency 2018-01-15 11:27:22 +10:00
Nyall Dawson
21c8956b18 Drop QgsVectorLayer::pendingFeatureCount()
Use QgsVectorLayer::featureCount() instead.
2018-01-15 11:27:22 +10:00
Nyall Dawson
1da17904b8 Drop QgsVectorLayer::pendingAllAttributesList()
Use QgsVectorLayer::allAttributes() instead.
2018-01-15 11:27:22 +10:00
Nyall Dawson
068d51c3be Drop QgsVectorLayer::pendingFields()
Use QgsVectorLayer::fields() instead.
2018-01-15 11:27:22 +10:00
Denis Rouzaud
4568bcdf1f [sipify] prevent creation of param list when not necessary 2018-01-12 21:10:16 -04:00
Denis Rouzaud
6d94ac9c6c run sipify 2018-01-12 21:10:16 -04:00
Matthias Kuhn
f76421db4e
Merge pull request #5900 from m-kuhn/layerPropsStyleInTitle
Show style name in layer properties dialog title
2018-01-11 09:03:47 +01:00
Alessandro Pasotti
f868bcc691 [layout] Add printLayouts to return all print layouts contained in the manager 2018-01-10 18:03:08 +01:00
Denis Rouzaud
880d853e9f
detect SIP version to add DefaultDocstringSignature directive (#6030)
* detect SIP version to add DefaultDocstringSignature directive

SIP doesn't handle any kind of preprocessing, so there's no better solution than configuring the SIP files from CMake.
SIP 4.19.7+ supports %DefaultDocstringSignature to prepend auto-generated Python signature to existing Docstrings
2018-01-10 10:32:21 -04:00
Nyall Dawson
b95363c5b6 Drop composer from app 2018-01-10 14:46:57 +10:00
Denis Rouzaud
d87c60512c [sipify] fix bad handling of \see within sentences
and other docstrings improvements
2018-01-09 21:40:10 -04:00
Nyall Dawson
0a3f9f60ff
Merge pull request #5807 from nyalldawson/alg_background
[processing] Add flag to indicate whether an algorithm is safe
2018-01-10 11:37:35 +10:00
Alessandro Pasotti
03400ddbe2
Merge pull request #5913 from elpaso/layouts-import-from-2
[layouts] import from 2.x
2018-01-09 22:35:26 +01:00
Nyall Dawson
40e47e0fe7 [processing] Add flag to indicate whether an algorithm is safe
to run in a background thread
2018-01-10 05:33:02 +10:00
Denis Rouzaud
5babec5e07 run sipify 2018-01-09 11:40:39 -04:00
Alessandro Pasotti
3f081b8588 [layout] Added template method to retrieve QgsLayoutObjects 2018-01-09 13:24:22 +01:00
Alessandro Pasotti
f297e86201 [layout] Import attribute table from composition 2018-01-09 08:08:26 +01:00
Alessandro Pasotti
943025c204 Typos 2018-01-09 08:08:26 +01:00
Alessandro Pasotti
3bfebe144e Sipify 2018-01-09 08:08:26 +01:00
Alessandro Pasotti
a6199bec03 Added optional argument to create reference layout images 2018-01-09 08:08:26 +01:00
Alessandro Pasotti
da3636e566 [layout] Converter: initial implementation 2018-01-09 08:08:26 +01:00
Nyall Dawson
2b8143a206 Fix a TODO, restore correct variable handling for layouts 2018-01-08 17:55:37 +10:00