From d3fa128d5408673b0ea8d3ba3435c38b258a5e7a Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sat, 5 Jun 2021 14:58:09 -0700 Subject: Merge UIState into GlobalStates --- core/src/UI/States.hpp | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 core/src/UI/States.hpp (limited to 'core/src/UI/States.hpp') diff --git a/core/src/UI/States.hpp b/core/src/UI/States.hpp deleted file mode 100644 index d314494..0000000 --- a/core/src/UI/States.hpp +++ /dev/null @@ -1,23 +0,0 @@ -#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(); -}; -- cgit v1.2.3-70-g09d2