Use combo box for smart/entry/sample location selection.

This commit is contained in:
Bartosz Taudul 2020-05-30 15:24:27 +02:00
parent 8d149c59f8
commit 5955efabb0

View File

@ -11540,11 +11540,9 @@ void View::DrawStatistics()
ImGui::SameLine();
ImGui::TextUnformatted( "Location:" );
ImGui::SameLine();
ImGui::RadioButton( "Smart", &m_statSampleLocation, 2 );
ImGui::SameLine();
ImGui::RadioButton( "Entry", &m_statSampleLocation, 0 );
ImGui::SameLine();
ImGui::RadioButton( "Sample", &m_statSampleLocation, 1 );
const char* locationTable = "Entry\0Sample\0Smart";
ImGui::SetNextItemWidth( ImGui::CalcTextSize( "Sample" ).x + ImGui::GetTextLineHeight() * 2 );
ImGui::Combo( "##location", &m_statSampleLocation, locationTable );
ImGui::Separator();
const auto& symMap = m_worker.GetSymbolMap();