From b2655d13f1d9d722c1f31f87956ccb2efe785d83 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 15 Mar 2021 19:49:18 -0600 Subject: [PATCH] make Editor::snap_to_bbt() public --- gtk2_ardour/editor.h | 7 +++---- gtk2_ardour/public_editor.h | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/editor.h b/gtk2_ardour/editor.h index df12b5f611..a98df48a23 100644 --- a/gtk2_ardour/editor.h +++ b/gtk2_ardour/editor.h @@ -491,6 +491,9 @@ public: GdkEvent const* ev, Temporal::RoundMode direction = Temporal::RoundNearest, ARDOUR::SnapPref gpref = ARDOUR::SnapToAny_Visual); + Temporal::timepos_t snap_to_bbt (Temporal::timepos_t const & start, + Temporal::RoundMode direction, + ARDOUR::SnapPref gpref); void set_snapped_cursor_position (Temporal::timepos_t const & pos); @@ -2269,10 +2272,6 @@ private: Temporal::RoundMode direction, ARDOUR::SnapPref gpref); - Temporal::timepos_t snap_to_bbt (Temporal::timepos_t const & start, - Temporal::RoundMode direction, - ARDOUR::SnapPref gpref); - Temporal::timepos_t snap_to_timecode (Temporal::timepos_t const & start, Temporal::RoundMode direction, ARDOUR::SnapPref gpref); diff --git a/gtk2_ardour/public_editor.h b/gtk2_ardour/public_editor.h index bc48c75f28..ce0e81a650 100644 --- a/gtk2_ardour/public_editor.h +++ b/gtk2_ardour/public_editor.h @@ -510,6 +510,7 @@ public: GdkEvent const* ev, Temporal::RoundMode direction = Temporal::RoundNearest, ARDOUR::SnapPref gpref = ARDOUR::SnapToAny_Visual) = 0; + virtual Temporal::timepos_t snap_to_bbt (Temporal::timepos_t const & pos, Temporal::RoundMode, ARDOUR::SnapPref) = 0; virtual void set_snapped_cursor_position (Temporal::timepos_t const & pos) = 0;