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

Manages the settings UI displayed in the right sidebar. More...

#include <settings_panel.h>

Public Member Functions

 SettingsPanel ()=default
 
void SetUserSettings (UserSettings *settings)
 
void SetPanelManager (PanelManager *registry)
 
void SetPanelRegistry (PanelManager *registry)
 
void SetShortcutManager (ShortcutManager *manager)
 
void SetStatusBar (StatusBar *bar)
 
void SetRom (Rom *rom)
 
void SetProject (project::YazeProject *project)
 
void Draw ()
 

Private Member Functions

void DrawGeneralSettings ()
 
void DrawAppearanceSettings ()
 
void DrawEditorBehavior ()
 
void DrawPerformanceSettings ()
 
void DrawAIAgentSettings ()
 
void DrawKeyboardShortcuts ()
 
void DrawGlobalShortcuts ()
 
void DrawEditorShortcuts ()
 
void DrawPanelShortcuts ()
 
void DrawPatchSettings ()
 
void DrawProjectSettings ()
 
void DrawPatchList (const std::string &folder)
 
void DrawPatchDetails ()
 
void DrawParameterWidget (core::PatchParameter *param)
 

Private Attributes

UserSettingsuser_settings_ = nullptr
 
PanelManagerpanel_manager_ = nullptr
 
ShortcutManagershortcut_manager_ = nullptr
 
StatusBarstatus_bar_ = nullptr
 
Romrom_ = nullptr
 
project::YazeProjectproject_ = nullptr
 
char shortcut_edit_buffer_ [64] = {}
 
std::string editing_card_id_
 
bool is_editing_shortcut_ = false
 
core::PatchManager patch_manager_
 
std::string selected_folder_
 
core::AsmPatchselected_patch_ = nullptr
 
bool patches_loaded_ = false
 

Detailed Description

Manages the settings UI displayed in the right sidebar.

Replaces the old SettingsEditor. Handles configuration of:

  • General settings (feature flags)
  • Appearance (themes, fonts)
  • Editor behavior
  • Performance
  • AI Agent
  • Keyboard shortcuts
  • Project configuration

Definition at line 33 of file settings_panel.h.

Constructor & Destructor Documentation

◆ SettingsPanel()

yaze::editor::SettingsPanel::SettingsPanel ( )
default

Member Function Documentation

◆ SetUserSettings()

void yaze::editor::SettingsPanel::SetUserSettings ( UserSettings * settings)
inline

Definition at line 37 of file settings_panel.h.

References user_settings_.

◆ SetPanelManager()

void yaze::editor::SettingsPanel::SetPanelManager ( PanelManager * registry)
inline

Definition at line 38 of file settings_panel.h.

References panel_manager_.

Referenced by SetPanelRegistry().

◆ SetPanelRegistry()

void yaze::editor::SettingsPanel::SetPanelRegistry ( PanelManager * registry)
inline

Definition at line 40 of file settings_panel.h.

References SetPanelManager().

Here is the call graph for this function:

◆ SetShortcutManager()

void yaze::editor::SettingsPanel::SetShortcutManager ( ShortcutManager * manager)
inline

Definition at line 41 of file settings_panel.h.

References shortcut_manager_.

◆ SetStatusBar()

void yaze::editor::SettingsPanel::SetStatusBar ( StatusBar * bar)
inline

Definition at line 42 of file settings_panel.h.

References status_bar_.

◆ SetRom()

void yaze::editor::SettingsPanel::SetRom ( Rom * rom)
inline

Definition at line 43 of file settings_panel.h.

References rom_.

◆ SetProject()

void yaze::editor::SettingsPanel::SetProject ( project::YazeProject * project)
inline

Definition at line 44 of file settings_panel.h.

References project_.

◆ Draw()

◆ DrawGeneralSettings()

◆ DrawAppearanceSettings()

◆ DrawEditorBehavior()

◆ DrawPerformanceSettings()

◆ DrawAIAgentSettings()

◆ DrawKeyboardShortcuts()

void yaze::editor::SettingsPanel::DrawKeyboardShortcuts ( )
private

Definition at line 398 of file settings_panel.cc.

References DrawEditorShortcuts(), DrawGlobalShortcuts(), DrawPanelShortcuts(), and ICON_MD_KEYBOARD.

Referenced by Draw().

Here is the call graph for this function:

◆ DrawGlobalShortcuts()

◆ DrawEditorShortcuts()

◆ DrawPanelShortcuts()

◆ DrawPatchSettings()

◆ DrawProjectSettings()

◆ DrawPatchList()

void yaze::editor::SettingsPanel::DrawPatchList ( const std::string & folder)
private

Definition at line 683 of file settings_panel.cc.

References yaze::core::PatchManager::GetPatchesInFolder(), patch_manager_, and selected_patch_.

Referenced by DrawPatchSettings().

Here is the call graph for this function:

◆ DrawPatchDetails()

◆ DrawParameterWidget()

Member Data Documentation

◆ user_settings_

◆ panel_manager_

PanelManager* yaze::editor::SettingsPanel::panel_manager_ = nullptr
private

Definition at line 66 of file settings_panel.h.

Referenced by DrawPanelShortcuts(), and SetPanelManager().

◆ shortcut_manager_

ShortcutManager* yaze::editor::SettingsPanel::shortcut_manager_ = nullptr
private

Definition at line 67 of file settings_panel.h.

Referenced by DrawEditorShortcuts(), DrawGlobalShortcuts(), and SetShortcutManager().

◆ status_bar_

StatusBar* yaze::editor::SettingsPanel::status_bar_ = nullptr
private

Definition at line 68 of file settings_panel.h.

Referenced by DrawAppearanceSettings(), and SetStatusBar().

◆ rom_

Rom* yaze::editor::SettingsPanel::rom_ = nullptr
private

Definition at line 69 of file settings_panel.h.

Referenced by DrawGeneralSettings(), DrawPatchSettings(), and SetRom().

◆ project_

project::YazeProject* yaze::editor::SettingsPanel::project_ = nullptr
private

Definition at line 70 of file settings_panel.h.

Referenced by DrawProjectSettings(), and SetProject().

◆ shortcut_edit_buffer_

char yaze::editor::SettingsPanel::shortcut_edit_buffer_[64] = {}
private

Definition at line 73 of file settings_panel.h.

Referenced by DrawPanelShortcuts().

◆ editing_card_id_

std::string yaze::editor::SettingsPanel::editing_card_id_
private

Definition at line 74 of file settings_panel.h.

Referenced by DrawPanelShortcuts().

◆ is_editing_shortcut_

bool yaze::editor::SettingsPanel::is_editing_shortcut_ = false
private

Definition at line 75 of file settings_panel.h.

Referenced by DrawPanelShortcuts().

◆ patch_manager_

core::PatchManager yaze::editor::SettingsPanel::patch_manager_
private

Definition at line 78 of file settings_panel.h.

Referenced by DrawPatchList(), and DrawPatchSettings().

◆ selected_folder_

std::string yaze::editor::SettingsPanel::selected_folder_
private

Definition at line 79 of file settings_panel.h.

Referenced by DrawPatchSettings().

◆ selected_patch_

core::AsmPatch* yaze::editor::SettingsPanel::selected_patch_ = nullptr
private

Definition at line 80 of file settings_panel.h.

Referenced by DrawPatchDetails(), DrawPatchList(), and DrawPatchSettings().

◆ patches_loaded_

bool yaze::editor::SettingsPanel::patches_loaded_ = false
private

Definition at line 81 of file settings_panel.h.

Referenced by DrawPatchSettings().


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