summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-03-05 18:57:01 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-03-05 18:57:01 +0000
commitda8e012ab815b098ba08e33e725ac8f6d6da86e9 (patch)
tree12cd81307da2bb91bd6d186e5a3efd9ca93414d6 /src/verbs.cpp
parentfix 198404 (diff)
downloadinkscape-da8e012ab815b098ba08e33e725ac8f6d6da86e9.tar.gz
inkscape-da8e012ab815b098ba08e33e725ac8f6d6da86e9.zip
New menu command to quickly create guides around page
(bzr r4970)
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp7
1 files changed, 7 insertions, 0 deletions
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"),