diff options
author | David Robillard <d@drobilla.net> | 2013-01-20 08:56:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-20 08:56:00 +0000 |
commit | 4e6d0c9e61b62931a4a2120b548f0ff02a966351 (patch) | |
tree | 17c395d18338fb92d7af62fa635a8e957d523f93 /gtk2_ardour/midi_time_axis.h | |
parent | 0ebad4279b765d3fbe85649e9ef29e5b61c1d162 (diff) |
Show matching controller name in automation lane header.
Completely eliminate static MIDI controller name code.
Reduce dependency on midnam_patch.h (which would have saved me several hours if I did it earlier).
Store controller name numbers as an integer.
Keep controller names in a map keyed by int instead of a list for fast lookup.
More cleanup of MIDI::Name code.
git-svn-id: svn://localhost/ardour2/branches/3.0@13927 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_time_axis.h')
-rw-r--r-- | gtk2_ardour/midi_time_axis.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/gtk2_ardour/midi_time_axis.h b/gtk2_ardour/midi_time_axis.h index d61b64f36c..1f179baca6 100644 --- a/gtk2_ardour/midi_time_axis.h +++ b/gtk2_ardour/midi_time_axis.h @@ -41,6 +41,13 @@ #include "midi_streamview.h" #include "midi_channel_selector.h" +namespace MIDI { +namespace Name { +class MasterDeviceNames; +class CustomDeviceMode; +} +} + namespace ARDOUR { class Session; class RouteGroup; @@ -68,8 +75,8 @@ class MidiTimeAxisView : public RouteTimeAxisView void set_height (uint32_t); - void enter_internal_edit_mode (); - void leave_internal_edit_mode (); + void enter_internal_edit_mode (); + void leave_internal_edit_mode (); boost::shared_ptr<ARDOUR::MidiRegion> add_region (ARDOUR::framepos_t, ARDOUR::framecnt_t, bool); @@ -93,8 +100,8 @@ class MidiTimeAxisView : public RouteTimeAxisView Gtk::CheckMenuItem* automation_child_menu_item (Evoral::Parameter); - StepEditor* step_editor() { return _step_editor; } - void check_step_edit (); + StepEditor* step_editor() { return _step_editor; } + void check_step_edit (); void first_idle (); @@ -168,7 +175,7 @@ class MidiTimeAxisView : public RouteTimeAxisView /** parameter -> menu item map for the controller menu */ ParameterMenuMap _controller_menu_map; - StepEditor* _step_editor; + StepEditor* _step_editor; }; #endif /* __ardour_midi_time_axis_h__ */ |