diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-11-23 19:09:02 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-11-23 19:09:02 +0000 |
| commit | 87477c55a87ab49bf20e9f19942e27b785a812c1 (patch) | |
| tree | 58b984602606755b87276221f06fe19e08ccb9df /src/verbs.cpp | |
| parent | fix #521 SPIString copy constructor (diff) | |
| download | inkscape-87477c55a87ab49bf20e9f19942e27b785a812c1.tar.gz inkscape-87477c55a87ab49bf20e9f19942e27b785a812c1.zip | |
add livecoding tool to toolbar
Diffstat (limited to 'src/verbs.cpp')
| -rw-r--r-- | src/verbs.cpp | 12 |
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")), |
