Give the Move dialog the canvas value box every other dialog already has (#739)
The Move dialog gets the same canvas value box as the other dialogs: X for translating moves, the angle for Rotate, placed clear of the triad.
This commit is contained in:
1 parent
4112189551
commit
6f4a9d96fb
6 files changed
+137
-14
No files matched your search
@@ -679,7 +679,13 @@ impl Dialog {
|
||||
Kind::Shell { thickness } => ("Thickness", ValueKind::Length, thickness),
|
||||
Kind::Draft { angle } => ("Angle", ValueKind::Angle, angle),
|
||||
Kind::Hole { diameter, .. } => ("Diameter", ValueKind::Length, diameter),
|
||||
Kind::Move { x, .. } => ("X", ValueKind::Length, x),
|
||||
// A move's main value follows its type: a distance along X for the ones that
|
||||
// translate, the angle for Rotate. Point to Point is two picks with nothing to type.
|
||||
Kind::Move { mode, x, angle, .. } => match *mode {
|
||||
crate::dialogs_move::ROTATE => ("Angle", ValueKind::Angle, angle),
|
||||
crate::dialogs_move::POINT_TO_POINT => return None,
|
||||
_ => ("X", ValueKind::Length, x),
|
||||
},
|
||||
Kind::PatternRect { spacing, .. } => ("Spacing", ValueKind::Length, spacing),
|
||||
Kind::PatternCirc { angle, .. } => ("Angle", ValueKind::Angle, angle),
|
||||
Kind::Section { offset, .. } => ("Distance", ValueKind::Length, offset),
|
||||
|
||||
Reference in new issue
Block a user