Add M9.8c launcher, legend, labelled inspector and click selection
Toolkit-independent launcher, selection, label and outcome-log models with bounded inputs and fixed error text; Dear ImGui overlay in the native adapter with toolkit-first event routing and capture; engineering panels for fixture vs dev region, legend, inspector, session outcomes, notices and dialog. Additive SessionClient::unreachable_attempts() bounds unreachable connects. Docs, CI targets and validation evidence updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
#pragma once
|
||||
// M9.8c engineering panels (ADR-0084). Drawn inside Application's overlay callback;
|
||||
// they read presentation copies and report what the user asked for. Only this file
|
||||
// pair and the platform adapter use the toolkit.
|
||||
#include "evo/client/environment_view.hpp"
|
||||
#include "evo/client/launcher.hpp"
|
||||
#include "evo/client/organism_view.hpp"
|
||||
#include "evo/client/outcome_log.hpp"
|
||||
#include "evo/client/selection.hpp"
|
||||
#include "evo/client/ui_state.hpp"
|
||||
#include "evo/render/environment.hpp"
|
||||
#include "remote_session.hpp"
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <optional>
|
||||
|
||||
namespace evo::client_app {
|
||||
enum class Mode : std::uint8_t { launcher, fixture, remote };
|
||||
// Text-field storage for the connect form (bounded; never persisted).
|
||||
struct FormBuffers {
|
||||
std::array<char, client::max_field_bytes> endpoint{}, server_name{}, authority{}, grants{};
|
||||
void load(const client::ConnectForm& form);
|
||||
[[nodiscard]] client::ConnectForm form() const;
|
||||
};
|
||||
struct PanelView {
|
||||
Mode mode{Mode::launcher};
|
||||
const client::Launcher* launcher{};
|
||||
std::optional<client::LaunchError> form_error;
|
||||
bool remote_available{};
|
||||
const client::EnvironmentLayer* environment{};
|
||||
const client::OrganismLayer* organisms{};
|
||||
const client::Selection* selection{};
|
||||
const client::UiState* ui{};
|
||||
std::optional<RemoteStatus> remote;
|
||||
const client::OutcomeLog* outcomes{};
|
||||
int visible_organisms{-1}; // -1 when unknown.
|
||||
};
|
||||
struct PanelActions {
|
||||
bool fixture{}, connect{}, cancel{}, retry{}, back{}, ask_disconnect{};
|
||||
std::optional<std::uint64_t> dismiss_notice, confirm_dialog, cancel_dialog;
|
||||
};
|
||||
// Draws every panel for this frame. `display` may be changed by the layer selector.
|
||||
[[nodiscard]] PanelActions draw_panels(const PanelView& view, FormBuffers& form,
|
||||
render::EnvironmentDisplay& display);
|
||||
} // namespace evo::client_app
|
||||
Reference in New Issue
Block a user