Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-03-15 19:26:12 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-03-15 19:26:12 +0300
commit4be2aa0682162e06de2b572ccf0ed825dc275f39 (patch)
tree0333f3458dbc643d02988290fb4ce8032c5fa40b
parentba4b261ae45e36d230a8f223282177c5ca41df25 (diff)
Allow adding full-view annotations.
-rw-r--r--server/TracyView.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp
index 27513c37..547806aa 100644
--- a/server/TracyView.cpp
+++ b/server/TracyView.cpp
@@ -16135,9 +16135,20 @@ void View::DrawAnnotationList()
ImGui::SetNextWindowSize( ImVec2( 600 * scale, 300 * scale ), ImGuiCond_FirstUseEver );
ImGui::Begin( "Annotation list", &m_showAnnotationList );
if( ImGui::GetCurrentWindowRead()->SkipItems ) { ImGui::End(); return; }
+
+ if( ImGui::Button( ICON_FA_PLUS " Add annotation" ) )
+ {
+ AddAnnotation( m_vd.zvStart, m_vd.zvEnd );
+ }
+
+ ImGui::SameLine();
+ ImGui::SeparatorEx( ImGuiSeparatorFlags_Vertical );
+ ImGui::SameLine();
+
if( m_annotations.empty() )
{
ImGui::TextWrapped( "No annotations." );
+ ImGui::Separator();
ImGui::End();
return;
}