From a26ab263dd50b56838a802e6ed56f79aaf087276 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 14 Jul 2018 00:10:38 +0200 Subject: [PATCH] Select/unselect all plot visibility. --- server/TracyView.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index c299eed3..ea3b086b 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3496,6 +3496,22 @@ void View::DrawOptions() ImGui::TextDisabled( "(%zu)", m_worker.GetPlots().size() ); if( expand ) { + if( ImGui::SmallButton( "Select all" ) ) + { + for( const auto& p : m_worker.GetPlots() ) + { + Visible( p ) = true; + } + } + ImGui::SameLine(); + if( ImGui::SmallButton( "Unselect all" ) ) + { + for( const auto& p : m_worker.GetPlots() ) + { + Visible( p ) = false; + } + } + for( const auto& p : m_worker.GetPlots() ) { ImGui::Checkbox( GetPlotName( p ), &Visible( p ) );