Switched to use libgnomecanvas (not the C++ one).
[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 "automation_time_axis.h"
5
6 namespace ARDOUR {
7         class Redirect;
8         class Curve;
9 }
10
11 class GainAutomationTimeAxisView : public AutomationTimeAxisView
12 {
13   public:
14         GainAutomationTimeAxisView (ARDOUR::Session&,
15                                     ARDOUR::Route&,
16                                     PublicEditor&,
17                                     TimeAxisView& parent_axis,
18                                     Gtk::Widget* parent,
19                                     std::string name,
20                                     ARDOUR::Curve&);
21         
22         ~GainAutomationTimeAxisView();
23
24         void add_automation_event (GnomeCanvasItem *item, GdkEvent *event, jack_nframes_t, double);
25         
26    private:
27         ARDOUR::Curve& curve;
28
29         void automation_changed ();
30         void set_automation_state (ARDOUR::AutoState);
31 };
32
33 #endif /* __ardour_gtk_gain_automation_time_axis_h__ */