summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/inkscape-preferences.cpp
diff options
context:
space:
mode:
authorJabier Arraiza <jabier.arraiza@marker.es>2017-11-12 17:10:11 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2017-11-12 17:10:11 +0000
commitdb164d8341a6dca5cab6fdc4576234bc656ac6f7 (patch)
tree97468a0fabde7cc31d12ce9e63866033e446d4ad /src/ui/dialog/inkscape-preferences.cpp
parentMerge branch 'master' into powerpencil (diff)
downloadinkscape-db164d8341a6dca5cab6fdc4576234bc656ac6f7.tar.gz
inkscape-db164d8341a6dca5cab6fdc4576234bc656ac6f7.zip
Base refactor
Diffstat (limited to 'src/ui/dialog/inkscape-preferences.cpp')
-rw-r--r--src/ui/dialog/inkscape-preferences.cpp29
1 files changed, 10 insertions, 19 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp
index 79d8b7411..665b9643c 100644
--- a/src/ui/dialog/inkscape-preferences.cpp
+++ b/src/ui/dialog/inkscape-preferences.cpp
@@ -204,12 +204,12 @@ void InkscapePreferences::AddBaseSimplifySpinbutton(DialogPage &p, Glib::ustring
false );
}
-void InkscapePreferences::AddPressureSensibility(DialogPage &p, Glib::ustring const &prefs_path, double def_value)
+void InkscapePreferences::AddPressureSensitivity(DialogPage &p, Glib::ustring const &prefs_path, double def_value)
{
PrefSpinButton* sb = Gtk::manage( new PrefSpinButton);
- sb->init ( prefs_path + "/pressure-sensibility", 1, 100.0, 1.0, 10.0, def_value, true, false);
- p.add_line( false, _("Pressure sensibility:"), *sb, _("on tablet usage"),
- _("Pressure sensibility, 12 is the default value"),
+ sb->init ( prefs_path + "/pressure-sensitivity", 1, 100.0, 1.0, 10.0, def_value, true, false);
+ p.add_line( false, _("Pressure sensitivity:"), *sb, _("on tablet usage"),
+ _("Pressure sensitivity, 12 is the default value"),
false );
}
@@ -217,8 +217,8 @@ void InkscapePreferences::AddPowerStrokeKnotDistanceFactor(DialogPage &p, Glib::
{
PrefSpinButton* sb = Gtk::manage( new PrefSpinButton);
sb->init ( prefs_path + "/knots-distance", 0.1, 9999.0, 1.0, 10.0, def_value, false, false);
- p.add_line( false, _("Pressure min knot distance factor:"), *sb, _("on tablet usage"),
- _("Min distance between knots, this is a factor value computed with other parameters, 135 is the default one"),
+ p.add_line( false, _("Minimum knot distance factor:"), *sb, _("on tablet usage"),
+ _("This unitless value affects the density of LPE knots. The default value is 135. A small value allows you to draw squiggly lines, while a higher value creates smoother lines with less width differences."),
false );
}
@@ -226,19 +226,11 @@ void InkscapePreferences::AddPowerStrokeGapPressureFactor(DialogPage &p, Glib::u
{
PrefSpinButton* sb = Gtk::manage( new PrefSpinButton);
sb->init ( prefs_path + "/gap-pressure", 0.01, 9999.0, 1.0, 10.0, def_value, false, false);
- p.add_line( false, _("Pressure inputs difference for made knots:"), *sb, _("on tablet usage"),
- _("Diference between input pressure to make a powerstroke knot, this is a factor value computed with other parameters, 1 is the default value"),
+ p.add_line( false, _("Pressure change needed to create knot:"), *sb, _("on tablet usage"),
+ _("Difference in pressure that is required to create a new PowerStroke knot. This factor is one of several that are taken into account when deciding where to place a knot. The default value is 1."),
false );
}
-void InkscapePreferences::AddPowerStrokeUseOptimusValues(DialogPage &p, Glib::ustring const &prefs_path, bool def_value)
-{
- PrefCheckButton* cb = Gtk::manage( new PrefCheckButton);
- cb->init ( _("Use optimiced powerstroke values instead the default ones:"), prefs_path + "/optimus-powerstroke", def_value);
- p.add_line( false, "", *cb, "", _("Use optimized powerstroke parameters values in pencil tool por pressure inputs instead the default ones"));
-}
-
-
static void StyleFromSelectionToTool(Glib::ustring const &prefs_path, StyleSwatch *swatch)
{
SPDesktop *desktop = SP_ACTIVE_DESKTOP;
@@ -457,9 +449,8 @@ void InkscapePreferences::initPageTools()
this->AddNewObjectsStyle(_page_pencil, "/tools/freehand/pencil");
this->AddDotSizeSpinbutton(_page_pencil, "/tools/freehand/pencil", 3.0);
this->AddBaseSimplifySpinbutton(_page_pencil, "/tools/freehand/pencil", 25.0);
- _page_pencil.add_group_header( _("Pencil pressure"));
- this->AddPowerStrokeUseOptimusValues(_page_pencil, "/tools/freehand/pencil", true);
- this->AddPressureSensibility(_page_pencil, "/tools/freehand/pencil", 12.0);
+ _page_pencil.add_group_header( _("Pressure sensitivity settings"));
+ this->AddPressureSensitivity(_page_pencil, "/tools/freehand/pencil", 12.0);
this->AddPowerStrokeKnotDistanceFactor(_page_pencil, "/tools/freehand/pencil", 135.0);
this->AddPowerStrokeGapPressureFactor(_page_pencil, "/tools/freehand/pencil", 1.0);