2005-09-25 14:42:24 -04:00
|
|
|
#ifndef __ardour_gtk_region_gain_line_h__
|
|
|
|
#define __ardour_gtk_region_gain_line_h__
|
|
|
|
|
|
|
|
#include <ardour/ardour.h>
|
2005-09-25 18:26:56 -04:00
|
|
|
#include <libgnomecanvas/libgnomecanvas.h>
|
2005-09-25 16:33:00 -04:00
|
|
|
#include <gtkmm.h>
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
#include "automation_line.h"
|
|
|
|
|
|
|
|
namespace ARDOUR {
|
|
|
|
class Session;
|
|
|
|
}
|
|
|
|
|
|
|
|
class TimeAxisView;
|
|
|
|
class AudioRegionView;
|
|
|
|
|
|
|
|
class AudioRegionGainLine : public AutomationLine
|
|
|
|
{
|
|
|
|
public:
|
2005-09-25 18:26:56 -04:00
|
|
|
AudioRegionGainLine (string name, ARDOUR::Session&, AudioRegionView&, GnomeCanvasItem* parent,
|
2005-09-25 14:42:24 -04:00
|
|
|
ARDOUR::Curve&,
|
2005-09-25 18:26:56 -04:00
|
|
|
gint (*point_callback)(GnomeCanvasItem*, GdkEvent*, gpointer),
|
|
|
|
gint (*line_callback)(GnomeCanvasItem*, GdkEvent*, gpointer));
|
2005-09-25 14:42:24 -04:00
|
|
|
|
|
|
|
void view_to_model_y (double&);
|
|
|
|
void model_to_view_y (double&);
|
|
|
|
|
|
|
|
void start_drag (ControlPoint*, float fraction);
|
|
|
|
void end_drag (ControlPoint*);
|
|
|
|
|
|
|
|
void remove_point (ControlPoint&);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
ARDOUR::Session& session;
|
|
|
|
AudioRegionView& rv;
|
|
|
|
|
|
|
|
UndoAction get_memento();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __ardour_gtk_region_gain_line_h__ */
|