mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
add a ui_pref to store the users Snap Target preference
This commit is contained in:
parent
e99305c4dd
commit
7672ea9cfe
2 changed files with 14 additions and 1 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue