16 Commits

Author SHA1 Message Date
Nyall Dawson
819fc50b0e Don't use generic "QgsMapLayer" class name in map layer Python repr
strings

Rather use actual layer subclass type, e.g. QgsVectorLayer
2020-11-12 16:05:52 +10:00
Nyall Dawson
b9cd453674 Add method to determine whether an annotation layer is empty 2020-09-01 15:29:32 +10:00
Nyall Dawson
69665cd534 Add method to reset QgsAnnotationLayer back to default state 2020-08-27 13:08:51 +10:00
Nyall Dawson
199cd7e8d2 Add clear method to QgsAnnotationLayer 2020-08-27 13:08:51 +10:00
Nyall Dawson
f0d2f3d21d Allow removing items from annotation layers 2020-08-05 16:27:09 +10:00
Nyall Dawson
5e9264dfb7 Add unit tests for annotation layer 2020-08-05 16:27:09 +10:00
Nyall Dawson
c31ee84b46 Don't return reference 2020-08-05 16:27:09 +10:00
Nyall Dawson
a90555bf95 Remove data provider from annotation layer -- this is no longer required 2020-08-05 16:27:09 +10:00
Nyall Dawson
6f90139fe9 Dox, build fixes 2020-08-05 16:27:09 +10:00
Nyall Dawson
96cf240b39 Dox cleanup 2020-08-05 16:27:09 +10:00
Nyall Dawson
c523063401 Basic storage and restore of annotation layers in projects 2020-08-05 16:27:09 +10:00
Nyall Dawson
bc745a14e1 Create minimal data provider for annotation layers 2020-08-05 16:27:09 +10:00
Nyall Dawson
83e48c0254 Add missing Transfer annotation 2020-08-05 16:27:09 +10:00
Nyall Dawson
c8e86aefc7 Move QgsAnnotationItem to its own file 2020-08-05 16:27:09 +10:00
Nyall Dawson
21a2599d0d Move annotation layer renderer to own file 2020-08-05 16:27:09 +10:00
Nyall Dawson
9f943f72a8 First steps towards free-form graphics item layer
Based on a port from the downstream Kadas application's item layer
type

Kudos to @manisandro
2020-08-05 16:27:09 +10:00