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

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

#include <music_editor.h>

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

Public Member Functions

 MusicEditor ()
 
absl::Status Update () override
 
absl::Status Undo () override
 
absl::Status Redo () override
 
absl::Status Cut () override
 
absl::Status Copy () override
 
absl::Status Paste () override
 
absl::Status Find () override
 
- Public Member Functions inherited from yaze::app::SharedRom
 SharedRom ()=default
 
virtual ~SharedRom ()=default
 
std::shared_ptr< Romshared_rom ()
 
auto rom ()
 
- Public Member Functions inherited from yaze::app::editor::Editor
 Editor ()=default
 
virtual ~Editor ()=default
 
EditorType type () const
 

Private Member Functions

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

Private Attributes

zelda3::music::Tracker music_tracker_
 
AssemblyEditor assembly_editor_
 
ImGuiTableFlags toolset_table_flags_ = ImGuiTableFlags_SizingFixedFit
 
ImGuiTableFlags music_editor_flags_
 

Additional Inherited Members

- Static Public Attributes inherited from yaze::app::SharedRom
static std::shared_ptr< Romshared_rom_ = nullptr
 
- Protected Attributes inherited from yaze::app::editor::Editor
EditorType type_
 

Detailed Description

A class for editing music data in a Rom.

Definition at line 58 of file music_editor.h.

Constructor & Destructor Documentation

◆ MusicEditor()

yaze::app::editor::MusicEditor::MusicEditor ( )
inline

Definition at line 60 of file music_editor.h.

References yaze::app::editor::kMusic, and yaze::app::editor::Editor::type_.

Member Function Documentation

◆ Update()

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

◆ Undo()

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

Implements yaze::app::editor::Editor.

Definition at line 64 of file music_editor.h.

◆ Redo()

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

Implements yaze::app::editor::Editor.

Definition at line 65 of file music_editor.h.

◆ Cut()

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

Implements yaze::app::editor::Editor.

Definition at line 66 of file music_editor.h.

◆ Copy()

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

Implements yaze::app::editor::Editor.

Definition at line 67 of file music_editor.h.

◆ Paste()

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

Implements yaze::app::editor::Editor.

Definition at line 68 of file music_editor.h.

◆ Find()

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

Implements yaze::app::editor::Editor.

Definition at line 69 of file music_editor.h.

◆ DrawChannels()

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

Definition at line 37 of file music_editor.cc.

References DrawPianoStaff().

Referenced by Update().

Here is the call graph for this function:

◆ DrawPianoStaff()

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

Definition at line 52 of file music_editor.cc.

Referenced by DrawChannels().

◆ DrawPianoRoll()

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

Definition at line 90 of file music_editor.cc.

Referenced by Update().

◆ DrawSongToolset()

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

Definition at line 154 of file music_editor.cc.

References toolset_table_flags_.

◆ DrawToolset()

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

Member Data Documentation

◆ music_tracker_

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

Definition at line 78 of file music_editor.h.

Referenced by DrawToolset().

◆ assembly_editor_

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

Definition at line 80 of file music_editor.h.

Referenced by Update().

◆ toolset_table_flags_

ImGuiTableFlags yaze::app::editor::MusicEditor::toolset_table_flags_ = ImGuiTableFlags_SizingFixedFit
private

Definition at line 81 of file music_editor.h.

Referenced by DrawSongToolset(), and DrawToolset().

◆ music_editor_flags_

ImGuiTableFlags yaze::app::editor::MusicEditor::music_editor_flags_
private
Initial value:
= ImGuiTableFlags_SizingFixedFit |
ImGuiTableFlags_Resizable |
ImGuiTableFlags_Reorderable

Definition at line 82 of file music_editor.h.

Referenced by Update().


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