diff options
| author | bulia byak <buliabyak@gmail.com> | 2007-02-13 17:18:22 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2007-02-13 17:18:22 +0000 |
| commit | 5c7360bc41952997eda3781681ad3cfaa8b81460 (patch) | |
| tree | 38310198603fc5d9272cdd222d30ee3228919a89 /src/ui | |
| parent | eo: translation completed (diff) | |
| download | inkscape-5c7360bc41952997eda3781681ad3cfaa8b81460.tar.gz inkscape-5c7360bc41952997eda3781681ad3cfaa8b81460.zip | |
isolate the nodepath-or-knotholder unit into the new ShapeEditor class which handles listeners etc. and provides a single interface to work with nodepath or knotholder; later will add another layer, ShapeEditorsCollective, which will allow us to have any number of nodepaths and knotholders simultaneously
(bzr r2374)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/dialog/align-and-distribute.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ui/dialog/align-and-distribute.cpp b/src/ui/dialog/align-and-distribute.cpp index 81bce14c3..b8f840520 100644 --- a/src/ui/dialog/align-and-distribute.cpp +++ b/src/ui/dialog/align-and-distribute.cpp @@ -46,7 +46,8 @@ #include "sp-flowtext.h" #include "text-editing.h" -#include "node-context.h" //For node align/distribute function +#include "node-context.h" //For access to ShapeEditor +#include "shape-editor.h" //For node align/distribute methods #include "tools-switch.h" @@ -413,12 +414,10 @@ private : SPEventContext *event_context = sp_desktop_event_context(SP_ACTIVE_DESKTOP); if (!SP_IS_NODE_CONTEXT (event_context)) return ; - Inkscape::NodePath::Path *nodepath = SP_NODE_CONTEXT (event_context)->nodepath; - if (!nodepath) return; if (_distribute) - sp_nodepath_selected_distribute(nodepath, _orientation); + SP_NODE_CONTEXT (event_context)->shape_editor->distribute(_orientation); else - sp_nodepath_selected_align(nodepath, _orientation); + SP_NODE_CONTEXT (event_context)->shape_editor->align(_orientation); } }; |
