diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-10-28 16:03:07 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-10-28 16:03:07 +0000 |
| commit | 96b65f32d922a989131ae91798801ea54c4e8b10 (patch) | |
| tree | 627327d9468b399e064111734831864c4730bc2a /src/selection-chemistry.cpp | |
| parent | added perfectboundcover.inx to translatable extensions (diff) | |
| download | inkscape-96b65f32d922a989131ae91798801ea54c4e8b10.tar.gz inkscape-96b65f32d922a989131ae91798801ea54c4e8b10.zip | |
LPE: implement 'edit next LPE parameter'. Accessible through key '7'.
(bzr r3968)
Diffstat (limited to 'src/selection-chemistry.cpp')
| -rw-r--r-- | src/selection-chemistry.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/selection-chemistry.cpp b/src/selection-chemistry.cpp index 8d0aa4e79..d97bcfc08 100644 --- a/src/selection-chemistry.cpp +++ b/src/selection-chemistry.cpp @@ -2005,6 +2005,24 @@ sp_selection_item_prev(void) } } +void sp_selection_next_patheffect_param(SPDesktop * dt) +{ + if (!dt) return; + + Inkscape::Selection *selection = sp_desktop_selection(dt); + if ( selection && !selection->isEmpty() ) { + SPItem *item = selection->singleItem(); + if ( item && SP_IS_SHAPE(item)) { + SPShape *shape = SP_SHAPE(item); + if (sp_shape_has_path_effect(shape)) { + sp_shape_edit_next_param_oncanvas(shape, dt); + } else { + dt->messageStack()->flash(Inkscape::WARNING_MESSAGE, _("The selection has no applied path effect.")); + } + } + } +} + namespace { template <typename D> |
