MCPcopy Create free account
hub / github.com/BeneficialCode/WinArk / UpdateUI

Method UpdateUI

WinArk/EtwView.cpp:749–760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747}
748
749void 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
762void CEtwView::ApplyFilters(const FilterConfiguration& config) {
763 auto& tm = GetFrame()->GetTraceManager();

Callers

nothing calls this directly

Calls 3

GetUpdateUIMethod · 0.80
IsPausedMethod · 0.80
GetStackEventDataMethod · 0.80

Tested by

no test coverage detected