13
0
livetrax/gtk2_ardour/region_gain_line.h
Paul Davis f3e5450492 major fixes to automation editing
git-svn-id: svn://localhost/ardour2/trunk@1161 d708f5d6-7413-0410-9779-e7cbd77b26cf
2006-11-28 17:52:09 +00:00

37 lines
758 B
C++

#ifndef __ardour_gtk_region_gain_line_h__
#define __ardour_gtk_region_gain_line_h__
#include <ardour/ardour.h>
#include <libgnomecanvasmm.h>
#include "automation_line.h"
namespace ARDOUR {
class Session;
}
class TimeAxisView;
class AudioRegionView;
class AudioRegionGainLine : public AutomationLine
{
public:
AudioRegionGainLine (const string & name, ARDOUR::Session&, AudioRegionView&, ArdourCanvas::Group& parent, ARDOUR::Curve&);
void view_to_model_y (double&);
void model_to_view_y (double&);
void start_drag (ControlPoint*, nframes_t x, float fraction);
void end_drag (ControlPoint*);
void remove_point (ControlPoint&);
private:
ARDOUR::Session& session;
AudioRegionView& rv;
};
#endif /* __ardour_gtk_region_gain_line_h__ */