Stage 10a: delete dead code, merge tiny files, unify duplicated concepts

- Dead code: util/map, util/unordered_map, unused vector/math/string/input
  helpers, Document getters, special-interpolation bake leftovers,
  triggers_sort, SnapshotStack::max_size_get, AudioStream capture API.
- Merges: util/xml, util/string, resource/strings.cpp inlined; constants
  into input.hpp; tooltip into layout; Recorder into render; onionskin,
  tools, welcome and frame properties are panel functions; timeline
  popups.cpp folded into timeline.cpp.
- util/origin.hpp replaced by model Origin (the merge setting stays a
  combo index, so saved preferences keep their meaning).
- Item type names/icons/colors moved from model/common.hpp to the
  timeline header; the model no longer includes icon/strings headers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-03 18:35:22 -04:00
1 parent 4d16f21541
commit 4c569cb1e5
60 files changed
+605 -1021

No files matched your search

+3 -5
View File
@@ -1,13 +1,13 @@
#include "tools.hpp"
#include "panel.hpp"
#include <glm/gtc/type_ptr.hpp>
#include "strings.hpp"
#include "tool.hpp"
#include "types.hpp"
#include "util/imgui/layout.hpp"
#include "util/imgui/shortcut.hpp"
#include "util/imgui/tooltip.hpp"
using namespace anm2ed::resource;
using namespace anm2ed::types;
@@ -15,7 +15,7 @@ using namespace glm;
namespace anm2ed::imgui
{
void Tools::update(Manager& manager, Settings& settings, Resources& resources)
void tools_update(Manager& manager, Settings& settings, Resources& resources, PopupHelper& colorEditPopup)
{
auto& document = *manager.get();
@@ -66,8 +66,6 @@ namespace anm2ed::imgui
if (ImGui::ColorButton(labelText, to_imvec4(settings.toolColor), ImGuiColorEditFlags_NoTooltip,
to_imvec2(size)))
tool_use((tool::Type)i);
colorEditPosition = ImGui::GetCursorScreenPos();
}
else
{