forked from 1b-agent/opencadstudio-upstream
Complete geometric tolerance workflow and properties
This commit is contained in:
1 parent
8c61d89b1e
commit
de294447a9
14 files changed
+1037
-135
No files matched your search
@@ -195,6 +195,7 @@ impl OpenCADStudio {
|
||||
self.attr_editor_selected = 0;
|
||||
self.attr_editor_tab = crate::ui::window::attribute_editor::AttrTab::Attribute;
|
||||
}
|
||||
Some(GeometricTolerance) => self.geometric_tolerance = None,
|
||||
// Closing (✕) discards edits made since the last Apply — matching the
|
||||
// style editors. Committing happens only through the Apply button.
|
||||
Some(Aliases) => self.alias_editor_rows.clear(),
|
||||
@@ -3706,6 +3707,40 @@ impl OpenCADStudio {
|
||||
self.refresh_properties();
|
||||
Task::none()
|
||||
}
|
||||
Message::ToleranceDialogField(field) => {
|
||||
if let Some(state) = self.geometric_tolerance.as_mut() {
|
||||
state.apply_field(field);
|
||||
}
|
||||
Task::none()
|
||||
}
|
||||
Message::ToleranceDialogToggle(toggle) => {
|
||||
if let Some(state) = self.geometric_tolerance.as_mut() {
|
||||
state.apply_toggle(toggle);
|
||||
}
|
||||
Task::none()
|
||||
}
|
||||
Message::ToleranceDialogApply => {
|
||||
self.apply_tolerance_dialog_edit();
|
||||
Task::none()
|
||||
}
|
||||
Message::ToleranceDialogOk => {
|
||||
let editing = self
|
||||
.geometric_tolerance
|
||||
.as_ref()
|
||||
.and_then(|state| state.editing)
|
||||
.is_some();
|
||||
if editing {
|
||||
if self.apply_tolerance_dialog_edit() {
|
||||
self.geometric_tolerance = None;
|
||||
self.active_modal = None;
|
||||
self.reset_modal_geometry();
|
||||
}
|
||||
} else {
|
||||
self.begin_tolerance_placement();
|
||||
self.reset_modal_geometry();
|
||||
}
|
||||
Task::none()
|
||||
}
|
||||
Message::SetLinearFormat(code) => {
|
||||
self.units_popup_open = false;
|
||||
let i = self.active_tab;
|
||||
|
||||
Reference in new issue
Block a user