54 virtual const std::string& window_id()
const override;
60 void on_address_change();
62 void on_server_delete();
63 void on_server_select();
72 void select_first_match();
85 return owner_ && row_ >= 0;
92 return valid() && std::size_t(row_) >= owner_->builtin_servers_.size();
97 std::size_t relative_index()
const;
110 throw std::out_of_range{
"Invalid MP server selection"};
117 std::array<server_list*, 2> server_lists();
server_list builtin_servers_
void must_be_valid() const
bool user_defined() const
selection(mp_connect *owner, int row=-1)
field_text * host_name_
The host name of the selected server.
server_list user_servers_
This shows the dialog to the MP server to connect to.
Various uncategorised dialogs.
Game configuration data as global variables.
std::vector< server_info > server_list
Abstract base class for all modal dialogs.
#define DEFINE_SIMPLE_EXECUTE_WRAPPER(dialog)
Adds a bare-bonesstatic execute function to a dialog class that immediately invokes and return the re...
Specialized field class for text.
base class of top level items, the only item which needs to store the final canvases to draw on...