diff options
| author | John Bintz <me@johnbintz.com> | 2007-02-25 06:04:46 +0000 |
|---|---|---|
| committer | johncoswell <johncoswell@users.sourceforge.net> | 2007-02-25 06:04:46 +0000 |
| commit | 3d5921c0249b6dba6d3035a760d7232811c3654e (patch) | |
| tree | 524eadd72b4595172e952c39624be57f743e07bc /src/tools-switch.cpp | |
| parent | Factor out bpath_to_Path (diff) | |
| download | inkscape-3d5921c0249b6dba6d3035a760d7232811c3654e.tar.gz inkscape-3d5921c0249b6dba6d3035a760d7232811c3654e.zip | |
Add flood fill tool
(bzr r2432)
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 017aed979..c5b5bd5a4 100644 --- a/src/tools-switch.cpp +++ b/src/tools-switch.cpp @@ -43,6 +43,7 @@ #include "zoom-context.h" #include "dropper-context.h" #include "connector-context.h" +#include "flood-context.h" #include "sp-offset.h" #include "message-context.h" @@ -64,6 +65,7 @@ static char const *const tool_names[] = { "tools.zoom", "tools.dropper", "tools.connector", + "tools.flood", NULL }; @@ -83,6 +85,7 @@ static char const *const tool_ids[] = { "zoom", "dropper", "connector", + "flood", NULL }; @@ -206,6 +209,12 @@ tools_switch(SPDesktop *dt, int num) inkscape_eventcontext_set(sp_desktop_event_context(dt)); dt->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, _("<b>Click and drag</b> between shapes to create a connector.")); break; + case TOOLS_FLOOD: + dt->set_event_context(SP_TYPE_FLOOD_CONTEXT, tool_names[num]); + dt->activate_guides(false); + inkscape_eventcontext_set(sp_desktop_event_context(dt)); + dt->tipsMessageContext()->set(Inkscape::NORMAL_MESSAGE, _("<b>Click</b> to paint an unfilled area.")); + break; } } |
