From d6704d3f6d4ed82c1360142e86538b076bb4a279 Mon Sep 17 00:00:00 2001 From: Diederik van Lierop Date: Mon, 24 Nov 2008 19:45:10 +0000 Subject: Add an option to the preferences to _only_ snap the node closest to the mouse pointer (bzr r6899) --- src/ui/dialog/inkscape-preferences.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/ui/dialog/inkscape-preferences.cpp') diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index e78d51af4..e680115fe 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -210,11 +210,14 @@ void InkscapePreferences::initPageSnapping() _page_snapping.add_line( false, _("Delay (in msec):"), _snap_delay, "", _("Postpone snapping as long as the mouse is moving, and then wait an additional fraction of a second. This additional delay is specified here. When set to zero or to a very small number, snapping will be immediate"), true); + _snap_closest_only.init( _("Only snap the node closest to the pointer"), "/options/snapclosestonly/value", false); + _page_snapping.add_line( false, "", _snap_closest_only, "", + _("Only try to snap the node that is initialy closest to the mouse pointer")); + _snap_weight.init("/options/snapweight/value", 0, 1, 0.1, 0.2, 0.5, 1); _page_snapping.add_line( false, _("Weight factor:"), _snap_weight, "", _("When multiple snap solutions are found, then Inkscape can either prefer the closest transformation (when set to 0), or prefer the node that was initially the closest to the pointer (when set to 1)"), true); - - + this->AddPage(_page_snapping, _("Snapping"), PREFS_PAGE_SNAPPING); } -- cgit v1.2.3