diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-07-24 16:40:56 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-07-24 16:40:56 +0000 |
commit | c685724c8067fc9308c5f66f1b91d445509159e9 (patch) | |
tree | 5261c9d9c168f4f8351e1855f080d0688889e751 /gtk2_ardour/midi_time_axis.cc | |
parent | e3241a03cf3d3d4cc09c125340444c6f72e0346b (diff) |
step editing now accessed via a context menu on MIDI track rec-enable buttons. along the way, fixed up confusion between set_rec_enable() and set_rec_enabled() methods in Route/Track/Diskstream
git-svn-id: svn://localhost/ardour2/branches/3.0@7482 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r-- | gtk2_ardour/midi_time_axis.cc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index a4e09871c9..cb4eb795bd 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -859,6 +859,20 @@ MidiTimeAxisView::route_active_changed () } void +MidiTimeAxisView::toggle_step_edit () +{ + if (_route->record_enabled()) { + return; + } + + if (midi_track()->step_editing ()) { + stop_step_editing (); + } else { + start_step_editing (); + } +} + +void MidiTimeAxisView::start_step_editing () { step_edit_insert_position = _editor.get_preferred_edit_position (); @@ -918,6 +932,8 @@ MidiTimeAxisView::check_step_edit () fatal << X_("programming error: no view found for new MIDI region") << endmsg; /*NOTREACHED*/ } + cerr << "New step edit region is called " << step_edit_region->name() + << " view @ " << step_edit_region_view << endl; } if (step_edit_region_view) { @@ -946,7 +962,7 @@ MidiTimeAxisView::step_edit_rest () } boost::shared_ptr<Region> -MidiTimeAxisView::add_region (nframes64_t pos) +MidiTimeAxisView::add_region (framepos_t pos) { Editor* real_editor = dynamic_cast<Editor*> (&_editor); |