1#ifndef YAZE_APP_EDITOR_MUSIC_PANELS_MUSIC_SAMPLE_EDITOR_PANEL_H_
2#define YAZE_APP_EDITOR_MUSIC_PANELS_MUSIC_SAMPLE_EDITOR_PANEL_H_
32 std::string
GetId()
const override {
return "music.sample_editor"; }
45 void Draw(
bool* p_open)
override {
47 ImGui::TextDisabled(tr(
"Music bank not loaded"));
WindowContent 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.
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
Base interface for all logical window content components.
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.
static WindowPresentationPolicy OptionalPopOut()