![]() |
Olympe Engine 2.0
2D Game Engine with ECS Architecture
|
#include <EditorConfigManager.h>
Collaboration diagram for Olympe::EditorConfigManager:Public Member Functions | |
| bool | LoadConfig (const std::string &filepath) |
| bool | SaveConfig (const std::string &filepath) |
| const PanelVisibility & | GetPanelVisibility () const |
| const EditorPreferences & | GetPreferences () const |
| const ImGuiSettings & | GetImGuiSettings () const |
| void | SetPanelVisibility (const PanelVisibility &visibility) |
| void | SetPreferences (const EditorPreferences &prefs) |
| void | SaveWindowConfig (const std::string &windowName, const WindowConfig &config) |
| WindowConfig | GetWindowConfig (const std::string &windowName) const |
| void | ApplyToImGui () |
| void | CaptureFromImGui () |
Static Public Member Functions | |
| static EditorConfigManager & | Get () |
Private Member Functions | |
| EditorConfigManager ()=default | |
| ~EditorConfigManager ()=default | |
| EditorConfigManager (const EditorConfigManager &)=delete | |
| EditorConfigManager & | operator= (const EditorConfigManager &)=delete |
Private Attributes | |
| PanelVisibility | m_PanelVisibility |
| EditorPreferences | m_Preferences |
| ImGuiSettings | m_ImGuiSettings |
Static Private Attributes | |
| static constexpr const char * | DEFAULT_CONFIG_PATH = "./config/ATS-VS-editor-config.json" |
Definition at line 53 of file EditorConfigManager.h.
|
privatedefault |
|
privatedefault |
|
privatedelete |
| void Olympe::EditorConfigManager::ApplyToImGui | ( | ) |
Definition at line 170 of file EditorConfigManager.cpp.
References GetComponentTypeID_Static(), Olympe::EditorPreferences::gridLinesEnabled, and m_Preferences.
Here is the call graph for this function:| void Olympe::EditorConfigManager::CaptureFromImGui | ( | ) |
Definition at line 188 of file EditorConfigManager.cpp.
References GetComponentTypeID_Static(), SaveWindowConfig(), window, and Olympe::WindowConfig::x.
Here is the call graph for this function:
|
static |
Definition at line 16 of file EditorConfigManager.cpp.
References GetComponentTypeID_Static().
Here is the call graph for this function:
|
inline |
Definition at line 67 of file EditorConfigManager.h.
References m_ImGuiSettings.
|
inline |
Definition at line 65 of file EditorConfigManager.h.
References m_PanelVisibility.
|
inline |
Definition at line 66 of file EditorConfigManager.h.
References m_Preferences.
| WindowConfig Olympe::EditorConfigManager::GetWindowConfig | ( | const std::string & | windowName | ) | const |
Definition at line 160 of file EditorConfigManager.cpp.
References GetComponentTypeID_Static(), m_ImGuiSettings, and Olympe::ImGuiSettings::windowConfigs.
Here is the call graph for this function:Definition at line 22 of file EditorConfigManager.cpp.
References Olympe::EditorPreferences::autoSaveEnabled, Olympe::EditorPreferences::autoSaveIntervalSeconds, GetComponentTypeID_Static(), Olympe::EditorPreferences::gridLinesEnabled, m_ImGuiSettings, m_PanelVisibility, m_Preferences, Olympe::EditorPreferences::panningSpeed, Olympe::PanelVisibility::showAssetBrowser, Olympe::PanelVisibility::showHistory, Olympe::PanelVisibility::showInspector, Olympe::PanelVisibility::showNodeGraph, Olympe::PanelVisibility::showTemplateBrowser, Olympe::ImGuiSettings::windowConfigs, Olympe::WindowConfig::x, and Olympe::EditorPreferences::zoomSpeed.
Here is the call graph for this function:
|
privatedelete |
Definition at line 91 of file EditorConfigManager.cpp.
References Olympe::EditorPreferences::autoSaveEnabled, Olympe::EditorPreferences::autoSaveIntervalSeconds, GetComponentTypeID_Static(), Olympe::EditorPreferences::gridLinesEnabled, m_ImGuiSettings, m_PanelVisibility, m_Preferences, Olympe::EditorPreferences::panningSpeed, Olympe::PanelVisibility::showAssetBrowser, Olympe::PanelVisibility::showHistory, Olympe::PanelVisibility::showInspector, Olympe::PanelVisibility::showNodeGraph, Olympe::PanelVisibility::showTemplateBrowser, Olympe::ImGuiSettings::windowConfigs, and Olympe::EditorPreferences::zoomSpeed.
Here is the call graph for this function:| void Olympe::EditorConfigManager::SaveWindowConfig | ( | const std::string & | windowName, |
| const WindowConfig & | config | ||
| ) |
Definition at line 155 of file EditorConfigManager.cpp.
References GetComponentTypeID_Static(), m_ImGuiSettings, and Olympe::ImGuiSettings::windowConfigs.
Referenced by CaptureFromImGui().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 70 of file EditorConfigManager.h.
References GetComponentTypeID_Static(), and m_PanelVisibility.
Here is the call graph for this function:
|
inline |
Definition at line 71 of file EditorConfigManager.h.
References GetComponentTypeID_Static(), and m_Preferences.
Here is the call graph for this function:
|
staticconstexprprivate |
Definition at line 95 of file EditorConfigManager.h.
|
private |
Definition at line 92 of file EditorConfigManager.h.
Referenced by GetImGuiSettings(), GetWindowConfig(), LoadConfig(), SaveConfig(), and SaveWindowConfig().
|
private |
Definition at line 90 of file EditorConfigManager.h.
Referenced by GetPanelVisibility(), LoadConfig(), SaveConfig(), and SetPanelVisibility().
|
private |
Definition at line 91 of file EditorConfigManager.h.
Referenced by ApplyToImGui(), GetPreferences(), LoadConfig(), SaveConfig(), and SetPreferences().