183f69970c
git-svn-id: svn://localhost/trunk/ardour2@82 d708f5d6-7413-0410-9779-e7cbd77b26cf
44 lines
968 B
C++
44 lines
968 B
C++
#ifndef __ardour_gtk_region_gain_line_h__
|
|
#define __ardour_gtk_region_gain_line_h__
|
|
|
|
#include <ardour/ardour.h>
|
|
#include <libgnomecanvasmm/libgnomecanvasmm.h>
|
|
#include <gtkmm.h>
|
|
|
|
#include "automation_line.h"
|
|
|
|
namespace ARDOUR {
|
|
class Session;
|
|
}
|
|
|
|
class TimeAxisView;
|
|
class AudioRegionView;
|
|
|
|
class AudioRegionGainLine : public AutomationLine
|
|
{
|
|
public:
|
|
AudioRegionGainLine (string name, ARDOUR::Session&, AudioRegionView&, Gnome::Canvas::Item& parent,
|
|
ARDOUR::Curve&,
|
|
gint (*point_callback)(Gnome::Canvas::Item*, GdkEvent*, gpointer),
|
|
gint (*line_callback)(Gnome::Canvas::Item*, GdkEvent*, gpointer));
|
|
|
|
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__ */
|