add a ui_pref to store the users Snap Target preference
This commit is contained in:
parent
e99305c4dd
commit
7672ea9cfe
@ -3426,8 +3426,20 @@ These settings will only take effect after %1 is restarted.\n\
|
||||
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_rulers_follow_grid)
|
||||
));
|
||||
|
||||
add_option (_("Editor/Snap"), new OptionEditorHeading (_("When \"Snap\" is enabled, snap to:")));
|
||||
add_option (_("Editor/Snap"), new OptionEditorHeading (_("Snap Target Mode:")));
|
||||
|
||||
ComboOption<SnapTarget> *stm = new ComboOption<SnapTarget> (
|
||||
"snap-target",
|
||||
_("When the Grid is enabled, snap to"),
|
||||
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_snap_target),
|
||||
sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_snap_target));
|
||||
|
||||
stm->add(SnapTargetGrid, _("Grid"));
|
||||
stm->add(SnapTargetOther, _("Snap Targets"));
|
||||
stm->add(SnapTargetBoth, _("Both the Grid and Snap Targets"));
|
||||
add_option (_("Editor/Snap"), stm);
|
||||
|
||||
add_option (_("Editor/Snap"), new OptionEditorHeading (_("Snap Targets:")));
|
||||
|
||||
add_option (_("Editor/Snap"),
|
||||
new BoolOption (
|
||||
|
@ -134,6 +134,7 @@ UI_CONFIG_VARIABLE (bool, use_note_color_for_velocity, "use-note-color-for-veloc
|
||||
UI_CONFIG_VARIABLE (bool, show_snapped_cursor, "show-snapped-cursor", true)
|
||||
UI_CONFIG_VARIABLE (uint32_t, snap_threshold, "snap-threshold", 25)
|
||||
UI_CONFIG_VARIABLE (uint32_t, ruler_granularity, "ruler-granularity", 25)
|
||||
UI_CONFIG_VARIABLE (ARDOUR::SnapTarget, snap_target, "snap-target", ARDOUR::SnapTargetGrid)
|
||||
UI_CONFIG_VARIABLE (bool, snap_to_marks, "snap-to-marks", true)
|
||||
UI_CONFIG_VARIABLE (bool, snap_to_playhead, "snap-to-playhead", true)
|
||||
UI_CONFIG_VARIABLE (bool, snap_to_region_sync, "snap-to-region-sync", true)
|
||||
|
Loading…
Reference in New Issue
Block a user