#pragma once #include "cplt_fwd.hpp" #include #include /// Minimal state shared by all UI components, such as database, items, export, etc. /// Note that global components (settings) is not supposed to access these. class UIState { public: static void Init(); static void Shutdown(); static UIState& GetInstance(); public: std::unique_ptr CurrentProject; public: void SetCurrentProject(std::unique_ptr project); void CloseCurrentProject(); };