for(VehicleType::FunctionMap::const_iterator i=funcs.begin(); i!=funcs.end(); ++i)
{
GLtk::Toggle *tgl = new GLtk::Toggle(i->second);
+ tgl->set_value(train.get_function(i->first));
tgl->signal_toggled.connect(sigc::bind(sigc::mem_fun(this, &ControlPanel::ui_function_toggled), i->first));
pnl_functions->add(*tgl);
tgl_funcs[i->first] = tgl;