Canvas windows, settings and manager: share view code and list I/O
- CanvasView base holds checker pan sync, zoom step, grid panel, view buttons and view context menu - frame_parent_model_get replaces five root/group transform compositions - Canvas builds VAOs through one helper, unifies uniform setters and frees the texture VAO/VBO/EBO (leak fix) - Settings load/save loop over component suffix tables; unused settings Type enum removed - Manager shares one path-list load/save for recent and autosave files - Anonymous namespaces removed per project style Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a4638a422d
commit
ec72a30ce0
16 files changed
+558
-814
No files matched your search
+5
-8
@@ -8,15 +8,12 @@
|
||||
|
||||
namespace anm2ed::util::path
|
||||
{
|
||||
namespace
|
||||
template <typename CharT> CharT to_lower_char(CharT character)
|
||||
{
|
||||
template <typename CharT> CharT to_lower_char(CharT character)
|
||||
{
|
||||
if constexpr (std::is_same_v<CharT, wchar_t>)
|
||||
return static_cast<CharT>(std::towlower(static_cast<wint_t>(character)));
|
||||
else
|
||||
return static_cast<CharT>(std::tolower(static_cast<unsigned char>(character)));
|
||||
}
|
||||
if constexpr (std::is_same_v<CharT, wchar_t>)
|
||||
return static_cast<CharT>(std::towlower(static_cast<wint_t>(character)));
|
||||
else
|
||||
return static_cast<CharT>(std::tolower(static_cast<unsigned char>(character)));
|
||||
}
|
||||
|
||||
std::filesystem::path to_lower(const std::filesystem::path& path)
|
||||
|
||||
Reference in new issue
Block a user