From 3ba6804f27f43fe968884351762173313063b865 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 7 Sep 2011 13:45:52 +0000 Subject: Don't create new regions on clicks on MIDI plugin automation tracks (#4298). git-svn-id: svn://localhost/ardour2/branches/3.0@10062 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/automation_time_axis.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gtk2_ardour/automation_time_axis.h') diff --git a/gtk2_ardour/automation_time_axis.h b/gtk2_ardour/automation_time_axis.h index 0904357c27..a48b1f9b2a 100644 --- a/gtk2_ardour/automation_time_axis.h +++ b/gtk2_ardour/automation_time_axis.h @@ -117,6 +117,10 @@ class AutomationTimeAxisView : public TimeAxisView { return _route; } + bool show_regions () const { + return _show_regions; + } + static void what_has_visible_automation (const boost::shared_ptr& automatable, std::set& visible); protected: @@ -155,6 +159,8 @@ class AutomationTimeAxisView : public TimeAxisView { Gtk::CheckMenuItem* mode_discrete_item; Gtk::CheckMenuItem* mode_line_item; + bool _show_regions; + void add_line (boost::shared_ptr); void clear_clicked (); -- cgit v1.2.3