yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
tui.h
Go to the documentation of this file.
1
#ifndef YAZE_CLI_TUI_H
2
#define YAZE_CLI_TUI_H
3
4
#include <ftxui/component/component.hpp>
5
#include <ftxui/dom/elements.hpp>
6
#include <ftxui/screen/screen.hpp>
7
#include <string>
8
#include <vector>
9
10
#include "
app/rom.h
"
11
12
namespace
yaze
{
17
namespace
cli {
18
const
std::vector<std::string>
kMainMenuEntries
= {
19
"๐ฎ Load ROM / Quick Start"
,
20
"๐ค AI Agent Chat"
,
21
"๐ TODO Manager"
,
22
"๐ง ROM Tools"
,
23
"๐จ Graphics & Palettes"
,
24
"๐งช Testing & Validation"
,
25
"โ๏ธ Settings"
,
26
"โ Help & Documentation"
,
27
"๐ช Exit"
,
28
};
29
30
enum class
MainMenuEntry
{
31
kLoadRom
,
32
kAIAgentChat
,
33
kTodoManager
,
34
kRomTools
,
35
kGraphicsTools
,
36
kTestingTools
,
37
kSettings
,
38
kHelp
,
39
kExit
,
40
};
41
42
enum class
LayoutID
{
43
kLoadRom
,
44
kAIAgentChat
,
45
kTodoManager
,
46
kRomTools
,
47
kGraphicsTools
,
48
kTestingTools
,
49
kSettings
,
50
kApplyAsarPatch
,
51
kApplyBpsPatch
,
52
kExtractSymbols
,
53
kValidateAssembly
,
54
kGenerateSaveFile
,
55
kPaletteEditor
,
56
kHexViewer
,
57
kCommandPalette
,
58
kHelp
,
59
kExit
,
60
kMainMenu
,
61
kDashboard
,
62
kError
,
63
};
64
65
struct
Context
{
66
Rom
rom
;
67
LayoutID
current_layout
=
LayoutID::kMainMenu
;
68
std::string
error_message
;
69
bool
use_autocomplete
=
true
;
70
bool
show_suggestions
=
true
;
71
};
72
73
static
Context
app_context;
74
75
void
ShowMain
();
76
77
}
// namespace cli
78
}
// namespace yaze
79
80
#endif
// YAZE_CLI_TUI_H
yaze::Rom
The Rom class is used to load, save, and modify Rom data.
Definition
rom.h:71
yaze::cli::kMainMenuEntries
const std::vector< std::string > kMainMenuEntries
Definition
tui.h:18
yaze::cli::MainMenuEntry
MainMenuEntry
Definition
tui.h:30
yaze::cli::MainMenuEntry::kLoadRom
@ kLoadRom
yaze::cli::MainMenuEntry::kHelp
@ kHelp
yaze::cli::MainMenuEntry::kAIAgentChat
@ kAIAgentChat
yaze::cli::MainMenuEntry::kTodoManager
@ kTodoManager
yaze::cli::MainMenuEntry::kExit
@ kExit
yaze::cli::MainMenuEntry::kGraphicsTools
@ kGraphicsTools
yaze::cli::MainMenuEntry::kSettings
@ kSettings
yaze::cli::MainMenuEntry::kTestingTools
@ kTestingTools
yaze::cli::MainMenuEntry::kRomTools
@ kRomTools
yaze::cli::ShowMain
void ShowMain()
Definition
tui.cc:919
yaze::cli::LayoutID
LayoutID
Definition
tui.h:42
yaze::cli::LayoutID::kDashboard
@ kDashboard
yaze::cli::LayoutID::kCommandPalette
@ kCommandPalette
yaze::cli::LayoutID::kGenerateSaveFile
@ kGenerateSaveFile
yaze::cli::LayoutID::kApplyBpsPatch
@ kApplyBpsPatch
yaze::cli::LayoutID::kExtractSymbols
@ kExtractSymbols
yaze::cli::LayoutID::kMainMenu
@ kMainMenu
yaze::cli::LayoutID::kApplyAsarPatch
@ kApplyAsarPatch
yaze::cli::LayoutID::kValidateAssembly
@ kValidateAssembly
yaze::cli::LayoutID::kHexViewer
@ kHexViewer
yaze::cli::LayoutID::kPaletteEditor
@ kPaletteEditor
yaze::cli::TestCaseOutcome::kError
@ kError
yaze
Main namespace for the application.
Definition
asar_wrapper.cc:14
rom.h
yaze::cli::Context
Definition
tui.h:65
yaze::cli::Context::error_message
std::string error_message
Definition
tui.h:68
yaze::cli::Context::use_autocomplete
bool use_autocomplete
Definition
tui.h:69
yaze::cli::Context::current_layout
LayoutID current_layout
Definition
tui.h:67
yaze::cli::Context::show_suggestions
bool show_suggestions
Definition
tui.h:70
yaze::cli::Context::rom
Rom rom
Definition
tui.h:66
src
cli
tui
tui.h
Generated by
1.9.8