1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Direct selection of find zone callstack.

This commit is contained in:
Bartosz Taudul 2021-11-13 15:31:48 +01:00
parent 151eadc69e
commit 14b469f219
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -11074,11 +11074,20 @@ void View::DrawFindZone()
}
ImGui::SameLine();
ImGui::Text( "%s / %s", RealToString( m_findZone.selCs + 1 ), RealToString( gsz ) );
if( ImGui::IsItemClicked() ) ImGui::OpenPopup( "FindZoneCallstackPopup" );
ImGui::SameLine();
if( ImGui::SmallButton( " " ICON_FA_CARET_RIGHT " " ) )
{
m_findZone.selCs = std::min<int>( m_findZone.selCs + 1, gsz - 1 );
}
if( ImGui::BeginPopup( "FindZoneCallstackPopup" ) )
{
int sel = m_findZone.selCs + 1;
ImGui::SetNextItemWidth( 120 );
const bool clicked = ImGui::InputInt( "##findZoneCallstack", &sel, 1, 100, ImGuiInputTextFlags_EnterReturnsTrue );
if( clicked ) m_findZone.selCs = std::min( std::max( sel, 1 ), int( gsz ) ) - 1;
ImGui::EndPopup();
}
ImGui::SameLine();
TextFocused( "Count:", RealToString( group->second.zones.size() ) );