From f4f7e58e88a6de63798ace7e2a3b9eab4f3f0892 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 14 Jul 2018 00:08:37 +0200 Subject: [PATCH] Add select/unselect all threads visibility option. --- server/TracyView.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index af23871d..c299eed3 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3510,6 +3510,22 @@ void View::DrawOptions() ImGui::TextDisabled( "(%zu)", m_worker.GetThreadData().size() ); if( expand ) { + if( ImGui::SmallButton( "Select all" ) ) + { + for( const auto& t : m_worker.GetThreadData() ) + { + Visible( t ) = true; + } + } + ImGui::SameLine(); + if( ImGui::SmallButton( "Unselect all" ) ) + { + for( const auto& t : m_worker.GetThreadData() ) + { + Visible( t ) = false; + } + } + int idx = 0; for( const auto& t : m_worker.GetThreadData() ) {