GUI round 8: Errors column hover tooltip (full message list)
build-test-release / release (push) Successful in 10m2s
build-test-release / release (push) Successful in 10m2s
Item 12 (tooltip half): hovering an Errors cell now shows the full list of the
miner's error/event messages ("[Severity] text (component)", most severe first)
as a tooltip; the cell itself keeps the compact red summary.
wxDataViewCtrl has no per-cell tooltip API, and wx mouse-motion events are not
delivered to wx handlers on the native GTK control, so this uses GtkTreeView's
native "query-tooltip" signal directly (guarded by __WXGTK__): a per-cell
tooltip map (row, model column) -> text on the AttrListStore, populated from
Rust via a new dvlc_set_cell_tooltip bridge fn, and looked up by the signal
handler using dv->GTKColumnToWX(gcol)->GetModelColumn(). The map is populated on
every platform (a no-op where nothing reads it) so the non-GTK platform round
can wire its own tooltip surface later.
Local wx-rs bridge compile + full cargo check clean; patches 0002/0003
regenerated + validated.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y8h447BPyJR4fioYZvQ9bh
This commit is contained in:
@@ -694,6 +694,10 @@ impl App {
|
||||
_ => continue,
|
||||
};
|
||||
t.dvlc_set_cell(disp, ci, &encoded);
|
||||
// The Errors cell gets the full message list as a hover tooltip.
|
||||
if matches!(c, Column::Error) {
|
||||
t.dvlc_set_cell_tooltip(disp, ci, &r.errors.join("\n"));
|
||||
}
|
||||
}
|
||||
}
|
||||
if let Some(row) = top {
|
||||
|
||||
Reference in New Issue
Block a user