#include <oracle_validation_panel.h>


Public Member Functions | |
| ~OracleValidationPanel () override | |
| std::string | GetId () const override |
| Unique identifier for this panel. | |
| std::string | GetDisplayName () const override |
| Human-readable name shown in menus and title bars. | |
| std::string | GetIcon () const override |
| Material Design icon for this panel. | |
| std::string | GetEditorCategory () const override |
| Editor category this panel belongs to. | |
| std::string | GetWorkflowGroup () const override |
| Optional workflow group for hack-centric actions. | |
| std::string | GetWorkflowLabel () const override |
| Optional workflow label for menus/command palette. | |
| std::string | GetWorkflowDescription () const override |
| Optional workflow description for menus/command palette. | |
| bool | IsEnabled () const override |
| Check if this panel is currently enabled. | |
| std::string | GetDisabledTooltip () const override |
| Get tooltip text when panel is disabled. | |
| WindowLifecycle | GetWindowLifecycle () const override |
| Get the lifecycle category for this window. | |
| float | GetPreferredWidth () const override |
| Get preferred width for this panel (optional) | |
| void | Draw (bool *p_open) override |
| Draw the panel content. | |
| ~OracleValidationPanel () override | |
| std::string | GetId () const override |
| Unique identifier for this panel. | |
| std::string | GetDisplayName () const override |
| Human-readable name shown in menus and title bars. | |
| std::string | GetIcon () const override |
| Material Design icon for this panel. | |
| std::string | GetEditorCategory () const override |
| Editor category this panel belongs to. | |
| std::string | GetWorkflowGroup () const override |
| Optional workflow group for hack-centric actions. | |
| std::string | GetWorkflowLabel () const override |
| Optional workflow label for menus/command palette. | |
| std::string | GetWorkflowDescription () const override |
| Optional workflow description for menus/command palette. | |
| bool | IsEnabled () const override |
| Check if this panel is currently enabled. | |
| std::string | GetDisabledTooltip () const override |
| Get tooltip text when panel is disabled. | |
| WindowLifecycle | GetWindowLifecycle () const override |
| Get the lifecycle category for this window. | |
| float | GetPreferredWidth () const override |
| Get preferred width for this panel (optional) | |
| void | Draw (bool *p_open) override |
| Draw the panel content. | |
Public Member Functions inherited from yaze::editor::WindowContent | |
| virtual | ~WindowContent ()=default |
| virtual void | OnFirstDraw () |
| Called once before the first Draw() in a session. | |
| virtual bool | RequiresLazyInit () const |
| Whether this panel uses lazy initialization. | |
| void | InvalidateLazyInit () |
| Reset lazy init state so OnFirstDraw() runs again. | |
| virtual void | OnOpen () |
| Called when panel becomes visible. | |
| virtual void | OnClose () |
| Called when panel is hidden. | |
| virtual void | OnFocus () |
| Called when panel receives focus. | |
| virtual WindowContextScope | GetContextScope () const |
| Optional context binding for this window (room/selection/etc) | |
| virtual WindowScope | GetScope () const |
| Get the registration scope for this window. | |
| virtual std::string | GetShortcutHint () const |
| Get keyboard shortcut hint for display. | |
| virtual int | GetPriority () const |
| Get display priority for menu ordering. | |
| virtual int | GetWorkflowPriority () const |
| Optional workflow ordering priority (lower sorts first). | |
| virtual bool | PreferAutoHideTabBar () const |
| Whether the dock node hosting this panel should auto-hide its tab bar. | |
| virtual bool | IsVisibleByDefault () const |
| Whether this panel should be visible by default. | |
| virtual std::string | GetParentPanelId () const |
| Get parent panel ID for cascade behavior. | |
| virtual bool | CascadeCloseChildren () const |
| Whether closing this panel should close child panels. | |
| void | DrawWithLazyInit (bool *p_open) |
| Execute lazy initialization if needed, then call Draw() | |
Private Member Functions | |
| void | PollPendingResult () |
| Rom * | GetRom () const |
| void | LaunchRun (oracle_validation::RunMode mode) |
| void | DrawOptions () |
| void | DrawActionButtons () |
| void | DrawResults () |
| void | DrawSmokeCards (const oracle_validation::SmokeResult &smoke) |
| void | DrawPreflightCards (const oracle_validation::PreflightResult &preflight) |
| void | DrawRawOutput (const oracle_validation::OracleRunResult &result) |
| void | PollPendingResult () |
| Rom * | GetRom () const |
| void | LaunchRun (oracle_validation::RunMode mode) |
| void | DrawOptions () |
| void | DrawActionButtons () |
| void | DrawResults () |
| void | DrawSmokeCards (const oracle_validation::SmokeResult &smoke) |
| void | DrawPreflightCards (const oracle_validation::PreflightResult &preflight) |
| void | DrawRawOutput (const oracle_validation::OracleRunResult &result) |
Static Private Member Functions | |
| static std::string | DefaultRomPath () |
| static std::string | DefaultRomPath () |
Private Attributes | |
| std::string | rom_path_ = DefaultRomPath() |
| int | min_d6_track_rooms_ = 4 |
| bool | write_report_ = false |
| std::string | report_path_ |
| std::string | required_collision_rooms_ = "0x25,0x27" |
| bool | running_ = false |
| std::future< oracle_validation::OracleRunResult > | pending_ |
| std::optional< oracle_validation::OracleRunResult > | last_result_ |
| std::string | status_message_ |
Additional Inherited Members | |
Protected Member Functions inherited from yaze::editor::WindowContent | |
| void | InvalidateCache () |
| Invalidate all cached computations. | |
| template<typename T > | |
| T & | GetCached (const std::string &key, std::function< T()> compute) |
| Get or compute a cached value. | |
| bool | IsCacheValid () const |
| Check if cache has been invalidated. | |
| void | ClearCache () |
| Clear all cached values (more aggressive than InvalidateCache) | |
Definition at line 17 of file oracle_validation_panel.h.
|
override |
Definition at line 121 of file oracle_validation_panel.cc.
References pending_.
|
override |
|
overridevirtual |
Unique identifier for this panel.
IDs should be:
Implements yaze::editor::WindowContent.
Definition at line 127 of file oracle_validation_panel.cc.
|
overridevirtual |
Human-readable name shown in menus and title bars.
Implements yaze::editor::WindowContent.
Definition at line 131 of file oracle_validation_panel.cc.
|
overridevirtual |
Material Design icon for this panel.
Implements yaze::editor::WindowContent.
Definition at line 135 of file oracle_validation_panel.cc.
References ICON_MD_VERIFIED_USER.
|
overridevirtual |
Editor category this panel belongs to.
Implements yaze::editor::WindowContent.
Definition at line 139 of file oracle_validation_panel.cc.
|
overridevirtual |
Optional workflow group for hack-centric actions.
Reimplemented from yaze::editor::WindowContent.
Definition at line 143 of file oracle_validation_panel.cc.
|
overridevirtual |
Optional workflow label for menus/command palette.
Reimplemented from yaze::editor::WindowContent.
Definition at line 147 of file oracle_validation_panel.cc.
|
overridevirtual |
Optional workflow description for menus/command palette.
Reimplemented from yaze::editor::WindowContent.
Definition at line 151 of file oracle_validation_panel.cc.
|
overridevirtual |
Check if this panel is currently enabled.
Disabled panels appear grayed out in menus. Override to implement conditional availability (e.g., requires ROM loaded).
Reimplemented from yaze::editor::WindowContent.
Definition at line 155 of file oracle_validation_panel.cc.
References yaze::editor::ContentRegistry::Context::current_project(), and yaze::editor::ContentRegistry::Context::hack_validation_backend().
Referenced by Draw().

|
overridevirtual |
Get tooltip text when panel is disabled.
Reimplemented from yaze::editor::WindowContent.
Definition at line 161 of file oracle_validation_panel.cc.
Referenced by Draw().
|
overridevirtual |
Get the lifecycle category for this window.
Default is EditorBound (hidden when switching editors).
Reimplemented from yaze::editor::WindowContent.
Definition at line 165 of file oracle_validation_panel.cc.
References yaze::editor::CrossEditor.
|
overridevirtual |
Get preferred width for this panel (optional)
Override this to specify content-based sizing. For example, a tile selector with 8 tiles at 16px × 2.0 scale would return ~276px.
Reimplemented from yaze::editor::WindowContent.
Definition at line 169 of file oracle_validation_panel.cc.
|
overridevirtual |
Draw the panel content.
| p_open | Pointer to visibility flag (nullptr if not closable) |
Called by WorkspaceWindowManager when the panel is visible. Do NOT call ImGui::Begin/End - the PanelWindow wrapper handles that. Just draw your content directly.
Implements yaze::editor::WindowContent.
Definition at line 173 of file oracle_validation_panel.cc.
References DrawActionButtons(), DrawOptions(), DrawResults(), GetDisabledTooltip(), IsEnabled(), and PollPendingResult().
|
staticprivate |
Definition at line 187 of file oracle_validation_panel.cc.
References yaze::editor::ContentRegistry::Context::current_project(), yaze::Rom::filename(), yaze::Rom::is_loaded(), yaze::editor::ContentRegistry::Context::rom(), and yaze::project::YazeProject::rom_filename.
Referenced by DrawOptions().

|
private |
Definition at line 198 of file oracle_validation_panel.cc.
References last_result_, pending_, running_, and status_message_.
Referenced by Draw().
|
private |
Definition at line 211 of file oracle_validation_panel.cc.
References yaze::editor::ContentRegistry::Context::rom().
Referenced by DrawActionButtons(), and LaunchRun().

|
private |
Definition at line 215 of file oracle_validation_panel.cc.
References yaze::editor::oracle_validation::CurrentTimestamp(), yaze::editor::oracle_validation::OracleRunResult::error_message, GetRom(), yaze::editor::ContentRegistry::Context::hack_validation_backend(), yaze::editor::oracle_validation::kStrictReadiness, yaze::editor::oracle_validation::SmokeOptions::min_d6_track_rooms, min_d6_track_rooms_, yaze::editor::oracle_validation::OracleRunResult::mode, pending_, yaze::editor::oracle_validation::SmokeOptions::report_path, yaze::editor::oracle_validation::PreflightOptions::report_path, report_path_, yaze::editor::oracle_validation::PreflightOptions::required_collision_rooms, required_collision_rooms_, yaze::editor::oracle_validation::SmokeOptions::rom_path, yaze::editor::oracle_validation::PreflightOptions::rom_path, rom_path_, running_, yaze::editor::oracle_validation::OracleRunResult::status_code, status_message_, yaze::editor::oracle_validation::SmokeOptions::strict_readiness, yaze::editor::oracle_validation::OracleRunResult::timestamp, and write_report_.
Referenced by DrawActionButtons().

|
private |
Definition at line 260 of file oracle_validation_panel.cc.
References DefaultRomPath(), min_d6_track_rooms_, report_path_, required_collision_rooms_, rom_path_, and write_report_.
Referenced by Draw().

|
private |
Definition at line 289 of file oracle_validation_panel.cc.
References GetRom(), yaze::Rom::is_loaded(), yaze::editor::oracle_validation::kPreflight, yaze::editor::oracle_validation::kStrictReadiness, yaze::editor::oracle_validation::kStructural, LaunchRun(), rom_path_, running_, and status_message_.
Referenced by Draw().

|
private |
Definition at line 324 of file oracle_validation_panel.cc.
References DrawPreflightCards(), DrawRawOutput(), DrawSmokeCards(), ICON_MD_ERROR, ICON_MD_WARNING, yaze::editor::oracle_validation::kPreflight, yaze::editor::oracle_validation::kStrictReadiness, and last_result_.
Referenced by Draw().

|
private |
Definition at line 379 of file oracle_validation_panel.cc.
References yaze::editor::oracle_validation::SmokeResult::d3, yaze::editor::oracle_validation::SmokeResult::d4, yaze::editor::oracle_validation::SmokeResult::d6, yaze::editor::oracle_validation::SmokeD6::meets_min_track_rooms, yaze::editor::oracle_validation::SmokeD6::min_track_rooms, yaze::editor::oracle_validation::SmokeD6::ok, yaze::editor::oracle_validation::SmokeD3::ok, yaze::editor::oracle_validation::SmokeD3::readiness_check, yaze::editor::oracle_validation::SmokeD4::required_rooms_check, yaze::editor::oracle_validation::SmokeD4::required_rooms_ok, yaze::editor::oracle_validation::SmokeD4::structural_ok, and yaze::editor::oracle_validation::SmokeD6::track_rooms_found.
Referenced by DrawResults().
|
private |
Definition at line 411 of file oracle_validation_panel.cc.
References yaze::editor::oracle_validation::PreflightResult::custom_collision_maps_ok, yaze::editor::oracle_validation::PreflightResult::error_count, yaze::editor::oracle_validation::PreflightResult::errors, yaze::editor::oracle_validation::PreflightResult::required_rooms_check, yaze::editor::oracle_validation::PreflightResult::required_rooms_ok, yaze::editor::oracle_validation::PreflightResult::water_fill_region_ok, and yaze::editor::oracle_validation::PreflightResult::water_fill_table_ok.
Referenced by DrawResults().
|
private |
Definition at line 450 of file oracle_validation_panel.cc.
References yaze::editor::oracle_validation::OracleRunResult::raw_output.
Referenced by DrawResults().
|
overridevirtual |
Unique identifier for this panel.
IDs should be:
Implements yaze::editor::WindowContent.
|
overridevirtual |
Human-readable name shown in menus and title bars.
Implements yaze::editor::WindowContent.
|
overridevirtual |
Material Design icon for this panel.
Implements yaze::editor::WindowContent.
|
overridevirtual |
Editor category this panel belongs to.
Implements yaze::editor::WindowContent.
|
overridevirtual |
Optional workflow group for hack-centric actions.
Reimplemented from yaze::editor::WindowContent.
|
overridevirtual |
Optional workflow label for menus/command palette.
Reimplemented from yaze::editor::WindowContent.
|
overridevirtual |
Optional workflow description for menus/command palette.
Reimplemented from yaze::editor::WindowContent.
|
overridevirtual |
Check if this panel is currently enabled.
Disabled panels appear grayed out in menus. Override to implement conditional availability (e.g., requires ROM loaded).
Reimplemented from yaze::editor::WindowContent.
|
overridevirtual |
Get tooltip text when panel is disabled.
Reimplemented from yaze::editor::WindowContent.
|
overridevirtual |
Get the lifecycle category for this window.
Default is EditorBound (hidden when switching editors).
Reimplemented from yaze::editor::WindowContent.
|
overridevirtual |
Get preferred width for this panel (optional)
Override this to specify content-based sizing. For example, a tile selector with 8 tiles at 16px × 2.0 scale would return ~276px.
Reimplemented from yaze::editor::WindowContent.
|
overridevirtual |
Draw the panel content.
| p_open | Pointer to visibility flag (nullptr if not closable) |
Called by WorkspaceWindowManager when the panel is visible. Do NOT call ImGui::Begin/End - the PanelWindow wrapper handles that. Just draw your content directly.
Implements yaze::editor::WindowContent.
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 48 of file oracle_validation_panel.h.
Referenced by DrawActionButtons(), DrawOptions(), and LaunchRun().
|
private |
Definition at line 49 of file oracle_validation_panel.h.
Referenced by DrawOptions(), and LaunchRun().
|
private |
Definition at line 50 of file oracle_validation_panel.h.
Referenced by DrawOptions(), and LaunchRun().
|
private |
Definition at line 51 of file oracle_validation_panel.h.
Referenced by DrawOptions(), and LaunchRun().
|
private |
Definition at line 52 of file oracle_validation_panel.h.
Referenced by DrawOptions(), and LaunchRun().
|
private |
Definition at line 54 of file oracle_validation_panel.h.
Referenced by DrawActionButtons(), LaunchRun(), and PollPendingResult().
|
private |
Definition at line 55 of file oracle_validation_panel.h.
Referenced by LaunchRun(), PollPendingResult(), and ~OracleValidationPanel().
|
private |
Definition at line 56 of file oracle_validation_panel.h.
Referenced by DrawResults(), and PollPendingResult().
|
private |
Definition at line 57 of file oracle_validation_panel.h.
Referenced by DrawActionButtons(), LaunchRun(), and PollPendingResult().