summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_gain_line.h
blob: 058576336ad457b4454096fae7fb0654600f52ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __ardour_gtk_automation_gain_line_h__
#define __ardour_gtk_automation_gain_line_h__

#include <ardour/ardour.h>
#include <gtk-canvas.h>
#include <gtk--.h>

#include "automation_line.h"

namespace ARDOUR {
	class Session;
}


class TimeAxisView;

class AutomationGainLine : public AutomationLine
{
  public:
	AutomationGainLine (string name, ARDOUR::Session&, TimeAxisView&, GtkCanvasItem* parent,
			    ARDOUR::Curve&, 
			    gint (*point_callback)(GtkCanvasItem*, GdkEvent*, gpointer),
			    gint (*line_callback)(GtkCanvasItem*, GdkEvent*, gpointer));
	
	void view_to_model_y (double&);
	void model_to_view_y (double&);

  private:
	ARDOUR::Session& session;

};


#endif /* __ardour_gtk_automation_gain_line_h__ */