40798 Commits

Author SHA1 Message Date
Nyall Dawson
66875641a3 Hook up snap to guides menu option 2017-08-07 19:34:28 +10:00
Nyall Dawson
9267f8676c Readd menu option to show/hide guides 2017-08-07 19:34:28 +10:00
Nyall Dawson
98ff702491 [FEATURE] Add a button in guide manager to apply current page's guides
to all other pages

This allows resetting all other pages to use the guide configuration
for the current page. Since guides are now single page only (required
to handle mixed page size/orientation layouts), this is a shortcut
to allow guide configuration to be setup on a single page and then
easily transferred to all other pages in the layout.
2017-08-07 19:34:28 +10:00
Nyall Dawson
c43a173ef8 Add a clear all guides button to guide manager 2017-08-07 19:34:28 +10:00
Nyall Dawson
33aa3525a3 Show different cursor and paint guide markers darker when hovering them in rulers 2017-08-07 19:34:28 +10:00
Nyall Dawson
4565d8d656 Add missing files 2017-08-07 19:34:28 +10:00
Nyall Dawson
df3bcddab7 Hook up clearing guides 2017-08-07 19:34:28 +10:00
Nyall Dawson
da4382309e Allow deletion of guides by dragging outside of pages 2017-08-07 19:34:28 +10:00
Nyall Dawson
e06b0af91b Support dragging existing guides in rulers 2017-08-07 19:34:28 +10:00
Nyall Dawson
c6c9c6fabf Show guide positions in rulers 2017-08-07 19:34:28 +10:00
Nyall Dawson
ab726c4777 Add methods to determine visible pages in a view 2017-08-07 19:34:28 +10:00
Nyall Dawson
9458f1f934 Support deletion of guides through manager 2017-08-07 19:34:28 +10:00
Nyall Dawson
6138b979b2 Slightly improved guide appearance 2017-08-07 19:34:28 +10:00
Nyall Dawson
e718f92bd5 Better headers in guide view 2017-08-07 19:34:28 +10:00
Nyall Dawson
048a5b79b6 Nicer table view for guide editing 2017-08-07 19:34:28 +10:00
Nyall Dawson
886a1208ef Dropping guides outside of pages doesn't create new guides 2017-08-07 19:34:28 +10:00
Nyall Dawson
b0956c9bd7 [needs-docs] Partial WIP of dragging rulers to create guide lines
Unlike in 2.x, Layouts in 3.0 adopt the standard UX of dragging
out rulers to create guide lines (instead of clicking on a ruler
position to create a guide)
2017-08-07 19:34:28 +10:00
Nyall Dawson
ef6727518d [FEATURE] Add a dock widget showing snap guides for current page
Allows creation of snap lines at specific locations, and
adjusting position of existing guides to exact coordinates
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
fa5eb4e5ad Refine QgsLayoutGuide API 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
3aa231e547 Show snapped cursor position in status bar 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
55c7cc185e Start porting layout settings panel
Readd settings for grid tolerance/spacing/offset
2017-08-07 19:34:28 +10:00
Nyall Dawson
d0dfec72cb Add actions to switch grid display/snapping on/off 2017-08-07 19:34:28 +10:00
Nyall Dawson
798ec83681 Start on snapping marker 2017-08-07 19:34:28 +10:00
Nyall Dawson
f57212eee5 Hook up snapping for QgsLayoutViewTools
Tools can now indicate (via setFlags()) if they desire snapping
to be active for the tool. When a tool has the flag set,
any QgsLayoutViewMouseEvents it receives will have a snappedPoint()
available which returns the mouse event point snapped using
the layout's snapping settings.
2017-08-07 19:34:28 +10:00
Nyall Dawson
5be237fdd9 Add ability for QgsLayoutSnapper to snap to grid 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
ec5698393b Support data defined paper sizes 2017-08-07 19:34:28 +10:00
Nyall Dawson
57c9668398 Partially hook up data defined page size
TODO:
- preset page sizes
- reflow after update
2017-08-07 19:34:28 +10:00
Nyall Dawson
f802c56573 Merge pull request #4996 from nyalldawson/spelling_and_stuff
Fix some spelling, add parameter names to tooltips in processing
2017-08-07 19:11:26 +10:00
Mario Baranzini
0409da3a4c Fixed PEP8 missing blank line 2017-08-07 10:27:15 +02:00
Mario Baranzini
f187c43280 Add cmp() function 2017-08-07 10:27:15 +02:00
Mario Baranzini
b32212d451 Removed 2 calls to standard_library 2017-08-07 10:27:15 +02:00
Mario Baranzini
78af413dcc Remove python future compatibility layer 2017-08-07 10:27:15 +02:00
Nyall Dawson
4ab4a1fcad Spell check 'mitre' -> 'miter' (i.e. use en-us variation) 2017-08-07 18:08:57 +10:00
Nyall Dawson
75a372c5e9 Spell check seting->setting 2017-08-07 17:48:29 +10:00
Nyall Dawson
7cebe7a343 Fix some grammar 2017-08-07 17:45:33 +10:00
Nyall Dawson
952b494256 Show Python identifier for processing parameters in tooltip
over widgets

Hopefully helps Python processing users match the parameters
in the gui to the parameter names to use when calling via
API

(Blender style!)
2017-08-07 17:24:22 +10:00
Alessandro Pasotti
2712f66938 Merge pull request #4980 from boundlessgeo/Win_CutAndPaste_issue16870
From Clipboard Cut&Paste fix when attached special field values. Fixes #16870
2017-08-07 09:18:20 +02:00
Nyall Dawson
b0cac0bd04 Remove debugging code 2017-08-07 17:13:07 +10:00
Denis Rouzaud
518ffe3f62 fix doxygen test on Travis
it seems that doxygen 1.18.13 is not behaving the same as 1.1811 (Travis one).
one might need to remove some spaces in the signature as they are different depending on Doxygen's version
2017-08-06 23:57:14 +02:00
Nyall Dawson
7946908224 Merge pull request #4424 from nyalldawson/osx_tests
Add some mask images, adjust test results for OSX
2017-08-07 07:39:42 +10:00
Nyall Dawson
ecafb494a8 Add some mask images, adjust test results for OSX 2017-08-07 07:38:19 +10:00
Nyall Dawson
80d53e4f59 Merge pull request #4466 from arnaud-morvan/test_python_qgsfields_getitem
Add test for python QgsFields [] operator
2017-08-07 07:33:21 +10:00
Harrissou Sant-anna
54007ef584 Delete context help dialogs that are replaced by online links. 2017-08-06 23:27:01 +02:00
Nyall Dawson
37bc07a8d4 Merge pull request #4991 from marioba/fix_processing_parameters
Protect processing parameters from segfault
2017-08-07 07:07:39 +10:00