16 #define GETTEXT_DOMAIN "wesnoth-lib" 41 text_box* user_widget = find_widget<text_box>(&window,
"user_name",
false,
true);
45 window.keyboard_capture(user_widget);
47 listbox* list = find_widget<listbox>(&window,
"method_list",
false,
true);
48 window.add_to_keyboard_chain(list);
57 listbox& list = find_widget<listbox>(&
window,
"method_list",
false);
60 text_box& user_widget = find_widget<text_box>(&
window,
"user_name",
false);
window(const builder_window::window_resolution &definition)
< Needs to be initialized in show.
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
const std::size_t max_login_size
Max length of a player name.
void connect_signal_mouse_left_click(dispatcher &dispatcher, const signal &signal)
Connects a signal handler for a left mouse button click.
std::string user_name_
The name to use on the MP server.
void set_maximum_length(const std::size_t maximum_length)
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
std::string get_value() const
void save_to_history()
Saves the text in the widget to the history.
int get_selected_row() const
Returns the first selected row.
Class for a single line text area.
Desktop environment interaction functions.
This file contains the settings handling of the widget library.
void set_login(const std::string &login)
static const std::string forum_registration_url
bool open_object([[maybe_unused]] const std::string &path_or_url)
choice
Corresponds to each connection option.
virtual void set_value(const std::string &text)
The set_value is virtual for the password_box class.
int get_retval() const
Returns the cached window exit code.
This shows the dialog to select the kind of MP game the user wants to play.
choice choice_
The selected method to `connect' to the MP server.
Dialog was closed with the OK button.
base class of top level items, the only item which needs to store the final canvases to draw on...