Give the Options dialog a tab rail that can hold more pages

The dialog laid its pages out as a row of buttons across the top, which is
what AutoCAD does and what fits while there are four of them. The pages this
series adds take it to nine, and the names are translated into 21 languages —
a row of nine German or Russian page names does not fit at any dialog width
worth having.

The rail is now a vertical list down the left, the dialog is 880×620 rather
than 540×560, and the content pane scrolls on its own.

Which page was open is now remembered. With four pages, reopening on General
was a shrug; with nine it means hunting for the one you were last in.

The ribbon's Options tool has existed all along — `ToolDef`, icon and all —
but was marked `#[allow(dead_code)]` and never added to a group, so the
dialog could only be reached by typing OPTIONS or from the start page. It
now sits in Manage ▸ Application, beside About.

No settings change in this commit; it is only the shell the rest needs.

Co-Authored-By: Claude Opus 5 <[email protected]>
This commit is contained in:
PanosandClaude Opus 5 committed 2026-09-10 08:18:23 +03:00
1 parent b19992cbcb
commit b1d2ac2744
6 files changed
+49 -18

No files matched your search

+7 -1
View File
@@ -79,7 +79,13 @@ impl CadModule for ManageModule {
// ── Application ───────────────────────────────────────────────────
RibbonGroup {
title: "Application",
tools: vec![RibbonItem::LargeTool(about::tool())],
tools: vec![
// The tool and its icon already existed but were never
// added to a group, so the dialog could only be reached
// by typing OPTIONS or from the start page.
RibbonItem::LargeTool(options::tool()),
RibbonItem::LargeTool(about::tool()),
],
},
]
})
-1
View File
@@ -1,5 +1,4 @@
use crate::modules::{IconKind, ModuleEvent, ToolDef};
#[allow(dead_code)]
pub fn tool() -> ToolDef {
ToolDef {
id: "OPTIONS",