31 struct no_response : std::logic_error { no_response() : std::logic_error(
"neogfx::message_box::no_response") {} };
82 std::optional<standard_button> iResponse;
dialog_result exec() override
static standard_button error(i_widget &aParent, std::string const &aTitle, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Ok)
static standard_button error(i_widget &aParent, std::string const &aTitle, std::string const &aText, standard_button aButtons=standard_button::Ok)
text_widget & detailed_text()
bool has_response() const
static standard_button warning(std::string const &aTitle, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Ok)
const text_widget & text() const
message_box(i_widget &aParent, std::string const &aTitle, const image &aIcon, std::string const &aText, standard_button aButtons=standard_button::Ok)
standard_button response() const
static standard_button stop(i_widget &aParent, std::string const &aTitle, std::string const &aText, standard_button aButtons=standard_button::Ok)
message_box(std::string const &aTitle, const image &aIcon, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Ok)
static standard_button warning(i_widget &aParent, std::string const &aTitle, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Ok)
static standard_button information(std::string const &aTitle, std::string const &aText, standard_button aButtons=standard_button::Ok)
static standard_button stop(std::string const &aTitle, std::string const &aText, standard_button aButtons=standard_button::Ok)
const image_widget & icon() const
message_box(std::string const &aTitle, const image &aIcon, std::string const &aText, standard_button aButtons=standard_button::Ok)
size maximum_size(optional_size const &aAvailableSpace={}) const override
static standard_button stop(std::string const &aTitle, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Ok)
static standard_button question(i_widget &aParent, std::string const &aTitle, std::string const &aText, standard_button aButtons=standard_button::Yes|standard_button::No)
static standard_button information(i_widget &aParent, std::string const &aTitle, std::string const &aText, standard_button aButtons=standard_button::Ok)
static standard_button error(std::string const &aTitle, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Ok)
static standard_button question(std::string const &aTitle, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Yes|standard_button::No)
static standard_button error(std::string const &aTitle, std::string const &aText, standard_button aButtons=standard_button::Ok)
static standard_button stop(i_widget &aParent, std::string const &aTitle, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Ok)
static standard_button warning(std::string const &aTitle, std::string const &aText, standard_button aButtons=standard_button::Ok)
static standard_button question(i_widget &aParent, std::string const &aTitle, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Yes|standard_button::No)
void set_response(standard_button aResponse)
message_box(i_widget &aParent, std::string const &aTitle, const image &aIcon, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Ok)
static standard_button warning(i_widget &aParent, std::string const &aTitle, std::string const &aText, standard_button aButtons=standard_button::Ok)
static standard_button question(std::string const &aTitle, std::string const &aText, standard_button aButtons=standard_button::Yes|standard_button::No)
static standard_button information(std::string const &aTitle, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Ok)
static standard_button information(i_widget &aParent, std::string const &aTitle, std::string const &aText, std::string const &aDetailedText, standard_button aButtons=standard_button::Ok)
const text_widget & detailed_text() const