formattingtagcontroller

The formattingtagform provides an Tag Edit facility. The Base set are protected and included each time loaded. Custom tags can be defined and saved. The Custom Tag arrays are saved in a pickle so QSettings works on them. Base Tags cannot be changed.

class openlp.core.ui.formattingtagcontroller.FormattingTagController[source]

Bases: object

The FormattingTagController manages the non UI functions .

end_tag_changed(start_html, end_html)[source]

Validate the HTML tags when the end tag has been changed.

start_html
The start html tag.
end_html
The end html tag.
pre_save()[source]

Cleanup the array before save validation runs

save_tags()[source]

Save the new tags if they are valid.

start_html_to_end_html(start_html)[source]

Return the end HTML for a given start HTML or None if invalid.

start_html
The start html tag.
start_tag_changed(start_html, end_html)[source]

Validate the HTML tags when the start tag has been changed.

start_html
The start html tag.
end_html
The end html tag.
validate_for_save(desc, tag, start_html, end_html)[source]

Validate a custom tag and add to the tags array if valid..

desc
Explanation of the tag.
tag
The tag in the song used to mark the text.
start_html
The start html tag.
end_html
The end html tag.