MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / ProcessLines

Method ProcessLines

DebugView++/MainFrame.cpp:387–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387void CMainFrame::ProcessLines(const Lines& lines)
388{
389 if (lines.empty())
390 return;
391
392 // design decision: filtering is done on the UI thread, see CLogView::Add
393 // changing this would introduces extra thread and thus complexity. Do that only if it solves a problem.
394
395 int views = GetViewCount();
396 for (int i = 0; i < views; ++i)
397 GetView(i).BeginUpdate();
398
399 for (auto& line : lines)
400 AddMessage(Message(line.time, line.systemTime, line.pid, line.processName, line.message));
401
402 for (int i = 0; i < views; ++i)
403 {
404 if (GetView(i).EndUpdate() && GetTabCtrl().GetCurSel() != i)
405 {
406 SetModifiedMark(i, true);
407 GetTabCtrl().UpdateLayout();
408 GetTabCtrl().Invalidate();
409 }
410 }
411}
412
413bool CMainFrame::OnUpdate()
414{

Callers

nothing calls this directly

Calls 4

MessageClass · 0.85
BeginUpdateMethod · 0.80
EndUpdateMethod · 0.80
UpdateLayoutMethod · 0.80

Tested by

no test coverage detected