From 70cc233165b5efa3a3888af34f7afce095fe6947 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Mon, 29 Mar 2021 17:55:02 -0700 Subject: More work on project tab --- core/src/UI/States.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/src/UI/States.hpp') diff --git a/core/src/UI/States.hpp b/core/src/UI/States.hpp index d1c1faf..cbb556f 100644 --- a/core/src/UI/States.hpp +++ b/core/src/UI/States.hpp @@ -4,6 +4,8 @@ #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(); @@ -11,4 +13,8 @@ public: public: std::unique_ptr CurrentProject; + +public: + void SetCurrentProject(std::unique_ptr project); + void CloseCurrentProject(); }; -- cgit v1.2.3-70-g09d2