X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Flayout.h;h=b89cacb90b1d11a5c1279d0ff2c11b5f9f9ef464;hb=64340dad429ba4040538fc06b6882aabdb489925;hp=f0a292f580e9847507a57f3acb49c64d175b54eb;hpb=277e8e7e4230aa8867f507ace62476afe575cff1;p=r2c2.git diff --git a/source/libr2c2/layout.h b/source/libr2c2/layout.h index f0a292f..b89cacb 100644 --- a/source/libr2c2/layout.h +++ b/source/libr2c2/layout.h @@ -1,22 +1,15 @@ -/* $Id$ - -This file is part of R²C² -Copyright © 2006-2011 Mikkosoft Productions, Mikko Rasa -Distributed under the GPL -*/ - #ifndef LIBR2C2_LAYOUT_H_ #define LIBR2C2_LAYOUT_H_ #include #include -#include +#include #include +#include "block.h" namespace R2C2 { class ArticleNumber; -class Block; class Catalogue; class Driver; class Route; @@ -29,7 +22,7 @@ class Zone; class Layout { public: - class Loader: public Msp::DataFile::BasicLoader + class Loader: public Msp::DataFile::ObjectLoader { private: bool new_tracks; @@ -62,6 +55,7 @@ public: sigc::signal signal_vehicle_added; sigc::signal signal_vehicle_removed; sigc::signal signal_block_reserved; + sigc::signal signal_block_state_changed; sigc::signal signal_emergency; private: @@ -125,7 +119,7 @@ public: void save(const std::string &) const; void save_dynamic(const std::string &) const; private: - void sensor_event(unsigned, bool); + void block_state_changed(Block &, Block::State); }; } // namespace R2C2