summaryrefslogtreecommitdiff
path: root/gtk2_ardour/rc_option_editor.cc
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2018-02-09 08:21:45 -0600
committerBen Loftis <ben@harrisonconsoles.com>2018-02-09 08:21:45 -0600
commitc6eab71435686a0ff4a244584b0a9b24282b73fc (patch)
treedf5dc165232090651c9865b31b242a4de9279554 /gtk2_ardour/rc_option_editor.cc
parent70d8300cb285256784f543da6aaf076d76b5052b (diff)
new_snap: Snapped Cursor ( squashed commit )
Snapped Cursor is a line that follows the edit point, and indicates where the operation will occur. This replaces and extends the line that appears with the Cut tool. New associated preferences: snap_threshold and show_snap_cursor.
Diffstat (limited to 'gtk2_ardour/rc_option_editor.cc')
-rw-r--r--gtk2_ardour/rc_option_editor.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc
index bef5780fad..ce099883fe 100644
--- a/gtk2_ardour/rc_option_editor.cc
+++ b/gtk2_ardour/rc_option_editor.cc
@@ -2490,6 +2490,26 @@ RCOptionEditor::RCOptionEditor ()
add_option (_("Editor"), rsas);
+ add_option (_("Editor/Snap"), new OptionEditorHeading (_("General Snap options:")));
+
+ add_option (_("Editor/Snap"),
+ new SpinOption<uint32_t> (
+ "snap-threshold",
+ _("Snap Threshold (pixels)"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_snap_threshold),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_snap_threshold),
+ 10, 200,
+ 1, 10
+ ));
+
+ add_option (_("Editor/Snap"),
+ new BoolOption (
+ "show-snapped-cursor",
+ _("Show Snapped Cursor"),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::get_show_snapped_cursor),
+ sigc::mem_fun (UIConfiguration::instance(), &UIConfiguration::set_show_snapped_cursor)
+ ));
+
add_option (_("Editor/Modifiers"), new OptionEditorHeading (_("Keyboard Modifiers")));
add_option (_("Editor/Modifiers"), new KeyboardOptions);
add_option (_("Editor/Modifiers"), new OptionEditorBlank ());