mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-25 23:54:22 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user