From 237bb06dd60c2e0b5d0c71374e927067d00828c0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 8 Aug 2018 18:40:31 +0200 Subject: [PATCH] Move frame set selection button to the right. --- server/TracyView.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 30429f67..50f666fa 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -422,6 +422,23 @@ bool View::DrawImpl() ImGui::SameLine(); if( ImGui::Button( "Compare" ) ) m_compare.show = true; ImGui::SameLine(); + if( ImGui::SmallButton( "<" ) ) ZoomToPrevFrame(); + ImGui::SameLine(); + { + const auto vis = Visible( m_frames ); + if( !vis ) + { + ImGui::PushStyleColor( ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled] ); + } + ImGui::Text( "%s: %s", m_frames->name == 0 ? "Frames" : m_worker.GetString( m_frames->name ), RealToString( m_worker.GetFrameCount( *m_frames ), true ) ); + if( !vis ) + { + ImGui::PopStyleColor(); + } + } + ImGui::SameLine(); + if( ImGui::SmallButton( ">" ) ) ZoomToNextFrame(); + ImGui::SameLine(); if( ImGui::BeginCombo( "##frameCombo", nullptr, ImGuiComboFlags_NoPreview ) ) { auto& frames = m_worker.GetFrames(); @@ -440,23 +457,6 @@ bool View::DrawImpl() ImGui::EndCombo(); } ImGui::SameLine(); - if( ImGui::SmallButton( "<" ) ) ZoomToPrevFrame(); - ImGui::SameLine(); - { - const auto vis = Visible( m_frames ); - if( !vis ) - { - ImGui::PushStyleColor( ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled] ); - } - ImGui::Text( "%s: %s", m_frames->name == 0 ? "Frames" : m_worker.GetString( m_frames->name ), RealToString( m_worker.GetFrameCount( *m_frames ), true ) ); - if( !vis ) - { - ImGui::PopStyleColor(); - } - } - ImGui::SameLine(); - if( ImGui::SmallButton( ">" ) ) ZoomToNextFrame(); - ImGui::SameLine(); ImGui::Text( "Time span: %-10s View span: %-10s Zones: %-13s Queue delay: %s Timer resolution: %s", TimeToString( m_worker.GetLastTime() - m_worker.GetTimeBegin() ), TimeToString( m_zvEnd - m_zvStart ), RealToString( m_worker.GetZoneCount(), true ), TimeToString( m_worker.GetDelay() ), TimeToString( m_worker.GetResolution() ) ); DrawFrames(); DrawZones();