25 Commits

Author SHA1 Message Date
Harrissou Sant-anna
e96bc4ad86 Fix tab order for annotation symbology properties widgets 2025-03-26 11:45:01 +01:00
Nyall Dawson
03987344d6 Use font button in annotation widgets instead of full text format widget
The widgets were getting very complex, this reduces the amount
of controls shown in the dock
2025-01-31 10:27:03 +10:00
Nyall Dawson
692e1d4885 Adapt rect text widget to expose placement modes 2024-08-25 12:34:51 +10:00
Nyall Dawson
c2529994aa Use rich text editor for annotation text item widgets
Makes it easier for users to style annotation items with rich
formatting, instead of forcing use of raw HTML
2024-08-15 06:25:08 +10:00
Nyall Dawson
547387037f [annotations] Add support for callouts to point text item
Allows creating of callout lines (or bubble callouts) which
link the text to a map location. To create a callout, users
select the text item and then drag out the central x node
to the desired callout end point.

Callout styles can be modified through the layer styling panel.
2024-08-06 13:30:16 +10:00
Nyall Dawson
00412a41d3 [annotations] Add linked layer option for annotation layers
Adds a new "Linked layer" setting to the render page for annotation
layers, which allows users to optionally set a linked visibility
layer for the annotation layer. If set, then the annotations will
only be drawn when the linked layer is visible in the map.

This is designed to mimic the similar linked layer option for
the older annotation framework, in order to close the feature
gap between old vs new annotations

Refs https://github.com/qgis/QGIS-Enhancement-Proposals/issues/269
2024-08-03 06:40:03 +10:00
Nyall Dawson
bae23c28a3 [FEATURE] Text inside rectangle annotation item
This adds a new annotation item type for rendering paragraphs
of text inside a rectangle

Options are present for:

- Text format
- Horizontal and vertical alignment
- Margins
- Background and frame symbol
2024-07-31 07:58:53 +10:00
Nyall Dawson
c0651bb725 Address review 2024-07-26 20:38:47 +10:00
Nyall Dawson
0c230a83e7 Add fixed size mode for picture annotations
When selected, the picture annotation will always be rendered
at the same size, regardless of the map scale
2024-07-26 20:38:47 +10:00
Nyall Dawson
75cca8a20c [FEATURE] Add picture annotation item type
Can render SVG or raster images as items in an annotation layer.
Options are present for:

- Locking the picture's aspect ratio
- Drawing with a background symbol
- Drawing with a border symbol
- Linked or embedded pictures
2024-07-26 20:38:47 +10:00
Nyall Dawson
24680c5dd2 Expose the horizontal alignment option for point text annotations to GUI
This has been supported via raw api, but not exposed in the widget
2023-06-02 17:26:07 +10:00
Nyall Dawson
a764e2da76 Expose setting for point text annotations to control how
the text annotation should handle map rotation

Previously, text annotations just ignore map rotation, which
matches how regular map labels are handled. But this is not
desirable for some point text annotations, where it can
be considered a bug that the item ignores the map rotation (eg
when a text annotation has been placed to align with a feature
on the map, such as a road)

There's no one "correct" behaviour here, so add a new
combo box widget in the annotation point text settings with
options for
"Ignore Map Rotation"
"Rotate With Map"
so that users can pick the desired behavior for their annotations
2023-06-02 17:26:07 +10:00
Nyall Dawson
eb2941fa6c Expose angle control for point text annotations in widget
This was supported by the annotation, but not exposed in the
widget for some reason
2023-06-02 17:26:07 +10:00
Nyall Dawson
02d0fbbb94 Expand range of z index spin for annotations 2023-06-01 19:48:52 +10:00
Nyall Dawson
389f18d76a Fix row number 2023-04-04 18:57:23 +10:00
Nyall Dawson
9fa59d2e14 Add UI action for creating text along line annotation items
And a properties panel
2023-04-04 18:57:23 +10:00
nirvn
3b07f3b948 [ui][annotations] Add insert expression button in the point text widget 2021-09-11 06:14:13 +10:00
Nyall Dawson
9772e04100 Make layer renderer properties collapsible 2021-09-10 18:26:39 +10:00
Nyall Dawson
0f1cbd2b07 Also show annotation layer opacity, blend mode and paint effect widget
in the layer styling dock, so that live changes can be made
2021-09-10 18:26:39 +10:00
Nyall Dawson
5e150f9262 Allow paint effects to be applied to an annotation layer 2021-09-10 18:26:39 +10:00
Nyall Dawson
94051ebb47 Annotation layer opacity and blend modes can be set through the layer
properties dialog
2021-09-10 18:26:39 +10:00
Nyall Dawson
985b989276 Initial starting point for annotation layer properties page 2021-09-10 18:26:39 +10:00
Nyall Dawson
00177d5932 Also show common properties for marker/line/polygon annotation item
widgets
2021-09-07 18:44:57 +10:00
Nyall Dawson
adcd793b89 Add QgsAnnotationItemCommonPropertiesWidget widget for controlling
common properties of annotation items (e.g. reference scale, z order)

And include this in the point text item configuration widget
2021-09-07 18:44:57 +10:00
Nyall Dawson
8e18629d4b Implement annotation item widget for point text annotation items 2021-09-07 15:48:17 +10:00