Convert namespaces combo box to radio buttons.

This commit is contained in:
Bartosz Taudul 2019-11-01 20:23:22 +01:00
parent 13b656fe61
commit f88ec0c141

View File

@ -6957,11 +6957,22 @@ void View::DrawOptions()
ImGui::RadioButton( "Source location dynamic", &ival, 2 );
ImGui::PopStyleVar();
ImGui::Unindent();
ImGui::Unindent();
m_vd.dynamicColors = ival;
int ns = (int)m_namespace;
ImGui::Combo( "Namespaces", &ns, "Full\0Shortened\0None\0" );
m_namespace = (Namespace)ns;
ival = (int)m_namespace;
#ifdef TRACY_EXTENDED_FONT
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() )
{