summaryrefslogtreecommitdiffstats
path: root/src/tools-switch.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-08-08 07:33:15 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-08-08 07:33:15 +0000
commitfe2e11977cd38b6fd43bcfc1a0da47358b06fd8a (patch)
treeab9ea70e13f54424f7d7cfe6cbcfa30a20c6f63f /src/tools-switch.cpp
parentnew methods for tweaking, modeled after MakeOffset (diff)
downloadinkscape-fe2e11977cd38b6fd43bcfc1a0da47358b06fd8a.tar.gz
inkscape-fe2e11977cd38b6fd43bcfc1a0da47358b06fd8a.zip
tweak tool
(bzr r3423)
Diffstat (limited to 'src/tools-switch.cpp')
-rw-r--r--src/tools-switch.cpp9
1 files changed, 9 insertions, 0 deletions
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, <b>click</b>, <b>Shift+click</b>, or <b>drag around</b> nodes to select them, then <b>drag</b> nodes and handles. <b>Click</b> 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);