16 #define GETTEXT_DOMAIN "wesnoth-lib"
36 , allow_remove_(allow_remove)
38 register_text(
"host_name",
false, host_name,
true);
48 find_widget<button>(&
window,
"remove_addons",
false)
52 find_widget<button>(&
window,
"show_help",
false),
60 = find_widget<text_box>(&
window,
"host_name",
false);
This shows the dialog for managing addons and connecting to the addon server.
void help_button_callback()
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
bool allow_remove_
Enable the addon remove button?
virtual void post_show(window &window) override
Actions to be taken after the window has been shown.
Abstract base class for all modal dialogs.
int get_retval() const
Returns the cached window exit code.
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.
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
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.
void show_help(const std::string &show_topic, int xloc, int yloc)
Open the help browser, show topic with id show_topic.
This file contains the settings handling of the widget library.