11865 Commits

Author SHA1 Message Date
Mathieu Pellerin
bf8570920f
Use qgsfilewidget for the delimited text prodivder source select (#5920) 2017-12-20 12:43:30 +07:00
Nyall Dawson
6528f1c307 Require a transform context when setting the destination crs for
a feature request

Forces correct datum handling for these requests, and removes
a few more uses of the deprecated/datum unaware transforms.
2017-12-20 12:32:20 +10:00
Nyall Dawson
b24a1bf10d Add transform context to processing context 2017-12-20 12:21:14 +10:00
Denis Rouzaud
5dc9b5869a fix empty lines with spaces 2017-12-19 21:17:29 -04:00
Denis Rouzaud
bdfd345034 fix code descriptor 2017-12-19 21:17:29 -04:00
Denis Rouzaud
64c99e054c run sipify for code snippets 2017-12-19 21:17:29 -04:00
Denis Rouzaud
d042304cc3 [sipify] habndle python code snippets 2017-12-19 21:17:29 -04:00
Denis Rouzaud
90e5196996 run sipify 2017-12-19 14:55:46 -04:00
Borys Jurgiel
97018cf2e6 [Plugin installer] Remove trailing colon if it's a very end of the message. 2017-12-19 18:24:17 +01:00
Sandro Santilli
5308b265db Fix typo in documentation (missing quote) 2017-12-19 10:39:31 +01:00
Nyall Dawson
b594ecd7c5 Fix missing page shadows 2017-12-19 13:03:10 +10:00
Nyall Dawson
2007792f77 Restore layered svg export option 2017-12-19 12:06:29 +10:00
Nyall Dawson
c7bd7b3d67 Add method to ensure file name string is safe 2017-12-19 10:59:27 +10:00
Nyall Dawson
613b1584d1 Start restoring SVG export 2017-12-19 10:38:28 +10:00
Nyall Dawson
128e37eaf4 Add some extension and filter handling functions to QgsFileUtils 2017-12-19 11:37:58 +11:00
Nyall Dawson
c7017914a0 Doxygen 2017-12-19 08:48:32 +10:00
Nyall Dawson
f216b188d6 Move all datum transform related methods to QgsDatumTransform 2017-12-19 08:47:02 +10:00
Nyall Dawson
753b3e0820
Merge pull request #5898 from nyalldawson/datum
Datum transform fixes, header reworking
2017-12-19 06:17:35 +11:00
Borys Jurgiel
c4c5cba48a Bump up core plugins' qgisMinimumVersion. Do not merge without b43386605fc298f or other alternative. 2017-12-18 17:57:21 +01:00
Borys Jurgiel
b43386605f [Plugin installer] Make QGIS x.99 only compatible with plugins for the next major release. Introduce 'pyQgisVersion' that usually sticks to QGIS_VERSION, but bumps up to the next release for all the .99 versions 2017-12-18 17:30:15 +01:00
Borys Jurgiel
7c01b7e647 [Plugin installer] Follow up 54f312fa7f5b1ff and temporarily hardcode plugin compatibility as 3.0 2017-12-18 14:58:35 +01:00
Nyall Dawson
198486f0e9 Avoid including private header 2017-12-18 21:19:02 +10:00
Nyall Dawson
25c3e135b0 Move datum transform structs out to their own header, to avoid
need to include private header file
2017-12-18 21:19:02 +10:00
Nyall Dawson
a1128a52a4 Hide guides from layout exports 2017-12-18 16:45:10 +10:00
Nyall Dawson
0052eb830e Add unit test for pdf exports 2017-12-18 16:33:26 +10:00
Nyall Dawson
b59bd94e87
Merge pull request #5837 from nyalldawson/layout_next
Layout raster image exports
2017-12-18 08:29:07 +11:00
Denis Rouzaud
b630a407b5 missing SIP_OUT 2017-12-17 08:55:10 -04:00
Nyall Dawson
831732f3a3 Sipify 2017-12-17 14:18:36 +10:00
Nyall Dawson
65f4c4acef Port orientation decoding code from composer 2017-12-17 14:14:48 +10:00
Nyall Dawson
447a94909f Fix items moving after altering page size or inserting/deleting pages 2017-12-17 14:14:48 +10:00
Nyall Dawson
f649f1f8a7 [layouts][needs-docs] Add control for whether pages should be
exported, including data defined setting

This replaces the 2.x data-defined "number of pages" setting.
Instead of requiring users to develop an expression to return
the number of pages, instead we allow individual pages to have
a data defined control of whether that page should be included
in the export.

This is more flexible, and works correctly with the mixed page
size model for layouts.
2017-12-17 14:14:48 +10:00
Nyall Dawson
ca37a1ebd7 Fix drawing of map items (grids, overviews) when rendering map item as a raster item 2017-12-17 14:14:31 +10:00
Nyall Dawson
261492ddca Add a messagebar to layout designer 2017-12-17 14:14:31 +10:00
Nyall Dawson
b992e871ee [layouts][FEATURE] Don't force the whole layout to be rasterized
when exporting to PDF

If an individual layout item needs rasterisation in order to
be exported correctly, it can now be individually rasterised
without forcing every other item to also be rasterised.

This allows exports to PDF keeping as much as possible as vectors,
e.g. a map with layer opacity won't force labels, scalebars, etc
to be rasterised too.

To accompany this, a new "Always export as vectors" checkbox
was added to layout properties. If checked, this will force
the export to keep items as vectors, even when it causes the
output to look different to layouts.

Fixes #7885
2017-12-17 14:14:31 +10:00
Nyall Dawson
91179f1396 Work on PDF export 2017-12-17 14:14:31 +10:00
Nyall Dawson
a59dce5048 Move containsAdvancedEffects test to QgsLayoutItem
And start a generic test library for all item types to ensure
correct behavior for QgsLayoutItem subclasses

Currently justs tests to ensure that overriden
containsAdvancedEffects methods also call the base class
test
2017-12-17 14:14:31 +10:00
Nyall Dawson
8b1e057d2c Make QgsLayoutExporter::generateFileName virtual, so exporter
subclasses can be made which customise the generated file names
2017-12-17 14:14:31 +10:00
Nyall Dawson
2f0969e2bd Expose antialiasing option in image export dialog
Allows for creating non-antialiased images from layouts. Note that
some layout item types do not correctly respect this setting, but
at least map items do and the API is in place for them to be
fixed later.

Fixes #9281
2017-12-17 14:14:31 +10:00
Nyall Dawson
113664fe2e Port method for pausing layout view updates 2017-12-17 14:14:31 +10:00
Nyall Dawson
1b8f4a09ba Add method to determine file path for exports which encountered errors 2017-12-17 14:14:31 +10:00
Nyall Dawson
5cf36cd819 Add method to detect whether layout has uniform page sizes 2017-12-17 14:14:31 +10:00
Nyall Dawson
069a0baa40 Expose some more export related settings to GUI 2017-12-17 14:14:31 +10:00
Nyall Dawson
56383e42b0 Port world file generation code to layouts 2017-12-17 14:14:31 +10:00
Nyall Dawson
afbd1400a5 Port georeferencing from compositions 2017-12-17 14:14:31 +10:00
Nyall Dawson
94b63d17b7 Fix updating gui after undoing layout settings change 2017-12-17 14:14:31 +10:00
Nyall Dawson
aa7986f8fc Implement methods for exporting layouts as raster, add tests 2017-12-17 14:14:31 +10:00
Nyall Dawson
fe5bd47eb0 Work on resizing layouts to item bounds 2017-12-17 14:14:31 +10:00
Nyall Dawson
f4f5f75b80 Remove incorrect TransferThis annotation 2017-12-17 14:14:31 +10:00
Denis Rouzaud
be8d1d7782 run sipify 2017-12-16 10:45:52 -04:00
Médéric RIBREUX
1ba1dbed7b Fix also i.* description files 2017-12-16 11:12:12 +01:00