From dc61256466cb02daa4c6de0dbaebf4b9ed1325d6 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Fri, 9 Feb 2018 09:59:39 -0600 Subject: new_grid: Rewrite of Snap and Grid. (squashed commit) Separate Snap from Grid. Lots of naming changes. Multiple simultaneous snap options allowed. Grid is one of the possible Snap options. Grid uses the same data as the rulers. Replace complicated tempo_lines with simple grid_lines. The Grid is zoom-scale-sensitive along with the rulers. If you are zoomed out, grid becomes coarser. --- libs/ardour/ardour/types.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libs/ardour') diff --git a/libs/ardour/ardour/types.h b/libs/ardour/ardour/types.h index f84966443c..352c20ae9b 100644 --- a/libs/ardour/ardour/types.h +++ b/libs/ardour/ardour/types.h @@ -238,6 +238,11 @@ namespace ARDOUR { RoundUpMaybe = 2 ///< Round up only if necessary }; + enum SnapPref { + SnapToAny = 0, ///< Snaps to the closest of ( snap prefs, grid quantization ) + SnapToGrid = 1, ///< Prefer snapping to the closest grid quantization, if a Grid selection is enabled + }; + class AnyTime { public: enum Type { -- cgit v1.2.3