feat(io): show loading overlay while opening CAD files

Big DWG/DXF files block the UI for seconds during parse + cache build,
leaving the user wondering whether the app froze. Split the file-open
flow into pick → load and show a modal overlay during the load: file
name, size, phase label (Reading / Parsing / Building caches /
Finalizing), animated indeterminate bar, and Cancel button.

Phase is tracked via a shared AtomicU8 written by the loader thread
and read by the overlay each frame. Cancel hides the overlay and
discards the result; the parser thread runs to completion in the
background since acadrust has no interrupt hook.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
HakanandClaude Opus 4.7 committed 2026-05-13 09:59:07 +03:00
1 parent 288ccff95a
commit 586df77b2c
7 files changed
+369 -19

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ pub mod dimstyle;
pub mod layers;
pub mod layout_manager;
pub mod mlstyle;
pub mod open_progress;
pub mod overlay;
pub mod page_setup;
pub mod plotstyle;