422 Commits

Author SHA1 Message Date
Nyall Dawson
acb956a5e7 Deduplicate code relating to shifting item positions in layout units 2017-12-07 08:49:41 +10:00
Nyall Dawson
b03ce047db Start restoring copy/paste functionality 2017-12-07 08:49:33 +10:00
Nyall Dawson
f60da58256 Add some unit tests 2017-12-07 08:49:33 +10:00
Nyall Dawson
b74a0efa34 Work on layout and layout item serialization and restoration 2017-12-07 08:49:33 +10:00
Denis Rouzaud
f29306d4af [doxygen] replace @param by \param 2017-12-06 08:31:12 -04:00
Nyall Dawson
fa5a8311d1 Fix coverity null pointer dereference warnings 2017-12-05 10:56:07 +10:00
Nyall Dawson
4689537842 Fix build warning 2017-12-05 08:30:52 +11:00
Nyall Dawson
3c238a2ba4 Add missing overrides 2017-12-01 15:47:53 +10:00
Nyall Dawson
cc29f0ee36 Fix some doxygen warnings 2017-11-24 16:25:49 +10:00
Nyall Dawson
86669b932e Fix z order stacking of guides 2017-11-24 16:11:02 +10:00
Nyall Dawson
32834e9bf1 Update indentation 2017-11-24 14:57:39 +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
f29eb7b19e Port and fix unit tests 2017-11-24 10:24:36 +10:00
Nyall Dawson
f90c5003ca Port table subclasses 2017-11-24 10:24:36 +10:00
Nyall Dawson
3a0f94389c Port text table 2017-11-24 10:24:36 +10:00
Nyall Dawson
9cf6e0a2a2 Start porting table items 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
3decab9899 Fix map item tooltips 2017-11-24 10:24:36 +10:00
Nyall Dawson
060270c0be [layouts] Simplify scalebar unit handling
Instead of auto setting the units to meters/feet, and then using
the label multiplier setting to obtain a scalebar in km/miles,
instead we always keep auto-set label multipliers at 1 and just
always keep the users explicitly set scale bar units.

This should help avoid the complexity of layout scale bars, while
still keeping flexibility if someone does need custom units.
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
604e51d390 Restore some tests 2017-11-24 10:24:36 +10:00
Nyall Dawson
2a75ad8e96 More work on layout multiframe undo/redo 2017-11-24 10:24:36 +10:00
Nyall Dawson
12e69ab1f0 Modernize code 2017-11-24 10:24:36 +10:00
Nyall Dawson
30ce60bd90 Remove some processEvents usage 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
Nyall Dawson
2cf99116d7 Resurrect tests for html item 2017-11-24 10:24:35 +10:00
Nyall Dawson
aec03269b9 Sip is p****** me off, by refusing to build for unrelated reasons
Block a bunch of classes from Python bindings for now until sip
gets over itself
2017-11-24 10:24:35 +10:00
Nyall Dawson
f1d1e454d8 Begin port of HTML item 2017-11-24 10:24:35 +10:00
Nyall Dawson
0e71505fe8 Fix a number of multiframe methods 2017-11-24 10:24:35 +10:00
Nyall Dawson
c4c0c83ca5 Restore api for handling layout item page numbers 2017-11-24 10:24:35 +10:00
Nyall Dawson
714920ff25 Start of multiframe porting 2017-11-24 10:24:35 +10:00
Nyall Dawson
95765a191a Remove coordinate formatting methods from QgsPointXY
Use QgsCoordinateFormatter instead
2017-11-15 20:49:45 +10:00
Nyall Dawson
5d476e51df Use QVector where possible in geometry classes 2017-11-14 21:52:09 +11:00
Nyall Dawson
5a6c222e87 Fix Coverity null pointer dereference issues 2017-11-11 16:00:19 +10:00
Nyall Dawson
c97fa5bdd0 Cleanup some constructors 2017-11-11 11:29:45 +10:00
Nyall Dawson
871f71305d Use clang-tidy modernize-use-default-member-init to modernize initializers 2017-11-11 10:54:44 +10:00
Alessandro Pasotti
e781ad2e3e
Merge pull request #5558 from elpaso/project_use_rw_context
[bugfix] Project use rw context
2017-11-08 12:26:45 +01:00
Juergen E. Fischer
27dbb48679 fix override warning 2017-11-07 21:44:54 +01:00
Alessandro Pasotti
7aa24f6906 [bugfix] Pass QgsReadWriteContext into project XML r/w
Or we miss the path resolver and we do not read/write
relative paths correctly

Fixes #17116
2017-11-07 18:17:48 +01:00
Nyall Dawson
90d6a2d089 Update for changes in API 2017-11-07 11:51:36 +10:00
Nyall Dawson
476b1deced Fix doxygen warning 2017-11-07 11:32:39 +10:00
Nyall Dawson
ce0ac40a30 Add missing docs 2017-11-07 11:32:39 +10:00
Nyall Dawson
49c41d39c2 Add missing override 2017-11-07 11:32:39 +10:00