mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Keep find zone, compare headers at top.
This commit is contained in:
parent
f2cdb64aae
commit
a7ef99d0b0
@ -5885,7 +5885,7 @@ void View::DrawFindZone()
|
||||
if( m_shortcut == ShortcutAction::OpenFind ) ImGui::SetNextWindowFocus();
|
||||
|
||||
ImGui::SetNextWindowSize( ImVec2( 520, 800 ), ImGuiCond_FirstUseEver );
|
||||
ImGui::Begin( "Find zone", &m_findZone.show );
|
||||
ImGui::Begin( "Find zone", &m_findZone.show, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse );
|
||||
#ifdef TRACY_NO_STATISTICS
|
||||
ImGui::TextWrapped( "Collection of statistical data is disabled in this build." );
|
||||
ImGui::TextWrapped( "Rebuild without the TRACY_NO_STATISTICS macro to enable zone search." );
|
||||
@ -5937,6 +5937,7 @@ void View::DrawFindZone()
|
||||
if( !m_findZone.match.empty() )
|
||||
{
|
||||
ImGui::Separator();
|
||||
ImGui::BeginChild( "##findzone" );
|
||||
bool expand = ImGui::TreeNodeEx( "Matched source locations", ImGuiTreeNodeFlags_DefaultOpen );
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( "(%zu)", m_findZone.match.size() );
|
||||
@ -7032,6 +7033,7 @@ void View::DrawFindZone()
|
||||
m_findZone.selGroup = m_findZone.Unselected;
|
||||
m_findZone.ResetSelection();
|
||||
}
|
||||
ImGui::EndChild();
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -7130,7 +7132,7 @@ void View::DrawZoneList( const Vector<ZoneEvent*>& zones )
|
||||
void View::DrawCompare()
|
||||
{
|
||||
ImGui::SetNextWindowSize( ImVec2( 590, 800 ), ImGuiCond_FirstUseEver );
|
||||
ImGui::Begin( "Compare traces", &m_compare.show );
|
||||
ImGui::Begin( "Compare traces", &m_compare.show, ImGuiWindowFlags_NoScrollbar | ImGuiWindowFlags_NoScrollWithMouse );
|
||||
#ifdef TRACY_NO_STATISTICS
|
||||
ImGui::TextWrapped( "Collection of statistical data is disabled in this build." );
|
||||
ImGui::TextWrapped( "Rebuild without the TRACY_NO_STATISTICS macro to enable trace comparison." );
|
||||
@ -7279,6 +7281,9 @@ void View::DrawCompare()
|
||||
return;
|
||||
}
|
||||
|
||||
ImGui::Separator();
|
||||
ImGui::BeginChild( "##compare" );
|
||||
|
||||
if( ImGui::TreeNodeEx( "Matched source locations", ImGuiTreeNodeFlags_DefaultOpen ) )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
@ -7968,6 +7973,7 @@ void View::DrawCompare()
|
||||
ImGui::TreePop();
|
||||
}
|
||||
|
||||
ImGui::EndChild();
|
||||
#endif
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user