Insert ribbon: Import panel

Import File split button (PDF Import / DGN Import / Import), Recognize
SHX Text, Recognition Settings and Combine Text; Land XML moves to the
panel slide-out and Open leaves the panel. Ribbon commands may be menu
macros (`;` answers the running command's prompt). KeyTips IF, PI, DI,
OI, PS, PT, TM; labels in every locale.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ramox81andClaude Opus 5.5 committed 2026-10-15 14:53:08 +03:00
1 parent 39c3e9af58
commit 8a87a09e30
33 files changed
+326 -41

No files matched your search

+6
View File
@@ -499,6 +499,8 @@ fn tool_description(id: &str) -> Option<&'static str> {
/// A tool's tooltip: its name, its description when one is known, and the
/// command it runs.
fn tool_tip_text(label: &str, id: &str) -> String {
// A macro (`PDFIMPORT;FILE`) shows the command it starts.
let id = id.split(';').next().unwrap_or(id);
match tool_description(id) {
Some(description) => format!("{label}\n{}\n{} {id}", t!(description), t!("Command:")),
None => format!("{label}\n{} {id}", t!("Command:")),
@@ -825,6 +827,10 @@ pub(super) fn render_large_dropdown<'a>(
})
.or_else(|| items.first().map(|(_, lbl, _)| *lbl))
.unwrap_or(id);
// An empty label: the face keeps its own icon and names the chosen item.
let names_item = explicit_label == Some("");
let cur_icon = if names_item { icon } else { cur_icon };
let explicit_label = explicit_label.filter(|label| !label.is_empty());
let label = t!(explicit_label.unwrap_or(cur_label)).into_owned();
let tip_text = tool_tip_text(&t!(cur_label), last);
let arr_tip = format!("{} {}", label, t!("options"));