diff options
| author | bulia byak <buliabyak@gmail.com> | 2006-11-03 01:51:51 +0000 |
|---|---|---|
| committer | buliabyak <buliabyak@users.sourceforge.net> | 2006-11-03 01:51:51 +0000 |
| commit | 874250752d22276a5cf71cc07495a876d1565474 (patch) | |
| tree | 2d562b9a68535b1ee2be3bd757142bcbf741112b /src/verbs.cpp | |
| parent | add view mode toggle (diff) | |
| download | inkscape-874250752d22276a5cf71cc07495a876d1565474.tar.gz inkscape-874250752d22276a5cf71cc07495a876d1565474.zip | |
add view mode toggle, store current mode for the session in prefs
(bzr r1888)
Diffstat (limited to 'src/verbs.cpp')
| -rw-r--r-- | src/verbs.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/verbs.cpp b/src/verbs.cpp index d741d5a8f..58003bbdb 100644 --- a/src/verbs.cpp +++ b/src/verbs.cpp @@ -1535,6 +1535,9 @@ ZoomVerb::perform(SPAction *action, void *data, void *pdata) case SP_VERB_VIEW_MODE_OUTLINE: dt->setDisplayModeOutline(); break; + case SP_VERB_VIEW_MODE_TOGGLE: + dt->displayModeToggle(); + break; case SP_VERB_VIEW_ICON_PREVIEW: show_panel( Inkscape::UI::Dialogs::IconPreviewPanel::getInstance(), "dialogs.iconpreview", SP_VERB_VIEW_ICON_PREVIEW ); break; @@ -2255,6 +2258,8 @@ Verb *Verb::_base_verbs[] = { N_("Switch to normal display mode"), NULL), new ZoomVerb(SP_VERB_VIEW_MODE_OUTLINE, "ViewModeOutline", N_("_Outline"), N_("Switch to outline (wireframe) display mode"), NULL), + new ZoomVerb(SP_VERB_VIEW_MODE_TOGGLE, "ViewModeToggle", N_("Toggle Display Mode"), + N_("Toggle between normal and outline display modes"), NULL), new ZoomVerb(SP_VERB_VIEW_ICON_PREVIEW, "ViewIconPreview", N_("Ico_n Preview..."), N_("Open a window to preview objects at different icon resolutions"), "view_icon_preview"), |
