feat(ui): modernize DSETTINGS dialog with tabbed layout and action controls

- Redesign drafting settings window to landscape 700x480 proportions while preserving interactive resizing
- Add 7-tab navigation: Snap and Grid, Polar Tracking, Object Snap, 3D Object Snap, Dynamic Input, Quick Properties, and Selection Cycling
- Distribute existing drafting modes, snap options, and isometric tools into their respective tabs
- Implement OK, Apply, and Close action buttons with unsaved changes confirmation guard
This commit is contained in:
Karim Jerbi committed 2026-09-14 17:45:47 +01:00
1 parent ddeddeca31
commit a0d784502a
5 files changed
+1024 -118

No files matched your search

+22 -19
View File
@@ -283,25 +283,28 @@ impl OpenCADStudio {
)
},
),
super::super::ModalKind::DraftingSettings => sized_flow(
ex,
520,
560,
|flow| {
crate::ui::window::drafting_settings::view_window(
&self.snapper,
self.show_grid,
self.snapper.grid_snap(),
self.ortho_mode,
self.polar_mode,
self.snapper.otrack_enabled,
self.isometric_drafting,
self.iso_plane,
self.snap_angle_deg,
flow,
)
},
),
super::super::ModalKind::DraftingSettings => {
let state = self.drafting_settings_state.as_ref();
let dirty = self.drafting_settings_dirty();
let confirm = self.drafting_settings_close_confirm;
sized_flow(
ex,
700,
480,
|flow| {
if let Some(state) = state {
crate::ui::window::drafting_settings::view_window(
state,
dirty,
confirm,
flow,
)
} else {
iced::widget::Space::new().into()
}
},
)
}
super::super::ModalKind::FindReplace => automatic_flow(ex, |flow| {
crate::ui::window::find_replace::view_window(
&self.find_replace.search,