From fe2e11977cd38b6fd43bcfc1a0da47358b06fd8a Mon Sep 17 00:00:00 2001 From: bulia byak Date: Wed, 8 Aug 2007 07:33:15 +0000 Subject: tweak tool (bzr r3423) --- src/tools-switch.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/tools-switch.cpp') diff --git a/src/tools-switch.cpp b/src/tools-switch.cpp index fd8acad23..1bc83d7a2 100644 --- a/src/tools-switch.cpp +++ b/src/tools-switch.cpp @@ -24,6 +24,7 @@ #include "select-context.h" #include "node-context.h" +#include "tweak-context.h" #include "sp-path.h" #include "rect-context.h" #include "sp-rect.h" @@ -55,6 +56,7 @@ static char const *const tool_names[] = { NULL, "tools.select", "tools.nodes", + "tools.tweak", "tools.shapes.rect", "tools.shapes.3dbox", "tools.shapes.arc", @@ -76,6 +78,7 @@ static char const *const tool_ids[] = { NULL, "select", "nodes", + "tweak", "rect", "3dbox", "arc", @@ -141,6 +144,12 @@ tools_switch(SPDesktop *dt, int num) inkscape_eventcontext_set(sp_desktop_event_context(dt)); dt->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, _("To edit a path, click, Shift+click, or drag around nodes to select them, then drag nodes and handles. Click on an object to select.")); break; + case TOOLS_TWEAK: + dt->set_event_context(SP_TYPE_TWEAK_CONTEXT, tool_names[num]); + dt->activate_guides(true); + inkscape_eventcontext_set(sp_desktop_event_context(dt)); + dt->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, _("To tweak a path by pushing, select it and drag over it.")); + break; case TOOLS_SHAPES_RECT: dt->set_event_context(SP_TYPE_RECT_CONTEXT, tool_names[num]); dt->activate_guides(false); -- cgit v1.2.3