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
 

Static Public Attributes

static constexpr int kLatestPanelLayoutDefaultsRevision = 4
 

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 16 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 150 of file user_settings.h.

References prefs_.

Referenced by yaze::editor::MenuOrchestrator::AddAppearanceMenuItems(), yaze::editor::EditorManager::ApplyDefaultBackupPolicy(), yaze::editor::AgentEditor::ApplyUserSettingsDefaults(), yaze::editor::SettingsPanel::DrawAIAgentSettings(), yaze::editor::SettingsPanel::DrawAppearanceSettings(), yaze::editor::AgentEditor::DrawConfigurationPanel(), yaze::editor::SettingsPanel::DrawEditorBehavior(), yaze::editor::SettingsPanel::DrawEditorShortcuts(), yaze::editor::SettingsPanel::DrawFilesystemSettings(), yaze::editor::SettingsPanel::DrawGlobalShortcuts(), yaze::editor::EditorManager::DrawInterface(), yaze::editor::SettingsPanel::DrawPanelShortcuts(), yaze::editor::SettingsPanel::DrawPerformanceSettings(), 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::EditorManager::LoadProjectWithRom(), yaze::editor::AgentEditor::MaybeAutoDetectLocalProviders(), yaze::editor::AgentEditor::RefreshModelCache(), yaze::editor::EditorManager::RefreshResourceLabelProvider(), yaze::editor::EditorManager::SaveProject(), yaze::editor::EditorManager::SaveRom(), yaze::editor::EditorManager::SetFontGlobalScale(), yaze::editor::EditorManager::SetupSidebarCallbacks(), yaze::editor::EditorManager::SetupWelcomeScreenCallbacks(), yaze::editor::EditorManager::SubscribeToEvents(), and yaze::editor::EditorManager::UpdateEditorState().

◆ prefs() [2/2]

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

Definition at line 151 of file user_settings.h.

References prefs_.

Member Data Documentation

◆ kLatestPanelLayoutDefaultsRevision

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

◆ prefs_

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

Definition at line 154 of file user_settings.h.

Referenced by ApplyPanelLayoutDefaultsRevision(), Load(), prefs(), prefs(), and Save().

◆ settings_file_path_

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

Definition at line 155 of file user_settings.h.

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

◆ legacy_settings_file_path_

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

Definition at line 156 of file user_settings.h.

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


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