From 7f676eccb95c6e692f51f5ae56e5501e52cf5d7e Mon Sep 17 00:00:00 2001 From: bulia byak Date: Wed, 9 Jul 2008 07:02:36 +0000 Subject: tolerance => smoothing, add presets (bzr r6243) --- src/widgets/toolbox.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/widgets/toolbox.cpp') diff --git a/src/widgets/toolbox.cpp b/src/widgets/toolbox.cpp index 8f3c570c5..96eb2711a 100644 --- a/src/widgets/toolbox.cpp +++ b/src/widgets/toolbox.cpp @@ -3467,16 +3467,17 @@ static void sp_pencil_toolbox_prep(SPDesktop *desktop, GtkActionGroup* mainActio /* Tolerance */ { - + gchar const* labels[] = {_("(many nodes, rough)"), ("(default)"), 0, 0, 0, 0, ("(few nodes, smooth)")}; + gdouble values[] = {1, 10, 20, 30, 50, 75, 100}; eact = create_adjustment_action( "PencilToleranceAction", - _("Number of pixels allowed in interpolating"), - _("Tolerance:"), _("Tolerance"), + _("Smoothing:"), _("Smoothing"), + _("How much smoothing (simplifying) is applied to the line"), "tools.freehand.pencil", "tolerance", 3.0, GTK_WIDGET(desktop->canvas), NULL, holder, TRUE, "altx-pencil", - 0.5, 100.0, 0.5, 0, - NULL, NULL, 0, + 1, 100.0, 0.5, 0, + labels, values, G_N_ELEMENTS(labels), sp_pencil_tb_tolerance_value_changed, 1, 2); ege_adjustment_action_set_appearance( eact, TOOLBAR_SLIDER_HINT ); -- cgit v1.2.3