From b1bc353f0d770a28a0a4c2d91959cc0d2acc1216 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 19 Jan 2013 10:02:00 +0000 Subject: Add standard MIDI midnam file and remove hard coded equivalent. Accordingly, make "generic" MIDI truly generic, just numbered controllers. Break up MIDI name UI stuff into manageable functions of reasonable size. Add convenient method to MIDINameDocument for getting the names for a device. Tolerate comments in MIDINameDocument ControlNameList. Can't remove the MIDI name code just yet, since it's still erroneously used by Automatable::describe_parameter(). This is the cause of a bug where the name on the automation lane does not match that in the menu. The plan is to make a very simple pure abstract interface for getting MIDI names, and make it possible to set one for Automatable (or perhaps pass it to describe_parameter()). Thus we'll be on the way to supporting names from sources other than midnam files, namely plugins. git-svn-id: svn://localhost/ardour2/branches/3.0@13895 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_time_axis.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gtk2_ardour/midi_time_axis.h') diff --git a/gtk2_ardour/midi_time_axis.h b/gtk2_ardour/midi_time_axis.h index 10ad5f8f10..04e37913b5 100644 --- a/gtk2_ardour/midi_time_axis.h +++ b/gtk2_ardour/midi_time_axis.h @@ -143,6 +143,9 @@ class MidiTimeAxisView : public RouteTimeAxisView void add_channel_command_menu_item (Gtk::Menu_Helpers::MenuList& items, const std::string& label, ARDOUR::AutomationType auto_type, uint8_t cmd); Gtk::Menu* controller_menu; + + void add_single_channel_controller_item (Gtk::Menu_Helpers::MenuList& ctl_items, int ctl, const std::string& name); + void add_multi_channel_controller_item (Gtk::Menu_Helpers::MenuList& ctl_items, int ctl, const std::string& name); void build_controller_menu (); void set_channel_mode (ARDOUR::ChannelMode, uint16_t); -- cgit v1.2.3