16 #define GETTEXT_DOMAIN "wesnoth-lib"
40 text_box* user_widget = find_widget<text_box>(&
window,
"user_name",
false,
true);
46 listbox* list = find_widget<listbox>(&
window,
"method_list",
false,
true);
56 listbox& list = find_widget<listbox>(&
window,
"method_list",
false);
59 text_box& user_widget = find_widget<text_box>(&
window,
"user_name",
false);
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.
virtual void post_show(window &window) 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)
Class for a single line text area.
void save_to_history()
Saves the text in the widget to the history.
base class of top level items, the only item which needs to store the final canvases to draw on.
void keyboard_capture(widget *widget)
void add_to_keyboard_chain(widget *widget)
Adds the widget to the keyboard chain.
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.
void set_login(const std::string &login)
Desktop environment interaction functions.