15 #define GETTEXT_DOMAIN "wesnoth-lib" 36 const
bool allow_remove)
37 : allow_remove_(allow_remove)
40 register_text(
"host_name",
false, host_name,
true);
50 find_widget<button>(&window,
"remove_addons",
false)
54 find_widget<button>(&window,
"show_help",
false),
62 = find_widget<text_box>(&window,
"host_name",
false);
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
void show_help(const std::string &show_topic, int xloc, int yloc)
Open the help browser, show topic with id show_topic.
This shows the dialog for managing addons and connecting to the addon server.
void help_button_callback()
void save_to_history()
Saves the text in the widget to the history.
Class for a single line text area.
bool allow_remove_
Enable the addon remove button?
virtual void pre_show(window &window) override
Inherited from modal_dialog.
This file contains the settings handling of the widget library.
void connect_signal_mouse_left_click(dispatcher &dispatcher, const signal_function &signal)
Connects a signal handler for a left mouse button click.
Various uncategorised dialogs.
virtual void post_show(window &window) override
Inherited from modal_dialog.
int get_retval() const
Returns the cached window exit code.
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...