yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
menu_inspector_panel.h
Go to the documentation of this file.
1
#ifndef YAZE_APP_EDITOR_ORACLE_PANELS_MENU_INSPECTOR_PANEL_H_
2
#define YAZE_APP_EDITOR_ORACLE_PANELS_MENU_INSPECTOR_PANEL_H_
3
4
#include <string>
5
#include <vector>
6
7
#include "
app/editor/core/content_registry.h
"
8
#include "
app/editor/system/editor_panel.h
"
9
#include "
app/gui/core/icons.h
"
10
#include "
core/oracle_menu_registry.h
"
11
#include "imgui/imgui.h"
12
#include "imgui/misc/cpp/imgui_stdlib.h"
13
14
namespace
yaze::editor
{
15
16
class
OracleMenuInspectorPanel
:
public
WindowContent
{
17
public
:
18
std::string
GetId
()
const override
{
return
"oracle.menu_inspector"
; }
19
std::string
GetDisplayName
()
const override
{
return
"Menu Inspector"
; }
20
std::string
GetIcon
()
const override
{
return
ICON_MD_MENU_BOOK
; }
21
std::string
GetEditorCategory
()
const override
{
return
"Agent"
; }
22
WindowPresentationPolicy
GetPresentationPolicy
()
const override
{
23
return
WindowPresentationPolicy::Diagnostic
().
WithHost
(
24
"Tools > Hack Workflows > Assets"
);
25
}
26
std::string
GetWorkflowGroup
()
const override
{
return
"Assets"
; }
27
std::string
GetWorkflowDescription
()
const override
{
28
return
"Inspect menu registries and generated menu assets for the project"
;
29
}
30
WindowLifecycle
GetWindowLifecycle
()
const override
{
31
return
WindowLifecycle::CrossEditor
;
32
}
33
float
GetPreferredWidth
()
const override
{
return
520.0f; }
34
35
void
Draw
(
bool
* p_open)
override
;
36
37
private
:
38
void
EnsureProjectPath
();
39
void
RefreshRegistry
();
40
void
DrawToolbar
();
41
void
DrawSummary
()
const
;
42
void
DrawBinsTab
();
43
void
DrawDrawRoutinesTab
();
44
void
DrawComponentsTab
();
45
bool
MatchesFilter
(
const
std::string& value,
const
std::string& filter)
const
;
46
47
std::string
project_path_
;
48
bool
attempted_initial_load_
=
false
;
49
bool
has_registry_
=
false
;
50
core::OracleMenuRegistry
registry_
;
51
std::string
last_error_
;
52
std::string
status_message_
;
53
54
bool
bins_missing_only_
=
false
;
55
std::string
draw_filter_
;
56
std::string
component_table_filter_
;
57
58
std::vector<const core::OracleMenuComponent*>
filtered_components_
;
59
int
selected_component_list_index_
= -1;
60
int
edit_row_
= 0;
61
int
edit_col_
= 0;
62
};
63
64
}
// namespace yaze::editor
65
66
#endif
// YAZE_APP_EDITOR_ORACLE_PANELS_MENU_INSPECTOR_PANEL_H_
yaze::editor::OracleMenuInspectorPanel
Definition
menu_inspector_panel.h:16
yaze::editor::OracleMenuInspectorPanel::edit_col_
int edit_col_
Definition
menu_inspector_panel.h:61
yaze::editor::OracleMenuInspectorPanel::Draw
void Draw(bool *p_open) override
Draw the panel content.
Definition
menu_inspector_panel.cc:300
yaze::editor::OracleMenuInspectorPanel::GetIcon
std::string GetIcon() const override
Material Design icon for this panel.
Definition
menu_inspector_panel.h:20
yaze::editor::OracleMenuInspectorPanel::GetDisplayName
std::string GetDisplayName() const override
Human-readable name shown in menus and title bars.
Definition
menu_inspector_panel.h:19
yaze::editor::OracleMenuInspectorPanel::draw_filter_
std::string draw_filter_
Definition
menu_inspector_panel.h:55
yaze::editor::OracleMenuInspectorPanel::DrawComponentsTab
void DrawComponentsTab()
Definition
menu_inspector_panel.cc:177
yaze::editor::OracleMenuInspectorPanel::attempted_initial_load_
bool attempted_initial_load_
Definition
menu_inspector_panel.h:48
yaze::editor::OracleMenuInspectorPanel::registry_
core::OracleMenuRegistry registry_
Definition
menu_inspector_panel.h:50
yaze::editor::OracleMenuInspectorPanel::GetPreferredWidth
float GetPreferredWidth() const override
Get preferred width for this panel (optional)
Definition
menu_inspector_panel.h:33
yaze::editor::OracleMenuInspectorPanel::DrawToolbar
void DrawToolbar()
Definition
menu_inspector_panel.cc:75
yaze::editor::OracleMenuInspectorPanel::filtered_components_
std::vector< const core::OracleMenuComponent * > filtered_components_
Definition
menu_inspector_panel.h:58
yaze::editor::OracleMenuInspectorPanel::GetWorkflowDescription
std::string GetWorkflowDescription() const override
Optional workflow description for menus/command palette.
Definition
menu_inspector_panel.h:27
yaze::editor::OracleMenuInspectorPanel::status_message_
std::string status_message_
Definition
menu_inspector_panel.h:52
yaze::editor::OracleMenuInspectorPanel::DrawDrawRoutinesTab
void DrawDrawRoutinesTab()
Definition
menu_inspector_panel.cc:141
yaze::editor::OracleMenuInspectorPanel::GetWorkflowGroup
std::string GetWorkflowGroup() const override
Optional workflow group for hack-centric actions.
Definition
menu_inspector_panel.h:26
yaze::editor::OracleMenuInspectorPanel::bins_missing_only_
bool bins_missing_only_
Definition
menu_inspector_panel.h:54
yaze::editor::OracleMenuInspectorPanel::project_path_
std::string project_path_
Definition
menu_inspector_panel.h:47
yaze::editor::OracleMenuInspectorPanel::DrawBinsTab
void DrawBinsTab()
Definition
menu_inspector_panel.cc:98
yaze::editor::OracleMenuInspectorPanel::has_registry_
bool has_registry_
Definition
menu_inspector_panel.h:49
yaze::editor::OracleMenuInspectorPanel::MatchesFilter
bool MatchesFilter(const std::string &value, const std::string &filter) const
Definition
menu_inspector_panel.cc:65
yaze::editor::OracleMenuInspectorPanel::selected_component_list_index_
int selected_component_list_index_
Definition
menu_inspector_panel.h:59
yaze::editor::OracleMenuInspectorPanel::GetEditorCategory
std::string GetEditorCategory() const override
Editor category this panel belongs to.
Definition
menu_inspector_panel.h:21
yaze::editor::OracleMenuInspectorPanel::DrawSummary
void DrawSummary() const
Definition
menu_inspector_panel.cc:87
yaze::editor::OracleMenuInspectorPanel::EnsureProjectPath
void EnsureProjectPath()
Definition
menu_inspector_panel.cc:31
yaze::editor::OracleMenuInspectorPanel::GetWindowLifecycle
WindowLifecycle GetWindowLifecycle() const override
Get the lifecycle category for this window.
Definition
menu_inspector_panel.h:30
yaze::editor::OracleMenuInspectorPanel::edit_row_
int edit_row_
Definition
menu_inspector_panel.h:60
yaze::editor::OracleMenuInspectorPanel::GetId
std::string GetId() const override
Unique identifier for this panel.
Definition
menu_inspector_panel.h:18
yaze::editor::OracleMenuInspectorPanel::last_error_
std::string last_error_
Definition
menu_inspector_panel.h:51
yaze::editor::OracleMenuInspectorPanel::RefreshRegistry
void RefreshRegistry()
Definition
menu_inspector_panel.cc:42
yaze::editor::OracleMenuInspectorPanel::GetPresentationPolicy
WindowPresentationPolicy GetPresentationPolicy() const override
How this content is hosted and advertised by workspace chrome.
Definition
menu_inspector_panel.h:22
yaze::editor::OracleMenuInspectorPanel::component_table_filter_
std::string component_table_filter_
Definition
menu_inspector_panel.h:56
yaze::editor::WindowContent
Base interface for all logical window content components.
Definition
editor_panel.h:199
content_registry.h
editor_panel.h
icons.h
ICON_MD_MENU_BOOK
#define ICON_MD_MENU_BOOK
Definition
icons.h:1197
yaze::editor
Editors are the view controllers for the application.
Definition
patch_export_usage.cc:9
yaze::editor::WindowLifecycle
WindowLifecycle
Defines lifecycle behavior for editor windows.
Definition
editor_panel.h:26
yaze::editor::WindowLifecycle::CrossEditor
@ CrossEditor
User can pin to persist across editors.
oracle_menu_registry.h
yaze::core::OracleMenuRegistry
Definition
oracle_menu_registry.h:40
yaze::editor::WindowPresentationPolicy
Definition
editor_panel.h:102
yaze::editor::WindowPresentationPolicy::Diagnostic
static WindowPresentationPolicy Diagnostic()
Definition
editor_panel.h:153
yaze::editor::WindowPresentationPolicy::WithHost
WindowPresentationPolicy WithHost(std::string host_name) const
Returns a copy that names the hosting surface.
Definition
editor_panel.h:127
src
app
editor
oracle
panels
menu_inspector_panel.h
Generated by
1.10.0