diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2012-05-23 12:00:49 +0000 |
|---|---|---|
| committer | tavmjong-free <tavmjong@free.fr> | 2012-05-23 12:00:49 +0000 |
| commit | 0ea9b448ee16fe941d46395c2877f4d2e815b9ed (patch) | |
| tree | a49cb57d691df46475d1e9fe197aeade8b0fa10c /src/verbs.cpp | |
| parent | Correct improper flipping of sRGB transform from RGB to BGR with cairo change... (diff) | |
| download | inkscape-0ea9b448ee16fe941d46395c2877f4d2e815b9ed.tar.gz inkscape-0ea9b448ee16fe941d46395c2877f4d2e815b9ed.zip | |
Add Mesh tool (experimental, requires Cario >= 1.11.4, disabled by default).
(bzr r11406)
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 f2ff61293..96a6b76a1 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -1509,6 +1509,9 @@ void ContextVerb::perform(SPAction *action, void *data) case SP_VERB_CONTEXT_GRADIENT: tools_switch(dt, TOOLS_GRADIENT); break; + case SP_VERB_CONTEXT_MESH: + tools_switch(dt, TOOLS_MESH); + break; case SP_VERB_CONTEXT_ZOOM: tools_switch(dt, TOOLS_ZOOM); break; @@ -1587,6 +1590,10 @@ void ContextVerb::perform(SPAction *action, void *data) prefs->setInt("/dialogs/preferences/page", PREFS_PAGE_TOOLS_GRADIENT); dt->_dlg_mgr->showDialog("InkscapePreferences"); break; + case SP_VERB_CONTEXT_MESH_PREFS: + prefs->setInt("/dialogs/preferences/page", PREFS_PAGE_TOOLS_GRADIENT); + dt->_dlg_mgr->showDialog("InkscapePreferences"); + break; case SP_VERB_CONTEXT_ZOOM_PREFS: prefs->setInt("/dialogs/preferences/page", PREFS_PAGE_TOOLS_ZOOM); dt->_dlg_mgr->showDialog("InkscapePreferences"); @@ -2512,6 +2519,8 @@ Verb *Verb::_base_verbs[] = { N_("Create and edit text objects"), INKSCAPE_ICON("draw-text")), new ContextVerb(SP_VERB_CONTEXT_GRADIENT, "ToolGradient", N_("Gradient"), N_("Create and edit gradients"), INKSCAPE_ICON("color-gradient")), + new ContextVerb(SP_VERB_CONTEXT_MESH, "ToolMesh", N_("Mesh"), + N_("Create and edit meshes"), INKSCAPE_ICON("mesh-gradient")), new ContextVerb(SP_VERB_CONTEXT_ZOOM, "ToolZoom", N_("Zoom"), N_("Zoom in or out"), INKSCAPE_ICON("zoom")), new ContextVerb(SP_VERB_CONTEXT_MEASURE, "ToolMeasure", NC_("Measurement tool", "Measure"), @@ -2557,6 +2566,8 @@ Verb *Verb::_base_verbs[] = { N_("Open Preferences for the Text tool"), NULL), new ContextVerb(SP_VERB_CONTEXT_GRADIENT_PREFS, "GradientPrefs", N_("Gradient Preferences"), N_("Open Preferences for the Gradient tool"), NULL), + new ContextVerb(SP_VERB_CONTEXT_MESH_PREFS, "Mesh_Prefs", N_("Mesh Preferences"), + N_("Open Preferences for the Mesh tool"), NULL), new ContextVerb(SP_VERB_CONTEXT_ZOOM_PREFS, "ZoomPrefs", N_("Zoom Preferences"), N_("Open Preferences for the Zoom tool"), NULL), new ContextVerb(SP_VERB_CONTEXT_MEASURE_PREFS, "MeasurePrefs", N_("Measure Preferences"), |
