From da8e012ab815b098ba08e33e725ac8f6d6da86e9 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Wed, 5 Mar 2008 18:57:01 +0000 Subject: New menu command to quickly create guides around page (bzr r4970) --- src/verbs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/verbs.cpp') diff --git a/src/verbs.cpp b/src/verbs.cpp index 08f1bb124..674ccdd82 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -81,6 +81,7 @@ #include "shape-editor.h" #include "draw-context.h" #include "gradient-drag.h" +#include "sp-guide.h" /** @@ -964,6 +965,10 @@ EditVerb::perform(SPAction *action, void *data, void */*pdata*/) } break; + case SP_VERB_EDIT_GUIDES_AROUND_PAGE: + sp_guide_create_guides_around_page(sp_desktop_document(dt)); + break; + case SP_VERB_EDIT_NEXT_PATHEFFECT_PARAMETER: sp_selection_next_patheffect_param(dt); break; @@ -2231,6 +2236,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_GUIDES_AROUND_PAGE, "EditGuidesAroundPage", N_("_Guides around page"), + N_("Create four guides aligned with the page borders"), NULL), new EditVerb(SP_VERB_EDIT_NEXT_PATHEFFECT_PARAMETER, "EditNextPathEffectParameter", N_("Next Path Effect Parameter"), N_("Show next Path Effect parameter for editing"), "edit_next_parameter"), -- cgit v1.2.3