summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorDiederik van Lierop <mail@diedenrezi.nl>2009-08-23 13:55:47 +0000
committerdvlierop2 <dvlierop2@users.sourceforge.net>2009-08-23 13:55:47 +0000
commitb3f3d7ad268f67e27792ecfbcebab1bbbe646b74 (patch)
treee75486df75974b5787a3072fe70baaac2909947b /src/ui
parentpatch from 416549 (diff)
downloadinkscape-b3f3d7ad268f67e27792ecfbcebab1bbbe646b74.tar.gz
inkscape-b3f3d7ad268f67e27792ecfbcebab1bbbe646b74.zip
When dragging a knot along a constraint line, then allow snapping the position of the mouse pointer instead of its projection onto the constraint line (for this a check box has been added to the preferences dialog)
(bzr r8523)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp4
-rw-r--r--src/ui/dialog/inkscape-preferences.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index ba07597e7..9b6d9e084 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -230,6 +230,10 @@ void InkscapePreferences::initPageSnapping()
_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);
+ _snap_mouse_pointer.init( _("Snap the mouse pointer when dragging a constrained knot"), "/options/snapmousepointer/value", false);
+ _page_snapping.add_line( false, "", _snap_mouse_pointer, "",
+ _("When dragging a knot along a constraint line, then snap the position of the mouse pointer instead of snapping the projection of the knot onto the constraint line"));
+
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 7bcbe7d49..aa0da3a37 100644
--- a/src/ui/dialog/inkscape-preferences.h
+++ b/src/ui/dialog/inkscape-preferences.h
@@ -131,7 +131,7 @@ protected:
PrefCheckButton _wheel_zoom;
Gtk::HScale *_slider_snapping_delay;
- PrefCheckButton _snap_indicator, _snap_closest_only;
+ PrefCheckButton _snap_indicator, _snap_closest_only, _snap_mouse_pointer;
PrefCombo _steps_rot_snap;
PrefCheckButton _steps_compass;