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 +++++-- src/ui/dialog/inkscape-preferences.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'src/ui') 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); } diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h index c62919c45..b439f25dd 100644 --- a/src/ui/dialog/inkscape-preferences.h +++ b/src/ui/dialog/inkscape-preferences.h @@ -128,7 +128,7 @@ protected: PrefCheckButton _wheel_zoom; Gtk::HScale *_slider_snapping_delay; - PrefCheckButton _snap_indicator; + PrefCheckButton _snap_indicator, _snap_closest_only; PrefCombo _steps_rot_snap; PrefCheckButton _steps_compass; -- cgit v1.2.3