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/verbs.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/verbs.cpp')
| -rw-r--r-- | src/verbs.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp index a68e09356..2dec64a2f 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -1335,7 +1335,7 @@ ContextVerb::perform(SPAction *action, void *data, void *pdata) /** \todo !!! hopefully this can go away soon and actions can look after * themselves */ - for (vidx = SP_VERB_CONTEXT_SELECT; vidx <= SP_VERB_CONTEXT_DROPPER_PREFS; vidx++) + for (vidx = SP_VERB_CONTEXT_SELECT; vidx <= SP_VERB_CONTEXT_FLOOD_PREFS; vidx++) { SPAction *tool_action= get((sp_verb_t)vidx)->get_action(dt); if (tool_action) { @@ -1386,6 +1386,9 @@ ContextVerb::perform(SPAction *action, void *data, void *pdata) case SP_VERB_CONTEXT_CONNECTOR: tools_switch_current (TOOLS_CONNECTOR); break; + case SP_VERB_CONTEXT_FLOOD: + tools_switch_current(TOOLS_FLOOD); + break; case SP_VERB_CONTEXT_SELECT_PREFS: prefs_set_int_attribute("dialogs.preferences", "page", PREFS_PAGE_TOOLS_SELECTOR); @@ -1443,6 +1446,10 @@ ContextVerb::perform(SPAction *action, void *data, void *pdata) prefs_set_int_attribute ("dialogs.preferences", "page", PREFS_PAGE_TOOLS_CONNECTOR); dt->_dlg_mgr->showDialog("InkscapePreferences"); break; + case SP_VERB_CONTEXT_FLOOD_PREFS: + prefs_set_int_attribute ("dialogs.preferences", "page", PREFS_PAGE_TOOLS_FLOOD); + dt->_dlg_mgr->showDialog("InkscapePreferences"); + break; default: break; @@ -2226,6 +2233,8 @@ Verb *Verb::_base_verbs[] = { N_("Pick averaged colors from image"), "draw_dropper"), new ContextVerb(SP_VERB_CONTEXT_CONNECTOR, "ToolConnector", N_("Connector"), N_("Create connectors"), "draw_connector"), + new ContextVerb(SP_VERB_CONTEXT_FLOOD, "ToolFlood", N_("Flood Fill"), + N_("Fill open areas"), "draw_flood"), /* Tool prefs */ new ContextVerb(SP_VERB_CONTEXT_SELECT_PREFS, "SelectPrefs", N_("Selector Preferences"), @@ -2256,6 +2265,8 @@ Verb *Verb::_base_verbs[] = { N_("Open Preferences for the Dropper tool"), NULL), new ContextVerb(SP_VERB_CONTEXT_CONNECTOR_PREFS, "ConnectorPrefs", N_("Connector Preferences"), N_("Open Preferences for the Connector tool"), NULL), + new ContextVerb(SP_VERB_CONTEXT_FLOOD_PREFS, "FloodPrefs", N_("Flood Fill Preferences"), + N_("Open Preferences for the Flood Fill tool"), NULL), /* Zoom/View */ new ZoomVerb(SP_VERB_ZOOM_IN, "ZoomIn", N_("Zoom In"), N_("Zoom in"), "zoom_in"), |
