1#ifndef YAZE_APP_EDITOR_MUSIC_PANELS_MUSIC_SAMPLE_EDITOR_PANEL_H_
2#define YAZE_APP_EDITOR_MUSIC_PANELS_MUSIC_SAMPLE_EDITOR_PANEL_H_
31 std::string
GetId()
const override {
return "music.sample_editor"; }
41 void Draw(
bool* p_open)
override {
43 ImGui::TextDisabled(
"Music bank not loaded");
Base interface for all logical panel components.
EditorPanel wrapper for the sample editor.
zelda3::music::MusicBank * music_bank_
std::string GetId() const override
Unique identifier for this panel.
void SetOnEditCallback(std::function< void()> callback)
void SetOnPreviewCallback(std::function< void(int)> callback)
std::string GetIcon() const override
Material Design icon for this panel.
MusicSampleEditorPanel(zelda3::music::MusicBank *music_bank, music::SampleEditorView *sample_view)
void Draw(bool *p_open) override
Draw the panel content.
music::SampleEditorView * sample_view_
std::string GetEditorCategory() const override
Editor category this panel belongs to.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Editor for SNES BRR samples.
void SetOnPreviewCallback(std::function< void(int)> callback)
Set callback for sample preview.
void SetOnEditCallback(std::function< void()> callback)
Set callback for when edits occur.
void Draw(MusicBank &bank)
Draw the sample editor.
Manages the collection of songs, instruments, and samples from a ROM.