diff options
| author | chr <chr> | 2017-05-23 19:48:22 +0000 |
|---|---|---|
| committer | chr <chr> | 2017-05-23 19:48:22 +0000 |
| commit | dc80e5d0bf82f005628881134b929aa4838308d5 (patch) | |
| tree | 0cbe1a5aaf0673816abe5ac2674a7fc3f327b87b /src/verbs.cpp | |
| parent | object panel: don't scroll to layer when leaving object group (diff) | |
| download | inkscape-dc80e5d0bf82f005628881134b929aa4838308d5.tar.gz inkscape-dc80e5d0bf82f005628881134b929aa4838308d5.zip | |
selection chemistry: implement z-stack order
Bug #1395452
"raise and lower objects" used to stack objects above/below the next overlapping object,
which makes it impossible to change the z-order of objects that don't overlap.
Fixes also the object manager panel
Conflicts:
src/selection-chemistry.cpp
src/selection-chemistry.h
src/sp-item.cpp
(bzr r15698.1.7)
Diffstat (limited to 'src/verbs.cpp')
| -rw-r--r-- | src/verbs.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp index b7b6da340..22ded60b3 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -1179,6 +1179,12 @@ void SelectionVerb::perform(SPAction *action, void *data) case SP_VERB_SELECTION_LOWER: selection->lower(); break; + case SP_VERB_SELECTION_STACK_UP: + selection->stackUp(); + break; + case SP_VERB_SELECTION_STACK_DOWN: + selection->stackDown(); + break; case SP_VERB_SELECTION_GROUP: selection->group(); break; @@ -2685,6 +2691,14 @@ Verb *Verb::_base_verbs[] = { N_("Raise selection one step"), INKSCAPE_ICON("selection-raise")), new SelectionVerb(SP_VERB_SELECTION_LOWER, "SelectionLower", N_("_Lower"), N_("Lower selection one step"), INKSCAPE_ICON("selection-lower")), + + + new SelectionVerb(SP_VERB_SELECTION_STACK_UP, "SelectionStackUp", N_("_Stack up"), + N_("Stack selection one step up"), INKSCAPE_ICON("layer-raise")), + new SelectionVerb(SP_VERB_SELECTION_STACK_DOWN, "SelectionStackDown", N_("_Stack down"), + N_("Stack selection one step down"), INKSCAPE_ICON("layer-lower")), + + new SelectionVerb(SP_VERB_SELECTION_GROUP, "SelectionGroup", N_("_Group"), N_("Group selected objects"), INKSCAPE_ICON("object-group")), new SelectionVerb(SP_VERB_SELECTION_UNGROUP, "SelectionUnGroup", N_("_Ungroup"), |
