- catalogue.signal_track_added.connect(sigc::mem_fun(this, &Catalogue3D::track_added));
- catalogue.signal_loco_added.connect(sigc::mem_fun(this, &Catalogue3D::loco_added));
-
- const map<unsigned, TrackType *> &trks = catalogue.get_tracks();
- for(map<unsigned, TrackType *>::const_iterator i=trks.begin(); i!=trks.end(); ++i)
- track_added(*i->second);
-
- ballast_material.set_diffuse(GL::Color(0.25, 0.25, 0.25));
- rail_material.set_diffuse(GL::Color(0.85, 0.85, 0.85));
+ const list<DataFile::CollectionSource *> &src = catalogue.get_sources();
+ for(list<DataFile::CollectionSource *>::const_iterator i=src.begin(); i!=src.end(); ++i)
+ add_source(**i);
+ catalogue.signal_source_added.connect(sigc::mem_fun(static_cast<DataFile::Collection *>(this), &Catalogue3D::add_source));