blob: cbb556fa4630d04c9d0983cfd27dfa57132a31c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include "cplt_fwd.hpp"
#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();
static UIState& GetInstance();
public:
std::unique_ptr<Project> CurrentProject;
public:
void SetCurrentProject(std::unique_ptr<Project> project);
void CloseCurrentProject();
};
|