33 bool title_uses_markup =
false,
34 bool message_uses_markup =
false);
89 virtual const std::string&
window_id()
const override;
Main class to show messages to the user.
Abstract base class for all modal dialogs.
void set_single_button(bool value)
Sets whether the Cancel button should be hidden or not.
virtual void pre_show() override
Actions to be taken before showing the window.
virtual void post_show() override
Actions to be taken after the window has been shown.
const std::string & ok_label() const
void set_cancel_label(const std::string &s)
Sets the caption for the Cancel button.
void set_ok_label(const std::string &s)
Sets the caption for the OK button.
virtual const std::string & window_id() const override
The ID of the window to build.
bool single_button() const
std::vector< std::string > list_type
int selected_index() const
Returns the selected item index after displaying.
std::string cancel_label_
void set_selected_index(int index)
Sets the initially selected item index (-1 by default).
const std::string & cancel_label() const
simple_item_selector(const std::string &title, const std::string &message, const list_type &items, bool title_uses_markup=false, bool message_uses_markup=false)
std::size_t index(std::string_view str, const std::size_t index)
Codepoint index corresponding to the nth character in a UTF-8 string.
static map_location::direction s