1#ifndef YAZE_EDITOR_MUSIC_SONG_BROWSER_VIEW_H
2#define YAZE_EDITOR_MUSIC_SONG_BROWSER_VIEW_H
UI component for browsing and managing songs.
~SongBrowserView()=default
std::function< void(int)> on_open_piano_roll_
void SetOnOpenTracker(std::function< void(int)> callback)
Set callback for opening tracker on a song.
std::function< void(int)> on_song_selected_
std::function< void(int)> on_export_asm_
bool MatchesSearch(const std::string &name) const
void SetOnEdit(std::function< void()> callback)
void DrawSongItem(MusicBank &bank, int index, bool is_selected, bool is_custom)
void SetOnEditCallback(std::function< void()> callback)
Set callback for when edits occur (e.g. renaming).
int GetSelectedSongIndex() const
std::function< void(int)> on_open_tracker_
void Draw(MusicBank &bank)
Draw the song browser.
std::function< void()> on_edit_
std::function< void(int)> on_import_asm_
void SetOnSongSelected(std::function< void(int)> callback)
Set callback for when a song is selected.
void DrawCustomSection(MusicBank &bank, int current_index)
void SetOnExportAsm(std::function< void(int)> callback)
Set callback for exporting a song to ASM.
void SetOnOpenPianoRoll(std::function< void(int)> callback)
Set callback for opening piano roll on a song.
void SetSelectedSongIndex(int index)
void HandleContextMenu(MusicBank &bank, int index, bool is_custom)
SongBrowserView()=default
void SetOnImportAsm(std::function< void(int)> callback)
Set callback for importing ASM to a song.
Manages the collection of songs, instruments, and samples from a ROM.
Contains classes and functions for handling music data in Zelda 3.