mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Allow performing range copies from one to another.
This commit is contained in:
+11
-1
@@ -14672,7 +14672,7 @@ void View::DrawRanges()
|
||||
ImGui::End();
|
||||
}
|
||||
|
||||
void View::DrawRangeEntry( Range& range, const char* label, uint32_t color, const char* popupLabel )
|
||||
void View::DrawRangeEntry( Range& range, const char* label, uint32_t color, const char* popupLabel, int id )
|
||||
{
|
||||
SmallColorBox( color );
|
||||
ImGui::SameLine();
|
||||
@@ -14716,6 +14716,16 @@ void View::DrawRangeEntry( Range& range, const char* label, uint32_t color, cons
|
||||
}
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
if( id != 0 )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
if( SmallButtonDisablable( ICON_FA_SEARCH " Copy from find zone", m_findZone.range.min == 0 && m_findZone.range.max == 0 ) ) range = m_findZone.range;
|
||||
}
|
||||
if( id != 1 )
|
||||
{
|
||||
ImGui::SameLine();
|
||||
if( SmallButtonDisablable( ICON_FA_SORT_AMOUNT_UP " Copy from statistics", m_statRange.min == 0 && m_statRange.max == 0 ) ) range = m_findZone.range;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user