mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-25 15:34:13 +01:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user