diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-01-19 23:31:25 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-01-19 23:31:25 +0000 |
| commit | 0afd549c4559664e33bab5d20ccdeca2ae39026f (patch) | |
| tree | 55346a8116895e0e54dd967dc7b08a4e8a2a50f5 /src/ui | |
| parent | Fix bad markup in po/vi.po (diff) | |
| download | inkscape-0afd549c4559664e33bab5d20ccdeca2ae39026f.tar.gz inkscape-0afd549c4559664e33bab5d20ccdeca2ae39026f.zip | |
Make creation of dots via Ctrl+click also possible in pen context; fill dots with current stroke color (and unset stroke); add preferences settings for dot radius and status bar messages; Shift+Ctrl+click varies the radius slightly
(bzr r4563)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.cpp | 12 | ||||
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.h | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index b0c8bcb85..2f3119108 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -235,6 +235,16 @@ void InkscapePreferences::AddConvertGuidesCheckbox(DialogPage& p, const std::str p.add_line( false, "", *cb, "", _("Converting an object to guides places these along the object's true edges (imitating the object's shape), not along the bounding box.")); } +void InkscapePreferences::AddDotSizeSpinbutton(DialogPage& p, const std::string& prefs_path, double def_value) +{ + PrefSpinButton* sb = Gtk::manage( new PrefSpinButton); + sb->init ( prefs_path, "dot-size", 0.0, 1000.0, 0.1, 10.0, def_value, false, false); + p.add_line( false, _("Dot size:"), *sb, "times current stroke width", + _("Size of dots created with Ctrl+click (relative to current stroke width)"), + false ); +} + + void StyleFromSelectionToTool(gchar const *prefs_path, StyleSwatch *swatch) { SPDesktop *desktop = SP_ACTIVE_DESKTOP; @@ -406,10 +416,12 @@ void InkscapePreferences::initPageTools() _page_pencil.add_line( false, _("Tolerance:"), _t_pencil_tolerance, "", _("This value affects the amount of smoothing applied to freehand lines; lower values produce more uneven paths with more nodes"), false ); + this->AddDotSizeSpinbutton(_page_pencil, "tools.freehand.pencil", 3.0); this->AddNewObjectsStyle(_page_pencil, "tools.freehand.pencil"); //Pen this->AddPage(_page_pen, _("Pen"), iter_tools, PREFS_PAGE_TOOLS_PEN); this->AddSelcueCheckbox(_page_pen, "tools.freehand.pen", true); + this->AddDotSizeSpinbutton(_page_pen, "tools.freehand.pen", 3.0); this->AddNewObjectsStyle(_page_pen, "tools.freehand.pen"); //Calligraphy this->AddPage(_page_calligraphy, _("Calligraphy"), iter_tools, PREFS_PAGE_TOOLS_CALLIGRAPHY); diff --git a/src/ui/dialog/inkscape-preferences.h b/src/ui/dialog/inkscape-preferences.h index 15d6ee54e..c6c17476d 100644 --- a/src/ui/dialog/inkscape-preferences.h +++ b/src/ui/dialog/inkscape-preferences.h @@ -218,6 +218,7 @@ protected: static void AddSelcueCheckbox(DialogPage& p, const std::string& prefs_path, bool def_value); static void AddGradientCheckbox(DialogPage& p, const std::string& prefs_path, bool def_value); static void AddConvertGuidesCheckbox(DialogPage& p, const std::string& prefs_path, bool def_value); + static void AddDotSizeSpinbutton(DialogPage& p, const std::string& prefs_path, double def_value); static void AddNewObjectsStyle(DialogPage& p, const std::string& prefs_path); void on_pagelist_selection_changed(); |
