Redo inline options UI.

This commit is contained in:
Bartosz Taudul 2024-03-13 20:04:38 +01:00
parent 6c34e02dc2
commit 390b3d9c50
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -300,14 +300,6 @@ void View::DrawStatistics()
ImGui::SameLine(); ImGui::SameLine();
ImGui::Spacing(); ImGui::Spacing();
ImGui::SameLine(); ImGui::SameLine();
ImGui::Checkbox( ICON_FA_LAYER_GROUP " Aggregate", &m_mergeInlines );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::Checkbox( "Relative", &m_relativeInlines );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::Checkbox( ICON_FA_AT " Address", &m_statShowAddress ); ImGui::Checkbox( ICON_FA_AT " Address", &m_statShowAddress );
ImGui::SameLine(); ImGui::SameLine();
ImGui::Spacing(); ImGui::Spacing();
@ -459,7 +451,7 @@ void View::DrawStatistics()
ImGui::Separator(); ImGui::Separator();
ImGui::AlignTextToFramePadding(); ImGui::AlignTextToFramePadding();
TextDisabledUnformatted( "Filter results" ); TextDisabledUnformatted( "Name" );
ImGui::SameLine(); ImGui::SameLine();
m_statisticsFilter.Draw( ICON_FA_FILTER "###resultFilter", 200 ); m_statisticsFilter.Draw( ICON_FA_FILTER "###resultFilter", 200 );
ImGui::SameLine(); ImGui::SameLine();
@ -472,7 +464,7 @@ void View::DrawStatistics()
ImGui::SameLine(); ImGui::SameLine();
if( m_statMode == 1 ) if( m_statMode == 1 )
{ {
TextDisabledUnformatted( "Image name" ); TextDisabledUnformatted( "Image" );
ImGui::SameLine(); ImGui::SameLine();
m_statisticsImageFilter.Draw( ICON_FA_FILTER "###imageFilter", 200 ); m_statisticsImageFilter.Draw( ICON_FA_FILTER "###imageFilter", 200 );
ImGui::SameLine(); ImGui::SameLine();
@ -550,6 +542,25 @@ void View::DrawStatistics()
} }
} }
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::SeparatorEx( ImGuiSeparatorFlags_Vertical );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
if( m_statSeparateInlines ) ImGui::BeginDisabled();
ImGui::TextUnformatted( "Inlines" );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::Checkbox( ICON_FA_LAYER_GROUP " Aggregate", &m_mergeInlines );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::Checkbox( ICON_FA_LINK " Base relative", &m_relativeInlines );
if( m_statSeparateInlines ) ImGui::EndDisabled();
ImGui::Separator(); ImGui::Separator();
ImGui::PopStyleVar(); ImGui::PopStyleVar();