diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2008-08-18 00:34:25 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2008-08-18 00:34:25 +0000 |
| commit | 1797f521c22956948021b9a2c51ff848b405bd40 (patch) | |
| tree | 1d6e2868cbfab4fb178a2f9c6076c03597c64a17 /src/tools-switch.cpp | |
| parent | Rename acceptsNumParams() -> acceptsNumClicks() because it makes more sense (diff) | |
| download | inkscape-1797f521c22956948021b9a2c51ff848b405bd40.tar.gz inkscape-1797f521c22956948021b9a2c51ff848b405bd40.zip | |
Groundwork for new LPETool tool (which consists of subtools that are constructed from LPEs)
(bzr r6645)
Diffstat (limited to 'src/tools-switch.cpp')
| -rw-r--r-- | src/tools-switch.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools-switch.cpp b/src/tools-switch.cpp index 4c51f4e10..6ee162f1d 100644 --- a/src/tools-switch.cpp +++ b/src/tools-switch.cpp @@ -43,6 +43,7 @@ #include "eraser-context.h" #include "pen-context.h" #include "pencil-context.h" +#include "lpe-tool-context.h" #include "text-context.h" #include "sp-text.h" #include "sp-flowtext.h" @@ -76,6 +77,7 @@ static char const *const tool_names[] = { "tools.connector", "tools.paintbucket", "tools.eraser", + "tools.lpetool", NULL }; @@ -99,6 +101,7 @@ static char const *const tool_ids[] = { "connector", "paintbucket", "eraser", + "lpetool", NULL }; @@ -246,6 +249,12 @@ tools_switch(SPDesktop *dt, int num) inkscape_eventcontext_set(sp_desktop_event_context(dt)); dt->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, _("<b>Drag</b> to erase.")); break; + case TOOLS_LPETOOL: + dt->set_event_context(SP_TYPE_LPETOOL_CONTEXT, tool_names[num]); + dt->activate_guides(false); + inkscape_eventcontext_set(sp_desktop_event_context(dt)); + dt->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, _("Choose a subtool from the toolbar")); + break; } } |
