aboutsummaryrefslogtreecommitdiff
path: root/core/src/UI/States.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-03-29 17:55:02 -0700
committerrtk0c <[email protected]>2021-03-29 17:55:02 -0700
commit70cc233165b5efa3a3888af34f7afce095fe6947 (patch)
treeb15e8f2e3816acc204846188e78514f2ba6ad816 /core/src/UI/States.hpp
parent6032ae108064650324b2c45352e1baa5b36961cc (diff)
More work on project tab
Diffstat (limited to 'core/src/UI/States.hpp')
-rw-r--r--core/src/UI/States.hpp6
1 files changed, 6 insertions, 0 deletions
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 <memory>
+/// 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<Project> CurrentProject;
+
+public:
+ void SetCurrentProject(std::unique_ptr<Project> project);
+ void CloseCurrentProject();
};