Nyall Dawson
5aa9a1556f
Start porting group handling from composer
2017-10-09 19:23:46 +10:00
Nyall Dawson
a66f2cb684
Nicer API for adding/removing items
...
Automatically create the corresponding undo commands, so that
plugins and scripts which add/delete items will be added to
the undo stack without any work required.
2017-10-06 17:48:25 +10:00
Nyall Dawson
822d6f76a3
Move actions which apply to selected items only to QgsLayoutView
...
Selections are a gui concept, so these actions belong to the
gui class instead of cluterring QgsLayout
2017-10-06 17:48:25 +10:00
Nyall Dawson
fdba8f199a
Add tests for changing item z order
2017-10-06 17:48:25 +10:00
Nyall Dawson
e74a632002
Unfinished restore of stacking actions
2017-10-06 17:48:25 +10:00
Nyall Dawson
dbb31253e9
Resurrect locking/unlocking item actions
2017-10-06 17:48:25 +10:00
Nyall Dawson
62a5679230
Port item model from composer to layouts
2017-10-06 17:48:25 +10:00
Nyall Dawson
d950f17e75
Add item bounds based snapping to QgsLayoutSnapper
2017-10-06 17:48:24 +10:00
Nyall Dawson
bfa9c1d661
Port methods for retrieving item at a point to layouts
2017-10-06 17:48:24 +10:00
Nyall Dawson
207bcad626
Start porting mouse handles to layout
2017-10-06 17:48:24 +10:00
Nyall Dawson
bb129516f8
Port selection handling code from composer
2017-10-06 17:48:24 +10:00
Nyall Dawson
0b188295bc
Port item selection and lock related code from composer
2017-10-06 17:48:24 +10:00
Nyall Dawson
a77950cbf6
SIP, indentation and documentation updates
2017-09-05 09:53:48 +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
66e1cf04e6
Port methods to retrieve layout items
2017-09-05 09:39:22 +10:00
Nyall Dawson
3fd2e0921d
Fix ownership issue with layout guides
2017-08-07 22:31:44 +10:00
Nyall Dawson
ab726c4777
Add methods to determine visible pages in a view
2017-08-07 19:34:28 +10:00
Nyall Dawson
f5126b0abd
New class QgsLayoutGuideCollection for storing sets of layout snap guides
...
The class is a QAbstractListModel subclass, making it easy
for creation of different views showing the guides in a layout.
Additionally, a QSortFilterProxyModel (QgsLayoutGuideProxyModel)
has been created to filter QgsLayoutGuideCollection to guides
with matching page numbers and orientations.
2017-08-07 19:34:28 +10:00
Nyall Dawson
db36440cfc
Start on classes for snapping guide items
2017-08-07 19:34:28 +10:00
Nyall Dawson
3dbc1a0c2a
Refine z order for some new items
2017-08-07 19:34:28 +10:00
Nyall Dawson
0d0a3c2cdc
Code refactor - split grid appearance settings into their own class
2017-08-07 19:34:28 +10:00
Nyall Dawson
361dd312bc
Start on layout snapper
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
39bf23a5d5
Start on reflow support for page collections (needs tests)
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
Nyall Dawson
c282024748
Partially port some layout utils for render context creation
2017-07-18 12:42:06 +10:00
Nyall Dawson
dd370373be
Port a bunch of low-level methods to layouts
...
Relating to expression contexts and variables
2017-07-18 12:42:06 +10:00
Nyall Dawson
a6156d9221
Layouts have a name
2017-07-18 12:42:05 +10:00
Nyall Dawson
ab79b1560c
[layout] Add measurement unit handling to QgsLayout
...
Allows layouts to convert from various units to their
own native units
Also added a QgsLayoutContext to QgsLayout.
2017-07-18 12:42:05 +10:00
Nyall Dawson
4ebea75e6a
Subclass QMouseEvent to QgsLayoutViewMouseEvent
...
For easy access to mouse event coordinates in layout coordinate
space (and future use with snapped item coordinates)
2017-07-11 11:06:35 +10:00
Nyall Dawson
18b2b5240b
Add some base classes for layouts
2017-06-30 17:01:52 +10:00