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
cf7714b722
Restore tests, add button to set page background in ui
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
4e61ea892a
Port frame and background handling to layout items
...
And add support for frame widths with units
2017-10-06 17:48:24 +10:00
Nyall Dawson
62dcd0dad5
Start work on undo/redo support for layouts
2017-09-05 09:39:22 +10:00
Nyall Dawson
1589b4e648
Implement some saving/restoring layout items to XML
2017-09-05 09:39:22 +10:00
Nyall Dawson
d0dfec72cb
Add actions to switch grid display/snapping on/off
2017-08-07 19:34:28 +10:00
Nyall Dawson
b42c055e97
Restore drawing of page grids
2017-08-07 19:34:28 +10:00
Nyall Dawson
4cf9827ca2
Draw page shadow in layout units
...
Simplifies code a lot, pixel based size proved to complex for
small result
2017-07-25 12:54:57 +10:00
Nyall Dawson
ea32391280
Add methods for handling page size to QgsLayoutItemPage
2017-07-25 12:54:57 +10:00
Nyall Dawson
9df4a67d6d
Add a page collection to layouts, and start porting composer page items
2017-07-25 12:54:57 +10:00