15 #ifndef GUI_DIALOGS_MESSAGE_HPP_INCLUDED
16 #define GUI_DIALOGS_MESSAGE_HPP_INCLUDED
40 const bool message_use_markup)
173 const bool auto_close =
true,
174 const bool message_use_markup =
false);
196 bool message_use_markup =
false,
197 bool title_use_markup =
false);
209 bool message_use_markup =
false);
void set_title(const std::string &title)
void show_error_message(CVideo &video, const std::string &message, bool message_use_markup)
Shows an error message to the user.
void set_message(const std::string &message)
std::vector< tbutton_status > buttons_
Holds a pointer to the buttons.
Main class to show messages to the user.
std::string title_
The title for the dialog.
GLenum GLsizei GLenum GLenum const GLvoid * image
Helper to implement private functions without modifying the header.
base class of top level items, the only item which needs to store the final canvases to draw on ...
A class inherited from ttext_box that displays its input as stars.
Abstract base class for all dialogs.
void set_button_retval(const tbutton_id button, const int retval)
void show_message(CVideo &video, const std::string &title, const std::string &message, const std::string &button_caption, const bool auto_close, const bool message_use_markup)
Shows a message to the user.
Shows an ok and cancel button.
tbutton_style
Selects the style of the buttons to be shown.
std::string message_
The message to show to the user.
bool message_use_markup_
Whether to enable formatting markup for the dialog message.
void set_auto_close(const bool auto_close)
GLuint GLuint GLsizei count
void set_image(const std::string &image)
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
bool auto_close_
Does the window need to use click_dismiss when the dialog doesn't need a scrollbar.
void pre_show(twindow &window)
Inherited from tdialog.
std::string image_
The image which is shown in the dialog.
tmessage(const std::string &title, const std::string &message, const bool auto_close, const bool message_use_markup)
void post_show(twindow &window)
Inherited from tdialog.
void set_button_visible(const tbutton_id button, const twidget::tvisible::scoped_enum visible)
this module manages the cache of images.
GLsizei GLenum GLuint GLuint GLsizei char * message
GLsizei const GLcharARB ** string
Shows a yes and no button.
void set_button_caption(const tbutton_id button, const std::string &caption)