mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
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.
This commit is contained in:
parent
d6eb1c826f
commit
dc61256466
32 changed files with 959 additions and 1360 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue