summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/inkscape-preferences.cpp
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2008-11-24 19:45:10 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2008-11-24 19:45:10 +0000
commitd6704d3f6d4ed82c1360142e86538b076bb4a279 (patch)
tree6013e6009d40a1a4a8cae513668c79e092890dc9 /src/ui/dialog/inkscape-preferences.cpp
parentsome color support, multi-line text, automatic scaling (diff)
downloadinkscape-d6704d3f6d4ed82c1360142e86538b076bb4a279.tar.gz
inkscape-d6704d3f6d4ed82c1360142e86538b076bb4a279.zip
Add an option to the preferences to _only_ snap the node closest to the mouse pointer
(bzr r6899)
Diffstat (limited to 'src/ui/dialog/inkscape-preferences.cpp')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp7
1 files changed, 5 insertions, 2 deletions
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);
}