#include "ardour/ardour.h"
-#ifdef interface
-#undef interface
-#endif
-
-#include <libgnomecanvasmm.h>
#include "automation_line.h"
class AudioRegionGainLine : public AutomationLine
{
- public:
- AudioRegionGainLine (const std::string & name, AudioRegionView&, ArdourCanvas::Group& parent, boost::shared_ptr<ARDOUR::AutomationList>);
+public:
+ AudioRegionGainLine (const std::string & name, AudioRegionView&, ArdourCanvas::Container& parent, boost::shared_ptr<ARDOUR::AutomationList>);
- void start_drag_single (ControlPoint*, double, float);
- void end_drag (bool with_push, uint32_t final_index);
+ void start_drag_single (ControlPoint*, double, float);
+ void end_drag (bool with_push, uint32_t final_index);
void remove_point (ControlPoint&);
+ AudioRegionView& region_view () { return rv; }
private:
+ PBD::ScopedConnection _region_changed_connection;
+ void region_changed (const PBD::PropertyChange& what_changed);
AudioRegionView& rv;
};
-
#endif /* __ardour_gtk_region_gain_line_h__ */