Panel for manifest freshness UX and protected regions inspection. More...
#include <manifest_panel.h>

Public Member Functions | |
| ManifestPanel ()=default | |
| ~ManifestPanel ()=default | |
| void | SetProject (project::YazeProject *project) |
| void | Draw () |
| Draw the combined panel content (no ImGui::Begin/End wrapper). | |
Private Member Functions | |
| void | DrawManifestStatus () |
| Draw Card B3: manifest status, path, mtime, reload button. | |
| void | DrawProtectedRegions () |
| Draw Card B4: searchable protected regions table. | |
| std::string | ResolveManifestPath () const |
| Resolve the absolute path to hack_manifest.json. | |
Private Attributes | |
| project::YazeProject * | project_ = nullptr |
| char | filter_text_ [128] = {} |
| std::string | status_message_ |
| bool | status_is_error_ = false |
Panel for manifest freshness UX and protected regions inspection.
Card B3: Shows manifest path, mtime, loaded status, and a "Reload" button. Card B4: Searchable table of protected regions from the HackManifest.
Both are read-only — this panel never writes to the ROM or manifest file.
Definition at line 24 of file manifest_panel.h.
|
default |
|
default |
|
inline |
Definition at line 29 of file manifest_panel.h.
References project_.
| void yaze::editor::ManifestPanel::Draw | ( | ) |
Draw the combined panel content (no ImGui::Begin/End wrapper).
Definition at line 32 of file manifest_panel.cc.
References DrawManifestStatus(), and DrawProtectedRegions().

|
private |
Draw Card B3: manifest status, path, mtime, reload button.
Definition at line 42 of file manifest_panel.cc.
References yaze::project::YazeProject::hack_manifest, ICON_MD_CHECK_CIRCLE, ICON_MD_DESCRIPTION, ICON_MD_ERROR, ICON_MD_REFRESH, ICON_MD_WARNING, yaze::core::HackManifest::loaded(), project_, yaze::project::YazeProject::ReloadHackManifest(), ResolveManifestPath(), status_is_error_, and status_message_.
Referenced by Draw().

|
private |
Draw Card B4: searchable protected regions table.
Definition at line 162 of file manifest_panel.cc.
References filter_text_, yaze::project::YazeProject::hack_manifest, ICON_MD_SHIELD, yaze::core::HackManifest::loaded(), project_, and yaze::core::HackManifest::protected_regions().
Referenced by Draw().

|
private |
Resolve the absolute path to hack_manifest.json.
Definition at line 259 of file manifest_panel.cc.
References yaze::project::YazeProject::code_folder, yaze::project::YazeProject::GetAbsolutePath(), yaze::project::YazeProject::hack_manifest_file, and project_.
Referenced by DrawManifestStatus().

|
private |
Definition at line 44 of file manifest_panel.h.
Referenced by DrawManifestStatus(), DrawProtectedRegions(), ResolveManifestPath(), and SetProject().
|
private |
Definition at line 47 of file manifest_panel.h.
Referenced by DrawProtectedRegions().
|
private |
Definition at line 50 of file manifest_panel.h.
Referenced by DrawManifestStatus().
|
private |
Definition at line 51 of file manifest_panel.h.
Referenced by DrawManifestStatus().