yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::editor::ManifestPanel Class Reference

Panel for manifest freshness UX and protected regions inspection. More...

#include <manifest_panel.h>

Collaboration diagram for yaze::editor::ManifestPanel:

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::YazeProjectproject_ = nullptr
 
char filter_text_ [128] = {}
 
std::string status_message_
 
bool status_is_error_ = false
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ManifestPanel()

yaze::editor::ManifestPanel::ManifestPanel ( )
default

◆ ~ManifestPanel()

yaze::editor::ManifestPanel::~ManifestPanel ( )
default

Member Function Documentation

◆ SetProject()

void yaze::editor::ManifestPanel::SetProject ( project::YazeProject * project)
inline

Definition at line 29 of file manifest_panel.h.

References project_.

◆ Draw()

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().

Here is the call graph for this function:

◆ DrawManifestStatus()

void yaze::editor::ManifestPanel::DrawManifestStatus ( )
private

◆ DrawProtectedRegions()

void yaze::editor::ManifestPanel::DrawProtectedRegions ( )
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().

Here is the call graph for this function:

◆ ResolveManifestPath()

std::string yaze::editor::ManifestPanel::ResolveManifestPath ( ) const
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().

Here is the call graph for this function:

Member Data Documentation

◆ project_

project::YazeProject* yaze::editor::ManifestPanel::project_ = nullptr
private

◆ filter_text_

char yaze::editor::ManifestPanel::filter_text_[128] = {}
private

Definition at line 47 of file manifest_panel.h.

Referenced by DrawProtectedRegions().

◆ status_message_

std::string yaze::editor::ManifestPanel::status_message_
private

Definition at line 50 of file manifest_panel.h.

Referenced by DrawManifestStatus().

◆ status_is_error_

bool yaze::editor::ManifestPanel::status_is_error_ = false
private

Definition at line 51 of file manifest_panel.h.

Referenced by DrawManifestStatus().


The documentation for this class was generated from the following files: