Nyall Dawson
23d0617bac
Start porting map item
2017-11-07 11:32:38 +10:00
Nyall Dawson
71c41d49b7
Add export layer settings to QgsLayoutContext
2017-11-07 11:32:38 +10:00
Nyall Dawson
87ef5c52b0
Allow cancelation of polygon/polyline creation
2017-11-07 11:32:38 +10:00
Nyall Dawson
420821fd68
Fix correct frame bounding rects for shapes and node items
2017-11-07 11:32:38 +10:00
Nyall Dawson
9a08fad506
Exclude selected nodes item when snapping during node move
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
44fe2a8d08
Add tools to create node based items
2017-11-07 11:32:38 +10:00
Nyall Dawson
6b629e199e
Port snappedAngle from composer
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
7674bd746b
Cleanup item xml read/write, save shape properties
2017-11-07 11:32:38 +10:00
Nyall Dawson
26dcf792b0
Fix tests
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
f524c80b11
More shape porting
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
4a1bcb3266
Revert automatic detection for preview renders
...
Turns out there's no reliable way to differentiate widget
vs QImage based renders inside QGraphicsItems
2017-11-07 11:32:38 +10:00
Nyall Dawson
edecc37c9f
Start work on exporter for layouts
2017-11-07 11:32:38 +10:00
Nyall Dawson
9630a39190
[layouts] Nicer detection of rendering in a view
...
In compositions, a flag must be explicitly set to indicate
whether the render occuring is for "previews" (i.e.
rendering in a graphics view) or outputs (i.e. rendering
to a image/pdf/other destination device)
This isn't nice api.
So we avoid this by checking the paint device type when
an item is being rendered.
2017-11-07 11:32:38 +10:00
Nyall Dawson
625eef80eb
Fix resizing with mouse handles acts strangely when items have frames
2017-11-07 11:32:38 +10:00
Nyall Dawson
8629225a41
Work on functional rotation for items
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
3678f01e54
Port item opacity handling from composer
2017-11-07 11:32:38 +10:00
Nyall Dawson
75898d8e09
Port 'exclude from exports' functionality from composer
2017-11-07 11:32:38 +10:00
Nyall Dawson
4e8878dcb3
Port item blend mode support to layouts
2017-11-07 11:32:38 +10:00
Nyall Dawson
0143d0be68
Add a signal to QgsLayoutContext when flags change
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
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
ab4e6c11ed
Fix resizing items with non-top-left reference point using mouse handles
2017-11-07 11:32:37 +10:00
Nyall Dawson
1c735d59ee
Handle position and size with units and ratio lock in item properties
2017-11-07 11:32:37 +10:00
Nyall Dawson
aebe5a42e6
Allow reseting ratio manually for linked ratio lock buttons
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
Borys Jurgiel
6b76c2b377
Missing docstrings
2017-11-06 17:45:46 +01:00
Alessandro Pasotti
b57ec46aa0
getter return not-const list of errors
2017-11-06 16:49:33 +01:00
Borys Jurgiel
64ab28bf59
Rename indx to index in some slots
2017-11-06 16:37:27 +01:00
Alessandro Pasotti
af5760044a
const range loop iterators
2017-11-06 15:09:15 +01:00
Borys Jurgiel
966e2d6639
Make QgsOptionsDialogBase's slots virtual for overriding in derived clases with non-standard tabs (fixes broken tab behaviour in Plugin manager)
2017-11-06 14:27:32 +01:00
Alessandro Pasotti
cd23779e6f
[auth][bugfix] Add a getter for error list on qgsmigrate
2017-11-06 12:42:20 +01:00
Nyall Dawson
4e3b082594
Restrict available formats when running algorithms to those supported
...
by the provider
2017-11-06 12:58:30 +10:00
Nyall Dawson
4ae9241e71
[processing] Allow providers to determine default vector/raster file
...
to use for their algorithm's parameters
Because some providers do not have support for all output types,
we need to give providers a way to restrict the default format
choices to those which are supported by the provider.
2017-11-06 12:44:38 +10:00
Nyall Dawson
2a280d69aa
Allow access to parent algorithm for processing parameters
2017-11-06 12:00:16 +10:00
Nyall Dawson
31f98dac03
Merge pull request #5534 from nyalldawson/format
...
Add flags to QgsVectorFileWriter methods which return lists of drivers
2017-11-06 08:56:17 +10:00
Matthias Kuhn
394c53154f
Update for nose2 0.7.0
2017-11-05 23:03:16 +01:00
Nyall Dawson
8499d7fcef
Add option to hide non-spatial formats from driver lists
...
And hide non-spatial formats from geometry checker available formats
2017-11-06 07:49:31 +10:00
Nyall Dawson
fe0566000e
More QPair API removal
2017-11-06 07:34:01 +10:00
Nyall Dawson
a4ef7e42c7
Avoid use of QPair and instead use a struct
2017-11-06 07:22:04 +10:00