15 #ifndef SHOW_DIALOG_HPP_INCLUDED
16 #define SHOW_DIALOG_HPP_INCLUDED
75 const style& dialog_style=default_style,
76 bool auto_restore=
true, std::vector<button*>* buttons=
nullptr,
77 button* help_button=
nullptr);
192 const std::vector<std::string>* menu_items=
nullptr,
193 const std::vector<preview_pane*>* preview_panes=
nullptr,
196 const int text_widget_max_chars = 256,
197 std::vector<check_item>*
options=
nullptr,
200 const dialog_frame::style* dialog_style=
nullptr,
201 std::vector<dialog_button_info>* buttons=
nullptr,
202 const menu::sorter* sorter=
nullptr,
static const style preview_style
void check_quit(CVideo &video)
std::vector< events::sdl_handler * > sdl_handler_vector
static const style default_style
void set_dirty(bool dirty=true)
GLuint GLuint GLsizei GLenum type
std::vector< button * > * buttons_
style(std::string const &p, int br)
surface_restorer * restorer_
virtual bool show_above() const
GLint GLint GLint GLint GLint GLint y
const style & dialog_style_
dimension_measurements layout(int x, int y, int w, int h)
check_item(const std::string &label, bool checked)
SDL_Rect draw_title(CVideo *video)
int bottom_padding() const
virtual sdl_handler_vector handler_members()
GLubyte GLubyte GLubyte GLubyte w
virtual void handle_event(const SDL_Event &)
virtual bool left_side() const =0
int show_dialog(CVideo &video, surface image, const std::string &caption, const std::string &message, DIALOG_TYPE type, const std::vector< std::string > *menu_items, const std::vector< preview_pane * > *preview_panes, const std::string &text_widget_label, std::string *text_widget_text, const int text_widget_max_chars, std::vector< check_item > *options, int xloc, int yloc, const dialog_frame::style *dialog_style, std::vector< dialog_button_info > *action_buttons, const menu::sorter *sorter, menu::style *menu_style)
static const int title_border_w
static const style titlescreen_style
virtual void set_selection(int index)=0
structure which will hide all current floating labels, and cause floating labels instantiated after i...
dimension_measurements dim_
GLfloat GLfloat GLfloat GLfloat h
GLint GLint GLint GLint GLint x
virtual std::vector< sdl_handler * > handler_members()
void handle_window_event(const SDL_Event &event)
void set_layout(dimension_measurements &new_dim)
dimension_measurements get_layout() const
this module manages the cache of images.
GLsizei GLenum GLuint GLuint GLsizei char * message
static const int title_border_h
A config object defines a single node in a WML file, with access to child nodes.
dialog_frame(CVideo &video, const std::string &title="", const style &dialog_style=default_style, bool auto_restore=true, std::vector< button * > *buttons=nullptr, button *help_button=nullptr)
GLsizei const GLcharARB ** string
static const style message_style
preview_pane(CVideo &video)