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
+4
View File
@@ -75,6 +75,8 @@ namespace QET {
QIcon EditDelete;
QIcon EditOpacity;
QIcon EditPaste;
QIcon CopyElementTextFormat;
QIcon ApplyElementTextFormat;
QIcon EditRedo;
QIcon EditRename;
QIcon EditSelectAll;
@@ -464,6 +466,8 @@ void QET::Icons::initIcons()
EditDelete = QIcon::fromTheme("edit-delete");
EditOpacity = QIcon::fromTheme("edit-opacity");
EditPaste = QIcon::fromTheme("edit-paste");
CopyElementTextFormat = QIcon(":/ico/format-copy.svg");
ApplyElementTextFormat = QIcon(":/ico/format-apply.svg");
if (rtl) {
EditRedo.addPixmap(QIcon::fromTheme("edit-redo").pixmap(16).transformed(reverse));
EditRedo.addPixmap(QIcon::fromTheme("edit-redo").pixmap(22).transformed(reverse));