feat(mline): align creation and editing

This commit is contained in:
Hakan Seven 2026-08-23 00:30:41 +03:00
commit 343b6cda7d
15 changed files with 2852 additions and 311 deletions

View file

@ -1536,7 +1536,28 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"MLEADERSTYLE: '{}' not found." => Some(("layers", "mleaderstyle-not-found")),
"MLEADERSTYLE: current style set to '{name}'." => Some(("layers", "mleaderstyle-current-style-set-to-name")),
"MLEADERSTYLE: unknown property '{}'. Try: text_height arrowhead_size landing_distance landing_gap" => Some(("layers", "mleaderstyle-unknown-property-try-text-height")),
"Add Vertex" => Some(("modify", "add-vertex")),
"Closed Cross" => Some(("modify", "closed-cross")),
"Closed Tee" => Some(("modify", "closed-tee")),
"Corner Joint" => Some(("modify", "corner-joint")),
"Cut All" => Some(("modify", "cut-all")),
"Cut Single" => Some(("modify", "cut-single")),
"Delete Vertex" => Some(("modify", "delete-vertex")),
"Loaded multiline styles: {}" => Some(("draw", "loaded-multiline-styles")),
"Merged Cross" => Some(("modify", "merged-cross")),
"Merged Tee" => Some(("modify", "merged-tee")),
"MLEDIT Choose an edit tool:" => Some(("modify", "mledit-choose-an-edit-tool")),
"MLEDIT Select first multiline:" => Some(("modify", "mledit-select-first-multiline")),
"MLEDIT Select second multiline:" => Some(("modify", "mledit-select-second-multiline")),
"MLEDIT Specify the end of the weld range:" => Some(("modify", "mledit-specify-end-of-weld-range")),
"MLEDIT Specify the second cut point:" => Some(("modify", "mledit-specify-second-cut-point")),
"MLINE Current settings: Justification = {}, Scale = {}, Style = {}\nSpecify start point or [Justification/Scale/STyle]:" => Some(("draw", "mline-current-settings")),
"MLINE Enter justification type [Top/Zero/Bottom] <{}>:" => Some(("draw", "mline-enter-justification")),
"MLINE Enter scale factor <{}>:" => Some(("draw", "mline-enter-scale-factor-default")),
"MLINE Enter scale factor:" => Some(("draw", "mline-enter-scale-factor")),
"MLINE Enter style name or [?] <{}>:" => Some(("draw", "mline-enter-style-name")),
"MLINE Specify next point or [Close/Undo]:" => Some(("draw", "mline-specify-next-point-close-undo")),
"MLINE Specify next point or [Undo]:" => Some(("draw", "mline-specify-next-point-undo")),
"MLINE Specify next point (%{count} pts, Enter to finish, C to close, S to set scale):" => Some(("draw", "mline-specify-next-point-count-pts-enter-to-fi")),
"MLINE Specify start point (scale=%{scale}):" => Some(("draw", "mline-specify-start-point-scale-scale")),
"MLSTYLE: '{}' already exists." => Some(("layers", "mlstyle-already-exists")),
@ -1646,7 +1667,12 @@ pub(super) fn message_attribute(source: &str) -> Option<(&'static str, &'static
"Multileader Style Manager" => Some(("styles", "multileader-style-manager")),
"Multileader draw order:" => Some(("annotate", "multileader-draw-order")),
"Multileader style" => Some(("properties", "multileader-style")),
"Multiline style \"%{style}\" was not found." => Some(("draw", "multiline-style-was-not-found")),
"Multiline\nText" => Some(("annotate", "multiline-text")),
"Open Cross" => Some(("modify", "open-cross")),
"Open Tee" => Some(("modify", "open-tee")),
"Remove Vertex" => Some(("modify", "remove-vertex")),
"Weld All" => Some(("modify", "weld-all")),
"Multiline Style Manager" => Some(("styles", "multiline-style-manager")),
"Multiple" => Some(("common", "multiple")),
"Multiple lines" => Some(("properties", "multiple-lines")),