summaryrefslogtreecommitdiff
path: root/gtk2_ardour/enums.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2018-02-09 09:59:39 -0600
committerBen Loftis <ben@harrisonconsoles.com>2018-02-09 09:59:39 -0600
commitdc61256466cb02daa4c6de0dbaebf4b9ed1325d6 (patch)
tree13e1527c49174afbfdc85f4f49aa04b6a63eeb42 /gtk2_ardour/enums.cc
parentd6eb1c826f364a8dc2db1786bc4bb7eb11f92be6 (diff)
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.
Diffstat (limited to 'gtk2_ardour/enums.cc')
-rw-r--r--gtk2_ardour/enums.cc55
1 files changed, 23 insertions, 32 deletions
diff --git a/gtk2_ardour/enums.cc b/gtk2_ardour/enums.cc
index 542f69dfa9..4b8a138a98 100644
--- a/gtk2_ardour/enums.cc
+++ b/gtk2_ardour/enums.cc
@@ -45,7 +45,7 @@ setup_gtk_ardour_enums ()
EditPoint edit_point;
LayerDisplay layer_display;
RegionListSortType region_list_sort_type;
- SnapType snap_type;
+ GridType grid_type;
SnapMode snap_mode;
ZoomFocus zoom_focus;
ItemType item_type;
@@ -94,37 +94,28 @@ setup_gtk_ardour_enums ()
REGISTER_ENUM (ByTimestamp);
REGISTER (region_list_sort_type);
- REGISTER_ENUM (SnapToCDFrame);
- REGISTER_ENUM (SnapToTimecodeFrame);
- REGISTER_ENUM (SnapToTimecodeSeconds);
- REGISTER_ENUM (SnapToTimecodeMinutes);
- REGISTER_ENUM (SnapToSeconds);
- REGISTER_ENUM (SnapToMinutes);
- REGISTER_ENUM (SnapToBeatDiv128);
- REGISTER_ENUM (SnapToBeatDiv64);
- REGISTER_ENUM (SnapToBeatDiv32);
- REGISTER_ENUM (SnapToBeatDiv28);
- REGISTER_ENUM (SnapToBeatDiv24);
- REGISTER_ENUM (SnapToBeatDiv20);
- REGISTER_ENUM (SnapToBeatDiv16);
- REGISTER_ENUM (SnapToBeatDiv14);
- REGISTER_ENUM (SnapToBeatDiv12);
- REGISTER_ENUM (SnapToBeatDiv10);
- REGISTER_ENUM (SnapToBeatDiv8);
- REGISTER_ENUM (SnapToBeatDiv7);
- REGISTER_ENUM (SnapToBeatDiv6);
- REGISTER_ENUM (SnapToBeatDiv5);
- REGISTER_ENUM (SnapToBeatDiv4);
- REGISTER_ENUM (SnapToBeatDiv3);
- REGISTER_ENUM (SnapToBeatDiv2);
- REGISTER_ENUM (SnapToBeat);
- REGISTER_ENUM (SnapToBar);
- REGISTER_ENUM (SnapToMark);
- REGISTER_ENUM (SnapToRegionStart);
- REGISTER_ENUM (SnapToRegionEnd);
- REGISTER_ENUM (SnapToRegionSync);
- REGISTER_ENUM (SnapToRegionBoundary);
- REGISTER (snap_type);
+ REGISTER_ENUM (GridTypeNone);
+ REGISTER_ENUM (GridTypeBar);
+ REGISTER_ENUM (GridTypeBeat);
+ REGISTER_ENUM (GridTypeBeatDiv2);
+ REGISTER_ENUM (GridTypeBeatDiv4);
+ REGISTER_ENUM (GridTypeBeatDiv8);
+ REGISTER_ENUM (GridTypeBeatDiv16);
+ REGISTER_ENUM (GridTypeBeatDiv32);
+ REGISTER_ENUM (GridTypeBeatDiv3);
+ REGISTER_ENUM (GridTypeBeatDiv6);
+ REGISTER_ENUM (GridTypeBeatDiv12);
+ REGISTER_ENUM (GridTypeBeatDiv24);
+ REGISTER_ENUM (GridTypeBeatDiv5);
+ REGISTER_ENUM (GridTypeBeatDiv10);
+ REGISTER_ENUM (GridTypeBeatDiv20);
+ REGISTER_ENUM (GridTypeBeatDiv7);
+ REGISTER_ENUM (GridTypeBeatDiv14);
+ REGISTER_ENUM (GridTypeBeatDiv28);
+ REGISTER_ENUM (GridTypeSmpte);
+ REGISTER_ENUM (GridTypeMinSec);
+ REGISTER_ENUM (GridTypeSamples);
+ REGISTER (grid_type);
REGISTER_ENUM (SnapOff);
REGISTER_ENUM (SnapNormal);