Add Element Text Format Painter tool

- Implement ElementTextFormatPattern to capture and reapply dynamic element text formats (font, color, alignment, rotation, frame, positions, groups) across elements.
- When applying a format, missing ElementInfo texts present on the source template are added to the target element with the template's layout and styling, matching other texts in order.
- Register actions under Edit menu, diagram context menu, and ShortcutManager (customizable via Toolbar settings).
- Bind default shortcuts Ctrl+Alt+C (copy text format) and Ctrl+Alt+V (apply text format).
- Provide full undo/redo support via ApplyElementTextFormatCommand.
- Add SVG icons format-copy and format-apply.
- Include English source strings and German/French translations.
This commit is contained in:
Itsego
2026-10-13 13:04:10 +02:00
parent b8dd03923a
commit 8d56d927e1
12 changed files with 984 additions and 1 deletions
+2
View File
@@ -2119,6 +2119,8 @@ QList<QAction *> DiagramView::contextMenuActions() const
list << qde->m_cut;
list << qde->m_copy;
list << m_multi_paste;
list << qde->m_copy_text_format;
list << qde->m_apply_text_format;
list << qde->m_paste_element_info;
list << m_separators.at(0);
list << m_create_template; // Add the create template action