X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fremote%2Ftrainpanel.cpp;h=26963a0537d6200af841108449669d1eba32c31b;hb=2bdb31aa8da02b8762e32cd117f270ac804c88d8;hp=e0f2658109b81334092e5567022766312e240d8b;hpb=e0a4caf7d4ef980a90cd03117705310e0469e440;p=r2c2.git diff --git a/source/remote/trainpanel.cpp b/source/remote/trainpanel.cpp index e0f2658..26963a0 100644 --- a/source/remote/trainpanel.cpp +++ b/source/remote/trainpanel.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2009-2010 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #include #include #include "remote.h" @@ -44,8 +37,8 @@ TrainPanel::TrainPanel(Remote &r, R2C2::Client &c, R2C2::NetTrain &t): Gtk::HBox *func_box = new Gtk::HBox(false, 5); vbox->add(*manage(func_box)); - const std::map &funcs = train.get_loco_type().get_functions(); - for(std::map::const_iterator i=funcs.begin(); i!=funcs.end(); ++i) + const R2C2::VehicleType::FunctionMap &funcs = train.get_loco_type().get_functions(); + for(R2C2::VehicleType::FunctionMap::const_iterator i=funcs.begin(); i!=funcs.end(); ++i) { Gtk::CheckButton *&chk = chk_funcs[i->first]; chk = new Gtk::CheckButton(i->second);