loco_types.append(vt);
}
+void NewTrainDialog::prefill(const Driver::DetectedLocomotive &loco)
+{
+ drp_protocol->set_selected_index(protocols.find(loco.protocol));
+ ent_address->set_text(lexical_cast<string>(loco.address));
+ ent_name->set_text(loco.name);
+}
+
void NewTrainDialog::on_response(int code)
{
if(code)