Nyall Dawson
5d5c858dc8
Start restoring grids/overviews
2017-11-07 11:32:38 +10:00
Nyall Dawson
7f0142c86a
Working move item content tool
2017-11-07 11:32:38 +10:00
Nyall Dawson
b276f4c4b9
Fix map item widget properties updating
2017-11-07 11:32:38 +10:00
Nyall Dawson
753f6f5050
Start hooking up map widget gui
2017-11-07 11:32:38 +10:00
Nyall Dawson
938b239277
Port more node tool actions
2017-11-07 11:32:38 +10:00
Nyall Dawson
ab7bb7235a
Start work on node edit tool
2017-11-07 11:32:38 +10:00
Nyall Dawson
d92b067b28
Add config widget for polygon/polyline items
2017-11-07 11:32:38 +10:00
Nyall Dawson
44fe2a8d08
Add tools to create node based items
2017-11-07 11:32:38 +10:00
Nyall Dawson
783636dfa7
Port polygon and polyline items to layouts
2017-11-07 11:32:38 +10:00
Nyall Dawson
b41fea90e2
Fix layout items appear in random order in gui
2017-11-07 11:32:38 +10:00
Nyall Dawson
2ec31d84d3
Add configuration widget for shapes
2017-11-07 11:32:38 +10:00
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
ce79ff30c8
Add refresh action for layouts
2017-11-07 11:32:38 +10:00
Nyall Dawson
c0b63a6778
After creating an item with the add item tool, switch immediately to select tool
2017-11-07 11:32:38 +10:00
Nyall Dawson
91c3b5d255
Add a shortcut menu to items panel, with option to show
...
item properties
Refs #11581
2017-11-07 11:32:38 +10:00
Nyall Dawson
f69771cadf
Add item properties to context menu
2017-11-07 11:32:37 +10:00
Nyall Dawson
3735c7f06f
Small tweaks to selection behavior
2017-11-07 11:32:37 +10:00
Nyall Dawson
06650808b5
Fix resize of grouped items with non-top left reference points
2017-11-07 11:32:37 +10:00
Nyall Dawson
e836fc49b1
When selecting a different item, but the item is the same
...
type of item, just update the existing panel to show the new
item's properties
This means that flicking between selecting items of the same
type will not create a new properties widget, so scroll
bar positions, focused widgets, etc are all maintained.
Makes using layouts less annoying.
2017-11-07 11:32:37 +10:00
Nyall Dawson
ea453beb73
If the same item is reselected in a layout, don't create a new
...
properties widget for it
Because if we do annoying things happen, like loss of focused
widget and scroll bar position
2017-11-07 11:32:37 +10:00
Nyall Dawson
b2414d8d8d
Start porting item properties widget
2017-11-07 11:32:37 +10:00
Nyall Dawson
d3836e502a
Move population of layout gui registry from GUI->app
...
Since we don't want all the item type subclass config widgets
to have to reside in gui, we need to populate the registry
from app instead.
2017-11-07 11:32:37 +10:00
Nyall Dawson
24a9c522e3
Move qgsAsConst to qgis::as_const
...
So it's more inline with the std::as_const implementation which
it fills in for, and allows us to 'polyfill' other c++>11
features into the qgis:: namespace.
2017-10-13 19:47:37 +10:00
Nyall Dawson
7b6156e445
Set correct shortcut keys for undo/redo actions
2017-10-10 14:02:54 +10:00
Nyall Dawson
a376a3997d
Better consistency for undo command text in layouts
2017-10-10 10:31:27 +10:00
Nyall Dawson
183da9f264
Add undo/redo to layout context menu
...
Refs #1830
2017-10-10 10:13:03 +10:00
Nyall Dawson
2bba805d41
Use QUndoStack generated actions for undo/redo
...
Benefits include correct icon text describing actual action
which will be undone/redone, automatic disabling/enabling of
action
2017-10-10 10:12:03 +10:00
Nyall Dawson
53e24f1951
[FEATURE][layouts] Add group/ungroup action to layout context menu
...
Group/ungroup actions show only when an appropriate selection
is present. I.e. "group" appears when a selection of at least
two items is present, and "ungroup" appears only when at least
one of the selected items is a group.
Refs #1830
2017-10-10 09:48:43 +10:00
Nyall Dawson
606ad21a51
Port group actions from composer
2017-10-09 19:23:46 +10:00
Nyall Dawson
c8eaeb8f93
Port hide pages action from composer
2017-10-06 17:48:25 +10:00
Nyall Dawson
88a7f02c77
Port preview modes from composer
2017-10-06 17:48:25 +10:00
Nyall Dawson
5796b899fc
Fix build when model test is enabled
2017-10-06 17:48:25 +10:00
Nyall Dawson
afd9d23a21
Fix size of columns in items dock on hidpi screens
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
95a76eeef8
Port delete action - TODO: undo/redo
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
0939333273
Port item alignment to layouts
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
e74a632002
Unfinished restore of stacking actions
2017-10-06 17:48:25 +10:00
Nyall Dawson
833cb60f1f
Port toggle panel action to layouts
2017-10-06 17:48:25 +10:00
Nyall Dawson
02831024a6
Restore items dock
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
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
639ecd1748
Correctly handle item focusing in layout designer
2017-10-06 17:48:25 +10:00
Nyall Dawson
d8ffab1523
[FEATURE][layouts] Snapping to item bounds when creating new items
...
Previously snapping to item bounds would only occur when resizing
or moving items, now it also applies to item creation
2017-10-06 17:48:24 +10:00
Nyall Dawson
e0089fb84c
Move mouse handles to select tool
2017-10-06 17:48:24 +10:00
Nyall Dawson
d7bd44d9e7
Work on interactive moving of items
2017-10-06 17:48:24 +10:00