| 369 | } |
| 370 | |
| 371 | void CMainFrame::UpdateStatusBar() |
| 372 | { |
| 373 | auto isearch = GetView().GetHighlightText(); |
| 374 | std::wstring search = wstringbuilder() << L"Searching: \"" << isearch << L"\""; |
| 375 | UISetText(ID_DEFAULT_PANE, |
| 376 | isearch.empty() ? (m_pLocalReader ? L"Ready" : L"Paused") : search.c_str()); |
| 377 | UISetText(ID_SELECTION_PANE, GetSelectionInfoText(L"Selected", GetView().GetSelectedRange()).c_str()); |
| 378 | UISetText(ID_VIEW_PANE, GetSelectionInfoText(L"View", GetView().GetViewRange()).c_str()); |
| 379 | UISetText(ID_LOGFILE_PANE, GetSelectionInfoText(L"Log", GetLogFileRange()).c_str()); |
| 380 | |
| 381 | size_t memoryUsage = ProcessInfo::GetPrivateBytes() - m_initialPrivateBytes; |
| 382 | if (memoryUsage < 0) |
| 383 | memoryUsage = 0; |
| 384 | UISetText(ID_MEMORY_PANE, FormatBytes(memoryUsage).c_str()); |
| 385 | } |
| 386 | |
| 387 | void CMainFrame::ProcessLines(const Lines& lines) |
| 388 | { |
nothing calls this directly
no test coverage detected