Repository navigation
Dynamic Input: the CIRCLE radius prompt shows one distance field, not X/Y - #1137
Merged
Merged
Conversation
Member
|
Thank you @marcoarnulfo for this contribution — it's landed on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1135.
At "Specify radius of circle" Dynamic Input showed the pointer boxes, because nothing told it the prompt wants a distance: X/Y with DYNPIFORMAT=1 (as in the screenshot), distance and angle otherwise. A value Tab-locked in X then became a point, not a radius. Prompts now say so with
Prompt::distance(), and Dynamic Input shows one length field from the base point instead, the dimensional input @vangel76 built for grips in #527, with the prompt and its down-arrow options (Diameter) kept beside the cursor. Enter sends the typed value (or the one Tab locked) to the command as a number, so the commands keep their own checks: a radius of zero is still refused, a negative PLINE arc radius still gives the major arc.Marked as distance prompts: CIRCLE radius and diameter, CIRCLE Ttr radius, POLYGON radius, and PLINE arc radius, chord length and line length. I left the isometric circle radius out (it's measured on the isoplane, not straight from the centre) and the ELLIPSE other-axis distance too; happy to add them, or others, if you'd like.
I didn't touch
docs/ui-parity.md, since #819 is re-auditing it.Validation:
grip_dyn::tests::circle_radius_shows_one_distance_field_and_typed_value_is_the_radius: fails on main (the X/Y boxes at the radius prompt), passes here. It checks the centre prompt still shows X/Y, the radius prompt shows one field with the live radius, and25Enter draws a circle of radius 25, with DYNPIFORMAT 1 and 0cargo test -p cadcraft-ui-egui --lib -- grip_dyn dynamic dyninput cmdlinecargo clippy -p cadcraft-engine -p cadcraft-ui-egui --all-targets -- -D warnings,cargo fmt --all -- --check