Merged with trunk R992.
[ardour.git] / gtk2_ardour / gain_automation_time_axis.h
1 #ifndef __ardour_gtk_gain_automation_time_axis_h__
2 #define __ardour_gtk_gain_automation_time_axis_h__
3
4 #include "canvas.h"
5 #include "automation_time_axis.h"
6
7 namespace ARDOUR {
8         class Redirect;
9         class Curve;
10 }
11
12 class GainAutomationTimeAxisView : public AutomationTimeAxisView
13 {
14   public:
15         GainAutomationTimeAxisView (ARDOUR::Session&,
16                                     boost::shared_ptr<ARDOUR::Route>,
17                                     PublicEditor&,
18                                     TimeAxisView& parent_axis,
19                                     ArdourCanvas::Canvas& canvas,
20                                     const string & name,
21                                     ARDOUR::Curve&);
22         
23         ~GainAutomationTimeAxisView();
24
25         void add_automation_event (ArdourCanvas::Item *item, GdkEvent *event, nframes_t, double);
26         
27    private:
28         ARDOUR::Curve& curve;
29
30         void automation_changed ();
31         void set_automation_state (ARDOUR::AutoState);
32 };
33
34 #endif /* __ardour_gtk_gain_automation_time_axis_h__ */