0
0
mirror of https://github.com/wolfpld/tracy.git synced 2026-01-18 17:11:26 +01:00

Use proper UTF ellipsis.

This commit is contained in:
Bartosz Taudul
2025-12-31 18:28:57 +01:00
parent 34faaeb314
commit 63a8b4cfb4
11 changed files with 37 additions and 37 deletions

View File

@@ -1169,7 +1169,7 @@ static void DrawContents()
{
static float rnTime = 0;
rnTime += ImGui::GetIO().DeltaTime;
tracy::TextCentered( "Fetching release notes..." );
tracy::TextCentered( "Fetching release notes" );
tracy::DrawWaitingDots( rnTime );
}
else
@@ -1211,9 +1211,9 @@ static void DrawContents()
auto totalProgress = progress.total.load( std::memory_order_relaxed );
if( totalProgress != 0 )
{
ImGui::OpenPopup( "Loading trace..." );
ImGui::OpenPopup( "Loading trace" );
}
if( ImGui::BeginPopupModal( "Loading trace...", nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings) )
if( ImGui::BeginPopupModal( "Loading trace", nullptr, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings) )
{
ImGui::PushFont( g_fonts.normal, FontNormal * 2.f );
ImGui::Spacing();
@@ -1233,37 +1233,37 @@ static void DrawContents()
switch( currProgress )
{
case tracy::LoadProgress::Initialization:
ImGui::TextUnformatted( "Initialization..." );
ImGui::TextUnformatted( "Initialization" );
break;
case tracy::LoadProgress::Locks:
ImGui::TextUnformatted( "Locks..." );
ImGui::TextUnformatted( "Locks" );
break;
case tracy::LoadProgress::Messages:
ImGui::TextUnformatted( "Messages..." );
ImGui::TextUnformatted( "Messages" );
break;
case tracy::LoadProgress::Zones:
ImGui::TextUnformatted( "CPU zones..." );
ImGui::TextUnformatted( "CPU zones" );
break;
case tracy::LoadProgress::GpuZones:
ImGui::TextUnformatted( "GPU zones..." );
ImGui::TextUnformatted( "GPU zones" );
break;
case tracy::LoadProgress::Plots:
ImGui::TextUnformatted( "Plots..." );
ImGui::TextUnformatted( "Plots" );
break;
case tracy::LoadProgress::Memory:
ImGui::TextUnformatted( "Memory..." );
ImGui::TextUnformatted( "Memory" );
break;
case tracy::LoadProgress::CallStacks:
ImGui::TextUnformatted( "Call stacks..." );
ImGui::TextUnformatted( "Call stacks" );
break;
case tracy::LoadProgress::FrameImages:
ImGui::TextUnformatted( "Frame images..." );
ImGui::TextUnformatted( "Frame images" );
break;
case tracy::LoadProgress::ContextSwitches:
ImGui::TextUnformatted( "Context switches..." );
ImGui::TextUnformatted( "Context switches" );
break;
case tracy::LoadProgress::ContextSwitchesPerCpu:
ImGui::TextUnformatted( "CPU context switches..." );
ImGui::TextUnformatted( "CPU context switches" );
break;
default:
assert( false );
@@ -1271,7 +1271,7 @@ static void DrawContents()
}
ImGui::ProgressBar( float( currProgress ) / totalProgress, ImVec2( 200 * dpiScale, 0 ) );
ImGui::TextUnformatted( "Progress..." );
ImGui::TextUnformatted( "Progress" );
auto subTotal = progress.subTotal.load( std::memory_order_relaxed );
auto subProgress = progress.subProgress.load( std::memory_order_relaxed );
if( subTotal == 0 )
@@ -1287,7 +1287,7 @@ static void DrawContents()
switch( viewShutdown.load( std::memory_order_relaxed ) )
{
case ViewShutdown::True:
ImGui::OpenPopup( "Capture cleanup..." );
ImGui::OpenPopup( "Capture cleanup" );
break;
case ViewShutdown::Join:
loadThread.join();
@@ -1300,7 +1300,7 @@ static void DrawContents()
default:
break;
}
if( ImGui::BeginPopupModal( "Capture cleanup...", nullptr, ImGuiWindowFlags_AlwaysAutoResize ) )
if( ImGui::BeginPopupModal( "Capture cleanup", nullptr, ImGuiWindowFlags_AlwaysAutoResize ) )
{
if( viewShutdown.load( std::memory_order_relaxed ) != ViewShutdown::True ) ImGui::CloseCurrentPopup();
ImGui::PushFont( g_fonts.normal, FontNormal * 2.f );

View File

@@ -84,7 +84,7 @@ void TracyLlm::Draw()
ImGui::PushFont( g_fonts.normal, FontBig );
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 ) * 0.5f ) );
TextCentered( ICON_FA_HOURGLASS );
TextCentered( "Please wait..." );
TextCentered( "Please wait" );
DrawWaitingDots( s_time );
ImGui::PopFont();
ImGui::End();
@@ -100,7 +100,7 @@ void TracyLlm::Draw()
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 7 ) * 0.5f ) );
TextCentered( ICON_FA_BOOK_BOOKMARK );
ImGui::Spacing();
TextCentered( "Building manual embeddings..." );
TextCentered( "Building manual embeddings" );
ImGui::Spacing();
DrawWaitingDots( s_time );
ImGui::TextUnformatted( "" );
@@ -543,11 +543,11 @@ void TracyLlm::Draw()
ImGui::SameLine();
if( disabled )
{
ImGui::TextUnformatted( "Stopping..." );
ImGui::TextUnformatted( "Stopping" );
}
else
{
ImGui::TextUnformatted( "Generating..." );
ImGui::TextUnformatted( "Generating" );
}
s_wasActive = true;
}
@@ -563,7 +563,7 @@ void TracyLlm::Draw()
buttonSize.x += ImGui::GetStyle().FramePadding.x * 2.0f + ImGui::GetStyle().ItemSpacing.x;
ImGui::PushItemWidth( ImGui::GetContentRegionAvail().x - buttonSize.x );
if( inputChanged ) ImGui::GetInputTextState( ImGui::GetCurrentWindow()->GetID( "##chat_input" ) )->ReloadUserBufAndMoveToEnd();
bool send = ImGui::InputTextWithHint( "##chat_input", "Write your question here...", m_input, InputBufferSize, ImGuiInputTextFlags_EnterReturnsTrue );
bool send = ImGui::InputTextWithHint( "##chat_input", "Write your question here", m_input, InputBufferSize, ImGuiInputTextFlags_EnterReturnsTrue );
ImGui::SameLine();
if( *m_input == 0 ) ImGui::BeginDisabled();
send |= ImGui::Button( buttonText );

View File

@@ -262,7 +262,7 @@ bool TracyLlmChat::Turn( TurnRole role, const nlohmann::json& json, bool think,
auto& name = json["name"].get_ref<const std::string&>();
auto& id = json["tool_call_id"].get_ref<const std::string&>();
char buf[1024];
snprintf( buf, sizeof( buf ), ICON_FA_REPLY " Tool response (%s/%s)...", name.c_str(), id.substr( 0, 8 ).c_str() );
snprintf( buf, sizeof( buf ), ICON_FA_REPLY " Tool response (%s/%s)", name.c_str(), id.substr( 0, 8 ).c_str() );
if( ImGui::TreeNode( buf ) )
{
std::string parsed;
@@ -339,7 +339,7 @@ void TracyLlmChat::ThinkScope( bool spacing )
if( spacing ) ImGui::Spacing();
ImGui::PushID( m_thinkIdx++ );
ImGui::PushStyleColor( ImGuiCol_Text, ThinkColor );
m_thinkOpen = ImGui::TreeNode( ICON_FA_LIGHTBULB " Internal thoughts..." );
m_thinkOpen = ImGui::TreeNode( ICON_FA_LIGHTBULB " Internal thoughts" );
}
void TracyLlmChat::PrintThink( const char* str, size_t size )

View File

@@ -11,7 +11,7 @@ namespace tracy
class TracyLlmChat
{
public:
static constexpr const char* ForgetMsg = "...";
static constexpr const char* ForgetMsg = "";
enum class TurnRole
{

View File

@@ -1544,7 +1544,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
{
ImGui::PopStyleVar();
ImGui::PopItemFlag();
TooltipIfHovered( "Please wait, processing data..." );
TooltipIfHovered( "Please wait, processing data" );
}
else
{
@@ -1604,7 +1604,7 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
ImGui::Checkbox( "Limit range", &val );
ImGui::PopItemFlag();
ImGui::PopStyleVar();
TooltipIfHovered( "Please wait, processing data..." );
TooltipIfHovered( "Please wait, processing data" );
}
else
{
@@ -1868,7 +1868,7 @@ void SourceView::RenderSymbolSourceView( const AddrStatData& as, Worker& worker,
{
ImGui::PopStyleVar();
ImGui::PopItemFlag();
TooltipIfHovered( "Please wait, processing data..." );
TooltipIfHovered( "Please wait, processing data" );
}
else
{
@@ -2706,7 +2706,7 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker
}
if( ssz != v.second.source.size() )
{
ImGui::TextUnformatted( "..." );
ImGui::TextUnformatted( "" );
}
ImGui::EndTooltip();
SetFont();

View File

@@ -701,7 +701,7 @@ bool View::DrawImpl()
TextCentered( ICON_FA_WIFI );
ImGui::Spacing();
ImGui::PopFont();
ImGui::TextUnformatted( "Waiting for connection..." );
ImGui::TextUnformatted( "Waiting for connection" );
DrawWaitingDots( s_time );
ImGui::End();
return keepOpen;

View File

@@ -265,7 +265,7 @@ void View::DrawCompare()
ImGui::PushFont( g_fonts.normal, FontBig );
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 - ty ) * 0.5f ) );
TextCentered( ICON_FA_FROG );
TextCentered( "Please wait, computing data..." );
TextCentered( "Please wait, computing data" );
ImGui::PopFont();
DrawWaitingDots( s_time );
ImGui::End();

View File

@@ -271,7 +271,7 @@ void View::DrawFindZone()
ImGui::PushFont( g_fonts.normal, FontBig );
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 - ty ) * 0.5f ) );
TextCentered( ICON_FA_CROW );
TextCentered( "Please wait, computing data..." );
TextCentered( "Please wait, computing data" );
ImGui::PopFont();
DrawWaitingDots( s_time );
ImGui::End();

View File

@@ -245,7 +245,7 @@ void View::DrawNotificationArea()
if( m_saveThreadState.load( std::memory_order_relaxed ) == SaveThreadState::Saving )
{
ImGui::SameLine();
ImGui::TextUnformatted( ICON_FA_FLOPPY_DISK " Saving trace..." );
ImGui::TextUnformatted( ICON_FA_FLOPPY_DISK " Saving trace" );
m_notificationTime = 0;
}
else if( m_notificationTime > 0 )

View File

@@ -51,7 +51,7 @@ void View::DrawStatistics()
ImGui::PushFont( g_fonts.normal, FontBig );
ImGui::Dummy( ImVec2( 0, ( ImGui::GetContentRegionAvail().y - ImGui::GetTextLineHeight() * 2 - ty ) * 0.5f ) );
TextCentered( ICON_FA_HIPPO );
TextCentered( "Please wait, computing data..." );
TextCentered( "Please wait, computing data" );
ImGui::PopFont();
DrawWaitingDots( s_time );
ImGui::End();
@@ -104,7 +104,7 @@ void View::DrawStatistics()
ImGui::Spacing();
ImGui::Separator();
ImGui::PopStyleVar();
ImGui::TextWrapped( "Please wait, computing data..." );
ImGui::TextWrapped( "Please wait, computing data" );
DrawWaitingDots( s_time );
ImGui::End();
return;
@@ -327,7 +327,7 @@ void View::DrawStatistics()
ImGui::Spacing();
ImGui::Separator();
ImGui::PopStyleVar();
ImGui::TextWrapped( "Please wait, computing data..." );
ImGui::TextWrapped( "Please wait, computing data" );
DrawWaitingDots( s_time );
ImGui::End();
return;

View File

@@ -798,7 +798,7 @@ void View::DrawZoneInfoWindow()
{
if( !mem.plot )
{
ImGui::Text( "Please wait, computing data..." );
ImGui::Text( "Please wait, computing data" );
DrawWaitingDots( s_time );
}
else