summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2007-10-24 23:19:48 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2007-10-24 23:19:48 +0000
commit0d90afa292d7d7e3ab59a6e1fcbcaa44272b2b1b (patch)
tree8d9135993f1a6de7f2596bb3637d7e3cd0a9526f /src/verbs.cpp
parentchange cursor for color gestures (diff)
downloadinkscape-0d90afa292d7d7e3ab59a6e1fcbcaa44272b2b1b.tar.gz
inkscape-0d90afa292d7d7e3ab59a6e1fcbcaa44272b2b1b.zip
Fix bug [ 1818794 ] Showing grid on opening svg
+ some bits of code to do on-canvas path parameter editing LPE. (bzr r3957)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index abf834c47..32e0c46af 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -999,6 +999,19 @@ EditVerb::perform(SPAction *action, void *data, void *pdata)
sp_desktop_selection(dt)->clear();
}
break;
+
+ case SP_VERB_EDIT_NEXT_PATHEFFECT_PARAMETER:
+ //FACTOR OUT THIS CODE TO SOMEWHERE ELSE!
+ // if(selection has LPE) {
+ // If not already in nodecontext, goto it!
+ // if (!tools_isactive(dt, TOOLS_NODES)) {
+ // tools_switch_current(TOOLS_NODES);
+ // }
+ // add goto next code here:
+ //} else {
+ // statusbar message: selection has no path effect applied.
+ //}
+ break;
default:
break;
}
@@ -1646,7 +1659,7 @@ ZoomVerb::perform(SPAction *action, void *data, void *pdata)
sp_namedview_toggle_guides(doc, repr);
break;
case SP_VERB_TOGGLE_GRID:
- dt->toggleGrid();
+ dt->toggleGrids();
break;
#ifdef HAVE_GTK_WINDOW_FULLSCREEN
case SP_VERB_FULLSCREEN:
@@ -2246,6 +2259,8 @@ Verb *Verb::_base_verbs[] = {
N_("Select previous object or node"), NULL),
new EditVerb(SP_VERB_EDIT_DESELECT, "EditDeselect", N_("D_eselect"),
N_("Deselect any selected objects or nodes"), "selection_deselect"),
+ new EditVerb(SP_VERB_EDIT_NEXT_PATHEFFECT_PARAMETER, "EditNextPathEffectParameter", N_("Next Path Effect Parameter"),
+ N_("Show next Path Effect parameter for editting"), NULL),
/* Selection */
new SelectionVerb(SP_VERB_SELECTION_TO_FRONT, "SelectionToFront", N_("Raise to _Top"),