#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;
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);
public:
virtual Track *get_parent() const { return track.track(); }
+
+private:
+ void object_removed(Object &);
};
} // namespace R2C2