| 747 | } |
| 748 | |
| 749 | void CEtwView::UpdateUI() { |
| 750 | auto ui = GetFrame()->GetUpdateUI(); |
| 751 | auto& tm = GetFrame()->GetTraceManager(); |
| 752 | |
| 753 | ui->UIEnable(ID_EDIT_COPYALL, !m_IsMonitoring || tm.IsPaused()); |
| 754 | ui->UIEnable(ID_FILE_SAVE, !m_IsMonitoring || tm.IsPaused()); |
| 755 | ui->UISetCheck(ID_VIEW_AUTOSCROLL, m_AutoScroll); |
| 756 | auto selected = m_List.GetSelectedIndex(); |
| 757 | ui->UIEnable(ID_EVENT_PROPERTIES, selected >= 0); |
| 758 | ui->UIEnable(ID_EDIT_COPY, selected >= 0); |
| 759 | ui->UIEnable(ID_EVENT_CALLSTACK, selected >= 0 && m_Events[selected]->GetStackEventData() != nullptr); |
| 760 | } |
| 761 | |
| 762 | void CEtwView::ApplyFilters(const FilterConfiguration& config) { |
| 763 | auto& tm = GetFrame()->GetTraceManager(); |
nothing calls this directly
no test coverage detected