summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorMartin Owens <doctormo@gmail.com>2019-02-24 06:13:39 +0000
committerMartin Owens <doctormo@gmail.com>2019-02-24 06:13:39 +0000
commit89dec29933b82615972ab5cb5691df7a445aac6b (patch)
treec3bb2ad8c0beba42805d51f09671a81790e96188 /src/verbs.cpp
parentMake background color affect checkerboard (diff)
downloadinkscape-89dec29933b82615972ab5cb5691df7a445aac6b.tar.gz
inkscape-89dec29933b82615972ab5cb5691df7a445aac6b.zip
Merge in bazaar branch for alignment handles
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp44
1 files changed, 42 insertions, 2 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 4a872485e..86b884b4d 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1817,7 +1817,15 @@ void ContextVerb::perform(SPAction *action, void *data)
case SP_VERB_ALIGN_VERTICAL_CENTER:
case SP_VERB_ALIGN_VERTICAL_BOTTOM:
case SP_VERB_ALIGN_VERTICAL_TOP_TO_ANCHOR:
- case SP_VERB_ALIGN_VERTICAL_HORIZONTAL_CENTER:
+ case SP_VERB_ALIGN_BOTH_TOP_LEFT:
+ case SP_VERB_ALIGN_BOTH_TOP_RIGHT:
+ case SP_VERB_ALIGN_BOTH_BOTTOM_RIGHT:
+ case SP_VERB_ALIGN_BOTH_BOTTOM_LEFT:
+ case SP_VERB_ALIGN_BOTH_TOP_LEFT_TO_ANCHOR:
+ case SP_VERB_ALIGN_BOTH_TOP_RIGHT_TO_ANCHOR:
+ case SP_VERB_ALIGN_BOTH_BOTTOM_RIGHT_TO_ANCHOR:
+ case SP_VERB_ALIGN_BOTH_BOTTOM_LEFT_TO_ANCHOR:
+ case SP_VERB_ALIGN_BOTH_CENTER:
ActionAlign::do_verb_action(dt, verb);
break;
@@ -3221,8 +3229,40 @@ Verb *Verb::_base_verbs[] = {
new ContextVerb(SP_VERB_ALIGN_VERTICAL_TOP_TO_ANCHOR, "AlignVerticalTopToAnchor",
N_("Align top edges of objects to the bottom edge of the anchor"),
N_("Align top edges of objects to the bottom edge of the anchor"),
+ INKSCAPE_ICON("align-vertical-top")),
+ new ContextVerb(SP_VERB_ALIGN_BOTH_TOP_LEFT, "AlignBothTopLeft",
+ N_("Align edges of objects to the top-left corner of the anchor"),
+ N_("Align edges of objects to the top-left corner of the anchor"),
+ INKSCAPE_ICON("align-vertical-top-to-anchor")),
+ new ContextVerb(SP_VERB_ALIGN_BOTH_TOP_RIGHT, "AlignBothTopRight",
+ N_("Align edges of objects to the top-right corner of the anchor"),
+ N_("Align edges of objects to the top-right corner of the anchor"),
+ INKSCAPE_ICON("align-vertical-top-to-anchor")),
+ new ContextVerb(SP_VERB_ALIGN_BOTH_BOTTOM_RIGHT, "AlignBothBottomRight",
+ N_("Align edges of objects to the bottom-right corner of the anchor"),
+ N_("Align edges of objects to the bottom-right corner of the anchor"),
+ INKSCAPE_ICON("align-vertical-bottom-to-anchor")),
+ new ContextVerb(SP_VERB_ALIGN_BOTH_BOTTOM_LEFT, "AlignBothBottomLeft",
+ N_("Align edges of objects to the bottom-left corner of the anchor"),
+ N_("Align edges of objects to the bottom-left corner of the anchor"),
+ INKSCAPE_ICON("align-vertical-bottom-to-anchor")),
+ new ContextVerb(SP_VERB_ALIGN_BOTH_TOP_LEFT_TO_ANCHOR, "AlignBothTopLeftToAnchor",
+ N_("Align edges of objects to the top-left corner of the anchor"),
+ N_("Align edges of objects to the top-left corner of the anchor"),
+ INKSCAPE_ICON("align-vertical-top-to-anchor")),
+ new ContextVerb(SP_VERB_ALIGN_BOTH_TOP_RIGHT_TO_ANCHOR, "AlignBothTopRightToAnchor",
+ N_("Align edges of objects to the top-right corner of the anchor"),
+ N_("Align edges of objects to the top-right corner of the anchor"),
INKSCAPE_ICON("align-vertical-top-to-anchor")),
- new ContextVerb(SP_VERB_ALIGN_VERTICAL_HORIZONTAL_CENTER, "AlignVerticalHorizontalCenter",
+ new ContextVerb(SP_VERB_ALIGN_BOTH_BOTTOM_RIGHT_TO_ANCHOR, "AlignBothBottomRightToAnchor",
+ N_("Align edges of objects to the bottom-right corner of the anchor"),
+ N_("Align edges of objects to the bottom-right corner of the anchor"),
+ INKSCAPE_ICON("align-vertical-bottom-to-anchor")),
+ new ContextVerb(SP_VERB_ALIGN_BOTH_BOTTOM_LEFT_TO_ANCHOR, "AlignBothBottomLeftToAnchor",
+ N_("Align edges of objects to the bottom-left corner of the anchor"),
+ N_("Align edges of objects to the bottom-left corner of the anchor"),
+ INKSCAPE_ICON("align-vertical-bottom-to-anchor")),
+ new ContextVerb(SP_VERB_ALIGN_BOTH_CENTER, "AlignVerticalHorizontalCenter",
N_("Center on horizontal and vertical axis"), N_("Center on horizontal and vertical axis"),
INKSCAPE_ICON("align-vertical-center")),