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.
const std::string & cancel_label() const
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.
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.
bool single_button() const
std::vector< std::string > list_type
const std::string & ok_label() const
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).
virtual const std::string & window_id() const override
The ID of the window to build.
std::unique_ptr< MIX_Audio, decltype(&MIX_DestroyAudio)> value
static map_location::direction s