mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Select/unselect all plot visibility.
This commit is contained in:
parent
f4f7e58e88
commit
a26ab263dd
@ -3496,6 +3496,22 @@ void View::DrawOptions()
|
|||||||
ImGui::TextDisabled( "(%zu)", m_worker.GetPlots().size() );
|
ImGui::TextDisabled( "(%zu)", m_worker.GetPlots().size() );
|
||||||
if( expand )
|
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() )
|
for( const auto& p : m_worker.GetPlots() )
|
||||||
{
|
{
|
||||||
ImGui::Checkbox( GetPlotName( p ), &Visible( p ) );
|
ImGui::Checkbox( GetPlotName( p ), &Visible( p ) );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user