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

Function CreateBlockText

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

Source from the content-addressed store, hash-verified

76};
77
78wxString CreateBlockText(const mdf::detail::MdfBlock&block) {
79 std::ostringstream block_string;
80 block_string << block.BlockType();
81 const auto comment = block.Comment();
82 if (!comment.empty()) {
83 block_string << " (" << comment << ")";
84 }
85 return wxString::FromUTF8(block_string.str());
86}
87
88int64_t GetBlockId(const wxTreeCtrl& list, const wxTreeItemId& item) {
89 if (!item.IsOk()) {

Callers 8

RedrawMdf3BlocksMethod · 0.85
RedrawMdf4BlocksMethod · 0.85
RedrawHistoryMethod · 0.85
RedrawAttachmentMethod · 0.85
RedrawEventMethod · 0.85
RedrawDataListMethod · 0.85
RedrawCnListMethod · 0.85
RedrawDgBlockMethod · 0.85

Calls 3

emptyMethod · 0.80
BlockTypeMethod · 0.45
CommentMethod · 0.45

Tested by

no test coverage detected