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:
1 parent
a9f48bc3a0
commit
3f31cedeed
32 files changed
+3405
-4428
No files matched your search
+8
-8
@@ -137,14 +137,14 @@ namespace anm2ed
|
||||
Snapshot current{};
|
||||
std::optional<SnapshotStep> pendingStep{};
|
||||
|
||||
Snapshot* get();
|
||||
void anm2_push(const Snapshot&, const std::string&);
|
||||
void tracks_push(const Snapshot&, const std::string&, const std::set<Reference>&);
|
||||
void frames_push(const Snapshot&, const std::string&, const std::set<Reference>&);
|
||||
void regions_push(const Snapshot&, const std::string&, int, const std::set<int>&);
|
||||
void textures_push(const Snapshot&, const std::string&);
|
||||
void anm2_textures_push(const Snapshot&, const std::string&);
|
||||
void commit(const Snapshot&);
|
||||
void anm2_push(const std::string&);
|
||||
void tracks_push(const std::string&, const std::set<Reference>&);
|
||||
void frames_push(const std::string&, const std::set<Reference>&);
|
||||
void regions_push(const std::string&, int, const std::set<int>&);
|
||||
void textures_push(const std::string&);
|
||||
void anm2_textures_push(const std::string&);
|
||||
void step_push(const std::string&, SnapshotStep);
|
||||
void commit();
|
||||
bool undo();
|
||||
bool redo();
|
||||
void reset();
|
||||
|
||||
Reference in new issue
Block a user