Slim Document: move data-model code out, unify edit plumbing

- Region generate/scan move to anm2/regions.cpp; both generators number from 1
- file_merge moves to anm2/merge.cpp and is table-driven
- MaxRects packer moves to util/pack
- Uniform config apply/trim/save move to resource/shader
- Snapshots push from their owned state; Document snapshot wrappers removed
- DocumentData base replaces the hand-written move constructor
- toast_log replaces 55 duplicated toast + English log pairs
- Apply repo .clang-format to touched files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 13:08:00 -04:00
1 parent a9f48bc3a0
commit 3f31cedeed
32 files changed
+3405 -4428

No files matched your search

+4 -4
View File
@@ -49,9 +49,9 @@ namespace anm2ed::imgui
auto item = document.anm2.element_get(itemReference);
if (!frame) return;
document.frames_snapshot(localize.get(message), {queuedReference});
document.snapshots.frames_push(localize.get(message), {queuedReference});
behavior(document, *frame, item, queuedReference);
document.anm2_change(Document::FRAMES);
document.change(Document::FRAMES);
}});
};
@@ -70,9 +70,9 @@ namespace anm2ed::imgui
if (!frame) return;
if (state == edit::START)
document.frames_snapshot(localize.get(message), {queuedReference});
document.snapshots.frames_push(localize.get(message), {queuedReference});
behavior(document, *frame, item, queuedReference);
if (state == edit::END) document.anm2_change(Document::FRAMES);
if (state == edit::END) document.change(Document::FRAMES);
}});
};