diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2008-04-26 09:07:28 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2008-04-26 09:07:28 +0000 |
| commit | 2ea23425af0d0aac443b9b465789971c05caa0d3 (patch) | |
| tree | 1d389ecba5c32a5f7dcdc0a7c188a16e1340c586 /src/verbs.cpp | |
| parent | Fixed setting property at wrong time (diff) | |
| download | inkscape-2ea23425af0d0aac443b9b465789971c05caa0d3.tar.gz inkscape-2ea23425af0d0aac443b9b465789971c05caa0d3.zip | |
Initial cut of eraser tool
(bzr r5524)
Diffstat (limited to 'src/verbs.cpp')
| -rw-r--r-- | src/verbs.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp index 1068472bd..60982e036 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -1443,6 +1443,9 @@ ContextVerb::perform(SPAction *action, void *data, void */*pdata*/) case SP_VERB_CONTEXT_PAINTBUCKET: tools_switch_current(TOOLS_PAINTBUCKET); break; + case SP_VERB_CONTEXT_ERASER: + tools_switch_current(TOOLS_ERASER); + break; case SP_VERB_CONTEXT_SELECT_PREFS: prefs_set_int_attribute("dialogs.preferences", "page", PREFS_PAGE_TOOLS_SELECTOR); @@ -1512,6 +1515,10 @@ ContextVerb::perform(SPAction *action, void *data, void */*pdata*/) prefs_set_int_attribute ("dialogs.preferences", "page", PREFS_PAGE_TOOLS_PAINTBUCKET); dt->_dlg_mgr->showDialog("InkscapePreferences"); break; + case SP_VERB_CONTEXT_ERASER_PREFS: + prefs_set_int_attribute("dialogs.preferences", "page", PREFS_PAGE_TOOLS_ERASER); + dt->_dlg_mgr->showDialog("InkscapePreferences"); + break; default: break; @@ -2436,6 +2443,8 @@ Verb *Verb::_base_verbs[] = { N_("Fill bounded areas"), "draw_paintbucket"), new ContextVerb(SP_VERB_CONTEXT_LPE, "ToolLPE", N_("LPE Edit"), N_("Edit Live Path Effect parameters"), "draw_lpe"), + new ContextVerb(SP_VERB_CONTEXT_ERASER, "ToolEraser", N_("Eraser"), + N_("Erase existing paths"), "draw_erase"), /* Tool prefs */ new ContextVerb(SP_VERB_CONTEXT_SELECT_PREFS, "SelectPrefs", N_("Selector Preferences"), N_("Open Preferences for the Selector tool"), NULL), @@ -2471,6 +2480,8 @@ Verb *Verb::_base_verbs[] = { N_("Open Preferences for the Connector tool"), NULL), new ContextVerb(SP_VERB_CONTEXT_PAINTBUCKET_PREFS, "PaintBucketPrefs", N_("Paint Bucket Preferences"), N_("Open Preferences for the Paint Bucket tool"), NULL), + new ContextVerb(SP_VERB_CONTEXT_ERASER_PREFS, "EraserPrefs", N_("Eraser Preferences"), + N_("Open Preferences for the Eraser tool"), NULL), /* Zoom/View */ new ZoomVerb(SP_VERB_ZOOM_IN, "ZoomIn", N_("Zoom In"), N_("Zoom in"), "zoom_in"), |
