14 #define GETTEXT_DOMAIN "wesnoth-lib" 30 : server_information_(info)
31 , announcements_(announcements)
39 find_widget<label>(&window,
"announcements",
false).set_label(
announcements_);
41 stacked_widget& pager = find_widget<stacked_widget>(&window,
"tabs_container",
false);
44 listbox& tab_bar = find_widget<listbox>(&window,
"tab_bar",
false);
56 pager.
select_layer(std::max<int>(0, tab_bar.get_selected_row()));
#define REGISTER_DIALOG(window_id)
Wrapper for REGISTER_DIALOG2.
window * get_window() const
Returns a pointer to the dialog's window.
void connect_signal_notify_modified(dispatcher &dispatcher, const signal_notification_function &signal)
Connects a signal handler for getting a notification upon modification.
#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()
const std::string & server_information_
const std::string & announcements_
base class of top level items, the only item which needs to store the final canvases to draw on...