From 0e82b86bbfd6d5656431edbf20fa8b6f79515a04 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Fri, 11 Jan 2008 19:01:50 +0000 Subject: Add possibility to convert objects (only rectangles and 3D boxes currently) to guidelines. Also see corresponding post on the mailing list; in particular, feel free to revert it if this is inappropriate during Frost phase. (bzr r4462) --- src/verbs.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/verbs.cpp') diff --git a/src/verbs.cpp b/src/verbs.cpp index 53650a262..736ddc3d5 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -888,6 +888,9 @@ EditVerb::perform(SPAction *action, void *data, void */*pdata*/) case SP_VERB_EDIT_SELECTION_2_MARKER: sp_selection_to_marker(); break; + case SP_VERB_EDIT_SELECTION_2_GUIDES: + sp_selection_to_guides(); + break; case SP_VERB_EDIT_TILE: sp_selection_tile(); break; @@ -2191,6 +2194,9 @@ Verb *Verb::_base_verbs[] = { // TRANSLATORS: Convert selection to a line marker new EditVerb(SP_VERB_EDIT_SELECTION_2_MARKER, "ObjectsToMarker", N_("Objects to _Marker"), N_("Convert selection to a line marker"), NULL), + // TRANSLATORS: Convert selection to a collection of guidelines + new EditVerb(SP_VERB_EDIT_SELECTION_2_GUIDES, "ObjectsToGuides", N_("Objects to Gu_ides"), + N_("Convert selected objects to a collection of guidelines aligned with their edges"), NULL), // TRANSLATORS: Convert selection to a rectangle with tiled pattern fill new EditVerb(SP_VERB_EDIT_TILE, "ObjectsToPattern", N_("Objects to Patter_n"), N_("Convert selection to a rectangle with tiled pattern fill"), NULL), -- cgit v1.2.3