diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2018-07-26 14:23:59 -0500 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-07-27 00:28:47 +0200 |
commit | 0883f02de92478800ad232f10d388219e2817ed7 (patch) | |
tree | 28e65aba638709df055c1e44ccebf936060313ff /gtk2_ardour/public_editor.h | |
parent | 83ce11e4111682c0dfea6b3927a157b9d23556ea (diff) |
new_grid: The Return of the snap_to_X functions.
We no longer assume that Snap always uses the visible ruler lines.
If you want to snap to the grid, and ignore the users zoom scale, use SnapPref::SnapToGrid_Unscaled
This fixes 2 (known) oversights: "snap region(s) to grid" and "regions whose start are left of the canvas edge".
Diffstat (limited to 'gtk2_ardour/public_editor.h')
-rw-r--r-- | gtk2_ardour/public_editor.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk2_ardour/public_editor.h b/gtk2_ardour/public_editor.h index 6d6ff33547..4f655f0fb1 100644 --- a/gtk2_ardour/public_editor.h +++ b/gtk2_ardour/public_editor.h @@ -149,8 +149,7 @@ public: */ virtual void snap_to (ARDOUR::MusicSample& first, ARDOUR::RoundMode direction = ARDOUR::RoundNearest, - ARDOUR::SnapPref gpref = ARDOUR::SnapToAny, - bool for_mark = false, + ARDOUR::SnapPref gpref = ARDOUR::SnapToAny_Visual, bool ensure_snap = false) = 0; /** Undo some transactions. @@ -462,8 +461,7 @@ public: virtual void snap_to_with_modifier (ARDOUR::MusicSample& first, GdkEvent const * ev, ARDOUR::RoundMode direction = ARDOUR::RoundNearest, - ARDOUR::SnapPref gpref = ARDOUR::SnapToAny, - bool for_mark = false) = 0; + ARDOUR::SnapPref gpref = ARDOUR::SnapToAny_Visual) = 0; virtual void set_snapped_cursor_position (samplepos_t pos) = 0; |