X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fengineer%2Ftrainproperties.h;h=8cd0b2f9c3d7e3d080e596cb13e3dda0c2fcae4d;hb=b88d3630a0e3fdd763db018bbe5dbfe3180a95f2;hp=b69569f77dd47eddd2fca0435e3be3a4c8478ec7;hpb=f4ffb776aa0d4f51c058d27fb0f51449c05302c3;p=r2c2.git diff --git a/source/engineer/trainproperties.h b/source/engineer/trainproperties.h index b69569f..8cd0b2f 100644 --- a/source/engineer/trainproperties.h +++ b/source/engineer/trainproperties.h @@ -1,16 +1,9 @@ -/* $Id$ - -This file is part of the MSP Märklin suite -Copyright © 2006-2009 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef TRAINPROPERTIES_H_ #define TRAINPROPERTIES_H_ #include #include -#include +#include #include "dialog.h" class Engineer; @@ -19,23 +12,24 @@ class TrainProperties: public Dialog { private: Engineer &engineer; - Marklin::Train *train; + R2C2::Train *train; Msp::GLtk::Entry *ent_addr; + Msp::GLtk::Dropdown *drp_protocol; Msp::GLtk::Dropdown *drp_type; Msp::GLtk::Entry *ent_name; Msp::GLtk::Dropdown *drp_priority; Msp::GLtk::List *lst_vehicles; Msp::GLtk::Dropdown *drp_new_vehicle; - std::vector add_vehicles; + std::vector add_vehicles; std::set rem_vehicles; public: - TrainProperties(Engineer &, const Msp::GLtk::Resources &, Marklin::Train *); + TrainProperties(Engineer &, R2C2::Train *); private: virtual void on_ok_clicked(); void new_vehicle_selected(unsigned, const std::string &); void remove_vehicle_clicked(); - const Marklin::VehicleType &get_vehicle_type(unsigned, bool); + const R2C2::VehicleType &get_vehicle_type(unsigned, bool); }; #endif