use new method in MidiPatchManager to use MIDNAM data when setting a MidiTimeAxisView
[ardour.git] / gtk2_ardour / audio_time_axis.h
index 5790080160bb24bc3fb6124f81db66e0def4bdf5..727c46a95e2f957e97e3013661a082df4c2a212f 100644 (file)
@@ -1,21 +1,25 @@
 /*
-    Copyright (C) 2000-2006 Paul Davis
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
+ * Copyright (C) 2005-2014 Paul Davis <paul@linuxaudiosystems.com>
+ * Copyright (C) 2005 Karsten Wiese <fzuuzf@googlemail.com>
+ * Copyright (C) 2005 Taybin Rutkin <taybin@taybin.com>
+ * Copyright (C) 2006-2014 David Robillard <d@drobilla.net>
+ * Copyright (C) 2007-2012 Carl Hetherington <carl@carlh.net>
+ * Copyright (C) 2017-2019 Robin Gareus <robin@gareus.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
 
 #ifndef __ardour_audio_time_axis_h__
 #define __ardour_audio_time_axis_h__
@@ -28,7 +32,6 @@
 #include <gtkmm/radiomenuitem.h>
 #include <gtkmm/checkmenuitem.h>
 
-#include <gtkmm2ext/selector.h>
 #include <list>
 
 #include "ardour/types.h"
@@ -63,9 +66,9 @@ class AutomationTimeAxisView;
 
 class AudioTimeAxisView : public RouteTimeAxisView
 {
-  public:
-       AudioTimeAxisView (PublicEditor&, ARDOUR::Session*, ArdourCanvas::Canvas& canvas);
-       virtual ~AudioTimeAxisView ();
+public:
+       AudioTimeAxisView (PublicEditor&, ARDOUR::Session*, ArdourCanvas::Canvas& canvas);
+       virtual ~AudioTimeAxisView ();
 
        void set_route (boost::shared_ptr<ARDOUR::Route>);
 
@@ -76,18 +79,16 @@ class AudioTimeAxisView : public RouteTimeAxisView
        /* Overridden from parent to store display state */
        guint32 show_at (double y, int& nth, Gtk::VBox *parent);
 
-        void enter_internal_edit_mode ();
-        void leave_internal_edit_mode ();
-
        void create_automation_child (const Evoral::Parameter& param, bool show);
 
        void first_idle ();
 
-  private:
+private:
        friend class AudioStreamView;
        friend class AudioRegionView;
 
        void route_active_changed ();
+       void parameter_changed (std::string const &);
 
        Gtk::Menu* build_mode_menu();
        void build_automation_action_menu (bool);
@@ -98,18 +99,7 @@ class AudioTimeAxisView : public RouteTimeAxisView
 
        void hide ();
 
-       void gain_hidden ();
-       void pan_hidden ();
-
-       void ensure_pan_views (bool show = true);
        void update_control_names ();
-
-       void update_gain_track_visibility ();
-       void update_pan_track_visibility ();
-
-       Gtk::CheckMenuItem* gain_automation_item;
-       std::list<boost::shared_ptr<AutomationTimeAxisView> > pan_tracks;
-       Gtk::CheckMenuItem* pan_automation_item;
 };
 
 #endif /* __ardour_audio_time_axis_h__ */