256 Commits

Author SHA1 Message Date
Nyall Dawson
253b9d94e8 [needs-docs] Double clicking a layout in the layout manager opens
the layout, instead of renaming it

Because there's already a dedicated rename button, and opening
is a far more common operation than renaming.

Signed off by @nirvn
2017-12-12 19:34:57 +11:00
Etienne Trimaille
9ace5e3ae4 add missing include for macos 2017-12-07 16:13:52 +01:00
Nyall Dawson
8e77701288 Fix warning 2017-12-07 09:08:28 +10:00
Nyall Dawson
17656f23c6 Pasting items from layout context menu pastes them at menu origin
instead of final cursor position
2017-12-07 08:50:01 +10:00
Nyall Dawson
ac6c131212 Fix crash when reopening existing layouts 2017-12-07 08:50:01 +10:00
Nyall Dawson
b6dab6ff48 [needs-docs] Add "delete layout" action to layout designer menu
Fixes #10436
2017-12-07 08:50:01 +10:00
Nyall Dawson
88682b2c7d [needs-docs] Add rename layout action to layout designer dialog
Fixes #10435
2017-12-07 08:50:01 +10:00
Nyall Dawson
e5e37fcafa [needs-docs] Use a QgsFileWidget for template file selector
Rename "Add" button to "Create"
2017-12-07 08:50:01 +10:00
Nyall Dawson
a30dd8a153 Port composer manager dialog to layouts
Not exposed via GUI yet, but can be shown by entering

iface.showLayoutManager()

in the Python console
2017-12-07 08:50:01 +10:00
Nyall Dawson
dbd5215e62 #ifdef out dummy test item 2017-12-07 08:50:01 +10:00
Nyall Dawson
696b21ad94 Fix layout designer window title 2017-12-07 08:50:01 +10:00
Nyall Dawson
9c4a98f029 Port a few file related actions to layouts 2017-12-07 08:50:01 +10:00
Nyall Dawson
a9896eac05 Port a bunch of QgsLayoutManager methods to use QgsLayouts 2017-12-07 08:50:01 +10:00
Nyall Dawson
3a0b751698 Port duplicate layout functionality 2017-12-07 08:49:54 +10:00
Nyall Dawson
a64a675830 [FEATURE][layouts] Support drag and drop of QPT templates onto layout windows
To add contents of template onto layout
2017-12-07 08:49:54 +10:00
Nyall Dawson
eea36c0212 Add custom drop handlers for layout windows 2017-12-07 08:49:54 +10:00
Nyall Dawson
a4dea9935f Restore ability to save layouts to templates and add items from template 2017-12-07 08:49:41 +10:00
Nyall Dawson
d36884f199 Fix pasting items to the top or left of first page 2017-12-07 08:49:41 +10:00
Nyall Dawson
ef9e013a5a Fix crashes when rapidly deleting/undeleting objects
Also fix some leaks
2017-12-07 08:49:41 +10:00
Nyall Dawson
d2fcf11336 [layouts] Add context menu entries for "copy" and "delete" item to
items list panel right click menu

Refs #11581
2017-12-07 08:49:33 +10:00
Nyall Dawson
feec186fbf [layout] Add context menu entries for cutting/copying, and pasting items
Fixes #1830
2017-12-07 08:49:33 +10:00
Nyall Dawson
b03ce047db Start restoring copy/paste functionality 2017-12-07 08:49:33 +10:00
Nyall Dawson
fa5a8311d1 Fix coverity null pointer dereference warnings 2017-12-05 10:56:07 +10:00
Nyall Dawson
6ec96d6d8e [layouts][FEATURE] Port arrow functionality to polyline item
Instead of a separate (badly behaved) item type for arrows, instead
add the arrowhead options to the much nicer polyline item.

There's still a dedicated toolbar action for creating arrows, but
all this does is create a polyline with the arrowhead enabled
by default.
2017-11-24 14:36:02 +10:00
Nyall Dawson
f76ed223eb Port ui for attribute table 2017-11-24 11:05:56 +10:00
Nyall Dawson
cca7c74ddf Start hooking up tables to app 2017-11-24 10:24:36 +10:00
Nyall Dawson
a615a48b40 Make scalebars auto selected between m/km and ft/miles when newly added
Based on current linked map scale and linked map CRS
2017-11-24 10:24:36 +10:00
Nyall Dawson
63f14bd955 Also link new legends to selected map item 2017-11-24 10:24:36 +10:00
Nyall Dawson
2c85182c3f [layouts] Link new scalebars to selected map item, if there is one
Fixes #13851
2017-11-24 10:24:36 +10:00
Nyall Dawson
b7ef3d3cb9 Simplify some code, cleanup UI 2017-11-24 10:24:36 +10:00
Nyall Dawson
af59c535a9 [layouts] Add more unit choices to scalebars
Explicitly add options for kilometers, miles, etc as the current
UX for setting these is too confusing!

Fixes #16921
2017-11-24 10:24:36 +10:00
Nyall Dawson
5b1c6901a5 Port more scalebar functionality 2017-11-24 10:24:36 +10:00
Nyall Dawson
8f5e0cb126 Begin porting scalebar item 2017-11-24 10:24:36 +10:00
Nyall Dawson
f04d438572 Some undo/redo fixes for multiframe items 2017-11-24 10:24:36 +10:00
Nyall Dawson
83ee6498fa Add ui for configuring html items 2017-11-24 10:24:35 +10:00
Nyall Dawson
dddce25e13 More work on porting multiframe items 2017-11-24 10:24:35 +10:00
Juergen E. Fischer
a1024905bf fix windows warnings 2017-11-07 21:44:54 +01:00
Nyall Dawson
36b58a8cdd Fix duplicated return 2017-11-07 11:53:34 +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
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
72a1f77079 After a undo/redo action occurs, select the affected 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
b7e352613e Use symbol buttons for grid symbols 2017-11-07 11:32:39 +10:00
Nyall Dawson
cef5dbc073 Cleanup undo strings 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
1f769da68d Work on resurrecting overviews 2017-11-07 11:32:38 +10:00