yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::UserSettings Class Reference

Manages user preferences and settings persistence. More...

#include <user_settings.h>

Collaboration diagram for yaze::editor::UserSettings:

Classes

struct  Preferences
 

Public Member Functions

 UserSettings ()
 
absl::Status Load ()
 
absl::Status Save ()
 
bool ApplyPanelLayoutDefaultsRevision (int target_revision)
 
Preferencesprefs ()
 
const Preferencesprefs () const
 
std::string GetDungeonInspectorSide () const
 
void SetDungeonInspectorSide (std::string side)
 
void SetSettingsFilePathForTesting (std::string path)
 

Static Public Attributes

static constexpr int kLatestPanelLayoutDefaultsRevision = 21
 

Private Attributes

Preferences prefs_
 
std::string settings_file_path_
 
std::string legacy_settings_file_path_
 

Detailed Description

Manages user preferences and settings persistence.

Definition at line 18 of file user_settings.h.

Constructor & Destructor Documentation

◆ UserSettings()

yaze::editor::UserSettings::UserSettings ( )

Member Function Documentation

◆ Load()

◆ Save()

◆ ApplyPanelLayoutDefaultsRevision()

◆ prefs() [1/2]

Preferences & yaze::editor::UserSettings::prefs ( )
inline

Definition at line 198 of file user_settings.h.

References prefs_.

Referenced by yaze::editor::MenuOrchestrator::AddAppearanceMenuItems(), yaze::editor::anonymous_namespace{shortcut_configurator.cc}::AdjustUiFontScaleBy(), yaze::editor::EditorManager::ApplyCurrentProjectRuntimeContext(), yaze::editor::layout_designer::LayoutDesignerPanel::ApplyCurrentTreeToLiveDockspace(), yaze::editor::EditorManager::ApplyDefaultBackupPolicy(), yaze::editor::SettingsPanel::ApplyNamedLayoutToDockspace(), yaze::editor::AgentEditor::ApplyUserSettingsDefaults(), yaze::editor::EditorManager::CaptureActiveProjectContext(), yaze::editor::ConfigurePanelShortcuts(), yaze::editor::ActivityBar::DrawActivityBarStrip(), yaze::editor::SettingsPanel::DrawAIAgentSettings(), yaze::editor::SettingsPanel::DrawAppearanceSettings(), yaze::editor::ActivityBar::DrawCategoryContextMenu(), yaze::editor::AgentEditor::DrawConfigurationPanel(), yaze::editor::SettingsPanel::DrawEditorBehavior(), yaze::editor::SettingsPanel::DrawEditorShortcuts(), yaze::editor::layout_designer::LayoutDesignerPanel::DrawFileRow(), yaze::editor::SettingsPanel::DrawFilesystemSettings(), yaze::editor::SettingsPanel::DrawGlobalShortcuts(), yaze::editor::EditorManager::DrawInterface(), yaze::editor::layout_designer::LayoutDesignerPanel::DrawOpenPopup(), yaze::editor::SettingsPanel::DrawPanelShortcuts(), yaze::editor::SettingsPanel::DrawPerformanceSettings(), yaze::editor::SettingsPanel::DrawWorkspaceSettings(), yaze::editor::EditorManager::FinalizeNewProject(), yaze::editor::ActivityBar::GetBottomReservedHeight(), yaze::editor::ActivityBar::HandleReorderDragAndDrop(), yaze::editor::EditorManager::HandleSessionCreated(), yaze::editor::EditorManager::HandleSessionSwitched(), yaze::editor::EditorManager::Initialize(), yaze::editor::EditorManager::InitializeServices(), yaze::editor::EditorManager::LoadAssets(), yaze::editor::EditorManager::LoadAssetsLazy(), yaze::editor::layout_designer::LayoutDesignerPanel::LoadNamedLayoutIntoTree(), yaze::editor::EditorManager::LoadProjectWithRom(), yaze::editor::AgentEditor::MaybeAutoDetectLocalProviders(), yaze::editor::LayoutManager::MaybeReapplyStartupLayout(), yaze::editor::WelcomeScreen::PersistAnimationSettings(), yaze::editor::SidebarCommandsProvider::Provide(), yaze::editor::AgentEditor::RefreshModelCache(), yaze::editor::EditorManager::RefreshResourceLabelProvider(), yaze::editor::layout_designer::LayoutDesignerPanel::SaveCurrentTreeToNamedLayouts(), yaze::editor::EditorManager::SaveProject(), yaze::editor::EditorManager::SaveRomInternal(), yaze::editor::EditorManager::SetFontGlobalScale(), yaze::editor::EditorManager::SetupSidebarCallbacks(), yaze::editor::EditorManager::SetupWelcomeScreenCallbacks(), yaze::editor::WelcomeScreen::SetUserSettings(), yaze::editor::EditorManager::SubscribeToEvents(), and yaze::editor::EditorManager::UpdateEditorState().

◆ prefs() [2/2]

const Preferences & yaze::editor::UserSettings::prefs ( ) const
inline

Definition at line 199 of file user_settings.h.

References prefs_.

◆ GetDungeonInspectorSide()

std::string yaze::editor::UserSettings::GetDungeonInspectorSide ( ) const

◆ SetDungeonInspectorSide()

void yaze::editor::UserSettings::SetDungeonInspectorSide ( std::string side)

◆ SetSettingsFilePathForTesting()

void yaze::editor::UserSettings::SetSettingsFilePathForTesting ( std::string path)
inline

Definition at line 212 of file user_settings.h.

References settings_file_path_.

Member Data Documentation

◆ kLatestPanelLayoutDefaultsRevision

constexpr int yaze::editor::UserSettings::kLatestPanelLayoutDefaultsRevision = 21
staticconstexpr

◆ prefs_

Preferences yaze::editor::UserSettings::prefs_
private

◆ settings_file_path_

std::string yaze::editor::UserSettings::settings_file_path_
private

Definition at line 218 of file user_settings.h.

Referenced by Load(), Save(), SetSettingsFilePathForTesting(), and UserSettings().

◆ legacy_settings_file_path_

std::string yaze::editor::UserSettings::legacy_settings_file_path_
private

Definition at line 219 of file user_settings.h.

Referenced by Load(), Save(), and UserSettings().


The documentation for this class was generated from the following files: