15 #define GETTEXT_DOMAIN "wesnoth-lib"
20 #ifdef GUI2_EXPERIMENTAL_LISTBOX
63 tlistbox& list = find_widget<tlistbox>(&window,
"language_list",
false);
64 window.keyboard_capture(&list);
68 for(
const auto & lang : languages)
71 item.insert(std::make_pair(
"label", lang.language));
74 if(lang == current_language) {
83 const int res = find_widget<tlistbox>(&window,
"language_list",
false)
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
bool select_row(const unsigned row, const bool select=true)
Selectes a row.
REGISTER_DIALOG(label_settings)
void post_show(twindow &window)
Inherited from tdialog.
void set_language(const std::string &slocale, const std::vector< std::string > *alternates)
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.
Dialog is closed with ok button.
unsigned get_item_count() const
Returns the number of items in the listbox.
void add_row(const string_map &item, const int index=-1)
When an item in the list is selected by the user we need to update the state.
std::map< std::string, t_string > string_map
const language_def & get_language()
language_list get_languages()
void set_language(const std::string &s)