summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-08-18 00:34:25 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-08-18 00:34:25 +0000
commit1797f521c22956948021b9a2c51ff848b405bd40 (patch)
tree1d6e2868cbfab4fb178a2f9c6076c03597c64a17 /src/verbs.cpp
parentRename acceptsNumParams() -> acceptsNumClicks() because it makes more sense (diff)
downloadinkscape-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/verbs.cpp')
-rw-r--r--src/verbs.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 5947ac2cf..a9840667e 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1487,6 +1487,9 @@ ContextVerb::perform(SPAction *action, void *data, void */*pdata*/)
case SP_VERB_CONTEXT_ERASER:
tools_switch_current(TOOLS_ERASER);
break;
+ case SP_VERB_CONTEXT_LPETOOL:
+ tools_switch_current(TOOLS_LPETOOL);
+ break;
case SP_VERB_CONTEXT_SELECT_PREFS:
prefs_set_int_attribute("dialogs.preferences", "page", PREFS_PAGE_TOOLS_SELECTOR);
@@ -1560,6 +1563,11 @@ ContextVerb::perform(SPAction *action, void *data, void */*pdata*/)
prefs_set_int_attribute("dialogs.preferences", "page", PREFS_PAGE_TOOLS_ERASER);
dt->_dlg_mgr->showDialog("InkscapePreferences");
break;
+ case SP_VERB_CONTEXT_LPETOOL_PREFS:
+ g_print ("TODO: Create preferences page for LPETool\n");
+ prefs_set_int_attribute("dialogs.preferences", "page", PREFS_PAGE_TOOLS_LPETOOL);
+ dt->_dlg_mgr->showDialog("InkscapePreferences");
+ break;
default:
break;
@@ -2497,6 +2505,8 @@ Verb *Verb::_base_verbs[] = {
N_("Edit Live Path Effect parameters"), "draw_lpe"),
new ContextVerb(SP_VERB_CONTEXT_ERASER, "ToolEraser", N_("Eraser"),
N_("Erase existing paths"), "draw_erase"),
+ new ContextVerb(SP_VERB_CONTEXT_LPETOOL, "ToolLPETool", N_("LPE Tool"),
+ N_("Write something sensible here"), "draw_lpetool"),
/* Tool prefs */
new ContextVerb(SP_VERB_CONTEXT_SELECT_PREFS, "SelectPrefs", N_("Selector Preferences"),
N_("Open Preferences for the Selector tool"), NULL),
@@ -2534,6 +2544,8 @@ Verb *Verb::_base_verbs[] = {
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),
+ new ContextVerb(SP_VERB_CONTEXT_LPETOOL_PREFS, "LPEToolPrefs", N_("LPE Tool Preferences"),
+ N_("Open Preferences for the LPETool tool"), NULL),
/* Zoom/View */
new ZoomVerb(SP_VERB_ZOOM_IN, "ZoomIn", N_("Zoom In"), N_("Zoom in"), "zoom_in"),