mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Convert namespaces combo box to radio buttons.
This commit is contained in:
parent
13b656fe61
commit
f88ec0c141
@ -6957,11 +6957,22 @@ void View::DrawOptions()
|
|||||||
ImGui::RadioButton( "Source location dynamic", &ival, 2 );
|
ImGui::RadioButton( "Source location dynamic", &ival, 2 );
|
||||||
ImGui::PopStyleVar();
|
ImGui::PopStyleVar();
|
||||||
ImGui::Unindent();
|
ImGui::Unindent();
|
||||||
ImGui::Unindent();
|
|
||||||
m_vd.dynamicColors = ival;
|
m_vd.dynamicColors = ival;
|
||||||
int ns = (int)m_namespace;
|
ival = (int)m_namespace;
|
||||||
ImGui::Combo( "Namespaces", &ns, "Full\0Shortened\0None\0" );
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
m_namespace = (Namespace)ns;
|
ImGui::TextUnformatted( ICON_FA_BOX_OPEN " Namespaces" );
|
||||||
|
#else
|
||||||
|
ImGui::TextUnformatted( "Namespaces" );
|
||||||
|
#endif
|
||||||
|
ImGui::Indent();
|
||||||
|
ImGui::PushStyleVar( ImGuiStyleVar_FramePadding, ImVec2( 0, 0 ) );
|
||||||
|
ImGui::RadioButton( "Full", &ival, 0 );
|
||||||
|
ImGui::RadioButton( "Shortened", &ival, 1 );
|
||||||
|
ImGui::RadioButton( "None", &ival, 2 );
|
||||||
|
ImGui::PopStyleVar();
|
||||||
|
ImGui::Unindent();
|
||||||
|
m_namespace = (Namespace)ival;
|
||||||
|
ImGui::Unindent();
|
||||||
|
|
||||||
if( !m_worker.GetLockMap().empty() )
|
if( !m_worker.GetLockMap().empty() )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user