From 0c5622cbbaedefc453eaba740f5aa9a5a7448482 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sat, 13 Dec 2008 17:31:18 +0000 Subject: add sketch mode to pencil tool (bzr r6995) --- src/ui/dialog/inkscape-preferences.cpp | 4 ++++ src/ui/dialog/inkscape-preferences.h | 2 ++ 2 files changed, 6 insertions(+) (limited to 'src/ui') diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index b1a14e781..d656e2a53 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -387,6 +387,7 @@ void InkscapePreferences::initPageTools() _page_tools.add_line( true, "", _t_cvg_convert_whole_groups, "", _("Treat groups as a single object during conversion to guides rather than converting each child separately.")); + _pencil_average_all_sketches.init ( _("Average all sketches"), "/tools/freehand/pencil/average_all_sketches", false); _calligrapy_use_abs_size.init ( _("Width is in absolute units"), "/tools/calligraphic/abs_width", false); _calligrapy_keep_selected.init ( _("Select new path"), "/tools/calligraphic/keep_selected", true); _connector_ignore_text.init( _("Don't attach connectors to text objects"), "/tools/connector/ignoretext", true); @@ -469,6 +470,9 @@ void InkscapePreferences::initPageTools() this->AddSelcueCheckbox(_page_pencil, "/tools/freehand/pencil", true); this->AddNewObjectsStyle(_page_pencil, "/tools/freehand/pencil"); this->AddDotSizeSpinbutton(_page_pencil, "/tools/freehand/pencil", 3.0); + _page_pencil.add_group_header( _("Sketch mode")); + _page_pencil.add_line( true, "", _pencil_average_all_sketches, "", + _("If on, the sketch result will be the normal average of all sketches made, instead of averaging the old result with the new sketch.")); //Pen this->AddPage(_page_pen, _("Pen"), iter_tools, PREFS_PAGE_TOOLS_PEN); diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h index b439f25dd..1c5a3a85f 100644 --- a/src/ui/dialog/inkscape-preferences.h +++ b/src/ui/dialog/inkscape-preferences.h @@ -149,6 +149,8 @@ protected: PrefSpinButton _win_trans_blur; /**< The dialog transparency setting for when the dialog is out of focus. */ PrefSpinButton _win_trans_time; /**< How much time to go from one transparency setting to another */ + PrefCheckButton _pencil_average_all_sketches; + PrefCheckButton _calligrapy_use_abs_size; PrefCheckButton _calligrapy_keep_selected; -- cgit v1.2.3