mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-16 03:36:32 +01:00
large-scale refactoring of Pianoroll, CueEditor and AudioClipEditor
Enables code-sharing between "clip editors"
This commit is contained in:
parent
81ca93bdfb
commit
1d4e3940d1
24 changed files with 2673 additions and 2668 deletions
|
|
@ -3106,7 +3106,7 @@ MeterMarkerDrag::motion (GdkEvent* event, bool first_move)
|
|||
|
||||
/* only snap to bars. */
|
||||
|
||||
editing_context.set_grid_to (GridTypeBar);
|
||||
editing_context.set_grid_type (GridTypeBar);
|
||||
editing_context.set_snap_mode (SnapMagnetic);
|
||||
}
|
||||
|
||||
|
|
@ -3143,7 +3143,7 @@ MeterMarkerDrag::finished (GdkEvent* event, bool movement_occurred)
|
|||
}
|
||||
|
||||
/* reinstate old snap setting */
|
||||
editing_context.set_grid_to (_old_grid_type);
|
||||
editing_context.set_grid_type (_old_grid_type);
|
||||
editing_context.set_snap_mode (_old_snap_mode);
|
||||
|
||||
_editor.commit_tempo_map_edit (map);
|
||||
|
|
@ -3167,7 +3167,7 @@ MeterMarkerDrag::aborted (bool moved)
|
|||
|
||||
if (moved) {
|
||||
/* reinstate old snap setting */
|
||||
editing_context.set_grid_to (_old_grid_type);
|
||||
editing_context.set_grid_type (_old_grid_type);
|
||||
editing_context.set_snap_mode (_old_snap_mode);
|
||||
|
||||
// delete the dummy marker we used for visual representation while moving.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue