summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
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 32c2a850c..255e3a344 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1712,6 +1712,9 @@ void ContextVerb::perform(SPAction *action, void *data)
case SP_VERB_CONTEXT_LPETOOL:
tools_switch(dt, TOOLS_LPETOOL);
break;
+ case SP_VERB_CONTEXT_LIVECODE:
+ tools_switch(dt, TOOLS_LIVECODE);
+ break;
case SP_VERB_CONTEXT_SELECT_PREFS:
prefs->setInt("/dialogs/preferences/page", PREFS_PAGE_TOOLS_SELECTOR);
@@ -1802,6 +1805,11 @@ void ContextVerb::perform(SPAction *action, void *data)
prefs->setInt("/dialogs/preferences/page", PREFS_PAGE_TOOLS_LPETOOL);
dt->_dlg_mgr->showDialog("InkscapePreferences");
break;
+ case SP_VERB_CONTEXT_LIVECODE_PREFS:
+ // @TODO:LIVECODE
+ // prefs->setInt("/dialogs/preferences/page", PREFS_PAGE_TOOLS_MEASURE);
+ // dt->_dlg_mgr->showDialog("InkscapePreferences");
+ break;
case SP_VERB_ALIGN_HORIZONTAL_RIGHT_TO_ANCHOR:
case SP_VERB_ALIGN_HORIZONTAL_LEFT:
case SP_VERB_ALIGN_HORIZONTAL_CENTER:
@@ -2886,6 +2894,8 @@ Verb *Verb::_base_verbs[] = {
INKSCAPE_ICON("draw-eraser")),
new ContextVerb(SP_VERB_CONTEXT_LPETOOL, "ToolLPETool", NC_("ContextVerb", "LPE Tool"),
N_("Do geometric constructions"), "draw-geometry"),
+ new ContextVerb(SP_VERB_CONTEXT_LIVECODE, "ToolLivecode", NC_("ContextVerb", "Livecode Tool"),
+ N_("Livecoding tool"), INKSCAPE_ICON("xml-text-new")),
// Tool prefs
new ContextVerb(SP_VERB_CONTEXT_SELECT_PREFS, "SelectPrefs", N_("Selector Preferences"),
N_("Open Preferences for the Selector tool"), nullptr),
@@ -2931,6 +2941,8 @@ Verb *Verb::_base_verbs[] = {
N_("Open Preferences for the Eraser tool"), nullptr),
new ContextVerb(SP_VERB_CONTEXT_LPETOOL_PREFS, "LPEToolPrefs", N_("LPE Tool Preferences"),
N_("Open Preferences for the LPETool tool"), nullptr),
+ new ContextVerb(SP_VERB_CONTEXT_LIVECODE_PREFS, "LivecodeToolPrefs", N_("Livecode Tool Preferences"),
+ N_("Open Preferences for the Livecode tool"), nullptr),
// Zoom
new ZoomVerb(SP_VERB_ZOOM_IN, "ZoomIn", N_("Zoom In"), N_("Zoom in"), INKSCAPE_ICON("zoom-in")),