summaryrefslogtreecommitdiffstats
path: root/src/ui
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-12-13 17:31:18 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-12-13 17:31:18 +0000
commit0c5622cbbaedefc453eaba740f5aa9a5a7448482 (patch)
tree8e446642cc1eadc3746bc43518209e19943d178b /src/ui
parentscale Model Space to size A4 (diff)
downloadinkscape-0c5622cbbaedefc453eaba740f5aa9a5a7448482.tar.gz
inkscape-0c5622cbbaedefc453eaba740f5aa9a5a7448482.zip
add sketch mode to pencil tool
(bzr r6995)
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, 6 insertions, 0 deletions
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;