summaryrefslogtreecommitdiff
path: root/core/src/UI/States.hpp
diff options
context:
space:
mode:
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();
};