use new method in MidiPatchManager to use MIDNAM data when setting a MidiTimeAxisView
[ardour.git] / gtk2_ardour / vca_time_axis.h
index 550b29b6ce19314d710408c8eb5ff8ae8d0699e0..dd8551b1f487e44f42cdd7919bfb5355f862c172 100644 (file)
@@ -1,27 +1,28 @@
 /*
-    Copyright (C) 2016 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) 2016 Paul Davis <paul@linuxaudiosystems.com>
+ * Copyright (C) 2017 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_vca_time_axis_h__
 #define __ardour_vca_time_axis_h__
 
 #include "widgets/ardour_button.h"
 
+#include "stripable_colorpicker.h"
 #include "stripable_time_axis.h"
 #include "gain_meter.h"
 
@@ -52,7 +53,6 @@ public:
 
        void set_height (uint32_t h, TrackHeightMode m = OnlySelf);
 
-       bool selectable() const { return false; }
        bool marked_for_display () const;
        bool set_marked_for_display (bool);
 
@@ -76,6 +76,7 @@ protected:
 
        void create_automation_child (const Evoral::Parameter& param, bool show);
        virtual void build_automation_action_menu (bool);
+       void         build_display_menu ();
        Gtk::Menu* automation_action_menu;
 
        bool name_entry_changed (std::string const&);
@@ -92,6 +93,12 @@ protected:
        bool automation_click (GdkEventButton*);
        bool drop_release (GdkEventButton*);
        void self_delete ();
+
+       void drop_all_slaves ();
+       void choose_color ();
+
+private:
+       StripableColorDialog _color_picker;
 };
 
 #endif /* __ardour_vca_time_axis_h__ */