4555 Commits

Author SHA1 Message Date
Blottiere Paul
fc876fe547 Add some tests 2017-10-10 07:05:28 +01:00
Nyall Dawson
fdc0f75066 Fix redoing group visibility creates multiple new undo commands 2017-10-10 09:37:29 +10:00
Nyall Dawson
30eab10619 Fix handling of overlapping item commands 2017-10-10 09:06:02 +10:00
Nyall Dawson
f58947d9b6 Fix valgrind noise 2017-10-09 20:28:39 +10:00
Nyall Dawson
02acbb4184 Fix undo/redo for groups 2017-10-09 19:23:46 +10:00
Nyall Dawson
e17b32c6e2 Fix moving/resizing grouped items 2017-10-09 19:23:46 +10:00
Nyall Dawson
7c81a1516d Grouped items are not selectable 2017-10-09 19:23:46 +10:00
Nyall Dawson
5aa9a1556f Start porting group handling from composer 2017-10-09 19:23:46 +10:00
Blottiere Paul
ac66ced1c3 Merge pull request #5086 from pblottiere/pr_auxiliary_storage
[Feature] Auxiliary Storage
2017-10-09 08:58:21 +01:00
Denis Rouzaud
8a8e2e3a14 fix sipify test 2017-10-09 09:51:40 +02:00
Blottiere Paul
3d7ac65764 Add tests 2017-10-09 05:13:59 +01:00
Ismail Sunni
1be2f3ee66 Add methods to remove variables from global/project scope 2017-10-09 12:03:37 +10:00
Nyall Dawson
9aa6142bab Merge pull request #5291 from nyalldawson/layout_next
[layouts] Port most interaction actions from composer
2017-10-09 10:12:17 +10:00
Matthias Kuhn
8915936296 Close file after write 2017-10-07 15:23:56 +02:00
Matthias Kuhn
379b5ed7de Remove executable flag from test files 2017-10-07 15:23:56 +02:00
Matthias Kuhn
83f9e81e95 [travis] Less noise for DB initialisation 2017-10-07 14:21:13 +02:00
Marco Bernasocchi
1c63522819 Added QgsFields::names method to get a list of all the names of fields 2017-10-06 22:52:26 +02:00
Blottiere Paul
ea96031405 Add tests 2017-10-06 17:16:41 +01:00
Nyall Dawson
0c858d27d6 Port display name handling from composer 2017-10-06 18:43:10 +10:00
Nyall Dawson
c8eaeb8f93 Port hide pages action from composer 2017-10-06 17:48:25 +10:00
Nyall Dawson
aa7beaad6a Port keyboard nudge of items from composer 2017-10-06 17:48:25 +10:00
Nyall Dawson
66b4bdf01d Fix invalid merge of non equal item commands 2017-10-06 17:48:25 +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
f3bfcc3182 Save/restore frame properties, add unit tests for undo/redo 2017-10-06 17:48:25 +10:00
Nyall Dawson
616aec1566 Save/restore a few more layout item properties 2017-10-06 17:48:25 +10:00
Nyall Dawson
c022bc825e [FEATURE][layouts] Add 'resize to square' action
Resizes all selected items so that they are square
2017-10-06 17:48:25 +10:00
Nyall Dawson
e3616f08c4 [FEATURE][layout] Add actions to auto resize items in a selection
Options are resize to narrowest, widest, shortest and tallest.
2017-10-06 17:48:25 +10:00
Nyall Dawson
5141c05ba7 [FEATURE][layout] Add item distribution actions
Adds actions for distributing selections of items by their
left/center/right/top/bottom edges.

Useful for quickly evenly distributing items in the layout

Needs new icons
2017-10-06 17:48:25 +10:00
Nyall Dawson
c5fcc9da69 Unit tests for alignment 2017-10-06 17:48:25 +10:00
Nyall Dawson
c6da276783 Add more unit tests 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
4cba2b90ef Port select next above/below 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
b494a71feb Port selection actions to layout 2017-10-06 17:48:25 +10:00
Nyall Dawson
de9653044a Remove redundant custom enum (use Qt version instead) 2017-10-06 17:48:25 +10:00
Nyall Dawson
d65a18c5c0 Fix item snapping while resizing 2017-10-06 17:48:24 +10:00
Nyall Dawson
051ed1e156 Prevent snapping to selected items when resizing 2017-10-06 17:48:24 +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
2d6cbd6bba Restore ability to show/hide selection bounds 2017-10-06 17:48:24 +10:00
Nyall Dawson
7d072beee7 Add signals for size and rotation changes 2017-10-06 17:48:24 +10:00
Nyall Dawson
b5777adbdd Port some composer utils 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
51efa19f75 Port item frame related 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
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
04a9cd9211 Add more consistency to doxygen formatting 2017-10-06 08:19:00 +10:00