cad-editor/src/ui
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 31ac5372d6 feat(command): clickable option buttons in the command line (#304)
Commands now expose their step options as clickable buttons rendered
inline beside the command-line prompt, so options need not be typed.

Adds a CmdOption/options() API to CadCommand: each command returns the
options for its current step; the command line renders them as
uppercase buttons and a click feeds the keyword to the command exactly
as if typed (an empty keyword submits like Enter).

Construction commands become "central" — CIRCLE offers [3P/2P/TTR/TTT/
DIAMETER], ELLIPSE [ARC/AXIS], ARC [SCE/SCA/SEA/SER/CSA/3P], RECTANGLE
[ROTATION/CENTER], POLYGON [CIRCUMSCRIBED/EDGE] — each keyword hands off
to the existing dedicated variant command via CmdResult::Dispatch,
instead of the variants only being reachable as isolated commands.

Migrates the existing bracketed-option prompts (PLINE, PEDIT, SPLINE,
SCALE, FILLET, CHAMFER, HATCH, GRADIENT, SOLID, POINT, RAY, XLINE, TRIM,
EXTEND) to the same button API and strips the option text from the
prompt strings, keeping value/coordinate hints. PEDIT's Width option
now enters a value sub-step so the button acts on click.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-08 00:16:59 +03:00
..
popup feat(ui): anchor every ribbon dropdown and status-bar popup to its widget, flipping at window edges 2026-07-05 18:51:54 +03:00
ribbon feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
statusbar feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
style fix(textstyle): live-update style manager preview (#102) 2026-06-29 17:29:04 +03:00
window feat: plot a model-space window to PDF 2026-07-05 23:13:43 +02:00
color_select.rs chore: clear compiler warnings 2026-06-18 21:18:09 +03:00
command_line.rs feat(command): clickable option buttons in the command line (#304) 2026-07-08 00:16:59 +03:00
icons.rs feat(ui): ribbon collapse-mode selector + start-page recent controls 2026-07-06 01:06:01 +03:00
mod.rs feat(ui): flex-wrap the ribbon top bar and status bar when narrow 2026-07-05 16:17:44 +03:00
modal.rs fix(web): render UI icons as SVG instead of font glyphs 2026-06-18 12:29:32 +03:00
overlay.rs feat(snap): mark the parallel reference line + toggle it off on re-hover 2026-07-05 14:50:33 +03:00
properties.rs feat(text): MTEXT background fill / mask + text frame, editable in Properties 2026-07-07 17:41:16 +03:00
side_toolbar.rs feat(ui): right-edge side toolbar; drop the paper-space ribbon tab 2026-06-12 02:07:26 +03:00
text_util.rs feat(ui): elide overflowing text, tooltip full layer name 2026-06-09 19:04:18 +03:00
wrap_bar.rs feat(ribbon): tighten + squeeze collapsed panels, content-driven height 2026-07-05 23:58:18 +03:00