# Tool panel inventory A tool panel represents one active command, identifies the tool by name and icon in its header, and places the actions that finish or cancel it in the footer. Its body can show command inputs, geometry selections, previews and results. The header, scrolling region and footer share a host. Docking a panel or giving a window an OK button does not by itself make it a tool panel. ## Command dialogs The primary route is `SolveApp::start` → `dialogs::Dialog` → `dialogs_dense` and the family modules in `crates/ui-egui/src`. A dialog can also open for editing an existing feature. The field description must support both routes, saved values, current document units, and a draft distinct from a running preview. | Family and source | Tool bodies reached | Required content and behavior | | --- | --- | --- | | Solid and face editing, `dialogs`, `dialogs_dense`, `dialogs_combine`, `dialogs_transform_face`, `dialogs_move` | Primitive solids, extrude, revolve, loft, sweep, pipe, shell, dome, draft, scale, stock, emboss, offset/delete/replace/transform faces, split/remove/combine bodies, boundary fill, align, move/copy, mirror, rectangular/circular/path patterns, rib/web, finger joint | Role-specific picks with filters and multiplicity, dimensioned expressions, direction, operation, second extent, repeated profile/rail lists, live preview and commit | | Manufactured details | Fillet/chamfer, hole, thread, dogbone, tab and slot, cell grid, pulley, shaft spline | Presets, dependent choice availability, dimensional limits, geometric references, repeatable dimensions and derived values | | Construction and inspection | Plane offset/angle/tangent/midplane/along path and explicit/automatic construction, measure, section, view navigator | Plane/axis/point roles, grouped readouts and units, optional reference choice, orientation controls | | Surface and form, `dialogs_surface`, `dialogs_sweep` | Offset, stitch, thicken, extend, fair, match, morph, extrude, revolve, sweep, loft, blend, boundary, patch, refined weld, unstitch, reverse normal, ruled, trim, untrim, split face | Ordered profiles, guide chains, continuity and end conditions, trim/extend distance, preview | | Sheet and plastic, `dialogs_sheet`, `dialogs_plastic` | Perforate, hem, fold, path flange, tab, corner join, flange, unfold/refold, convert, recognize, rules, hardware, flat pattern, DXF export. Boss, lip, rest, snap fit, plastic rules and rule assignment | Sectioned inputs, tables of rules and standards, active/editable presets, bend and corner conditions, exported profile selection | | Structural members | Member creation, locate/rotate, trim, gusset, frame plate, end cap, weld | Multiple paths, profile library and dimensions, orientation, alignment, end conditions, preview and pick roles. `dialogs_weld` also constructs its own sheet | | Mesh, scan and ink | Mesh convert/reduce/section stack, scan align, scale and edit ink | Bounded numerical inputs, pick pairs, plane settings, progress/errors and preview | | Assembly and motion, `dialogs_assembly`, `dialogs_motion` | Component from bodies, new/insert component, joint/as-built and joint origin, rigid group, drive, motion link, coupling, cam, constrain, interference, trace, capture position, contact set, motion study, explode, configurations | Ordered occurrence roles and paths, limits and axis direction, tabular keyframes/configuration cells, independent timeline scrub and playback, collision results | | Sketch and drawing imports | Create sketch, intersect/project, text/edit and move text, scale, offset, mirror, move/transform, linear/circular pattern, corner, equation, divide, insert SVG/DXF, insert airfoil | Typed viewport picks, expressions, repeat/apply, text and font settings, import sizing, angle, preview | | Libraries, materials and exports | Insert/resize library part, appearance and material assignment, export mesh, URDF, view DXF | Search and filter, swatches, import/export actions, library selection and replacement, names and file options. Thumbnails can be described as images | | Simple editors and selection-only bodies | Edit parameter, rename feature/group, choose Assistant context | Stable text or expression input, pick collection, submit/cancel. Confirm Delete is a destructive confirmation. PluginPick delegates its display to the plugin form | ## Additional tool routes | Entry point | Tool bodies and requirements | | --- | --- | | Sketch plane redefinition | Command header, candidate and saved attachments, selected reference and confirmation. Geometry picking remains in the viewport. | | Material Card Review | Command header, multiline material input, review action, evidence, expandable properties and a finish/cancel footer. | | Weld | A pinned ISO/AWS symbol communicates the actual weld geometry and opens its definition. Section and dimension controls use the shared vocabulary. | ## Window panels Preferences and Parameters belong to the separate window-panel design. This distinction also applies to the BOM, Design Properties, general managers, the Forms workspace and its embedded editors, workspace inspectors and libraries, document navigation, and the Assistant. The panel registry governs placement and focus for those windows. Opening a feature command from a window brings up the feature's tool panel. ## Interaction norms | Interaction | Shared behavior | | --- | --- | | Finish a tool | Keep Cancel and its finish action in the shared footer. Show Apply only for a tool that can commit and continue. Disable commit while the draft is invalid or an apply is running. | | Pick geometry | Give each viewport pick an explicit role, filter, and multiplicity. The selection chip exposes its role, current selection, and availability. A clear or remove action releases the named selection. Hover identifies its geometry. A simple picked item uses the standard selection list. | | Edit a selected reference | Put the settings owned by one editable reference in one reference card. Key it by a persistent model reference or a session-local draft ID. Use the same key for disclosure, focus, and automation so moving or removing a different card leaves the surviving edits in place. | | Remove an authored item | Put the red bin in the heading of a removable card or subsection. Its accessible name explains what it removes. Keep its click target independent of disclosure. Clearing a geometry pick uses the selection chip’s clear action. | | Switch contexts | Put the chooser before the picker or draft it controls. A different mode gets a separate draft when the same slot means something different. Preserve typed values and relevant picks when switching away and back. Filtering a catalogue keeps a valid choice while it remains available. | | Edit a value | Give each field a stable role and unit. Expose field errors with messages and use the shared text, numeric, and choice editors for keyboard and accessibility behavior. Close a choice menu after selection. Enter stays in the filter, and Escape first releases its focus. Keep changes to multiple values behind an explicit action such as choosing a preset. | | Preview a model | Use the UI-kit object view for 3D previews, with its grid and hover motion. Dimensioned cross-sections, weld symbols, and analytical plots have dedicated renderers and use the same host and footer. | The standard field descriptions, validation checks and renderer guards enforce the common structure. Interaction tests exercise actual mode changes, card removal, keyboard input, preview behavior, and duplicate labels. Controllers still own command-specific geometry, preview scheduling, file dialogs, and command validation. Flange keeps the global bend settings at the tool level. Each edge card contains angle, height, split, and segment settings. Each corner card owns type, gap, and overlap. Frame Member uses the same structure for member groups and picked corner overrides. Boundary Surface groups each editable edge chain’s continuity and tangent strength. Motion Study groups the joint, degree of freedom, keys and actions of each track. Edit Capture Position gives each occurrence move and captured joint its own card. A fillet radius applied across a selection remains one shared value. An illustrated choice selects one value. A secondary operation on that choice occupies the leading icon slot in the same row. The slot stays aligned when its action is hidden. In a Flange corner, Swap changes which flange overlaps while preserving the selected corner type. ## Shared representation `solidcraft_panel_layout::form` defines the control tree in a crate with no window-system dependency. A host can inspect `Field::id`, match `Field::element`, walk `Field::children()`, read its options and units, and apply an edit to the bound draft value. Buttons write intents for the controller. `validate` checks IDs through the entire tree, including collapsed sections. IDs are local to the parent section. The motion study, weld symbol, shaft profile, and hole diagram carry geometry or sample data. The desktop renderer owns painting, hit-testing and keyboard interaction for these views. ### Example: Dome The Dome controller binds the visible fields to its draft. The declaration uses the same IDs for focus and automation regardless of locale. The shared renderer supplies the selector, disclosure, and checkbox. ```rust Kind::Dome { spherical, reverse, .. } => vec![ Field::binary("shape", "Shape", spherical, ["ui.dome_elliptical", "ui.dome_spherical"]), Field::section( "feature_options", "Options", true, vec![Field::toggle("reverse", "ui.dome_reverse", reverse)], ), ], ``` The command defines its geometry picks and arguments. The tool host derives the header and completion actions from the active command, and validates the draft before applying it. ## Renderer cost Geometry picks expose a count and an indexed label provider. A closed list requests no labels. An open list resolves and lays out the visible rows, retaining each row's original selection index. Preset menus defer option labels until opened, and closed motion reports defer result formatting. Scalar editors look up an automation subrectangle only when they have an additional target alias. In a headless native comparison of one expanded 50,000-item geometry picker, the eager implementation formatted 50,000 labels and the virtualized renderer formatted seven. Across five runs, median frame time for this control fell from 445.2 ms (429.3–538.0 ms) to 0.555 ms (0.446–0.754 ms). Both used the same 300-point-wide UI-kit host, selection chip, disclosure, synthetic labels and row interactions on a Windows machine with a Ryzen 5 9600X. The measurement excludes document evaluation, GPU work and presentation. The regression test checks label requests independently of timing.