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

A class for editing music data in a Rom. More...

#include <music_editor.h>

Inheritance diagram for yaze::editor::MusicEditor:
Collaboration diagram for yaze::editor::MusicEditor:

Public Member Functions

 MusicEditor (Rom *rom=nullptr)
 
void Initialize () override
 
absl::Status Load () override
 
absl::Status Save () override
 
absl::Status Update () override
 
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
 
- Public Member Functions inherited from yaze::editor::Editor
 Editor ()=default
 
virtual ~Editor ()=default
 
virtual absl::Status Clear ()
 
virtual void CleanupUnusedTextures (uint64_t current_time, uint64_t timeout)
 
EditorType type () const
 
void set_context (EditorContext *context)
 
bool * active ()
 
void set_active (bool active)
 

Private Member Functions

void DrawChannels ()
 
void DrawPianoStaff ()
 
void DrawPianoRoll ()
 
void DrawSongToolset ()
 
void DrawToolset ()
 

Private Attributes

Romrom_
 
zelda3::music::Tracker music_tracker_
 
AssemblyEditor assembly_editor_
 

Additional Inherited Members

- Protected Attributes inherited from yaze::editor::Editor
bool active_ = false
 
EditorType type_
 
EditorContextcontext_ = nullptr
 

Detailed Description

A class for editing music data in a Rom.

Definition at line 57 of file music_editor.h.

Constructor & Destructor Documentation

◆ MusicEditor()

yaze::editor::MusicEditor::MusicEditor ( Rom * rom = nullptr)
inlineexplicit

Definition at line 59 of file music_editor.h.

References yaze::editor::kMusic, rom(), rom_, and yaze::editor::Editor::type_.

Here is the call graph for this function:

Member Function Documentation

◆ Initialize()

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

Implements yaze::editor::Editor.

Definition at line 12 of file music_editor.cc.

◆ Load()

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

Implements yaze::editor::Editor.

Definition at line 14 of file music_editor.cc.

◆ Save()

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

Implements yaze::editor::Editor.

Definition at line 65 of file music_editor.h.

◆ Update()

absl::Status yaze::editor::MusicEditor::Update ( )
overridevirtual

Implements yaze::editor::Editor.

Definition at line 18 of file music_editor.cc.

References assembly_editor_, DrawChannels(), DrawPianoRoll(), DrawToolset(), and yaze::editor::music_editor_flags_.

Here is the call graph for this function:

◆ Cut()

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

Implements yaze::editor::Editor.

Definition at line 67 of file music_editor.h.

◆ Copy()

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

Implements yaze::editor::Editor.

Definition at line 68 of file music_editor.h.

◆ Paste()

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

Implements yaze::editor::Editor.

Definition at line 69 of file music_editor.h.

◆ Undo()

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

Implements yaze::editor::Editor.

Definition at line 70 of file music_editor.h.

◆ Redo()

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

Implements yaze::editor::Editor.

Definition at line 71 of file music_editor.h.

◆ Find()

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

Implements yaze::editor::Editor.

Definition at line 72 of file music_editor.h.

◆ set_rom()

void yaze::editor::MusicEditor::set_rom ( Rom * rom)
inline

Definition at line 75 of file music_editor.h.

References rom(), and rom_.

Here is the call graph for this function:

◆ rom()

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

Definition at line 78 of file music_editor.h.

References rom_.

Referenced by DrawToolset(), MusicEditor(), and set_rom().

◆ DrawChannels()

void yaze::editor::MusicEditor::DrawChannels ( )
private

Definition at line 40 of file music_editor.cc.

References DrawPianoStaff().

Referenced by Update().

Here is the call graph for this function:

◆ DrawPianoStaff()

void yaze::editor::MusicEditor::DrawPianoStaff ( )
private

Definition at line 55 of file music_editor.cc.

Referenced by DrawChannels().

◆ DrawPianoRoll()

void yaze::editor::MusicEditor::DrawPianoRoll ( )
private

Definition at line 93 of file music_editor.cc.

Referenced by Update().

◆ DrawSongToolset()

void yaze::editor::MusicEditor::DrawSongToolset ( )
private

Definition at line 157 of file music_editor.cc.

References yaze::editor::toolset_table_flags_.

◆ DrawToolset()

void yaze::editor::MusicEditor::DrawToolset ( )
private

Member Data Documentation

◆ rom_

Rom* yaze::editor::MusicEditor::rom_
private

Definition at line 81 of file music_editor.h.

Referenced by MusicEditor(), rom(), and set_rom().

◆ music_tracker_

zelda3::music::Tracker yaze::editor::MusicEditor::music_tracker_
private

Definition at line 88 of file music_editor.h.

Referenced by DrawToolset().

◆ assembly_editor_

AssemblyEditor yaze::editor::MusicEditor::assembly_editor_
private

Definition at line 90 of file music_editor.h.

Referenced by Update().


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