19namespace NAV::gui::widgets
35 for (
size_t i = startIdx; i < static_cast<size_t>(T::COUNT); i++)
37 const bool is_selected = (
static_cast<size_t>(enumeration) == i);
38 if (ImGui::Selectable(
NAV::to_string(
static_cast<T
>(i)), is_selected))
40 enumeration =
static_cast<T
>(i);
43 if (ImGui::IsItemHovered())
45 ImGui::SetTooltip(
"%s",
NAV::tooltip(
static_cast<T
>(i)));
51 ImGui::SetItemDefaultFocus();
const char * tooltip(vendor::RINEX::ObsHeader::MarkerTypes markerType)
Converts the enum to a string tooltip.