From 89dec29933b82615972ab5cb5691df7a445aac6b Mon Sep 17 00:00:00 2001 From: Martin Owens Date: Sun, 24 Feb 2019 01:13:39 -0500 Subject: Merge in bazaar branch for alignment handles --- src/seltrans-handles.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/seltrans-handles.cpp') diff --git a/src/seltrans-handles.cpp b/src/seltrans-handles.cpp index fec384086..5cf2457a1 100644 --- a/src/seltrans-handles.cpp +++ b/src/seltrans-handles.cpp @@ -19,7 +19,8 @@ SPSelTransTypeInfo const handtypes[] = { { DEF_COLOR, N_("Scale selection; with Ctrl to scale uniformly; with Shift to scale around rotation center") }, { DEF_COLOR, N_("Skew selection; with Ctrl to snap angle; with Shift to skew around the opposite side") }, { DEF_COLOR, N_("Rotate selection; with Ctrl to snap angle; with Shift to rotate around the opposite corner") }, - { CEN_COLOR, N_("Center of rotation and skewing: drag to reposition; scaling with Shift also uses this center") } + { CEN_COLOR, N_("Center of rotation and skewing: drag to reposition; scaling with Shift also uses this center") }, + { DEF_COLOR, N_("Align selected objects to the side clicked; Shift click to align against side instead.") } }; SPSelTransHandle const hands[] = { @@ -42,6 +43,15 @@ SPSelTransHandle const hands[] = { {HANDLE_SKEW, SP_ANCHOR_N, GDK_SB_H_DOUBLE_ARROW, 10, 0.5, 0}, {HANDLE_ROTATE, SP_ANCHOR_NE, GDK_EXCHANGE, 7, 0, 0}, {HANDLE_SKEW, SP_ANCHOR_E, GDK_SB_V_DOUBLE_ARROW, 11, 0, 0.5}, + {HANDLE_ALIGN, SP_ANCHOR_S, GDK_TOP_SIDE, 13, 0.5, 1}, + {HANDLE_ALIGN, SP_ANCHOR_W, GDK_RIGHT_SIDE, 14, 1, 0.5}, + {HANDLE_ALIGN, SP_ANCHOR_N, GDK_BOTTOM_SIDE, 15, 0.5, 0}, + {HANDLE_ALIGN, SP_ANCHOR_E, GDK_LEFT_SIDE, 16, 0, 0.5}, + {HANDLE_ALIGN, SP_ANCHOR_CENTER, GDK_CROSSHAIR, 17, 0.5, 0.5}, + {HANDLE_ALIGN, SP_ANCHOR_SE, GDK_TOP_LEFT_CORNER, 18, 0, 1}, + {HANDLE_ALIGN, SP_ANCHOR_SW, GDK_TOP_RIGHT_CORNER, 19, 1, 1}, + {HANDLE_ALIGN, SP_ANCHOR_NW, GDK_BOTTOM_RIGHT_CORNER, 20, 1, 0}, + {HANDLE_ALIGN, SP_ANCHOR_NE, GDK_BOTTOM_LEFT_CORNER, 21, 0, 0}, }; /* -- cgit v1.2.3