From fd41b4927add8fdbba2d58c1170d869a9f0f06f0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 9 Apr 2018 16:15:40 +0200 Subject: [PATCH] Allow selecting/unselecting all locks for display. --- NEWS | 1 + server/TracyView.cpp | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/NEWS b/NEWS index 68eee624..11a085fa 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,7 @@ v0.3 (xxxx-xx-xx) zone info window. - Fixed regression with lock announce processing that appeared during worker/viewer split. +- Allow selecting/unselecting all locks for display. v0.2 (2018-04-05) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 40637f0f..46c13a2f 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2783,6 +2783,22 @@ void View::DrawOptions() } if( expand ) { + if( ImGui::SmallButton( "Select all" ) ) + { + for( const auto& l : m_worker.GetLockMap() ) + { + Visible( &l.second ) = true; + } + } + ImGui::SameLine(); + if( ImGui::SmallButton( "Unselect all" ) ) + { + for( const auto& l : m_worker.GetLockMap() ) + { + Visible( &l.second ) = false; + } + } + for( const auto& l : m_worker.GetLockMap() ) { if( l.second.valid )