15 #define GETTEXT_DOMAIN "wesnoth-lib" 32 , server_information_(info)
33 , announcements_(announcements)
45 listbox& tab_bar = find_widget<listbox>(&
window,
"tab_bar",
false);
57 pager.
select_layer(std::max<int>(0, tab_bar.get_selected_row()));
window(const builder_window::window_resolution &definition)
< Needs to be initialized in show.
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
#define VALIDATE(cond, message)
The macro to use for the validation of WML.
virtual void pre_show(window &window) override
Actions to be taken before showing the window.
unsigned get_item_count() const
Returns the number of items in the listbox.
void tab_switch_callback()
window * get_window()
Returns a pointer to the dialog's window.
const std::string & server_information_
const std::string & announcements_
Abstract base class for all modal dialogs.
base class of top level items, the only item which needs to store the final canvases to draw on...
void connect_signal_notify_modified(dispatcher &dispatcher, const signal_notification &signal)
Connects a signal handler for getting a notification upon modification.