Flatten src into model, edit and ui, with .h headers

Resources and utilities sit directly in src. The ImGui windows, wizards, popups and helpers are in ui.
Headers that would shadow system ones are renamed: math_util, timestamp, subprocess, localization.
Includes are written from src.
This commit is contained in:
shweet committed 2026-11-22 17:12:05 -05:00
1 parent a515267e26
commit 7fb2c607c2
175 files changed
+537 -537

No files matched your search

+63
View File
@@ -0,0 +1,63 @@
#pragma once
#include <filesystem>
#include "canvas.h"
#include "dialog.h"
#include "manager.h"
#include "resources.h"
#include "settings.h"
#include "localization.h"
#include "ui/popup.h"
#include "ui/about.h"
#include "ui/change_all_frame_properties.h"
#include "ui/configure.h"
#include "ui/generate_animation_from_grid.h"
#include "ui/render_animation.h"
namespace anm2ed::imgui
{
class Taskbar
{
struct PendingSave
{
int index{-1};
std::filesystem::path path{};
bool isQueued{};
};
wizard::ChangeAllFrameProperties changeAllFrameProperties{};
wizard::About about{};
wizard::Configure configure{};
wizard::GenerateAnimationFromGrid generateAnimationFromGrid{};
wizard::RenderAnimation renderAnimation{};
Canvas generate;
PopupHelper generatePopup{PopupHelper(LABEL_TASKBAR_GENERATE_ANIMATION_FROM_GRID)};
PopupHelper generateRegionsPopup{
PopupHelper(LABEL_TASKBAR_GENERATE_REGIONS_FROM_ANIMATIONS, imgui::POPUP_SMALL_NO_HEIGHT)};
PopupHelper changePopup{PopupHelper(LABEL_CHANGE_ALL_FRAME_PROPERTIES, imgui::POPUP_NORMAL_NO_HEIGHT)};
PopupHelper overwritePopup{PopupHelper(LABEL_TASKBAR_OVERWRITE_FILE, imgui::POPUP_SMALL_NO_HEIGHT)};
PopupHelper isaacPopup{PopupHelper(LABEL_ISAAC_COMPATIBILITY_WARNING, imgui::POPUP_SMALL_NO_HEIGHT)};
PendingSave isaacSave{};
PopupHelper vectorPopup{PopupHelper(LABEL_CONVERT_SVG_POPUP, imgui::POPUP_SMALL_NO_HEIGHT)};
PopupHelper renderPopup{PopupHelper(LABEL_TASKBAR_RENDER_ANIMATION, imgui::POPUP_SMALL_NO_HEIGHT)};
PopupHelper configurePopup{PopupHelper(LABEL_TASKBAR_CONFIGURE)};
PopupHelper aboutPopup{PopupHelper(LABEL_TASKBAR_ABOUT)};
Settings editSettings{};
int generateRegionsTarget{};
bool isGenerateRegionsMapFrames{true};
bool isQuittingMode{};
bool save_execute(Manager&, const PendingSave&);
void save_enqueue(Manager&, const PendingSave&);
bool save_request(Manager&, Settings&, int = -1, const std::filesystem::path& = {}, bool = false);
public:
float height{};
void update(Manager&, Settings&, Resources&, Dialog&, bool&);
bool save_manual(Manager&, Settings&, int = -1, const std::filesystem::path& = {});
};
};