summaryrefslogtreecommitdiffstats
path: root/src/verbs.cpp
diff options
context:
space:
mode:
authorJabiertxof <jabier.arraiza@marker.es>2018-11-07 18:50:58 +0000
committerJabier Arraiza <jabier.arraiza@marker.es>2018-12-01 16:15:28 +0000
commit6483ea5c1a27864af917598be8bef70d6e8cf082 (patch)
tree52ea1a84c6704cdf37d854285c4f797450a8653c /src/verbs.cpp
parentdesktopwidget: C++ify zoom_status (diff)
downloadinkscape-6483ea5c1a27864af917598be8bef70d6e8cf082.tar.gz
inkscape-6483ea5c1a27864af917598be8bef70d6e8cf082.zip
Initial commit of split canvas
Diffstat (limited to 'src/verbs.cpp')
-rw-r--r--src/verbs.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp
index a167d20a7..fa87cc691 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -2146,6 +2146,9 @@ void ZoomVerb::perform(SPAction *action, void *data)
case SP_VERB_VIEW_COLOR_MODE_TOGGLE:
dt->displayColorModeToggle();
break;
+ case SP_VERB_VIEW_TOGGLE_SPLIT:
+ dt->toggleSplitMode();
+ break;
case SP_VERB_VIEW_CMS_TOGGLE:
dt->toggleColorProfAdjust();
break;
@@ -3118,10 +3121,13 @@ Verb *Verb::_base_verbs[] = {
// N_("Switch to print colors preview mode"), NULL),
new ZoomVerb(SP_VERB_VIEW_COLOR_MODE_TOGGLE, "ViewColorModeToggle", N_("_Toggle"),
N_("Toggle between normal and grayscale color display modes"), nullptr),
-
+
+ new ZoomVerb(SP_VERB_VIEW_TOGGLE_SPLIT, "ViewSplitModeToggle", N_("Togg_le Split View Mode"),
+ N_("Split canvas in 2 to show outline"), INKSCAPE_ICON("dot")),
+
new ZoomVerb(SP_VERB_VIEW_CMS_TOGGLE, "ViewCmsToggle", N_("Color-managed view"),
N_("Toggle color-managed display for this document window"), INKSCAPE_ICON("color-management")),
-
+
new ZoomVerb(SP_VERB_VIEW_ICON_PREVIEW, "ViewIconPreview", N_("Ico_n Preview..."),
N_("Open a window to preview objects at different icon resolutions"),
INKSCAPE_ICON("dialog-icon-preview")),