X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fverbs.cpp;h=b9dfec2711de70e7b0db06eaed3d85fff68c8f5b;hb=3095d406b8f21b2d15939d51c34ec4b0f3c2e558;hp=2902a4a2f9c89136384501b753862c5684ce6851;hpb=8ec823681d758984adf6f6a80256d3e1bf6ac8cb;p=inkscape.git diff --git a/src/verbs.cpp b/src/verbs.cpp index 2902a4a2f..b9dfec271 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" /** @@ -876,6 +877,9 @@ EditVerb::perform(SPAction *action, void *data, void */*pdata*/) case SP_VERB_EDIT_PASTE_LIVEPATHEFFECT: sp_selection_paste_livepatheffect(); break; + case SP_VERB_EDIT_REMOVE_LIVEPATHEFFECT: + sp_selection_remove_livepatheffect(); + break; case SP_VERB_EDIT_DELETE: sp_selection_delete(); break; @@ -964,6 +968,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; @@ -1335,12 +1343,18 @@ ObjectVerb::perform( SPAction *action, void *data, void */*pdata*/ ) case SP_VERB_OBJECT_SET_MASK: sp_selection_set_mask(false, false); break; + case SP_VERB_OBJECT_EDIT_MASK: + sp_selection_edit_clip_or_mask(dt, false); + break; case SP_VERB_OBJECT_UNSET_MASK: sp_selection_unset_mask(false); break; case SP_VERB_OBJECT_SET_CLIPPATH: sp_selection_set_mask(true, false); break; + case SP_VERB_OBJECT_EDIT_CLIPPATH: + sp_selection_edit_clip_or_mask(dt, true); + break; case SP_VERB_OBJECT_UNSET_CLIPPATH: sp_selection_unset_mask(true); break; @@ -1734,6 +1748,9 @@ DialogVerb::perform(SPAction *action, void *data, void */*pdata*/) case SP_VERB_DIALOG_INPUT: sp_input_dialog(); break; + case SP_VERB_DIALOG_INPUT2: + dt->_dlg_mgr->showDialog("InputDevices"); + break; case SP_VERB_DIALOG_EXTENSIONEDITOR: dt->_dlg_mgr->showDialog("ExtensionEditor"); break; @@ -1959,9 +1976,8 @@ EffectLastVerb::perform(SPAction *action, void *data, void */*pdata*/) switch ((long) data) { case SP_VERB_EFFECT_LAST_PREF: - if (!effect->prefs(current_view)) - return; - /* Note: fall through */ + effect->prefs(current_view); + break; case SP_VERB_EFFECT_LAST: effect->effect(current_view); break; @@ -2185,8 +2201,10 @@ Verb *Verb::_base_verbs[] = { N_("Scale each selected object vertically to match the height of the copied object"), NULL), new EditVerb(SP_VERB_EDIT_PASTE_IN_PLACE, "EditPasteInPlace", N_("Paste _In Place"), N_("Paste objects from clipboard to the original location"), "selection_paste_in_place"), - new EditVerb(SP_VERB_EDIT_PASTE_LIVEPATHEFFECT, "EditPasteLivePathEffect", N_("Paste Path _Effect"), + new EditVerb(SP_VERB_EDIT_PASTE_LIVEPATHEFFECT, "PasteLivePathEffect", N_("Paste Path _Effect"), N_("Apply the path effect of the copied object to selection"), NULL), + new EditVerb(SP_VERB_EDIT_REMOVE_LIVEPATHEFFECT, "RemoveLivePathEffect", N_("Remove Path _Effect"), + N_("Remove any path effects from selected objects"), NULL), new EditVerb(SP_VERB_EDIT_DELETE, "EditDelete", N_("_Delete"), N_("Delete selection"), GTK_STOCK_DELETE), new EditVerb(SP_VERB_EDIT_DUPLICATE, "EditDuplicate", N_("Duplic_ate"), @@ -2225,6 +2243,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"), @@ -2363,10 +2383,14 @@ Verb *Verb::_base_verbs[] = { "object_flip_ver"), new ObjectVerb(SP_VERB_OBJECT_SET_MASK, "ObjectSetMask", N_("_Set"), N_("Apply mask to selection (using the topmost object as mask)"), NULL), + new ObjectVerb(SP_VERB_OBJECT_EDIT_MASK, "ObjectEditMask", N_("_Edit"), + N_("Edit mask"), "nodeedit-mask"), new ObjectVerb(SP_VERB_OBJECT_UNSET_MASK, "ObjectUnSetMask", N_("_Release"), N_("Remove mask from selection"), NULL), new ObjectVerb(SP_VERB_OBJECT_SET_CLIPPATH, "ObjectSetClipPath", N_("_Set"), N_("Apply clipping path to selection (using the topmost object as clipping path)"), NULL), + new ObjectVerb(SP_VERB_OBJECT_EDIT_CLIPPATH, "ObjectEditClipPath", N_("_Edit"), + N_("Edit clipping path"), "nodeedit-clippath"), new ObjectVerb(SP_VERB_OBJECT_UNSET_CLIPPATH, "ObjectUnSetClipPath", N_("_Release"), N_("Remove clipping path from selection"), NULL), @@ -2530,6 +2554,8 @@ Verb *Verb::_base_verbs[] = { #endif new DialogVerb(SP_VERB_DIALOG_INPUT, "DialogInput", N_("_Input Devices..."), N_("Configure extended input devices, such as a graphics tablet"), "input_devices"), + new DialogVerb(SP_VERB_DIALOG_INPUT2, "DialogInput2", N_("_Input Devices (new)..."), + N_("Configure extended input devices, such as a graphics tablet"), "input_devices"), new DialogVerb(SP_VERB_DIALOG_EXTENSIONEDITOR, "org.inkscape.dialogs.extensioneditor", N_("_Extensions..."), N_("Query information about extensions"), NULL), new DialogVerb(SP_VERB_DIALOG_LAYERS, "DialogLayers", N_("Layer_s..."),