set up scaffolding for dbg engine/frontendm sgs

This commit is contained in:
Ryan Fleury
2024-08-30 15:24:35 -07:00
parent 533fd0041f
commit 8770a43678
9 changed files with 609 additions and 0 deletions
+119
View File
@@ -1,6 +1,125 @@
// Copyright (c) 2024 Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
////////////////////////////////
//~ rjf: Message Tables
@table(name name_lower show_in_ui show_in_ipc_docs q_slot q_ent_kind q_allow_files q_allow_folders q_keep_oi q_select_oi q_is_code q_required canonical_icon desc)
DF_MsgKindTable:
{
{Null null 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: meta
{Exit exit 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{RunCommand run_command 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{ToggleDevMenu toggle_dev_menu 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: config reading/writing
{ApplyUserData apply_user_data 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{ApplyProjectData apply_project_data 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{WriteUserData write_user_data 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{WriteProjectData write_project_data 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: notifications
{Error error 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: windows
{OpenWindow open_window 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{CloseWindow close_window 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{ToggleFullscreen toggle_fullscreen 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: confirmation
{ConfirmAccept confirm_accept 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{ConfirmCancel confirm_cancel 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: queries
{CompleteQuery complete_query 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{CancelQuery cancel_query 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: searching
{FindTextForward find_text_forward 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{FindTextBackward find_text_backward 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{FindNext find_next 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{FindPrev find_prev 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: font sizes
{IncUIFontScale inc_ui_font_scale 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{DecUIFontScale dec_ui_font_scale 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{IncCodeFontScale inc_code_font_scale 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{DecCodeFontScale dec_code_font_scale 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: panel creation/removal
{NewPanelLeft new_panel_left 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{NewPanelUp new_panel_up 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{NewPanelRight new_panel_right 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{NewPanelDown new_panel_down 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{SplitPanel split_panel 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{ClosePanel close_panel 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: panel rearranging
{RotatePanelColumns rotate_panel_columns 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: panel focusing
{NextPanel next_panel 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{PrevPanel prev_panel 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{FocusPanel focus_panel 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{FocusPanelRight focus_panel_right 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{FocusPanelLeft focus_panel_left 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{FocusPanelUp focus_panel_up 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{FocusPanelDown focus_panel_down 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: view history navigation
{GoBack go_back 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{GoForward go_forward 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: tab selection
{NextTab next_tab 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{PrevTab prev_tab 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: tab rearranging
{MoveTabRight move_tab_right 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{MoveTabLeft move_tab_left 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{MoveTab move_tab 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: tab creation/removal
{OpenTab open_tab 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{CloseTab close_tab 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: panel tab settings
{TabBarTop tab_bar_top 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{TabBarBottom tab_bar_bottom 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: tab filters
{Filter filter 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{ClearFilter clear_filter 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{ApplyFilter apply_filter 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: default panel layouts
{ResetToDefaultPanels reset_to_default_panels 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{ResetToCompactPanels reset_to_compact_panels 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: filesystem fast paths
{Open open 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{Switch switch 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{SwitchToPartnerFile switch_to_partner_file 0 0 Null Nil 0 0 0 0 0 0 Null ""}
//- rjf: snapping to code locations
{FindThread find_thread 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{FindSelectedThread find_selected_thread 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{GoToName go_to_name 0 0 Null Nil 0 0 0 0 0 0 Null ""}
{FindCodeLocation find_code_location 0 0 Null Nil 0 0 0 0 0 0 Null ""}
}
@enum DF_MsgKind:
{
@expand(DF_MsgKindTable a) `$(a.name)`
}
@data(String8) df_msg_kind_name_lower_table:
{
@expand(DF_MsgKindTable a) `str8_lit_comp("$(a.name_lower)")`
}
////////////////////////////////
//~ rjf: Embedded Data
+5
View File
@@ -919,6 +919,11 @@ internal String8 df_stop_explanation_string_icon_from_ctrl_event(Arena *arena, C
internal void df_request_frame(void);
////////////////////////////////
//~ rjf: Message Functions
////////////////////////////////
//~ rjf: Main Layer Top-Level Calls
@@ -4,6 +4,71 @@
//- GENERATED CODE
C_LINKAGE_BEGIN
String8 df_msg_kind_name_lower_table[61] =
{
str8_lit_comp("null"),
str8_lit_comp("exit"),
str8_lit_comp("run_command"),
str8_lit_comp("toggle_dev_menu"),
str8_lit_comp("apply_user_data"),
str8_lit_comp("apply_project_data"),
str8_lit_comp("write_user_data"),
str8_lit_comp("write_project_data"),
str8_lit_comp("error"),
str8_lit_comp("open_window"),
str8_lit_comp("close_window"),
str8_lit_comp("toggle_fullscreen"),
str8_lit_comp("confirm_accept"),
str8_lit_comp("confirm_cancel"),
str8_lit_comp("complete_query"),
str8_lit_comp("cancel_query"),
str8_lit_comp("find_text_forward"),
str8_lit_comp("find_text_backward"),
str8_lit_comp("find_next"),
str8_lit_comp("find_prev"),
str8_lit_comp("inc_ui_font_scale"),
str8_lit_comp("dec_ui_font_scale"),
str8_lit_comp("inc_code_font_scale"),
str8_lit_comp("dec_code_font_scale"),
str8_lit_comp("new_panel_left"),
str8_lit_comp("new_panel_up"),
str8_lit_comp("new_panel_right"),
str8_lit_comp("new_panel_down"),
str8_lit_comp("split_panel"),
str8_lit_comp("close_panel"),
str8_lit_comp("rotate_panel_columns"),
str8_lit_comp("next_panel"),
str8_lit_comp("prev_panel"),
str8_lit_comp("focus_panel"),
str8_lit_comp("focus_panel_right"),
str8_lit_comp("focus_panel_left"),
str8_lit_comp("focus_panel_up"),
str8_lit_comp("focus_panel_down"),
str8_lit_comp("go_back"),
str8_lit_comp("go_forward"),
str8_lit_comp("next_tab"),
str8_lit_comp("prev_tab"),
str8_lit_comp("move_tab_right"),
str8_lit_comp("move_tab_left"),
str8_lit_comp("move_tab"),
str8_lit_comp("open_tab"),
str8_lit_comp("close_tab"),
str8_lit_comp("tab_bar_top"),
str8_lit_comp("tab_bar_bottom"),
str8_lit_comp("filter"),
str8_lit_comp("clear_filter"),
str8_lit_comp("apply_filter"),
str8_lit_comp("reset_to_default_panels"),
str8_lit_comp("reset_to_compact_panels"),
str8_lit_comp("open"),
str8_lit_comp("switch"),
str8_lit_comp("switch_to_partner_file"),
str8_lit_comp("find_thread"),
str8_lit_comp("find_selected_thread"),
str8_lit_comp("go_to_name"),
str8_lit_comp("find_code_location"),
};
DF_StringBindingPair df_g_default_binding_table[110] =
{
{str8_lit_comp("kill_all"), {OS_Key_F5, 0 |OS_EventFlag_Shift }},
@@ -6,6 +6,71 @@
#ifndef DBG_FRONTEND_META_H
#define DBG_FRONTEND_META_H
typedef enum DF_MsgKind
{
DF_MsgKind_Null,
DF_MsgKind_Exit,
DF_MsgKind_RunCommand,
DF_MsgKind_ToggleDevMenu,
DF_MsgKind_ApplyUserData,
DF_MsgKind_ApplyProjectData,
DF_MsgKind_WriteUserData,
DF_MsgKind_WriteProjectData,
DF_MsgKind_Error,
DF_MsgKind_OpenWindow,
DF_MsgKind_CloseWindow,
DF_MsgKind_ToggleFullscreen,
DF_MsgKind_ConfirmAccept,
DF_MsgKind_ConfirmCancel,
DF_MsgKind_CompleteQuery,
DF_MsgKind_CancelQuery,
DF_MsgKind_FindTextForward,
DF_MsgKind_FindTextBackward,
DF_MsgKind_FindNext,
DF_MsgKind_FindPrev,
DF_MsgKind_IncUIFontScale,
DF_MsgKind_DecUIFontScale,
DF_MsgKind_IncCodeFontScale,
DF_MsgKind_DecCodeFontScale,
DF_MsgKind_NewPanelLeft,
DF_MsgKind_NewPanelUp,
DF_MsgKind_NewPanelRight,
DF_MsgKind_NewPanelDown,
DF_MsgKind_SplitPanel,
DF_MsgKind_ClosePanel,
DF_MsgKind_RotatePanelColumns,
DF_MsgKind_NextPanel,
DF_MsgKind_PrevPanel,
DF_MsgKind_FocusPanel,
DF_MsgKind_FocusPanelRight,
DF_MsgKind_FocusPanelLeft,
DF_MsgKind_FocusPanelUp,
DF_MsgKind_FocusPanelDown,
DF_MsgKind_GoBack,
DF_MsgKind_GoForward,
DF_MsgKind_NextTab,
DF_MsgKind_PrevTab,
DF_MsgKind_MoveTabRight,
DF_MsgKind_MoveTabLeft,
DF_MsgKind_MoveTab,
DF_MsgKind_OpenTab,
DF_MsgKind_CloseTab,
DF_MsgKind_TabBarTop,
DF_MsgKind_TabBarBottom,
DF_MsgKind_Filter,
DF_MsgKind_ClearFilter,
DF_MsgKind_ApplyFilter,
DF_MsgKind_ResetToDefaultPanels,
DF_MsgKind_ResetToCompactPanels,
DF_MsgKind_Open,
DF_MsgKind_Switch,
DF_MsgKind_SwitchToPartnerFile,
DF_MsgKind_FindThread,
DF_MsgKind_FindSelectedThread,
DF_MsgKind_GoToName,
DF_MsgKind_FindCodeLocation,
} DF_MsgKind;
typedef enum DF_IconKind
{
DF_IconKind_Null,
@@ -353,6 +418,7 @@ DF_VIEW_RULE_LINE_STRINGIZE_FUNCTION_DEF(no_addr);
DF_VIEW_RULE_ROW_UI_FUNCTION_DEF(checkbox);
DF_VIEW_RULE_ROW_UI_FUNCTION_DEF(color_rgba);
C_LINKAGE_BEGIN
extern String8 df_msg_kind_name_lower_table[61];
extern DF_StringBindingPair df_g_default_binding_table[110];
extern String8 df_g_binding_version_remap_old_name_table[7];
extern String8 df_g_binding_version_remap_new_name_table[7];