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

#include <settings_editor.h>

Inheritance diagram for yaze::editor::SettingsEditor:
Collaboration diagram for yaze::editor::SettingsEditor:

Public Member Functions

 SettingsEditor (Rom *rom=nullptr, UserSettings *user_settings=nullptr)
 
void Initialize () override
 
absl::Status Load () override
 
absl::Status Save () override
 
absl::Status Update () override
 
void set_user_settings (UserSettings *settings)
 
absl::Status Cut () override
 
absl::Status Copy () override
 
absl::Status Paste () override
 
absl::Status Undo () override
 
absl::Status Redo () override
 
absl::Status Find () override
 
void set_rom (Rom *rom)
 
Romrom () const
 
bool IsRomLoaded () const override
 
- Public Member Functions inherited from yaze::editor::Editor
 Editor ()=default
 
virtual ~Editor ()=default
 
virtual absl::Status Clear ()
 
EditorType type () const
 
void set_context (EditorContext *context)
 
bool * active ()
 
void set_active (bool active)
 
virtual std::string GetRomStatus () const
 

Private Member Functions

void DrawGeneralSettings ()
 
void DrawKeyboardShortcuts ()
 
void DrawThemeSettings ()
 
void DrawEditorBehavior ()
 
void DrawPerformanceSettings ()
 
void DrawAIAgentSettings ()
 

Private Attributes

Romrom_
 
UserSettingsuser_settings_
 

Additional Inherited Members

- Protected Member Functions inherited from yaze::editor::Editor
std::string MakeCardTitle (const std::string &base_title) const
 
template<typename T >
absl::StatusOr< T > SafeRomAccess (std::function< T()> accessor, const std::string &operation="") const
 
- Protected Attributes inherited from yaze::editor::Editor
bool active_ = false
 
EditorType type_
 
EditorContextcontext_ = nullptr
 

Detailed Description

Definition at line 209 of file settings_editor.h.

Constructor & Destructor Documentation

◆ SettingsEditor()

yaze::editor::SettingsEditor::SettingsEditor ( Rom rom = nullptr,
UserSettings user_settings = nullptr 
)
inlineexplicit

Definition at line 211 of file settings_editor.h.

References yaze::editor::kSettings, and yaze::editor::Editor::type_.

Member Function Documentation

◆ Initialize()

void yaze::editor::SettingsEditor::Initialize ( )
overridevirtual

Implements yaze::editor::Editor.

Definition at line 29 of file settings_editor.cc.

◆ Load()

absl::Status yaze::editor::SettingsEditor::Load ( )
overridevirtual

Implements yaze::editor::Editor.

Definition at line 31 of file settings_editor.cc.

Referenced by yaze::editor::EditorManager::LoadAssets().

◆ Save()

absl::Status yaze::editor::SettingsEditor::Save ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 218 of file settings_editor.h.

◆ Update()

◆ set_user_settings()

void yaze::editor::SettingsEditor::set_user_settings ( UserSettings settings)
inline

Definition at line 221 of file settings_editor.h.

References user_settings_.

Referenced by yaze::editor::EditorSet::set_user_settings().

◆ Cut()

absl::Status yaze::editor::SettingsEditor::Cut ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 222 of file settings_editor.h.

◆ Copy()

absl::Status yaze::editor::SettingsEditor::Copy ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 223 of file settings_editor.h.

◆ Paste()

absl::Status yaze::editor::SettingsEditor::Paste ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 224 of file settings_editor.h.

◆ Undo()

absl::Status yaze::editor::SettingsEditor::Undo ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 225 of file settings_editor.h.

◆ Redo()

absl::Status yaze::editor::SettingsEditor::Redo ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 226 of file settings_editor.h.

◆ Find()

absl::Status yaze::editor::SettingsEditor::Find ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 227 of file settings_editor.h.

◆ set_rom()

void yaze::editor::SettingsEditor::set_rom ( Rom rom)
inline

Definition at line 230 of file settings_editor.h.

References rom(), and rom_.

Here is the call graph for this function:

◆ rom()

Rom * yaze::editor::SettingsEditor::rom ( ) const
inline

Definition at line 233 of file settings_editor.h.

References rom_.

Referenced by set_rom().

◆ IsRomLoaded()

bool yaze::editor::SettingsEditor::IsRomLoaded ( ) const
inlineoverridevirtual

Reimplemented from yaze::editor::Editor.

Definition at line 235 of file settings_editor.h.

◆ DrawGeneralSettings()

void yaze::editor::SettingsEditor::DrawGeneralSettings ( )
private

◆ DrawKeyboardShortcuts()

void yaze::editor::SettingsEditor::DrawKeyboardShortcuts ( )
private
Todo:
Implement keyboard shortcut editor with:

Definition at line 102 of file settings_editor.cc.

Referenced by Update().

◆ DrawThemeSettings()

void yaze::editor::SettingsEditor::DrawThemeSettings ( )
private

Definition at line 113 of file settings_editor.cc.

References yaze::gui::ThemeManager::Get(), ICON_MD_CHECK, ICON_MD_EDIT, and ICON_MD_PALETTE.

Referenced by Update().

Here is the call graph for this function:

◆ DrawEditorBehavior()

◆ DrawPerformanceSettings()

◆ DrawAIAgentSettings()

void yaze::editor::SettingsEditor::DrawAIAgentSettings ( )
private

Member Data Documentation

◆ rom_

Rom* yaze::editor::SettingsEditor::rom_
private

Definition at line 238 of file settings_editor.h.

Referenced by rom(), and set_rom().

◆ user_settings_

UserSettings* yaze::editor::SettingsEditor::user_settings_
private

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