MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / RedrawEvent

Method RedrawEvent

lib/mdflib/mdfviewer/src/childframe.cpp:386–399  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

384}
385
386void ChildFrame::RedrawEvent(const detail::Hd4Block &hd, const wxTreeItemId &root) {
387 if (hd.Ev4().empty()) {
388 return;
389 }
390 auto ev_root = left_->AppendItem(root, "Event", TREE_EV_ROOT, TREE_EV_ROOT,
391 new BlockAddress(kEventPosition));
392 for (const auto& ev4 : hd.Ev4()) {
393 if (!ev4) {
394 continue;
395 }
396 left_->AppendItem(ev_root, CreateBlockText(*ev4),
397 TREE_EV, TREE_EV, new BlockAddress(ev4->FilePosition()));
398 }
399}
400
401
402void ChildFrame::RedrawDataList(const mdf::detail::DataListBlock& dg, const wxTreeItemId& root) {

Callers

nothing calls this directly

Calls 3

CreateBlockTextFunction · 0.85
emptyMethod · 0.80
FilePositionMethod · 0.45

Tested by

no test coverage detected