45 virtual const std::string&
window_id()
const override;
96 throw std::out_of_range{
"Invalid MP server selection"};
Abstract base class for all modal dialogs.
bool user_defined() const
selection(mp_connect *owner, int row=-1)
server_list & parent_list() const
void must_be_valid() const
std::size_t relative_index() const
void insert_into_server_listbox(listbox &listbox, const server_info &srv, int pos=-1)
virtual const std::string & window_id() const override
The execute function.
std::vector< server_info > server_list
void select_first_match()
selection current_selection()
std::array< server_list *, 2 > server_lists()
field_text * host_name_
The host name of the selected server.
friend modal_dialog * unit_test_mp_server_list()
The unit test needs to be able to test the mp_connect dialog.
server_list user_servers_
server_list builtin_servers_
virtual void pre_show() override
Actions to be taken before showing the window.
Specialized field class for text.
#define DEFINE_SIMPLE_EXECUTE_WRAPPER(dialog)
Adds a bare-bonesstatic execute function to a dialog class that immediately invokes and return the re...
Various uncategorised dialogs.
Game configuration data as global variables.