4021 Commits

Author SHA1 Message Date
Nyall Dawson
ba62ffce2c Make constructors for QgsVectorLayer and QgsRasterLayer more flexible
...by moving extra arguments to new LayerOptions structs. This allows
us to more easily add new layer constructor options without making
the API cumbersome to use.
2017-11-09 14:28:51 +11:00
Alessandro Pasotti
e781ad2e3e
Merge pull request #5558 from elpaso/project_use_rw_context
[bugfix] Project use rw context
2017-11-08 12:26:45 +01:00
Juergen E. Fischer
27dbb48679 fix override warning 2017-11-07 21:44:54 +01:00
Alessandro Pasotti
7aa24f6906 [bugfix] Pass QgsReadWriteContext into project XML r/w
Or we miss the path resolver and we do not read/write
relative paths correctly

Fixes #17116
2017-11-07 18:17:48 +01:00
Alessandro Pasotti
7c9cd491bd
Merge pull request #5546 from elpaso/auth_migrate
[auth][bugfix] Auth DB migrate
2017-11-07 08:25:58 +01:00
Nyall Dawson
c000cb86ca
Merge pull request #5434 from nyalldawson/layout_next2
[layouts] Port item type from composer
2017-11-07 13:22:16 +10:00
Nyall Dawson
bf75747f18 [processing] Use user-set default file formats if supported by
provider, otherwise fall back to a format which IS supported
by that provider
2017-11-07 12:25:55 +10:00
Nyall Dawson
476b1deced Fix doxygen warning 2017-11-07 11:32:39 +10:00
Nyall Dawson
ce0ac40a30 Add missing docs 2017-11-07 11:32:39 +10:00
Nyall Dawson
49c41d39c2 Add missing override 2017-11-07 11:32:39 +10:00
Nyall Dawson
057a20cbc1 Allow adding multiple layers to legend at once 2017-11-07 11:32:39 +10:00
Nyall Dawson
27c3eb92c2 More command compression for legend items 2017-11-07 11:32:39 +10:00
Nyall Dawson
bc23664b0d Serialization for legend items 2017-11-07 11:32:39 +10:00
Nyall Dawson
d3430e4d42 Port legend item 2017-11-07 11:32:39 +10:00
Nyall Dawson
585a8b70ba Restore ui for configuring labels 2017-11-07 11:32:39 +10:00
Nyall Dawson
83f177c1d2 Start porting label item 2017-11-07 11:32:39 +10:00
Nyall Dawson
72a1f77079 After a undo/redo action occurs, select the affected items 2017-11-07 11:32:39 +10:00
Nyall Dawson
48a45b3bff Restore serialization for map items 2017-11-07 11:32:39 +10:00
Nyall Dawson
e539022358 Restore serialization of picture items 2017-11-07 11:32:39 +10:00
Nyall Dawson
1bfed13484 Port picture item 2017-11-07 11:32:39 +10:00
Nyall Dawson
20b9d080f8 Fix grid annotations, port tests 2017-11-07 11:32:39 +10:00
Nyall Dawson
b7e352613e Use symbol buttons for grid symbols 2017-11-07 11:32:39 +10:00
Nyall Dawson
ab4606db25 Start work on porting grid ui 2017-11-07 11:32:38 +10:00
Nyall Dawson
aa2b73d425 Use symbol button for overview frame symbol 2017-11-07 11:32:38 +10:00
Nyall Dawson
5d5c858dc8 Start restoring grids/overviews 2017-11-07 11:32:38 +10:00
Nyall Dawson
7f0142c86a Working move item content tool 2017-11-07 11:32:38 +10:00
Nyall Dawson
53c877963a Add method to create QgsRectangle from center and size 2017-11-07 11:32:38 +10:00
Nyall Dawson
7924aa1990 Fix regeneration of cached maps when zoom level changes 2017-11-07 11:32:38 +10:00
Nyall Dawson
753f6f5050 Start hooking up map widget gui 2017-11-07 11:32:38 +10:00
Nyall Dawson
23d0617bac Start porting map item 2017-11-07 11:32:38 +10:00
Nyall Dawson
71c41d49b7 Add export layer settings to QgsLayoutContext 2017-11-07 11:32:38 +10:00
Nyall Dawson
420821fd68 Fix correct frame bounding rects for shapes and node items 2017-11-07 11:32:38 +10:00
Nyall Dawson
938b239277 Port more node tool actions 2017-11-07 11:32:38 +10:00
Nyall Dawson
44fe2a8d08 Add tools to create node based items 2017-11-07 11:32:38 +10:00
Nyall Dawson
6b629e199e Port snappedAngle from composer 2017-11-07 11:32:38 +10:00
Nyall Dawson
783636dfa7 Port polygon and polyline items to layouts 2017-11-07 11:32:38 +10:00
Nyall Dawson
2ec31d84d3 Add configuration widget for shapes 2017-11-07 11:32:38 +10:00
Nyall Dawson
7674bd746b Cleanup item xml read/write, save shape properties 2017-11-07 11:32:38 +10:00
Nyall Dawson
26dcf792b0 Fix tests 2017-11-07 11:32:38 +10:00
Nyall Dawson
8ca6d3e717 Refactor layout item gui registry to allow metadata for duplicate item types
This allows registration of item creation actions which create
items with an existing item type, but custom creation functions.

E.g. allowing actions for creation of ellipse/triangles/etc
from a single layout item type.
2017-11-07 11:32:38 +10:00
Nyall Dawson
f524c80b11 More shape porting 2017-11-07 11:32:38 +10:00
Nyall Dawson
cf7714b722 Restore tests, add button to set page background in ui 2017-11-07 11:32:38 +10:00
Nyall Dawson
4a1bcb3266 Revert automatic detection for preview renders
Turns out there's no reliable way to differentiate widget
vs QImage based renders inside QGraphicsItems
2017-11-07 11:32:38 +10:00
Nyall Dawson
edecc37c9f Start work on exporter for layouts 2017-11-07 11:32:38 +10:00
Nyall Dawson
9630a39190 [layouts] Nicer detection of rendering in a view
In compositions, a flag must be explicitly set to indicate
whether the render occuring is for "previews" (i.e.
rendering in a graphics view) or outputs (i.e. rendering
to a image/pdf/other destination device)

This isn't nice api.

So we avoid this by checking the paint device type when
an item is being rendered.
2017-11-07 11:32:38 +10:00
Nyall Dawson
625eef80eb Fix resizing with mouse handles acts strangely when items have frames 2017-11-07 11:32:38 +10:00
Nyall Dawson
8629225a41 Work on functional rotation for items 2017-11-07 11:32:38 +10:00
Nyall Dawson
ce79ff30c8 Add refresh action for layouts 2017-11-07 11:32:38 +10:00
Nyall Dawson
3678f01e54 Port item opacity handling from composer 2017-11-07 11:32:38 +10:00
Nyall Dawson
75898d8e09 Port 'exclude from exports' functionality from composer 2017-11-07 11:32:38 +10:00