X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Ftrackattachment.h;h=1572f619db1ede100ea9cfa8e22d4298ba9a2edc;hb=5116fff210cdc3f0fbdae13046cc60450aad5e8f;hp=8551250ae7507dc2db2d65ab09a7239a1dd71ed4;hpb=895fdb9568cda40898e5bb646061c14a41dc0124;p=r2c2.git diff --git a/source/libr2c2/trackattachment.h b/source/libr2c2/trackattachment.h index 8551250..1572f61 100644 --- a/source/libr2c2/trackattachment.h +++ b/source/libr2c2/trackattachment.h @@ -2,11 +2,12 @@ #define LIBR2C2_TRACKATTACHMENT_H_ #include "object.h" +#include "track.h" #include "trackiter.h" namespace R2C2 { -class TrackAttachment: public Object +class TrackAttachment: public Object, public sigc::trackable { protected: TrackIter track; @@ -20,6 +21,7 @@ public: Track *get_track() const { return track.track(); } unsigned get_entry() const { return track.entry(); } float get_offset() const { return offset; } + float get_offset_from_endpoint(unsigned) const; protected: void attach_to(const TrackIter &, float); void attach_to_closest(float); @@ -27,6 +29,9 @@ protected: public: virtual Track *get_parent() const { return track.track(); } + +private: + void object_removed(Object &); }; } // namespace R2C2