From 2a0d6ce4ad7b7078cc4173fbffe3538d6df3697c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 28 Aug 2019 18:36:05 +0200 Subject: [PATCH] Add notification area indicator for hidden timeline items. --- server/TracyView.cpp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b03e7560..cec75fa1 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -653,6 +653,37 @@ bool View::DrawImpl() } } } + { + bool hidden = false; + for( auto& v : m_visData ) + { + if( !v.second.visible ) + { + hidden = true; + break; + } + } + if( hidden ) + { + ImGui::SameLine(); +#ifdef TRACY_EXTENDED_FONT + TextColoredUnformatted( ImVec4( 1, 0.5, 0, 1 ), ICON_FA_EYE_SLASH ); +#else + TextColoredUnformatted( ImVec4( 1, 0.5, 0, 1 ), "hidden" ); +#endif + if( ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + ImGui::TextUnformatted( "Some timeline entries are hidden." ); + ImGui::EndTooltip(); + + if( ImGui::IsMouseClicked( 0 ) ) + { + m_showOptions = true; + } + } + } + } if( !m_worker.IsBackgroundDone() ) { ImGui::SameLine();