Draft AnnotationStyleEditor/pl

Description
The tool allows you to define styles that affect the visual properties of annotation-like objects, like those create by, , and.



Usage

 * 1) Press  button.
 * 2) Open the combobox, and then choose  to define a new style, or select one of the existing styles.
 * 3) Adjust the properties of the style, and then press  when satisfied.

Use the or  to rename or delete the active style.

Scripting
The annotation styles are saved as serialized dictionaries in the attribute of the document. This attribute is inspected by the annotation style editor when it is opened.

Each style that appears in the editor is internally saved with the style name prefixed by ; this will prevent name clashes with other keys that may be saved in, which can hold arbitrary information.

You may define any new style by adding the necessary information to a key that starts with. The corresponding value of this key must be a dictionary serialized using.

The values not entered will be filled automatically when this style is selected in the style editor.

In a similar way, any serialized dictionary can be unpacked for edition.

Because the graphical interface widgets check the units of the input values, many of these values must be saved as strings, rather than floating point numbers.

Strings:

Numbers:

The line color corresponds to the 32-bit integer, from which the individual RGBA values can be extracted.

Boolean: