16 #define GETTEXT_DOMAIN "wesnoth-lib"
39 text_box* user_widget = find_widget<text_box>(
"user_name",
false,
true);
43 keyboard_capture(user_widget);
45 listbox* list = find_widget<listbox>(
"method_list",
false,
true);
46 add_to_keyboard_chain(list);
55 listbox& list = find_widget<listbox>(
"method_list");
58 text_box& user_widget = find_widget<text_box>(
"user_name");
int get_retval() const
Returns the cached window exit code.
choice choice_
The selected method to ‘connect’ to the MP server.
virtual void post_show() override
Actions to be taken after the window has been shown.
std::string user_name_
The name to use on the MP server.
choice
Corresponds to each connection option.
int get_selected_row() const
Returns the first selected row.
std::string get_value() const
virtual void set_value(const std::string &text)
The set_value is virtual for the password_box class.
void set_maximum_length(const std::size_t maximum_length)
A widget that allows the user to input text in single line.
void save_to_history()
Saves the text in the widget to the history.
void set_login(const std::string &login)
bool open_object([[maybe_unused]] const std::string &path_or_url)
REGISTER_DIALOG(editor_edit_unit)
static const std::string forum_registration_url
void connect_signal_mouse_left_click(dispatcher &dispatcher, const signal &signal)
Connects a signal handler for a left mouse button click.
@ OK
Dialog was closed with the OK button.
const std::size_t max_login_size
Max length of a player name.
Desktop environment interaction functions.