15 #ifndef GUI_DIALOGS_SIMPLE_ITEM_SELECTOR_HPP_INCLUDED
16 #define GUI_DIALOGS_SIMPLE_ITEM_SELECTOR_HPP_INCLUDED
33 list_type
const&
items,
34 bool title_uses_markup =
false,
35 bool message_uses_markup =
false);
const std::vector< std::string > items
void set_ok_label(const std::string &s)
Sets the caption for the OK button.
bool single_button() const
void set_single_button(bool value)
Sets whether the Cancel button should be hidden or not.
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.
tsimple_item_selector(const std::string &title, const std::string &message, list_type const &items, bool title_uses_markup=false, bool message_uses_markup=false)
Abstract base class for all dialogs.
const std::string & ok_label() const
GLsizei const GLfloat * value
std::string cancel_label_
int selected_index() const
Returns the selected item index after displaying.
const std::string & cancel_label() const
void set_cancel_label(const std::string &s)
Sets the caption for the Cancel button.
void post_show(twindow &window)
Inherited from tdialog.
virtual const std::string & window_id() const
Inherited from tdialog, implemented by REGISTER_DIALOG.
void set_selected_index(int index)
Sets the initially selected item index (-1 by default).
void pre_show(twindow &window)
Inherited from tdialog.
GLsizei GLenum GLuint GLuint GLsizei char * message
std::vector< std::string > list_type
GLsizei const GLcharARB ** string