638c17cb3bfce8154fdb27607cfb45ba4c158b41
[ardour.git] / gtk2_ardour / pan_automation_time_axis.h
1 #ifndef __ardour_gtk_pan_automation_time_axis_h__
2 #define __ardour_gtk_pan_automation_time_axis_h__
3
4 #include "canvas.h"
5 #include "automation_time_axis.h"
6
7 #include <gtkmm/comboboxtext.h>
8
9 namespace ARDOUR {
10         class Redirect;
11 }
12
13 class PanAutomationTimeAxisView : public AutomationTimeAxisView
14 {
15         public:
16                 PanAutomationTimeAxisView (ARDOUR::Session&,
17                                 ARDOUR::Route&,
18                                 PublicEditor&,
19                                 TimeAxisView& parent_axis,
20                                 ArdourCanvas::Canvas& canvas,
21                                 std::string name);
22
23                 ~PanAutomationTimeAxisView();
24
25                 void add_automation_event (ArdourCanvas::Item *item, GdkEvent *event, jack_nframes_t, double);
26
27                 void clear_lines ();
28                 void add_line (AutomationLine&);
29                 void set_height (TimeAxisView::TrackHeight);
30
31         protected:
32                 Gtk::ComboBoxText       multiline_selector;
33
34         private:
35                 void automation_changed ();
36                 void set_automation_state (ARDOUR::AutoState);
37 };
38
39 #endif /* __ardour_gtk_pan_automation_time_axis_h__ */