16 #define GETTEXT_DOMAIN "wesnoth-lib"
35 , allow_remove_(allow_remove)
37 register_text(
"host_name",
false, host_name,
true);
47 find_widget<button>(&
window,
"remove_addons",
false)
51 find_widget<button>(&
window,
"show_help",
false),
59 = 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.
REGISTER_DIALOG(tod_new_schedule)
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.