mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
better way to "engage" step edit, and extend region correctly as needed
git-svn-id: svn://localhost/ardour2/branches/3.0@5630 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b0b584c2a5
commit
b7fe417f70
7 changed files with 26 additions and 72 deletions
|
|
@ -2558,9 +2558,27 @@ Editor::set_internal_edit (bool yn)
|
|||
|
||||
if (yn) {
|
||||
mouse_select_button.set_image (*(manage (new Image (::get_icon("midi_tool_pencil")))));
|
||||
|
||||
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
|
||||
MidiTimeAxisView* mtv = dynamic_cast<MidiTimeAxisView*> (*i);
|
||||
if (mtv) {
|
||||
mtv->start_step_editing ();
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
mouse_select_button.set_image (*(manage (new Image (::get_xpm("tool_range.xpm")))));
|
||||
|
||||
for (TrackViewList::iterator i = track_views.begin(); i != track_views.end(); ++i) {
|
||||
MidiTimeAxisView* mtv = dynamic_cast<MidiTimeAxisView*> (*i);
|
||||
if (mtv) {
|
||||
mtv->stop_step_editing ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
set_canvas_cursor ();
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue