X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibmarklin%2Ftrack.h;h=f065cb673e43a030115581d9e2380a1a54db2589;hb=6ba6af3637c299ab00828c49de9151429488cc17;hp=eaf8de217c8c267bf7e2d831da8002aab4a5c878;hpb=2bb6ce8ada216c0b2caa48f4639d03f2c581098e;p=r2c2.git diff --git a/source/libmarklin/track.h b/source/libmarklin/track.h index eaf8de2..f065cb6 100644 --- a/source/libmarklin/track.h +++ b/source/libmarklin/track.h @@ -33,6 +33,8 @@ public: void turnout_id(unsigned); }; + sigc::signal signal_path_changed; + private: Layout &layout; const TrackType &type; @@ -77,7 +79,7 @@ public: int get_endpoint_by_link(Track &) const; Point get_endpoint_position(unsigned) const; float get_endpoint_direction(unsigned) const; - bool snap_to(Track &, bool); + bool snap_to(Track &, bool, float = 0); bool snap(Point &, float &) const; void break_link(Track &); void break_links();