yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
music_assembly_panel.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_MUSIC_PANELS_MUSIC_ASSEMBLY_PANEL_H_
2#define YAZE_APP_EDITOR_MUSIC_PANELS_MUSIC_ASSEMBLY_PANEL_H_
3
4#include <string>
5#include "util/i18n/tr.h"
6
10
11namespace yaze {
12namespace editor {
13
19 public:
20 explicit MusicAssemblyPanel(AssemblyEditor* assembly_editor)
21 : assembly_editor_(assembly_editor) {}
22
23 // ==========================================================================
24 // WindowContent Identity
25 // ==========================================================================
26
27 std::string GetId() const override { return "music.assembly"; }
28 std::string GetDisplayName() const override { return "Assembly View"; }
29 std::string GetIcon() const override { return ICON_MD_CODE; }
30 std::string GetEditorCategory() const override { return "Music"; }
34 int GetPriority() const override { return 30; }
35
36 // ==========================================================================
37 // WindowContent Drawing
38 // ==========================================================================
39
40 void Draw(bool* p_open) override {
41 if (!assembly_editor_) {
42 ImGui::TextDisabled(tr("Assembly editor not available"));
43 return;
44 }
45
47 }
48
49 private:
51};
52
53} // namespace editor
54} // namespace yaze
55
56#endif // YAZE_APP_EDITOR_MUSIC_PANELS_MUSIC_ASSEMBLY_PANEL_H_
Text editor for modifying assembly code.
WindowContent wrapper for the assembly editor view in Music context.
MusicAssemblyPanel(AssemblyEditor *assembly_editor)
std::string GetId() const override
Unique identifier for this panel.
void Draw(bool *p_open) override
Draw the panel content.
int GetPriority() const override
Get display priority for menu ordering.
std::string GetEditorCategory() const override
Editor category this panel belongs to.
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
std::string GetIcon() const override
Material Design icon for this panel.
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Base interface for all logical window content components.
#define ICON_MD_CODE
Definition icons.h:434
static WindowPresentationPolicy OptionalPopOut()